SH: Use <bits/fcntl-linux.h>
[platform/upstream/glibc.git] / ChangeLog
1 2012-10-21  Andreas Jaeger  <aj@suse.de>
2
3         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
4         definitions and declarations that are provided by
5         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
6
7 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
8
9         [BZ #14683]
10         * elf/Makefile (tests-static): Add tst-leaks1-static.
11         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
12         ($(objpfx)tst-leaks1-static): New rule.
13         ($(objpfx)tst-leaks1-static-mem): Likewise.
14         (tst-leaks1-static-ENV): New macro.
15         * elf/dl-open.c (dl_open_worker): Check the main application
16         only if SHARED is defined.
17         * elf/tst-leaks1-static.c: New file.
18
19 2012-10-20  Andreas Jaeger  <aj@suse.de>
20
21         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
22         generic values for Linux.
23         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
24         and declarations that are provided by <bits/fcntl-linux.h> and
25         include <bits/fcntl-linux.h>.
26         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
27         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
28
29 2012-10-20  Roland McGrath  <roland@hack.frob.com>
30
31         * io/fcntl.h: Move include of <bits/types.h> to the top and
32         include it unconditionally.
33
34 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
35
36         * wcsmbs/Makefile (tests-ifunc): New variable.
37         (tests): Add $(tests-ifunc).
38         * wcsmbs/test-wcschr-ifunc.c: New file.
39         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
40         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
41         * wcsmbs/test-wcslen-ifunc.c: Likewise.
42         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
43         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
44
45         * string/Makefile (tests-ifunc): New variable.
46         (tests): Add $(tests-ifunc).
47         * string/test-memccpy.c (TEST_NAME): New macro.
48         * string/test-memchr.c (TEST_NAME): Likewise.
49         * string/test-memcmp.c (TEST_NAME): Likewise.
50         * string/test-memcpy.c (TEST_NAME): Likewise.
51         * string/test-memmem.c (TEST_NAME): Likewise.
52         * string/test-memmove.c (TEST_NAME): Likewise.
53         * string/test-memset.c (TEST_NAME): Likewise.
54         * string/test-rawmemchr.c (TEST_NAME): Likewise.
55         * string/test-stpcpy.c (TEST_NAME): Likewise.
56         * string/test-stpncpy.c (TEST_NAME): Likewise.
57         * string/test-strcasecmp.c (TEST_NAME): Likewise.
58         * string/test-strcasestr.c (TEST_NAME): Likewise.
59         * string/test-strcat.c (TEST_NAME): Likewise.
60         * string/test-strchr.c (TEST_NAME): Likewise.
61         * string/test-strcmp.c(TEST_NAME): Likewise.
62         * string/test-strcpy.c (TEST_NAME): Likewise.
63         * string/test-strcspn.c (TEST_NAME): Likewise.
64         * string/test-strlen.c (TEST_NAME): Likewise.
65         * string/test-strncasecmp.c (TEST_NAME): Likewise.
66         * string/test-strncmp.c (TEST_NAME): Likewise.
67         * string/test-strncpy.c (TEST_NAME): Likewise.
68         * string/test-strnlen.c (TEST_NAME): Likewise.
69         * string/test-strpbrk.c (TEST_NAME): Likewise.
70         * string/test-strrchr.c (TEST_NAME): Likewise.
71         * string/test-strspn.c (TEST_NAME): Likewise.
72         * string/test-strstr.c (TEST_NAME): Likewise.
73         * string/test-bcopy-ifunc.c: New file.
74         * string/test-bzero-ifunc.c: Likewise.
75         * string/test-memccpy-ifunc.c: Likewise.
76         * string/test-memchr-ifunc.c: Likewise.
77         * string/test-memcmp-ifunc.c: Likewise.
78         * string/test-memcpy-ifunc.c: Likewise.
79         * string/test-memmem-ifunc.c: Likewise.
80         * string/test-memmove-ifunc.c: Likewise.
81         * string/test-mempcpy-ifunc.c: Likewise.
82         * string/test-memset-ifunc.c: Likewise.
83         * string/test-rawmemchr-ifunc.c: Likewise.
84         * string/test-stpcpy-ifunc.c: Likewise.
85         * string/test-stpncpy-ifunc.c: Likewise.
86         * string/test-strcasecmp-ifunc.c: Likewise.
87         * string/test-strcasestr-ifunc.c: Likewise.
88         * string/test-strcat-ifunc.c: Likewise.
89         * string/test-strchr-ifunc.c: Likewise.
90         * string/test-strchrnul-ifunc.c: Likewise.
91         * string/test-strcmp-ifunc.c: Likewise.
92         * string/test-strcpy-ifunc.c: Likewise.
93         * string/test-strcspn-ifunc.c: Likewise.
94         * string/test-strlen-ifunc.c: Likewise.
95         * string/test-strncasecmp-ifunc.c: Likewise.
96         * string/test-strncat-ifunc.c: Likewise.
97         * string/test-strncmp-ifunc.c: Likewise.
98         * string/test-strncpy-ifunc.c: Likewise.
99         * string/test-strnlen-ifunc.c: Likewise.
100         * string/test-strpbrk-ifunc.c: Likewise.
101         * string/test-strrchr-ifunc.c: Likewise.
102         * string/test-strspn-ifunc.c: Likewise.
103         * string/test-strstr-ifunc.c: Likewise.
104
105         * debug/Makefile (tests-ifunc): New variable.
106         (tests): Add $(tests-ifunc).
107         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
108         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
109         * debug/test-stpcpy_chk-ifunc.c: New file.
110         * debug/test-strcpy_chk-ifunc.c: Likewise.
111
112 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
113
114         [BZ #13601]
115         * elf/dl-load.c (open_verify): Retry read if the entire ELF
116         header is not read in.
117
118 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
119
120         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
121         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
122         directly.  Pass built executable to script as
123         $(built-program-cmd).
124         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
125         $testprogram without using LD_LIBRARY_PATH and $ldso.
126
127         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
128         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
129         $(rtld-installed-name).
130         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
131         (rtld_installed_name): Likewise.
132         (library_path): Likewise.
133         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
134         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
135         $(run-program-prefix) to tst-tables.sh.
136         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
137         it to run tst-table-from and tst-table-to.
138         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
139         Pass it to tst-table.sh.
140         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
141         $(run-program-prefix) to tst-gettext.sh.
142         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
143         tst-translit.sh.
144         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
145         tst-gettext2.sh.
146         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
147         to run tst-gettext.
148         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
149         to run tst-gettext2.
150         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
151         to run tst-translit.
152         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
153         $(run-program-prefix) to tst-mtrace.sh.
154         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
155         to run tst-mtrace.
156         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
157         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
158         $(rtld-installed-name).
159         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
160         (rtld_installed_name): Likewise.
161         (run_program_prefix): New variable.  Use it to run wordexp-test.
162
163         * Makeconfig (ARCH): Remove all definitions.
164         (machine): Likewise.
165         [ARCH]: Remove conditional code.
166         [!objdir]: Give error.
167         [!objdir] (objpfx): Remove.
168         [!objdir] (common-objpfx): Likewise.
169         [!objdir] (common-objdir): Likewise.
170         * configure.in (config_makefile): Remove.  Hardcode Makefile in
171         AC_CONFIG_FILES call.
172         * configure: Regenerated.
173
174         [BZ #13888]
175         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
176         or TMPDIR.
177         (testout): Likewise.
178
179         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
180         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
181         $(rtld-installed-name).
182         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
183         (rtld_installed_name): Likwise.
184         (runit): Remove function.
185         (run_getconf): New variable,  Use it for running getconf binary.
186
187 2012-10-19  Jim Blandy  <jimb@codesourcery.com>
188             Joseph Myers  <joseph@codesourcery.com>
189
190         * localedata/tst-wctype.sh (run_program_prefix): Remove variable.
191         (tst_wctype): New variable.  Use it directly to run test program
192         instead of passing test program name as argument.
193
194 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
195
196         [BZ #14716]
197         * string/test-memmem.c (check_result): New function.
198         (do_one_test): Use it.
199         (check1): New function.
200         (test_main): Use it.
201
202 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
203
204         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
205
206 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
207
208         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
209         (_G_LSEEK64): Likewise.
210         (_G_MMAP64): Likewise.
211         (_G_FSTAT64): Likewise.
212         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
213         (_G_LSEEK64): Likewise.
214         (_G_MMAP64): Likewise.
215         (_G_FSTAT64): Likewise.
216         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
217         unconditional.  Call __mmap64 directly.
218         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
219         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
220         __lseek64 directly.
221         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
222         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
223         __mmap64 directly.
224         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
225         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
226         __lseek64 directly.
227         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
228         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
229         __lseek64 directly.
230         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
231         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
232         __lseek64 directly.
233         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
234         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
235         __fxstat64 directly.
236         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
237         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
238         unconditional.
239         (freopen64) [!_G_OPEN64]: Remove conditional code.
240         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
241         unconditional.
242         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
243         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
244         unconditional.
245         (ftello64) [!_G_LSEEK64]: Remove conditional code.
246         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
247         unconditional.
248         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
249         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
250         unconditional.
251         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
252         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
253         unconditional.
254         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
255         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
256         unconditional.
257         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
258         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
259         unconditional.
260         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
261
262 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
263
264         [BZ #12140]
265         * manual/memory.texi (Malloc Tunable Parameters): Add note
266         about free list pointers overwriting some perturb bytes.
267         Wording suggested by Roland McGrath.
268
269 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
270
271         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
272         (lgamma_test): Likewise.
273         (tgamma_test): Likewise.
274
275 2012-10-16  Florian Weimer  <fweimer@redhat.com>
276
277         [BZ #14700]
278         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
279         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
280
281 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
282
283         * NEWS: Mention BZ #14716.
284         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
285         when removing AVAILABLE1_USES_J macro.
286
287 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
288
289         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
290         (__bswap_64): __uint64_t for unsigned 64-bit int.
291
292 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
293
294         * include/string.h (memmem): Declare libc hidden alias.
295         * string/memmem.c (memmem): Define libc hidden alias.
296         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
297         __read, __close instead of open, read, close.
298
299 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
300
301         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
302         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
303         global and hidden.
304         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
305         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
306         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
307         Likewise.
308         (__rawmemchr_sse2): Likewise.
309         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
310         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
311         (__strchr_sse2): Likewise.
312         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
313         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
314         (__strcasecmp_sse2): Likewise.
315         (__strncasecmp_sse2): Likewise.
316         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
317         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
318         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
319         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
320         (__strrchr_sse2): Likewise.
321         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
322         ifunc-impl-list.c.
323         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
324         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
325         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
326         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
327         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
328         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
329         * sysdeps/x86_64/multiarch/memset.S: Likewise.
330         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
331         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
332         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
333         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
334         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
335         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
336         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
337         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
338         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
339         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
340         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
341         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
342         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
343         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
344         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
345         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
346         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
347         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
348         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
349         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
350         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
351         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
352         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
353
354         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
355         global and hidden.
356         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
357         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
358         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
359         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
360         Likewise.
361         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
362         Likewise.
363         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
364         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
365         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
366         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
367         ifunc-impl-list.c.
368         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
369         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
370         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
371         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
372         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
373         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
374         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
375         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
376         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
377         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
378         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
379         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
380         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
381         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
382         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
383         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
384         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
385         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
386         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
387         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
388         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
389         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
390         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
391         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
392         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
393         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
394         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
395         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
396         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
397         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
398         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
399         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
400         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
401         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
402         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
403         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
404         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
405         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
406         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
407         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
408         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
409
410         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
411         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
412         * include/ifunc-impl-list.h: New file.
413         * misc/ifunc-impl-list.c: Likewise.
414         * misc/Makefile (routines): Add ifunc-impl-list.
415         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
416         * string/test-string.h: Include <ifunc-impl-list.h>.
417         [TEST_IFUNC && TEST_NAME] (func_list, func_count, impl_count,
418         impl_array): New variables.
419         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
420         are defined.
421         (test_init): Call __libc_ifunc_impl_list to initialize
422         func_list if TEST_IFUNC and TEST_NAME are defined.
423
424         * string/Makefile (strop-tests): Add bcopy and bzero.
425         * string/test-bcopy.c: New file.
426         * string/test-bzero.c: Likewise.
427         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
428         defined.
429         * string/test-memset.c: Support bzero test if TEST_BZERO is
430         defined.
431         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
432         __libc_memmove.
433         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
434         __libc_memset.
435         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
436         of memset.
437
438 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
439
440         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
441         * configure: Regenerated.
442
443         * Makeconfig (+link-static-before-libc): Don't include
444         $(link-static-libc).
445
446         * libio/libio.h (_IO_pos_t): Remove.
447
448 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
449
450         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
451         McGrath.
452
453 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
454
455         * crypt/crypt-entry.c: Include fips-private.h.
456         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
457         * crypt/md5c-test.c (main): Tolerate disabled MD5.
458         * sysdeps/unix/sysv/linux/fips-private.h: New file.
459         * sysdeps/generic/fips-private.h: New file, dummy fallback.
460
461 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
462
463         * crypt/crypt-private.h: Include stdbool.h.
464         (_ufc_setup_salt_r): Return bool.
465         * crypt/crypt-entry.c: Include errno.h.
466         (__crypt_r): Return NULL with EINVAL for bad salt.
467         * crypt/crypt_util.c (bad_for_salt): New.
468         (_ufc_setup_salt_r): Check that salt is long enough and within
469         the specified alphabet.
470         * crypt/badsalttest.c: New file.
471         * crypt/Makefile (tests): Add it.
472         ($(objpfx)badsalttest): New.
473
474 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
475
476         * NEWS: Add entry for BZ #14602.
477
478 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
479
480         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
481         type-generic.
482         * math/libm-test.inc: Update comment listing what functions and
483         macros are tested.
484         (isgreater_test): New function.
485         (isgreaterequal_test): Likewise.
486         (isless_test): Likewise.
487         (islessequal_test): Likewise.
488         (islessgreater_test): Likewise.
489         (isunordered_test): Likewise.
490         (main): Call the new functions.
491
492 2012-10-09  Roland McGrath  <roland@hack.frob.com>
493
494         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
495         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
496         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
497         * sysdeps/i386/configure: Regenerated.
498         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
499         * sysdeps/mach/configure: Regenerated.
500         * sysdeps/mach/hurd/configure: Regenerated.
501         * sysdeps/powerpc/configure: Regenerated.
502         * sysdeps/powerpc/powerpc32/configure: Regenerated.
503         * sysdeps/powerpc/powerpc64/configure: Regenerated.
504         * sysdeps/s390/s390-32/configure: Regenerated.
505         * sysdeps/s390/s390-64/configure: Regenerated.
506         * sysdeps/sh/configure: Regenerated.
507         * sysdeps/sparc/configure: Regenerated.
508         * sysdeps/unix/sysv/linux/configure: Regenerated.
509         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
510         * sysdeps/x86_64/configure: Regenerated.
511
512         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
513         defined.  Don't check if MAP is NULL.
514
515 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
516
517         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
518         (_G_stat64): Likewise.
519         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
520         (_G_stat64): Likewise.
521         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
522         instead of struct _G_stat64.
523         * libio/fileops.c (mmap_remap_check): Likewise.
524         (decide_maybe_mmap): Likewise.
525         (_IO_new_file_seekoff): Likewise.
526         (_IO_file_stat): Likewise.
527         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
528         _G_off64_t.
529         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
530         instead of struct _G_stat64.
531         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
532
533 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
534
535         [BZ #14602]
536         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
537         Replace with ...
538         (CHECK_EOL): New macro.
539         (two_way_short_needle): Check beginning of haystack for EOL.  Use
540         CHECK_EOL.
541         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
542         Replace with CHECK_EOL.
543         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
544         Replace with CHECK_EOL.
545
546 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
547
548         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
549         type-generic.
550         * math/libm-test.inc: Update comment listing what functions and
551         macros are tested.
552         (finite_test): New function.
553         (isinf_test): Likewise.
554         (isnan_test): Likewise.
555         (fpclassify_test): Test subnormal input.
556         (isfinite_test): Likewise.
557         (isnormal_test): Likewise.
558         (main): Call the new functions.
559
560 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
561
562         [BZ #14660]
563         * Makerules (%.dynsym): Force C locale when running
564         $(OBJDUMP) --dynamic-syms.
565
566 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
567
568         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
569         <stdint.h>.
570
571 2012-10-06  David S. Miller  <davem@davemloft.net>
572
573         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
574         upper 32-bits of the length value in %o2 since we use branch-on-register
575         tests which consider the entire 64-bit register.
576
577 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
578
579         * string/test-strstr.c (check2): Add a test for page boundary.
580
581 2012-10-05  David S. Miller  <davem@davemloft.net>
582
583         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
584         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
585         file.
586         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
587         sysdep_routines.
588         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
589         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
590         and bzero when HWCAP_SPARC_CRYPTO is present.
591
592 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
593
594         [BZ #14602]
595         * string/test-strstr.c (check2): New function.
596         (test_main): Call check2.
597
598         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
599         and bug-strchr1.
600         * string/bug-strcasestr1.c (do_test): Moved to ...
601         * string/test-strcasestr.c (check1): Here.  New function.
602         (do_one_test): Break out result checking code into ...
603         (check_result): This.  New function.
604         (do_one_test): Call check_result.
605         (test_main): Call check1.
606         * string/bug-strchr1.c (do_test): Moved to ...
607         * string/test-strchr.c (check1): Here.  New function.
608         (do_one_test): Break out result checking code into ...
609         (check_result): This.  New function.
610         (do_one_test): Call check_result.
611         (test_main): Call check1.
612         * string/bug-strstr1.c (main): Moved to ...
613         * string/test-strchr.c (check1): Here.  New function.
614         (do_one_test): Break out result checking code into ...
615         (check_result): This.  New function.
616         (do_one_test): Call check_result.
617         (test_main): Call check1.
618         * string/bug-strcasestr1.c: Removed.
619         * string/bug-strchr1.c: Likewise.
620         * string/bug-strstr1.c: Likewise.
621
622         * elf/Makefile (dl-routines): Add hwcaps.
623         * elf/dl-support.c (_dl_important_hwcaps): Removed.
624         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
625         (_dl_important_hwcaps): Moved to ...
626         * elf/dl-hwcaps.c: Here.  New file.
627         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
628
629         [BZ #14557]
630         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
631         if IS_IN_rtld isn't defined.
632
633         * elf/dl-support.c (_dl_sysinfo_map): New.
634         Include "get-dynamic-info.h" and "setup-vdso.h".
635         (_dl_non_dynamic_init): Call setup_vdso.
636         * elf/dynamic-link.h: Don't include <assert.h>.
637         (elf_get_dynamic_info): Moved to ...
638         * elf/get-dynamic-info.h: Here.  New file.
639         * elf/dynamic-link.h: Include "get-dynamic-info.h".
640         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
641         * elf/setup-vdso.h: Here.  New file.
642         * elf/rtld.c: Include "setup-vdso.h".
643         (dl_main): Call setup_vdso.
644
645 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
646
647         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
648         creal in comment listing functions tested.  List finite, isinf,
649         isnan, isless, islessequal, isgreater, isgreaterequal,
650         islessgreater, isunordered, lgamma_r and pow10 as functions and
651         macros not tested.  Mention which functions not tested are aliases
652         for other functions.  Fix typo.  Note that signs of NaNs are not
653         tested.
654
655         * scripts/config.guess: Update from config.git.
656         * scripts/config.sub: Likewise.
657
658 2012-10-04  Roland McGrath  <roland@hack.frob.com>
659
660         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
661         * misc/madvise.c (madvise): Renamed to __madvise.
662         Make madvise a weak alias.
663         * include/sys/mman.h: Declare __madvise.
664         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
665         * sysdeps/unix/syscalls.list
666         (madvise): Make __madvise the strong name, and madvise a weak alias.
667         * sysdeps/unix/sysv/linux/syscalls.list
668         (madvise, mmap): Remove redundant entries.
669         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
670         * malloc/malloc.c (mtrim): Likewise.
671         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
672
673 2012-10-03  Roland McGrath  <roland@hack.frob.com>
674
675         * sysdeps/mach/hurd/dl-cache.c: File removed.
676         * config.h.in (USE_LDCONFIG): New #undef.
677         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
678         * configure: Regenerated.
679         * elf/Makefile (dl-routines): Add dl-cache only under
680         [$(use-ldconfig) = yes].
681         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
682         cache on [USE_LDCONFIG].
683         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
684         [USE_LDCONFIG].
685         * elf/rtld.c (dl_main): Likewise.
686
687 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
688
689         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
690         _SC_LEVEL4_CACHE_LINESIZE.
691
692 2012-10-03  Roland McGrath  <roland@hack.frob.com>
693
694         * sysdeps/unix/bsd/confstr.h: File removed.
695
696 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
697
698         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
699         sys/sdt-config.h.
700
701 2012-10-02  Roland McGrath  <roland@hack.frob.com>
702
703         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
704         Make 'mapoff' field ElfW(Off) rather than off_t.
705
706 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
707
708         * nscd/Makefile: Remove nscd-cflags and all its users.
709         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
710         (CFLAGS-nonlib): Add compiler flags for nscd modules.
711
712         [BZ #10631]
713         * malloc.c (malloc_printerr): Clarify error message.
714
715 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
716
717         [BZ #14648]
718         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
719         Set bit_FMA_Usable if FMA is supported.
720         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
721         macro.
722         (bit_FMA4_Usable): Updated.
723         (index_FMA_Usable): New macro.
724         (CPUID_FMA): Likewise
725         (HAS_FMA): Defined with bit_FMA_Usable.
726
727 2012-10-01  Roland McGrath  <roland@hack.frob.com>
728
729         * bits/types.h (__swblk_t): Type removed.
730         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
731         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
732         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
733         (__SWBLK_T_TYPE): Likewise.
734         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
735         (__SWBLK_T_TYPE): Likewise.
736         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
737         (__SWBLK_T_TYPE): Likewise.
738         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
739         (__SWBLK_T_TYPE): Likewise.
740
741 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
742             Honza Horak <hhorak@redhat.com>
743
744         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
745         (xdr_mapname): Use YPMAXMAP as maxsize.
746         (xdr_peername): Use YPMAXPEER as maxsize.
747         (xdr_keydat): Use YPAXRECORD as maxsize.
748         (xdr_valdat): Use YPMAXRECORD as maxsize.
749
750 2012-10-01  Roland McGrath  <roland@hack.frob.com>
751
752         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
753
754         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
755         * csu/init-first.c: ... here.
756         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
757         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
758         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
759         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
760         * sysdeps/i386/init-first.c: File removed.
761         * sysdeps/sh/init-first.c: File removed.
762
763 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
764
765         [BZ #14645]
766         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
767         if x * y might underflow to zero and z is zero.
768         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
769         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
770         * math/libm-test.inc (min_subnorm_value): New variable.
771         (fma_test): Add more tests.
772         (fma_test_towardzero): Likewise.
773         (fma_test_downward): Likewise
774         (fma_test_upward): Likewise.
775         (initialize): Set min_subnorm_value.
776
777 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
778
779         [BZ #14638]
780         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
781         0 + 0.
782         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
783         mode for addition resulting in exact zero.
784         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
785         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
786         exact 0 + 0.
787         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
788         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
789         * math/libm-test.inc (fma_test): Add more tests.
790         (fma_test_towardzero): New function.
791         (fma_test_downward): Likewise.
792         (fma_test_upward): Likewise.
793         (main): Call the new functions.
794
795 2012-09-28  David S. Miller  <davem@davemloft.net>
796
797         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
798
799 2012-09-28  Roland McGrath  <roland@hack.frob.com>
800
801         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
802         instead of SIGALRM.
803
804         * sysdeps/gnu/_G_config.h: Moved to ...
805         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
806         * sysdeps/mach/hurd/_G_config.h: Moved to ...
807         * sysdeps/generic/_G_config.h: ... here.
808
809         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
810
811         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
812
813         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
814         Conditionalize target on [libnss_test1.so-version].
815
816         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
817
818         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
819         (elfobjdir): Move out of conditionals.
820
821         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
822         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
823         (__nss_lookup_function): Conditionalize label remove_from_tree on
824         [!DO_STATIC_NSS || SHARED], matching its only use.
825
826 2012-09-28  David S. Miller  <davem@davemloft.net>
827
828         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
829         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
830         file.
831         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
832         sysdep_routines.
833         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
834         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
835         when HWCAP_SPARC_CRYPTO is present.
836
837 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
838
839         * io/tst-mknodat.c: Create a FIFO instead of a socket.
840
841 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
842
843         [BZ #6530]
844         * stdio-common/vfprintf.c (process_string_arg): Revert
845         2000-07-22 change.
846
847 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
848
849         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
850         for testcase.
851         * stdio-common/tst-sprintf.c: Include <locale.h>
852         (main): Test sprintf's handling of incomplete multibyte
853         characters.
854
855 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
856
857         * elf/dl-runtime.c (VERSYMIDX): Removed.
858         * elf/dl-version.c (VERSYMIDX): Likewise.
859         * elf/do-rel.h (VERSYMIDX): Likewise.
860         (VALIDX): Likewise.
861         * elf/dynamic-link.h (VERSYMIDX): Likewise.
862         * elf/rtld.c (VALIDX): Likewise.
863         (ADDRIDX): Likewise.
864         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
865         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
866         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
867         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
868         (VALIDX): Likewise.
869         (ADDRIDX): Likewise.
870
871 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
872
873         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
874
875 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
876
877         [BZ #11438]
878         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
879         to global scope.
880         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
881         addresses are in the same scope as 192.0.2/24.
882         * posix/gai.conf: Document new scope table defaults.
883
884 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
885
886         [BZ #5298]
887         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
888         for ftell.  Compute offsets from write pointers instead.
889         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
890
891 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
892
893         [BZ #14543]
894         * libio/Makefile (tests): New test case tst-fseek.
895         * libio/tst-fseek.c: New test case to verify that fseek/ftell
896         combination works in wide mode.
897         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
898         state when the external buffer state changes.
899
900 2012-09-27  David S. Miller  <davem@davemloft.net>
901
902         [BZ #14376]
903         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
904         pass reloc->r_addend in as the 'high' argument to
905         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
906
907         * sysdeps/sparc/fpu/libm-test-ulps: Update.
908
909 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
910
911         * rt/tst-aio2.c: Include <pthread.h>.
912         * rt/tst-aio3.c: Likewise.
913
914 2012-09-27  Steve Ellcey  <sellcey@mips.com>
915
916         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
917
918 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
919
920         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
921         contents on [SHARED].
922
923 2012-09-26  Marek Polacek  <polacek@redhat.com>
924
925         [BZ #14530]
926         [BZ #13741]
927         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
928         for C++ and GCC <4.3 as well as for non GCC compilers.
929
930 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
931
932         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
933
934 2012-09-25  Roland McGrath  <roland@hack.frob.com>
935
936         * Makefile.in (all, install): Declare with .PHONY.
937         Reported by Michael Hope <michael.hope@linaro.org>.
938
939 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
940
941         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
942         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
943         system header.
944         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
945         Likewise.
946         (sydep_routines): Add the new and the internal functions.
947         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
948         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
949         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
950         (GLIBC_2.17): Add the new function.
951         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
952         (GLIBC_2.17): Likewise.
953         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
954         (GLIBC_2.17): Likewise.
955         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
956         (GLIBC_2.17): Likewise.
957         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
958
959 2012-09-25  Alan Modra  <amodra@gmail.com>
960
961         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
962         Add release barrier before setting once_control to say
963         initialisation is done.  Add hints on lwarx.  Use macro in
964         place of isync.
965         (clear_once_control): Add release barrier.
966
967 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
968
969         [BZ #13629]
970         * math/s_clog.c (__clog): Handle more values close to |z| = 1
971         specially.
972         * math/s_clog10.c (__clog10): Likewise.
973         * math/s_clog10f.c (__clog10f): Likewise.
974         * math/s_clog10l.c (__clog10l): Likewise.
975         * math/s_clogf.c (__clogf): Likewise.
976         * math/s_clogl.c (__clogl): Likewise.
977         * math/Makefile (libm-calls): Add x2y2m1.
978         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
979         (__x2y2m1): Likewise.
980         (__x2y2m1l): Likewise.
981         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
982         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
983         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
984         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
985         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
986         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
987         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
988         * sysdeps/i386/fpu/libm-test-ulps: Update.
989         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
990
991         [BZ #14621]
992         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
993         int as type of variable DEPTH.
994         (glob): Use size_t instead of int as type of variables NEWCOUNT
995         and OLD_PATHC.
996
997 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
998
999         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
1000         Add s_sincosf-sse2.
1001         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
1002         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
1003         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
1004         macros for using routine as __sincosf_ia32.
1005         Use macro for function declaration and weak_alias.
1006         * sysdeps/i386/fpu/libm-test-ulps: Update.
1007
1008         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
1009         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1010
1011         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
1012         subnormal argument.
1013         * math/s_cexpf.c (__cexpf): Likewise.
1014         * math/s_csinf.c (__csinf): Likewise.
1015         * math/s_csinhf.c (__csinhf): Likewise.
1016         * math/s_ctanf.c (__ctanf): Likewise.
1017         * math/s_ctanhf.c (__ctanhf): Likewise.
1018         * math/s_ccosh.c (__ccoshf): Likewise.
1019         * math/s_cexp.c (__cexpl): Likewise.
1020         * math/s_csin.c (__csin): Likewise.
1021         * math/s_csinh.c (__csinh): Likewise.
1022         * math/s_ctan.c (__ctan): Likewise.
1023         * math/s_ctanh.c (ctanh): Likewise.
1024         * math/s_ccoshl.c (__ccoshl): Likewise.
1025         * math/s_cexpl.c (__cexpl): Likewise.
1026         * math/s_csinl.c (__csinl): Likewise.
1027         * math/s_csinhl.c (__csinhl): Likewise.
1028         * math/s_ctanl.c (__ctanl): Likewise.
1029         * math/s_ctanhl.c (__ctanhl): Likewise.
1030
1031 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
1032
1033         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
1034         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
1035         (_IO_off_t): Define to __off_t, not _G_off_t.
1036         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
1037         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
1038         (_IO_wint_t): Define to wint_t, not _G_wint_t.
1039         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
1040         type of __dummy and __dummy2 fields.
1041         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
1042         (_G_ssize_t): Likewise.
1043         (_G_off_t): Likewise.
1044         (_G_pid_t): Likewise.
1045         (_G_uid_t): Likewise.
1046         (_G_wchar_t): Likewise.
1047         (_G_wint_t): Likewise.
1048         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
1049         (_G_ssize_t): Likewise.
1050         (_G_off_t): Likewise.
1051         (_G_pid_t): Likewise.
1052         (_G_uid_t): Likewise.
1053         (_G_wchar_t): Likewise.
1054         (_G_wint_t): Likewise.
1055         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
1056         (_G_ssize_t): Likewise.
1057         (_G_off_t): Likewise.
1058         (_G_pid_t): Likewise.
1059         (_G_uid_t): Likewise.
1060         (_G_wchar_t): Likewise.
1061         (_G_wint_t): Likewise.
1062
1063 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
1064
1065         * malloc/arena.c: Include malloc-sysdep.h.
1066         (shrink_heap): Use check_may_shrink_heap to decide if madvise
1067         is sufficient to shrink the heap or an unmap is needed.
1068         * sysdeps/generic/malloc-sysdep.h: New file.  Define
1069         new function check_may_shrink_heap.
1070         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
1071         new function check_may_shrink_heap.
1072
1073 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
1074
1075         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
1076         comments.
1077
1078 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
1079
1080         * catgets/test-gencat.sh: Add "set -e".
1081         * elf/tst-pathopt.sh: Likewise.
1082         * grp/tst_fgetgrent.sh: Likewise.
1083         * iconvdata/run-iconv-test.sh: Likewise.
1084         * intl/tst-gettext.sh: Likewise.
1085         * intl/tst-gettext2.sh: Likewise.
1086         * intl/tst-gettext4.sh: Likewise.
1087         * intl/tst-gettext6.sh: Likewise.
1088         * intl/tst-translit.sh: Likewise.
1089         * io/ftwtest-sh: Likewise.
1090         * libio/test-freopen.sh: Likewise.
1091         * malloc/tst-mtrace.sh: Likewise.
1092         * posix/globtest.sh: Likewise.
1093         * posix/tst-getconf.sh: Likewise.
1094         * posix/wordexp-tst.sh: Likewise.
1095         * stdio-common/tst-printf.sh: Likewise.
1096         * stdio-common/tst-unbputc.sh: Likewise.
1097         * stdlib/tst-fmtmsg.sh: Likewise.
1098         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
1099         * catgets/Makefile: Do not specify -e option when running
1100         testsuite shell scripts.
1101         * elf/Makefile: Likewise.
1102         * grp/Makefile: Likewise.
1103         * iconvdata/Makefile: Likewise.
1104         * intl/Makefile: Likewise.
1105         * io/Makefile: Likewise.
1106         * libio/Makefile: Likewise.
1107         * malloc/Makefile: Likewise.
1108         * posix/Makefile: Likewise.
1109         * stdio-common/Makefile: Likewise.
1110         * stdlib/Makefile: Likewise.
1111         * sysdeps/x86_64/Makefile: Likewise.
1112
1113         * io/ftwtest-sh: Add copyright header.
1114         * posix/globtest.sh: Likewise.
1115         * posix/tst-getconf.sh: Likewise.
1116         * posix/wordexp-tst.sh: Likewise.
1117         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
1118
1119 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
1120
1121         [BZ #13679]
1122         * Makeconfig (+link): Defined as $(+link-static) if
1123         $(build-shared) isn't yes.
1124         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
1125         isn't yes.
1126         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
1127
1128         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
1129
1130         [BZ #14562]
1131         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
1132         new chunk size with MALLOC_ALIGN_MASK.
1133
1134 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
1135
1136         [BZ #5044]
1137         * stdio-common/printf_fphex.c: Include <stdbool.h> and
1138         <rounding-mode.h>.
1139         (__printf_fphex): Determine rounding using get_rounding_mode and
1140         round_away.
1141         * stdio-common/tst-printf-round.c (struct hex_test): New
1142         structure.
1143         (hex_tests): New variable.
1144         (test_hex_in_one_mode): New function.
1145         (do_test): Also run tests for hex float output.
1146
1147 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
1148
1149         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
1150         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
1151         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
1152         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
1153         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
1154         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
1155         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
1156         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
1157
1158 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
1159
1160         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
1161         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
1162         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
1163         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
1164
1165 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
1166
1167         [BZ #14579]
1168         * elf/rtld.c (dl_main): Limit the check for self loading to normal
1169         mode only.
1170         * elf/tst-rtld-load-self.sh: New test.
1171         * elf/Makefile: Run it.
1172
1173 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
1174
1175         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
1176         (tst-writev-ENV): Remove.
1177         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
1178
1179 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
1180
1181         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
1182
1183 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
1184
1185         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
1186         unconditional.
1187         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
1188         Likewise.
1189         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
1190         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
1191         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
1192         Likewise.
1193
1194 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
1195
1196         [BZ #14587]
1197         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
1198         * config.make.in (have-cpp-asm-debuginfo): Removed.
1199         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
1200         * configure: Regenerated.
1201
1202 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
1203
1204         [BZ #5044]
1205         * stdio-common/printf_fp.c: Include <stdbool.h> and
1206         <rounding-mode.h>.
1207         (___printf_fp): Determine rounding using get_rounding_mode and
1208         round_away.
1209         * stdio-common/tst-printf-round.c: New file.
1210         * stdio-common/Makefile (tests): Add tst-printf-round.
1211         (link-libm): New variable.
1212         ($(objpfx)tst-printf-round): Depend in $(link-libm).
1213
1214 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
1215
1216         [BZ #14576]
1217         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
1218         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
1219         Likewise.
1220         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
1221         Likewise.
1222
1223 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
1224
1225         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
1226         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
1227         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
1228         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
1229
1230 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
1231
1232         [BZ #14518]
1233         * include/rounding-mode.h: New file.
1234         * sysdeps/generic/get-rounding-mode.h: Likewise.
1235         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
1236         * stdlib/strtod_l.c: Include <rounding-mode.h>.
1237         (MAX_VALUE): New macro.
1238         (MIN_VALUE): Likewise.
1239         (overflow_value): New function.
1240         (underflow_value): Likewise.
1241         (round_and_return): Use overflow_value and underflow_value to
1242         determine return values in overflow and underflow cases.  Use
1243         round_away to determine rounding depending on rounding mode.
1244         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
1245         determine return values in overflow and underflow cases.
1246         * stdlib/tst-strtod-round.c: Include <fenv.h>.
1247         (struct test_results): New structure.
1248         (struct test): Use struct test_results to store expected results
1249         for all rounding modes.
1250         (TEST): Include expected results for all rounding modes.
1251         (test_in_one_mode): New function.
1252         (do_test): Use test_in_one_mode to compute and check results.
1253         Check results for all rounding modes.
1254         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
1255         $(link-libm).
1256
1257 2012-12-09  Allan McRae  <allan@archlinux.org>
1258
1259         * sysdeps/i386/fpu/libm-test-ulps: Update
1260
1261 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
1262
1263         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
1264         (_G_int32_t): Likewise.
1265         (_G_uint16_t): Likewise.
1266         (_G_uint32_t): Likewise.
1267         (_G_HAVE_BOOL): Likewise.
1268         (_G_HAVE_ATEXIT): Likewise.
1269         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
1270         (_G_HAVE_IO_FILE_OPEN): Likewise.
1271         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
1272         (_G_int32_t): Likewise.
1273         (_G_uint16_t): Likewise.
1274         (_G_uint32_t): Likewise.
1275         (_G_HAVE_BOOL): Likewise.
1276         (_G_HAVE_ATEXIT): Likewise.
1277         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
1278         (_G_HAVE_IO_FILE_OPEN): Likewise.
1279         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
1280         (_G_int32_t): Likewise.
1281         (_G_uint16_t): Likewise.
1282         (_G_uint32_t): Likewise.
1283         (_G_HAVE_BOOL): Likewise.
1284         (_G_HAVE_ATEXIT): Likewise.
1285         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
1286         (_G_HAVE_IO_FILE_OPEN): Likewise.
1287
1288 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
1289
1290         * csu/libc-tls.c: Update copyright years.
1291
1292 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
1293
1294         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
1295         [!_G_USING_THUNKS]: Remove conditional code.
1296         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
1297         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
1298
1299         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
1300         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
1301         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
1302         (_G_VTABLE_LABEL_PREFIX): Likewise.
1303         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
1304         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
1305         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
1306         (_G_VTABLE_LABEL_PREFIX): Likewise.
1307         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
1308         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
1309         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
1310         (_G_VTABLE_LABEL_PREFIX): Likewise.
1311         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
1312
1313 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
1314
1315         * libio/Makefile: Include ../Makeconfig before tests.
1316         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
1317         only if $(build-shared) is yes.
1318
1319         * iconv/gconv_db.c: Update copyright years.
1320
1321 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1322
1323         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
1324         unwind info if defined PIC. Fix special cases description.
1325         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
1326
1327         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
1328         DP_HI_MASK entry.
1329         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
1330
1331 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
1332
1333         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
1334
1335         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
1336         is NULL.
1337
1338         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
1339         (LDLIBS-tst-chk4): This.
1340         (LDFLAGS-tst-chk5): Renamed to ...
1341         (LDLIBS-tst-chk5): This.
1342         (LDFLAGS-tst-chk6): Renamed to ...
1343         (LDLIBS-tst-chk6): This.
1344         (LDFLAGS-tst-lfschk4): Renamed to ...
1345         (LDLIBS-tst-lfschk4): This.
1346         (LDFLAGS-tst-lfschk5): Renamed to ...
1347         (LDLIBS-tst-lfschk5): This.
1348         (LDFLAGS-tst-lfschk6): Renamed to ...
1349         (LDLIBS-tst-lfschk6): This.
1350
1351         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
1352         on $(common-objpfx)soversions.mk.
1353
1354 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
1355
1356         [BZ #10014]
1357         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
1358         example host name.
1359
1360 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
1361
1362         * malloc/arena.c (arena_get_retry): New function that gets
1363         another arena for the caller to try its request on.
1364         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
1365         current arena cannot fulfill the request.
1366         (__libc_memalign): Likewise.
1367         (__libc_memalign): Likewise.
1368         (__libc_pvalloc): Likewise.
1369         (__libc_calloc): Likewise.
1370
1371 2012-09-05  John Tobey  <john.tobey@gmail.com>
1372
1373         [BZ #13542]
1374         * manual/arith.texi (Operations on Complex): Fix description
1375         of carg branch cut.
1376
1377 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
1378
1379         [BZ #10014]
1380         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
1381         host name.
1382
1383         [BZ #10038]
1384         * manual/memory.texi (Memory): Make order of menu items match
1385         order of sections.
1386
1387 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1388
1389         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
1390         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
1391         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
1392
1393 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1394
1395         * csu/libc-tls.c (static_dtv): Renamed to ...
1396         (_dl_static_dtv): This.  Make it global.
1397         (_dl_initial_dtv): Removed.
1398         (__libc_setup_tls): Updated.
1399         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
1400         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
1401         DL_INITIAL_DTV.
1402
1403 2012-09-06  Petr Machata  <pmachata@redhat.com>
1404
1405         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
1406         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
1407         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
1408         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
1409
1410 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1411
1412         [BZ #14545]
1413         * csu/libc-tls.c (_dl_initial_dtv): New variable.
1414         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
1415         freeing dtv[-1].
1416
1417 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1418
1419         [BZ #14544]
1420         * Makeconfig (link-static-before-libc): Replace $(+prector)
1421         with $(+prectorT).
1422         (link-static-after-libc): Replace $(+postctor) with
1423         $(+postctorT).
1424         (link-bounded): Replace $(+prector)/$(+postctor) with
1425         $(+prectorT)/$(+postctorT).
1426         (+prectorT): New macro.
1427         (+postctorT): Likewise.
1428
1429 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
1430
1431         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
1432         (round_str): Handle values above the maximum for IBM long double
1433         as inexact.
1434         * stdlib/tst-strtod-round.c (tests): Regenerated.
1435
1436 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1437
1438         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
1439         assembler flag.
1440         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
1441         zarch_nohighgprs around the zarch optimized routines.
1442         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
1443         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
1444         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
1445         for zarch.
1446
1447 2012-09-05  David S. Miller  <davem@davemloft.net>
1448
1449         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1450
1451         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
1452         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
1453         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
1454         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
1455         entries.
1456
1457 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1458
1459         * malloc/arena.c: Fold copyright years.
1460         * malloc/mcheck.c, malloc/memusage.c: Likewise.
1461
1462 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1463
1464         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
1465
1466 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1467
1468         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
1469
1470 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1471
1472         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
1473         change internal state upon failure.
1474
1475 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1476
1477         * malloc/mcheck.c (mcheck_check_all): Fix typo.
1478         * malloc/memusage.c (mmap): Likewise.
1479         (mmap64, mremap): Likewise.  Adjust name in comment.
1480
1481 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
1482
1483         * libio/fileops.c: Fix typos in comments.
1484         * libio/oldfileops.c: Likewise.
1485         * libio/wfileops.c: Likewise.
1486
1487 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
1488
1489         [BZ #1349]
1490         * malloc/Makefile (tests): Add tst-malloc-usable test case.
1491         (tst-malloc-usable-ENV): Set environment for test case.
1492         * malloc/hooks.c (malloc_check_get_size): New function to get
1493         requested size.
1494         * malloc/malloc.c (musable): Use malloc_check_get_size.
1495         * malloc/tst-malloc-usable.c: New test case.
1496
1497 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
1498
1499         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
1500
1501 2012-09-05  Allan McRae  <allan@archlinux.org>
1502
1503         [BZ #13966]
1504         * configure.in (CXX_SYSINCLUDES): Use compiler output to
1505         determine header location.
1506         * configure: Regenerated.
1507
1508 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
1509
1510         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
1511         float format.
1512         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
1513         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
1514         format.
1515         (test): Regenerate.
1516
1517 2012-09-04  David S. Miller  <davem@davemloft.net>
1518
1519         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
1520         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
1521         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
1522
1523 2012-09-04  Florian Weimer  <fweimer@redhat.com>
1524
1525         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
1526         failures.
1527
1528         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
1529
1530 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
1531
1532         [BZ #9914]
1533         * libio/iogetdelim.c: Include <limits.h>.
1534         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
1535         + len + 1 would overflow.
1536
1537 2012-09-03  Andreas Jaeger  <aj@suse.de>
1538
1539         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1540         * sysdeps/i386/fpu/libm-test-ulps: Update.
1541
1542 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1543
1544         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
1545         Add s_sinf-sse2, s_conf-sse2.
1546
1547         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
1548         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
1549         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
1550         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
1551
1552         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
1553         for using routine as __sinf_ia32.
1554         Use macro for function declaration and weak_alias.
1555         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
1556         for using routine as __cosf_ia32.
1557         Use macro for function declaration and weak_alias.
1558
1559         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
1560         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
1561
1562         * sysdeps/x86_64/fpu/s_sinf.S: New file.
1563         * sysdeps/x86_64/fpu/s_cosf.S: New file.
1564         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1565
1566         * math/libm-test.inc (cos_test): Add more test cases.
1567         (sin_test): Likewise.
1568         (sincos_test): Likewise.
1569
1570 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1571
1572         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
1573         (IFUNC_RESOLVE): Make pointers to the specialized implementations
1574         hidden.
1575         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
1576
1577 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
1578
1579         [BZ #14538]
1580         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
1581         first element of the GOT.
1582         (elf_machine_load_address): Return the difference between
1583         the runtime address of _DYNAMIC and elf_machine_dynamic ().
1584
1585 2012-09-01  Allan McRae  <allan@archlinux.org>
1586
1587         [BZ #13412]
1588         * configure.in (AWK): Require gawk version 3.0 or later.
1589         * configure: Regenerated.
1590
1591 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
1592
1593         * sysdeps/unix/sysv/linux/kernel-features.h
1594         (__ASSUME_POSIX_CPU_TIMERS): Remove.
1595         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
1596         [__NR_clock_getres]: Make code unconditional.
1597         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
1598         (clock_getcpuclockid): Remove code left unreachable by removal of
1599         conditionals.
1600         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
1601         code unconditional.
1602         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
1603         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
1604         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
1605         Make code unconditional.
1606         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
1607         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
1608         * sysdeps/unix/sysv/linux/clock_settime.c
1609         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
1610         conditional code.
1611         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
1612         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
1613
1614 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
1615
1616         [BZ #14476]
1617         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
1618         scripts/test-installation.pl.
1619
1620         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
1621         and $ld_so_version if it is set.
1622
1623 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
1624
1625         [BZ #14516]
1626         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
1627         failure if reading from procfs failed.
1628         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
1629
1630 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
1631
1632         * sysdeps/unix/sysv/linux/kernel-features.h
1633         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
1634         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
1635         Remove conditional code.
1636         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1637         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
1638         Remove conditional code.
1639         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1640         * sysdeps/unix/sysv/linux/i386/fxstat.c
1641         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
1642         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1643         * sysdeps/unix/sysv/linux/i386/fxstatat.c
1644         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
1645         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1646         * sysdeps/unix/sysv/linux/i386/lxstat.c
1647         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
1648         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1649         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
1650         Remove conditional code.
1651         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1652         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
1653         Remove conditional code.
1654         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1655         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
1656         <kernel-features.h>.
1657         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
1658         Remove.
1659         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
1660         Remove conditional code.
1661         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1662         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
1663         Remove conditional.
1664
1665 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
1666
1667         [BZ #5400]
1668         * NEWS: Add fixed bug number.
1669
1670 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
1671
1672         [BZ #14519]
1673         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
1674         underflowing exponent in case of negative sign.
1675         * stdlib/tst-strtod-round-data: Add more tests.
1676         * stdlib/tst-strtod-round.c (tests): Regenerated.
1677
1678         [BZ #3479]
1679         * stdlib/strtod_l.c (NDIG): Remove.
1680         (HEXNDIG): Likewise.
1681         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
1682         smallest representable value.
1683         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
1684         lie within an exact representation of 1/2 ulp of the result.
1685         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
1686         unconditionally.
1687         (TENS_P9_IDX): Define unconditionally.
1688         (TENS_P9_SIZE): Likewise.
1689         (TENS_P10_IDX): Likewise.
1690         (TENS_P10_SIZE): Likewise.
1691         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
1692         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
1693         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
1694         entries for 10^2^13 and 10^2^14.
1695         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
1696         (TENS_P13_IDX): Define.
1697         (TENS_P13_SIZE): Likewise.
1698         (TENS_P14_IDX): Likewise.
1699         (TENS_P14_SIZE): Likewise.
1700         (_fpioconst_pow10): Change array size to
1701         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
1702         unconditional.
1703         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
1704         1024]: Add entries for 10^2^13 and 10^2^14.
1705         [LAST_POW10 > _LAST_POW10]: Remove #error.
1706         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
1707         (_fpioconst_pow10): Change array size to
1708         FPIOCONST_POW10_ARRAY_SIZE.
1709         * stdlib/gen-fpioconst.c: New file.
1710         * stdlib/gen-tst-strtod-round.c: Likewise.
1711         * stdlib/tst-strtod-round-data: Likewise.
1712         * stdlib/tst-strtod-round.c: Likewise.
1713         * stdlib/Makefile (tests): Add tst-strtod-round.
1714
1715         [BZ #14459]
1716         * stdlib/strtod_l.c: Include <stdint.h>.
1717         (NDEBUG): Do not define.
1718         (round_and_return): Change EXPONENT parameter to type intmax_t.
1719         Rearrange calculations to avoid internal overflow possibilities.
1720         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
1721         Rearrange calculations to avoid internal overflow possibilities.
1722         Assert that number fits inside MPNSIZE limbs.
1723         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
1724         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
1725         calculations and add assertions to avoid internal overflow
1726         possibilities.  Add casts to avoid signed/unsigned operations.
1727         * stdlib/tst-strtod-overflow.c: New file.
1728         * stdlib/Makefile (tests): Add tst-strtod-overflow.
1729
1730 2012-08-25  Marek Polacek  <polacek@redhat.com>
1731
1732         * time/time.h: Fix some typos in comments.
1733
1734 2012-08-23  Roland McGrath  <roland@hack.frob.com>
1735
1736         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
1737         * posix/tst-rfc3484-2.c: Likewise.
1738         * posix/tst-rfc3484-3.c: Likewise.
1739
1740 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
1741
1742         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
1743         (EF_ARM_ABI_FLOAT_HARD): Likewise.
1744
1745 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
1746
1747         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
1748         #include of fxstatat64.c.
1749
1750 2012-08-22  Roland McGrath  <roland@hack.frob.com>
1751
1752         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
1753         * shadow/getspent_r.c: Likewise.
1754         * shadow/getspnam.c: Likewise.
1755         * shadow/getspnam_r.c: Likewise.
1756         * gshadow/getsgent.c: Likewise.
1757         * gshadow/getsgent_r.c: Likewise.
1758         * gshadow/getsgnam.c: Likewise.
1759         * gshadow/getsgnam_r.c: Likewise.
1760         * inet/getnetbyad.c: Likewise.
1761         * inet/getnetbyad_r.c: Likewise.
1762         * inet/getnetbynm.c: Likewise.
1763         * inet/getnetbynm_r.c: Likewise.
1764         * inet/getnetent.c: Likewise.
1765         * inet/getnetent_r.c: Likewise.
1766         * inet/getproto.c: Likewise.
1767         * inet/getproto_r.c: Likewise.
1768         * inet/getprtent.c: Likewise.
1769         * inet/getprtent_r.c: Likewise.
1770         * inet/getprtname.c: Likewise.
1771         * inet/getprtname_r.c: Likewise.
1772         * inet/getrpcbyname.c: Likewise.
1773         * inet/getrpcbyname_r.c: Likewise.
1774         * inet/getrpcbynumber.c: Likewise.
1775         * inet/getrpcbynumber_r.c: Likewise.
1776         * inet/getrpcent.c: Likewise.
1777         * inet/getrpcent_r.c: Likewise.
1778         * inet/getaliasent.c: Likewise.
1779         * inet/getaliasent_r.c: Likewise.
1780         * inet/getaliasname.c: Likewise.
1781         * inet/getaliasname_r.c: Likewise.
1782         * nscd/getgrgid_r.c: Likewise.
1783         * nscd/getgrnam_r.c: Likewise.
1784         * nscd/gethstbyad_r.c: Likewise.
1785         * nscd/gethstbynm3_r.c: Likewise.
1786         * nscd/getpwnam_r.c: Likewise.
1787         * nscd/getpwuid_r.c: Likewise.
1788         * nscd/getsrvbynm_r.c: Likewise.
1789         * nscd/getsrvbypt_r.c: Likewise.
1790         * nscd/gai.c: Likewise.
1791
1792         * configure.in (build_nscd): New substituted variable, set
1793         by --disable-build-nscd and defaults to $use_nscd.
1794         * configure: Regenerated.
1795         * config.make.in (build-nscd): New substituted variable.
1796         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
1797         Change conditional to require [$(build-nscd) = yes] as well.
1798         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
1799
1800         [BZ# 13696]
1801         * configure.in (use_nscd): New substituted variable, set by
1802         --disable-nscd.  If enabled, define USE_NSCD.
1803         * configure: Regenerated.
1804         * config.h.in: Add USE_NSCD.
1805         * config.make.in (use-nscd): New substituted variable.
1806         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
1807         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
1808         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
1809         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
1810         (CFLAGS-getgrnam_r.c): Likewise.
1811         (CFLAGS-initgroups.c): Likewise.
1812         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
1813         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
1814         Variables removed.
1815         * inet/getnetgrent_r.c
1816         (nscd_setnetgrent): New function, broken out of ...
1817         (setnetgrent): ... here.  Call it.
1818         (innetgr): Conditionalize nscd bits on [USE_NSCD].
1819         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
1820         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
1821         * nscd/Makefile (routines, aux): Move definitions after include of
1822         Makeconfig.  Conditionalize on [$(use-nscd) != no].
1823         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
1824         Conditionalize on [USE_NSCD].
1825         (is_nscd, nscd_init_cb): Likewise.
1826         (nss_load_library): Conditionalize init callback on [USE_NSCD].
1827         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
1828         * nss/nss_db/db-init.c: Likewise.
1829         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
1830         [USE_NSCD].
1831         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
1832         (make_request): Use it.
1833         (cache_valid_p): New function.
1834         (__check_pf): Use it.
1835         * NEWS: Add item for --disable-nscd.
1836
1837 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
1838
1839         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
1840         to support sed >= 4.2.1-20-ga9bf076.
1841         * configure: Regenerated.
1842
1843 2012-08-22  Roland McGrath  <roland@hack.frob.com>
1844
1845         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
1846         Conditionalize whole body on [IREL].
1847
1848 2012-08-22  Jeff Law <law@redhat.com>
1849
1850         [BZ #14505]
1851         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
1852         if the family is PF_UNSPEC.
1853
1854 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
1855
1856         * Makerules (lib-version): Rename from V.
1857         (install-lib-nosubdir): Change V to lib-version.
1858
1859 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
1860
1861         [BZ #14252]
1862         * powerpc32/power6/wcschr.c: New file.
1863         * powerpc32/power6/wcscpy.c: New file.
1864         * powerpc32/power6/wcsrchr.c: New file.
1865         * powerpc64/power6/wcschr.c: New file.
1866         * powerpc64/power6/wcscpy.c: New file.
1867         * powerpc64/power6/wcsrchr.c: New file.
1868
1869 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
1870
1871         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
1872         (two_way_short_needle): Use it.
1873         * string/strstr.c (AVAILABLE1_USES_J): Define.
1874         * string/strcasestr.c: Likewise.
1875
1876         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
1877         array references.
1878         * string/strcasestr.c (TOLOWER): Make side-effect safe.
1879
1880         [BZ #11607]
1881         * NEWS: Add an entry.
1882         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
1883         define their defaults.
1884         (two_way_short_needle): Detect end-of-string on-the-fly.
1885         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
1886         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
1887         * string/bug-strcasestr1.c: New test.
1888         * string/Makefile: Run it.
1889
1890 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
1891
1892         [BZ #11607]
1893         * string/str-two-way.h (two_way_short_needle): Optimize matching of
1894         the first character.
1895
1896 2012-08-21  Roland McGrath  <roland@hack.frob.com>
1897
1898         * csu/elf-init.c (__libc_csu_irel): Function removed.
1899         * csu/libc-start.c (apply_irel): New function.
1900         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
1901
1902 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
1903
1904         * sysdeps/unix/sysv/linux/kernel-features.h
1905         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
1906         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
1907         <kernel-features.h>.
1908         [__NR_fadvise64_64]: Make code unconditional.
1909         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
1910         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
1911         !__NR_fadvise64_64)]: Likewise.
1912         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
1913         !__NR_fadvise64_64))]: Likewise.
1914         [__NR_fadvise64]: Make code unconditional.
1915         [!__NR_fadvise64]: Remove conditional code.
1916         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
1917         <kernel-features.h>.
1918         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
1919         unconditional.
1920         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
1921         conditional code.
1922         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
1923         not include <kernel-features.h>.
1924         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
1925         unconditional.
1926         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
1927         conditional code.
1928         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
1929         include <kernel-features.h>.
1930         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
1931         unconditional.
1932         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
1933         conditional code.
1934
1935 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
1936
1937         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
1938         slight instruction rearrangements per scrollpipe analysis.
1939         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
1940
1941 2012-08-20  Roland McGrath  <roland@hack.frob.com>
1942
1943         * manual/syslog.texi (syslog; vsyslog, closelog):
1944         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
1945         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
1946
1947         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
1948         DSOCAPS to match condition on defining it.
1949
1950 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
1951
1952         * sysdeps/unix/sysv/linux/kernel-features.h
1953         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
1954         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
1955         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
1956         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
1957         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
1958         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
1959         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
1960         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
1961         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
1962         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
1963
1964         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
1965         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
1966
1967         * sysdeps/unix/sysv/linux/kernel-features.h
1968         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
1969         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
1970         unconditional.
1971         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1972         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
1973         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
1974         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1975         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
1976         Make code unconditional.
1977         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1978         (__mmap64) [!__NR_mmap2]: Likewise.
1979         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
1980         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
1981         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1982         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
1983         [__NR_mmap2]: Make code unconditional.
1984         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1985         (__mmap64) [!__NR_mmap2]: Likewise.
1986
1987 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1988
1989         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
1990
1991 2012-08-18  Andreas Jaeger  <aj@suse.de>
1992
1993         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
1994
1995 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
1996
1997         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
1998         * include/unistd.h (__have_sock_cloexec): Likewise.
1999         (__have_pipe2): Likewise.
2000         (__have_dup3): Likewise.
2001
2002 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
2003
2004         [BZ #9685]
2005         * include/unistd.h (__have_pipe2): Change define into an extern int.
2006         (__have_dup3): Likewise.
2007         * socket/have_sock_cloexec.c: Include fcntl.h.
2008         (__have_pipe2): New variable.
2009         (__have_dup3): Likewise.
2010
2011 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
2012
2013         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
2014
2015 2012-08-17  Marek Polacek  <polacek@redhat.com>
2016
2017         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
2018         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
2019
2020 2012-08-17  Roland McGrath  <roland@hack.frob.com>
2021
2022         * configure.in: Add AC_SUBST for sysheaders.
2023         * configure: Regenerated.
2024         * config.make.in (sysheaders): New substituted variable.
2025
2026         * sysdeps/unix/mkfifo.c: Moved ...
2027         * sysdeps/posix/mkfifo.c: ... here.
2028         * sysdeps/unix/mkfifoat.c: Moved ...
2029         * sysdeps/posix/mkfifoat.c: ... here.
2030
2031         * sysdeps/unix/utime.c: Moved ...
2032         * sysdeps/posix/utime.c: ... here.
2033
2034         * sysdeps/unix/time.c: Moved ...
2035         * sysdeps/posix/time.c: ... here.
2036         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
2037         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
2038
2039         * sysdeps/unix/nice.c: Moved ...
2040         * sysdeps/posix/nice.c: ... here.
2041
2042         * sysdeps/unix/alarm.c: Moved ...
2043         * sysdeps/posix/alarm.c: ... here.
2044
2045         * intl/Makefile ($(codeset_mo)): Depend on the input file.
2046
2047 2012-08-17  Jeff Law <law@redhat.com>
2048
2049         * intl/Makefile (codeset_mo): New variable.
2050         ($(codeset_mo)): New target.
2051         (tst-codeset.out): Depend on that.  Remove explicit rule.
2052         (tst-gettext3.out, tst-gettext5.out): Likewise.
2053         (LOCPATH-ENV, tst-codeset-ENV): New variables.
2054         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
2055         * intl/tst-codeset.sh: Remove.
2056         * intl/tst-gettext3.sh: Likewise.
2057         * intl/tst-gettext5.sh: Likewise.
2058
2059 2012-08-17  Roland McGrath  <roland@hack.frob.com>
2060
2061         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
2062         * sysdeps/unix/syscalls.list: ... here.
2063
2064         * sysdeps/posix/getaddrinfo.c
2065         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
2066         (gaiconf_init, gaiconf_reload): Use them.
2067         [!_STATBUF_ST_NSEC]
2068         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
2069         Define using time_t rather than struct timespec.
2070
2071         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
2072         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
2073         Macros removed.
2074         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
2075         [!NO_THREADS].
2076         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
2077         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
2078         Likewise.
2079
2080         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
2081         __libc_cleanup_push argument.
2082
2083         * bits/param.h: New file.
2084         * misc/sys/param.h: New file.
2085         * include/sys/param.h: New file.
2086         * misc/Makefile (headers): Add bits/param.h.
2087         * sysdeps/generic/sys/param.h: File removed.
2088         * sysdeps/unix/sysv/linux/bits/param.h: New file.
2089         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
2090         * sysdeps/mach/hurd/bits/param.h: New file.
2091         * sysdeps/mach/hurd/sys/param.h: New file.
2092
2093         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
2094         last change.
2095
2096         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
2097         [_IO_MTSAFE_IO].
2098         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
2099         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
2100         New macros.
2101
2102         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
2103         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
2104         rather than -D_IO_MTSAFE_IO conditionally.
2105         * stdio-common/Makefile (CPPFLAGS): Likewise.
2106         * wcsmbs/Makefile (CPPFLAGS): Likewise.
2107         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
2108         Use $(libio-mtsafe).
2109         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
2110         of -D_IO_MTSAFE_IO.
2111         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
2112         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
2113         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
2114         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
2115         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
2116         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
2117         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
2118         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
2119         (CFLAGS-fread_u_chk.c): Likewise.
2120         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
2121         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
2122         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
2123         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
2124         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
2125         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
2126         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
2127         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
2128         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
2129
2130         * libio/Makefile: Test [$(libc-reentrant) = yes]
2131         instead of [$(filter %REENTRANT, $(defines)) nonempty].
2132
2133         * Makeconfig
2134         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
2135         * sysdeps/pthread/configure: File removed.
2136         * sysdeps/pthread/Makeconfig: New file.
2137         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
2138         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
2139
2140 2012-08-16  Gary Benson  <gbenson@redhat.com>
2141
2142         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
2143         unmapping the first object in a namespace.
2144
2145 2012-08-16  Roland McGrath  <roland@hack.frob.com>
2146
2147         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
2148         (__internal_setnetgrent): ... this.  Add internal_function to
2149         definition.  Add libc_hidden_def.
2150         (setnetgrent): Update caller.
2151         (internal_endnetgrent): Renamed to ...
2152         (__internal_endnetgrent): ... this.  Add internal_function to
2153         definition.  Add libc_hidden_def.
2154         (endnetgrent): Update caller.
2155         (internal_getnetgrent_r): Renamed to ...
2156         (__internal_getnetgrent_r): ... this.  Add internal_function to
2157         definition.  Add libc_hidden_def.
2158         (__getnetgrent_r): Update caller.
2159         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
2160
2161 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
2162
2163         * stdlib/longlong.h: Update from GCC.
2164
2165 2012-08-16  Roland McGrath  <roland@hack.frob.com>
2166
2167         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
2168         on _QL, which is set by umul_ppmm but never used.
2169         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
2170         variables, which are set by GMP macros but never used.
2171         * stdio-common/_itowa.c (_itowa): Likewise.
2172         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
2173         * stdlib/mod_1.c (mpn_mod_1): Likewise.
2174
2175 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
2176
2177         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
2178         struct La_sh_regs is not constant.
2179         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
2180         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
2181         and struct La_sparc64_regs are not constant.
2182
2183 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
2184
2185         * sysdeps/unix/sysv/linux/kernel-features.h
2186         (__ASSUME_POSIX_TIMERS): Remove.
2187         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
2188         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2189         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
2190         Make code unconditional.
2191         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2192         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
2193         Make code unconditional.
2194         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2195         * sysdeps/unix/sysv/linux/clock_nanosleep.c
2196         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
2197         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2198         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
2199         Make code unconditional.
2200         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2201         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
2202         (__libc_missing_posix_timers): Remove.
2203
2204 2012-08-15  Roland McGrath  <roland@hack.frob.com>
2205
2206         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
2207         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
2208
2209         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
2210
2211         * elf/dl-sym.c: Include <stdlib.h>.
2212
2213         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
2214         constants, which avoids warnings in 32-bit builds.
2215
2216         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
2217         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
2218
2219         * misc/lseek.c: File moved to ...
2220         * io/lseek.c: ... here.
2221
2222         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
2223
2224         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
2225         shifting LEN more than 31 bits at once.
2226
2227 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
2228
2229         [BZ #14195]
2230         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
2231         segmentation fault for a case of two empty input strings.
2232         * string/test-strncasecmp.c (check1): Renamed to...
2233         (bz12205): ...this.
2234         (bz14195): Add new testcase for two empty input strings and N > 0.
2235         (test_main): Call new testcase, adapt for renamed function.
2236
2237 2012-08-15  Andreas Jaeger  <aj@suse.de>
2238
2239         [BZ #14090]
2240         * crypt/md5test2.c: New test, based on test supplied by Serge
2241         Belyshev <belyshev@depni.sinp.msu.ru>.
2242         * crypt/Makefile (xtests): Add md5test-giant..
2243         * crypt/Makefile ($(objpfx)md5test-giant): Add.
2244
2245 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
2246
2247         [BZ #14090]
2248         * crypt/md5.c (md5_process_block): Don't assume the buffer
2249         length is less than 2**32.
2250         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
2251         length is less than 2**64.
2252
2253 2012-08-15  Roland McGrath  <roland@hack.frob.com>
2254
2255         * string/str-two-way.h: Include <sys/param.h>.
2256         (MAX): Macro removed.
2257
2258         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
2259         Move #define and #undef of memmove to just before and after
2260         including <string.h>.
2261
2262         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
2263         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
2264         and after including <string.h>.  Move declarations of
2265         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
2266         to before #include "string/memmove.c".
2267
2268         * include/dirent.h: Declare __getdirentries.
2269
2270         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
2271         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
2272
2273 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
2274
2275         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
2276         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
2277         * sysdeps/i386/configure: Regenerated.
2278         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
2279         STABS_CURRENT_FILE, and STABS_FUN.
2280         (END): Remove call to STABS_FUN_END.
2281         (STABS_CURRENT_FILE1): Delete.
2282         (STABS_CURRENT_FILE): Likewise.
2283         (STABS_FUN): Likewise.
2284         (STABS_FUN_END): Likewise.
2285         (STABS_FUN2): Likewise.
2286         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
2287         * sysdeps/x86_64/configure: Regenerated.
2288
2289 2012-08-14  Roland McGrath  <roland@hack.frob.com>
2290
2291         * elf/dl-open.c: Include <atomic.h>.
2292         * elf/dl-lookup.c: Likewise.
2293
2294 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
2295
2296         * sysdeps/unix/sysv/linux/kernel-features.h
2297         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
2298         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
2299         unconditionally.
2300         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
2301         unconditionally.
2302         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
2303         condition on __ASSUME_CLONE_THREAD_FLAGS.
2304
2305 2012-08-14  Andreas Jaeger  <aj@suse.de>
2306
2307         * sysdeps/i386/fpu/libm-test-ulps: Update.
2308
2309 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
2310
2311         * include/atomic.h (atomic_exchange_and_add): Split into ...
2312         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
2313         New atomic macros.
2314
2315 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
2316
2317         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2318
2319 2012-08-13  Jeff Law <law@redhat.com>
2320
2321         * manual/stdio.texi (snprintf): Clarify handling of the trailing
2322         null byte in the output string.
2323
2324 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
2325
2326         * sysdeps/unix/sysv/linux/kernel-features.h
2327         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
2328         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
2329         (__ASSUME_ARG_MAX_STACK_BASED): Define.
2330         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
2331         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
2332         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
2333         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
2334
2335 2012-08-09  Jeff Law <law@redhat.com>
2336
2337         [BZ #13939]
2338         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
2339         When avoid_arena is set, don't retry in the that arena.  Pick the
2340         next one, whatever it might be.
2341         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
2342         (arena_lock): Pass in new parameter to arena_get2.
2343         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
2344         arena_get2.
2345         (__libc_malloc): Unify retrying after main arena failure with
2346         __libc_memalign version.
2347         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
2348
2349 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
2350
2351         [BZ #14166]
2352         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
2353         to __redirect_strstr.
2354         (__strstr_sse42): Use typeof __redirect_strstr.
2355         (__strstr_ia32): Likewise.
2356         (__libc_strstr): New prototype.
2357         (strstr): Renamed to ...
2358         (__libc_strstr): This.
2359         (strstr): New strong alias of __libc_strstr.
2360         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
2361         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
2362         __redirect_time.
2363         Include <time.h>.
2364         (__libc_time): New prototype.
2365         (time_ifunc): Replace time with __libc_time.
2366         (time): New strong alias and hidden definition of __libc_time.
2367         (__GI_time): Remove strong alias.
2368         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
2369         Include <stddef.h>.
2370         (memmove): Redefined to __redirect_memmove.
2371         (__memmove_sse2): Use typeof __redirect_memmove.
2372         (__memmove_ssse3): Likewise.
2373         (__memmove_ssse3_back): Likewise.
2374         (__libc_memmove): New prototype.
2375         (memmove): Renamed to ...
2376         (__libc_memmove): This.
2377         (memmove): New strong alias of __libc_memmove.
2378
2379 2012-08-08  Mark Salter  <msalter@redhat.com>
2380
2381         * elf/elf.h
2382         (R_MN10300_TLS_GD): Define.
2383         (R_MN10300_TLS_LD): Likewise.
2384         (R_MN10300_TLS_LDO): Likewise.
2385         (R_MN10300_TLS_GOTIE): Likewise.
2386         (R_MN10300_TLS_IE): Likewise.
2387         (R_MN10300_TLS_LE): Likewise.
2388         (R_MN10300_TLS_DTPMOD): Likewise.
2389         (R_MN10300_TLS_DTPOFF): Likewise.
2390         (R_MN10300_TLS_TPOFF): Likewise.
2391         (R_MN10300_SYM_DIFF): Likewise.
2392         (R_MN10300_ALIGN): Likewise.
2393         (R_MN10300_NUM): Update.
2394
2395 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
2396
2397         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
2398         Remove.
2399
2400 2012-08-08  Roland McGrath  <roland@hack.frob.com>
2401
2402         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
2403
2404         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
2405         sysdeps/unix -> sysdeps/posix move.
2406         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
2407
2408 2012-08-07      Allan McRae     <allan@archlinux.org>
2409
2410         [BZ #14303]
2411         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
2412         (SUNOS_CPP): Likewise.
2413         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
2414         not found.
2415         (open_input): Call CPP using execvp.
2416
2417 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
2418
2419         * sysdeps/unix/sysv/linux/kernel-features.h
2420         (__ASSUME_PROT_GROWSUPDOWN): Remove.
2421         (__ASSUME_NO_CLONE_DETACHED): Likewise.
2422         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
2423         (__ASSUME_WAITID_SYSCALL): Likewise.
2424         * sysdeps/unix/sysv/linux/dl-execstack.c
2425         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
2426         code unconditional.
2427         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
2428         conditional code.
2429         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
2430         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
2431         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
2432         code.
2433         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
2434         unconditional.
2435         [__ASSUME_WAITID_SYSCALL]: Likewise.
2436         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
2437
2438 2012-08-07  Roland McGrath  <roland@hack.frob.com>
2439
2440         * sysdeps/unix/closedir.c: Renamed to ...
2441         * sysdeps/posix/closedir.c: ... here.
2442         * sysdeps/unix/dirfd.c: Renamed to ...
2443         * sysdeps/posix/dirfd.c: ... here.
2444         * sysdeps/unix/dirstream.h: Renamed to ...
2445         * sysdeps/posix/dirstream.h: ... here.
2446         * sysdeps/unix/fdopendir.c: Renamed to ...
2447         * sysdeps/posix/fdopendir.c: ... here.
2448         * sysdeps/unix/opendir.c: Renamed to ...
2449         * sysdeps/posix/opendir.c: ... here.
2450         * sysdeps/unix/readdir.c: Renamed to ...
2451         * sysdeps/posix/readdir.c: ... here.
2452         * sysdeps/unix/readdir_r.c: Renamed to ...
2453         * sysdeps/posix/readdir_r.c: ... here.
2454         * sysdeps/unix/rewinddir.c: Renamed to ...
2455         * sysdeps/posix/rewinddir.c: ... here.
2456         * sysdeps/unix/seekdir.c: Renamed to ...
2457         * sysdeps/posix/seekdir.c: ... here.
2458         * sysdeps/unix/telldir.c: Renamed to ...
2459         * sysdeps/posix/telldir.c: ... here.
2460         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
2461         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
2462         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
2463         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
2464
2465         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
2466         * bits/fcntl.h: ... here.
2467
2468         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
2469         not 0.
2470         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
2471         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
2472         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
2473         (struct flock): Move l_start, l_len to the beginning.
2474         Use __pid_t for l_pid.
2475         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
2476         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
2477         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
2478         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
2479         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
2480         [__USE_LARGEFILE64] (struct flock64): New type.
2481         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
2482
2483         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
2484         * bits/dirent.h: ... here.
2485
2486         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
2487         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
2488
2489 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
2490
2491         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
2492         Change from 2.6.0 to 2.6.16.
2493         * sysdeps/unix/sysv/linux/configure: Regenerated.
2494         * sysdeps/unix/sysv/linux/kernel-features.h
2495         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
2496         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
2497         version.
2498         (__ASSUME_UTIMES): Likewise.
2499         (__ASSUME_CLONE_STOPPED): Remove.
2500         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
2501         architectures, not kernel version.
2502         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
2503         (__ASSUME_NO_CLONE_DETACHED): Likewise.
2504         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
2505         (__ASSUME_WAITID_SYSCALL): Likewise.
2506         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
2507         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
2508         * README: State 2.6.16 as minimum Linux kernel version.  Do not
2509         refer to older versions.
2510
2511 2012-08-06  Roland McGrath  <roland@hack.frob.com>
2512
2513         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
2514         Define alphasort64 as an alias.
2515         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
2516         Define versionsort64 as an alias.
2517         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
2518         Define scandir64 as an alias.
2519         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
2520         Define scandirat64 as an alias.
2521         * dirent/alphasort64.c (alphasort64):
2522         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
2523         * dirent/versionsort64.c: Likewise.
2524         * dirent/scandir64.c: Likewise.
2525         * dirent/scandirat64.c: Likewise.
2526         * sysdeps/wordsize-64/alphasort.c: File removed.
2527         * sysdeps/wordsize-64/alphasort64.c: File removed.
2528         * sysdeps/wordsize-64/scandir.c: File removed.
2529         * sysdeps/wordsize-64/scandir64.c: File removed.
2530         * sysdeps/wordsize-64/scandirat.c: File removed.
2531         * sysdeps/wordsize-64/scandirat64.c: File removed.
2532         * sysdeps/wordsize-64/versionsort.c: File removed.
2533         * sysdeps/wordsize-64/versionsort64.c: File removed.
2534         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
2535         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
2536         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
2537         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
2538         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
2539         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
2540         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
2541         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
2542
2543         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
2544         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
2545         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
2546         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
2547         [defined __arch64__ || defined __sparcv9]
2548         (__INO_T_MATCHES_INO64_T): New macro.
2549         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
2550         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
2551         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
2552         * sysdeps/unix/sysv/linux/bits/dirent.h
2553         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
2554         (_DIRENT_MATCHES_DIRENT64): New macro.
2555
2556         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
2557         Define lockf64 as an alias.
2558         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
2559         Define fseeko64 as an alias.
2560         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
2561         Define ftello64 as an alias.
2562         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
2563         Define _IO_fgetpos64 and fgetpos64 as aliases.
2564         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
2565         Define _IO_fsetpos64 and fsetpos64 as aliases.
2566         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
2567         Conditionalize body on this.
2568         * libio/fseeko64.c: Likewise.
2569         * libio/ftello64.c: Likewise.
2570         * libio/iofgetpos64.c: Likewise.
2571         * libio/iofsetpos64.c: Likewise.
2572         * sysdeps/wordsize-64/lockf.c: File removed.
2573         * sysdeps/wordsize-64/lockf64.c: File removed.
2574         * sysdeps/wordsize-64/fseeko.c: File removed.
2575         * sysdeps/wordsize-64/fseeko64.c: File removed.
2576         * sysdeps/wordsize-64/ftello.c: File removed.
2577         * sysdeps/wordsize-64/ftello64.c: File removed.
2578         * sysdeps/wordsize-64/iofgetpos.c: File removed.
2579         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
2580         * sysdeps/wordsize-64/iofsetpos.c: File removed.
2581         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
2582         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
2583         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
2584         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
2585         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
2586         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
2587         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
2588         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
2589         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
2590         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
2591         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
2592
2593         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
2594         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
2595         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
2596         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
2597         [defined __arch64__ || defined __sparcv9]
2598         (__OFF_T_MATCHES_OFF64_T): New macro.
2599         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
2600         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
2601         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
2602         (__OFF_T_MATCHES_OFF64_T): New macro.
2603
2604 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
2605
2606         * stdlib/secure-getenv.c (__secure_getenv): Replace
2607         GLIBC_2_16 with GLIBC_2_17.
2608
2609 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
2610
2611         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
2612         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
2613
2614 2012-08-03  David S. Miller  <davem@davemloft.net>
2615
2616         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2617
2618 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
2619
2620         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
2621         Remove.
2622         (__ASSUME_CORRECT_SI_PID): Likewise.
2623         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
2624         (__ASSUME_TMPFS_NAME): Likewise.
2625         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
2626         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
2627         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
2628         (HAVE_AUX_SECURE): Make definition unconditional.
2629         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
2630         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
2631
2632 2012-08-03  Roland McGrath  <roland@hack.frob.com>
2633
2634         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
2635         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
2636         * sysdeps/mach/hurd/eloop-threshold.h: New file.
2637         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
2638         __eloop_threshold instead of SYMLOOP_MAX.
2639
2640         * sysdeps/generic/eloop-threshold.h: New file.
2641         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
2642         of MAXSYMLINKS.
2643         * elf/chroot_canon.c (chroot_canon): Likewise.
2644
2645 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
2646
2647         [BZ #13717]
2648         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
2649         Change to 2.6.0 everywhere.
2650         * sysdeps/unix/sysv/linux/configure: Regenerated.
2651         * sysdeps/unix/sysv/linux/kernel-features.h
2652         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
2653         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
2654         kernel versions.
2655         (__ASSUME_POSIX_TIMERS): Define unconditionally.
2656         (__ASSUME_FUTEX_REQUEUE): Remove.
2657         (__ASSUME_STATFS64): Define unconditionally.
2658         (__ASSUME_AT_SECURE): Likewise.
2659         (__ASSUME_CORRECT_SI_PID): Likewise.
2660         (__ASSUME_TGKILL): Define without depending on kernel version for
2661         i386.
2662         (__ASSUME_UTIMES): Likewise.
2663         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
2664         kernel version.
2665         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
2666         (__ASSUME_TMPFS_NAME): Likewise.
2667         * README: Update reference to Linux kernel versions.
2668
2669 2012-08-02  Marek Polacek  <polacek@redhat.com>
2670
2671         [BZ# 14150]
2672         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
2673         libc_cv_asm_type_prefix with %.
2674         * configure: Regenerated.
2675         * include/libc-symbols.h: Remove comment about
2676         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
2677         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
2678         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
2679         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
2680         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
2681         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
2682         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
2683         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
2684         * elf/tst-unique2mod1.c: Likewise.
2685         * elf/tst-unique1mod2.c: Likewise.
2686         * elf/tst-unique1mod1.c: Likewise.
2687         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
2688         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
2689         Replace ASM_TYPE_DIRECTIVE with .type.
2690         * sysdeps/s390/s390-64/sysdep.h: Likewise.
2691         * sysdeps/i386/sysdep.h: Likewise.
2692         * sysdeps/x86_64/sysdep.h: Likewise.
2693         * sysdeps/sh/sysdep.h: Likewise.
2694         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
2695         Do not define ASM_TYPE_DIRECTIVE.
2696         * sysdeps/powerpc/sysdep.h: Likewise.
2697         * sysdeps/powerpc/powerpc32/sysdep.h:
2698         Replace ASM_TYPE_DIRECTIVE with .type.
2699         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
2700         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
2701         * sysdeps/i386/fpu/e_powf.S: Likewise.
2702         * sysdeps/i386/fpu/e_expl.S: Likewise.
2703         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
2704         * sysdeps/i386/fpu/e_acosh.S: Likewise.
2705         * sysdeps/i386/fpu/e_pow.S: Likewise.
2706         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
2707         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
2708         * sysdeps/i386/fpu/s_expm1.S: Likewise.
2709         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
2710         * sysdeps/i386/fpu/e_log2.S: Likewise.
2711         * sysdeps/i386/fpu/e_log2l.S: Likewise.
2712         * sysdeps/i386/fpu/e_scalb.S: Likewise.
2713         * sysdeps/i386/fpu/e_powl.S: Likewise.
2714         * sysdeps/i386/fpu/e_log10f.S: Likewise.
2715         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
2716         * sysdeps/i386/fpu/e_logl.S: Likewise.
2717         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
2718         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
2719         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
2720         * sysdeps/i386/fpu/e_log2f.S: Likewise.
2721         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
2722         * sysdeps/i386/fpu/e_log.S: Likewise.
2723         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
2724         * sysdeps/i386/fpu/e_logf.S: Likewise.
2725         * sysdeps/i386/fpu/e_log10l.S: Likewise.
2726         * sysdeps/i386/fpu/e_atanh.S: Likewise.
2727         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
2728         * sysdeps/i386/fpu/e_log10.S: Likewise.
2729         * sysdeps/i386/fpu/s_frexp.S: Likewise.
2730         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
2731         * sysdeps/i386/fpu/s_asinh.S: Likewise.
2732         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
2733         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
2734         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
2735         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
2736         * sysdeps/i386/i686/strtok.S: Likewise.
2737         * sysdeps/i386/i386-mcount.S: Likewise.
2738         * sysdeps/i386/strtok.S: Likewise.
2739         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
2740         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
2741         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
2742         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
2743         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
2744         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
2745         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
2746         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
2747         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
2748         * sysdeps/x86_64/_mcount.S: Likewise.
2749         * sysdeps/x86_64/strtok.S: Likewise.
2750         * sysdeps/sh/_mcount.S: Likewise.
2751
2752 2012-08-01  Roland McGrath  <roland@hack.frob.com>
2753
2754         * libio/iofopen.c: Include <fcntl.h>.
2755         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
2756         (_IO_fopen64, fopen64): Define as aliases.
2757         * libio/iofopen64.c: Include <fcntl.h>.
2758         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
2759         Conditionalize body on this.
2760         * sysdeps/wordsize-64/iofopen.c: File removed.
2761         * sysdeps/wordsize-64/iofopen64.c: File removed.
2762
2763 2012-08-01  Marek Polacek  <polacek@redhat.com>
2764
2765         * libc/Makeconfig: Use elf in place of binfmt-subdir.
2766         Use dlfcn directly instead of a variable.
2767         (binfmt-subdir): Do not define.
2768         (dlfcn): Likewise.
2769
2770 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
2771
2772         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
2773         Remove all definitions.
2774         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
2775         <kernel-features.h>.
2776         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
2777         (miss_F_GETOWN_EX): Remove all definitions.
2778         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
2779         macro definition.
2780         [!__ASSUME_FCNTL64]: Remove conditional code.
2781         [__ASSUME_FCNTL64]: Make code unconditional.
2782         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
2783         <kernel-features.h>.
2784         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
2785         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
2786         (lockf64) [__NR_fcntl64]: Make code unconditional.
2787         (lockf64) [__ASSUME_FCNTL64]: Likewise.
2788
2789         * sysdeps/unix/sysv/linux/kernel-features.h
2790         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
2791         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
2792         Make code unconditional.
2793         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
2794         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
2795         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
2796         [__NR_vfork]: Make code unconditional.
2797         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
2798         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
2799         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
2800         [__NR_vfork]: Make code unconditional.
2801         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
2802         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
2803
2804 2012-08-01  Roland McGrath  <roland@hack.frob.com>
2805
2806         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
2807         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
2808
2809         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
2810         Define mkstemp64 as an alias.
2811         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
2812         Define mkstemps64 as an alias.
2813         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
2814         Define mkostemp64 as an alias.
2815         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
2816         Define mkostemps64 as an alias.
2817         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
2818         Conditionalize body on this.
2819         * misc/mkostemp64.c: Likewise.
2820         * misc/mkostemps64.c: Likewise.
2821         * misc/mkstemps64.c: Likewise.
2822         * sysdeps/wordsize-64/mkstemp64.c: File removed.
2823         * sysdeps/wordsize-64/mkostemp64.c: File removed.
2824         * sysdeps/wordsize-64/mkostemp.c: File removed.
2825         * sysdeps/wordsize-64/mkstemp.c: File removed.
2826         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
2827         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
2828         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
2829         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
2830
2831         [BZ #14138]
2832         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
2833         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
2834         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
2835         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
2836
2837         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
2838         compat_symbol macros from <shlib-compat.h> rather than the underlying
2839         default_symbol_version and symbol_version macros, so that DEFAULT
2840         lines in shlib-versions are respected.
2841         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
2842
2843 2012-08-01  Florian Weimer  <fweimer@redhat.com>
2844
2845         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
2846         Declare with warn_unused_result.
2847         (setgid, setregid, setegid, setresgid): Likewise.
2848         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
2849         Likewise.
2850         * WUR-REPORT: Remove set*id functions.
2851
2852 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
2853
2854         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
2855
2856 2012-07-31  Roland McGrath  <roland@hack.frob.com>
2857
2858         * include/sys/socket.h (__libc_accept, __libc_accept4):
2859         Add attribute_hidden.
2860         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
2861
2862         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
2863         use of PTR_MANGLE.
2864         * inet/getnetgrent_r.c (setup): Likewise.
2865
2866         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
2867
2868 2012-07-31  David S. Miller  <davem@davemloft.net>
2869
2870         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2871
2872 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
2873
2874         [BZ #13629]
2875         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
2876         value between 1.0 and 2.0 and smaller part has absolute value less
2877         than 1.0.
2878         * math/s_clog10.c (__clog10): Likewise.
2879         * math/s_clog10f.c (__clog10f): Likewise.
2880         * math/s_clog10l.c (__clog10l): Likewise.
2881         * math/s_clogf.c (__clogf): Likewise.
2882         * math/s_clogl.c (__clogl): Likewise.
2883         * math/libm-test.inc (clog_test): Add more tests.
2884         (clog10_test): Likewise.
2885         * sysdeps/i386/fpu/libm-test-ulps: Update.
2886         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2887
2888 2012-07-31  Florian Weimer  <fweimer@redhat.com>
2889
2890         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
2891         Exit with zero in case no suitable GID is found, and write a
2892         message to standard error.
2893
2894 2012-07-30  Roland McGrath  <roland@hack.frob.com>
2895
2896         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
2897         rather than to 1.
2898         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
2899         (MAXPATHLEN): Removed.
2900         (NOGROUP, NODEV): New macros.
2901         (setbit, clrbit, isset, isclr): New macros.
2902         (howmany, roundup, powerof2): New macros.
2903         (DEV_BSIZE): New macro.
2904
2905         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
2906         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
2907
2908         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
2909         definition on [!__NO_LONG_DOUBLE_MATH].
2910
2911         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
2912         PTR_MANGLE and PTR_DEMANGLE.
2913
2914         * socket/accept4.c (accept4): Rename to __libc_accept4.
2915         Define accept4 as a weak alias.
2916
2917         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
2918         on [_DIRENT_HAVE_D_TYPE].
2919         * io/ftw.c (ftw_dir): Likewise.
2920
2921         * io/xmknod.c (__xmknod): Don't check PATH for being null.
2922
2923         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
2924
2925         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
2926         Use the BSD numbers rather than the arbitrary ones we had.
2927         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
2928         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
2929         (SIGXCPU, SIGXFSZ): New macros.
2930         (_NSIG): Now 32.
2931
2932         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
2933         initializer on [_LIBC_REENTRANT].
2934
2935         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
2936         definitions inside [_POSIX_MAPPED_FILES].
2937
2938         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
2939
2940         * dirent/opendir.c: Include <fcntl.h>.
2941
2942         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
2943         (__libc_getspecific): Likewise.
2944         (__libc_key_create): Likewise.
2945
2946         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
2947         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
2948         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
2949         (tmpfile64): Define as alias.
2950         * sysdeps/wordsize-64/tmpfile.c: File removed.
2951         * sysdeps/wordsize-64/tmpfile64.c: File removed.
2952         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
2953         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
2954
2955         * stdio-common/vfscanf.c: Include <stdbool.h>.
2956         * nss/makedb.c: Likewise.
2957         * stdio-common/_i18n_number.h: Likewise.
2958         * argp/argp-help.c: Likewise.
2959         * posix/wordexp.c: Likewise.
2960         * sysdeps/posix/spawni.c: Likewise.
2961         * nss/nss_files/files-initgroups.c: Likewise.
2962         * stdio-common/reg-modifier.c: Include <stdlib.h>.
2963         * nss/nss_files/files-initgroups.c: Likewise.
2964         * nss/nss_db/db-netgrp.c: Likewise.
2965         * nss/nss_db/db-initgroups.c: Likewise.
2966         * io/fchmodat.c: Include <sys/stat.h>.
2967
2968         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
2969         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
2970
2971         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
2972         [HAVE_MMAP].
2973
2974         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
2975         Add multiple inclusion protection.
2976
2977 2012-07-27  David S. Miller  <davem@davemloft.net>
2978
2979         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2980
2981 2012-07-27  Gary Benson  <gbenson@redhat.com>
2982
2983         [BZ #14298]
2984         * elf/rtld.c: Include <stap-probe.h>.
2985         (dl_main): Added static probes "init_start" and "init_complete".
2986         * elf/dl-load.c: Include <stap-probe.h>.
2987         (lose): Take new parameter "nsid".
2988         Added static probe "map_failed".
2989         (_dl_map_object_from_fd): Pass namespace id to lose.
2990         Added static probe "map_start".
2991         (open_verify): Pass namespace id to lose.
2992         * elf/dl-open.c: Include <stap-probe.h>.
2993         (dl_open_worker) Added static probes "map_complete", "reloc_start"
2994         and "reloc_complete".
2995         * elf/dl-close.c: Include <stap-probe.h>.
2996         (_dl_close_worker): Added static probes "unmap_start" and
2997         "unmap_complete".
2998         * elf/rtld-debugger-interface.txt: New file documenting the above.
2999
3000 2012-07-26  Roland McGrath  <roland@hack.frob.com>
3001
3002         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
3003         rather than a string variable.
3004         * sunrpc/rpc_main.c (h_output): Likewise.
3005         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
3006
3007 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
3008
3009         * inet/check_native.c: New file.
3010
3011 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
3012
3013         [BZ #13629]
3014         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
3015         if larger part has absolute value 1.0.
3016         * math/s_clog10.c (__clog10): Likewise.
3017         * math/s_clog10f.c (__clog10f): Likewise.
3018         * math/s_clog10l.c (__clog10l): Likewise.
3019         * math/s_clogf.c (__clogf): Likewise.
3020         * math/s_clogl.c (__clogl): Likewise.
3021         * math/libm-test.inc (clog_test): Add more tests.
3022         (clog10_test): Likewise.
3023         * sysdeps/i386/fpu/libm-test-ulps: Update.
3024         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3025
3026         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
3027         (pltexit): Likewise.
3028         (La_regs): Likewise.
3029         (La_retval): Likewise.
3030         (int_retval): Likewise.
3031         Update #error for removed macros to refer only to definitions in
3032         tst-audit.h.
3033         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
3034         macro.
3035         (pltexit): Likewise.
3036         (La_regs): Likewise.
3037         (La_retval): Likewise.
3038         (int_retval): Likewise.
3039         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
3040         macro.
3041         (pltexit): Likewise.
3042         (La_regs): Likewise.
3043         (La_retval): Likewise.
3044         (int_retval): Likewise.
3045         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
3046         macro.
3047         (pltexit): Likewise.
3048         (La_regs): Likewise.
3049         (La_retval): Likewise.
3050         (int_retval): Likewise.
3051         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
3052         macro.
3053         (pltexit): Likewise.
3054         (La_regs): Likewise.
3055         (La_retval): Likewise.
3056         (int_retval): Likewise.
3057         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
3058         macro.
3059         (pltexit): Likewise.
3060         (La_regs): Likewise.
3061         (La_retval): Likewise.
3062         (int_retval): Likewise.
3063         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
3064         macro.
3065         (pltexit): Likewise.
3066         (La_regs): Likewise.
3067         (La_retval): Likewise.
3068         (int_retval): Likewise.
3069         * sysdeps/generic/tst-audit.h: Update comment to refer only to
3070         macro definitions in tst-audit.h.
3071         * sysdeps/i386/tst-audit.h: New file.
3072         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
3073         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
3074         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
3075         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
3076         * sysdeps/sh/tst-audit.h: Likewise.
3077         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
3078         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
3079         * sysdeps/x86_64/tst-audit.h: Likewise.
3080
3081 2012-07-26  Andreas Jaeger  <aj@suse.de>
3082
3083         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
3084         ptrace.
3085
3086         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
3087         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
3088         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
3089         PTRACE_O_MASK.
3090         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
3091         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
3092         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
3093
3094         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
3095         value.
3096
3097         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
3098         _sigsys.
3099         (si_call_addr, si_syscall, si_arch): Define new macro.
3100         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
3101         _sigsys.
3102         (si_call_addr, si_syscall, si_arch): Define new marcro.
3103         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
3104         _sigsys.
3105         (si_call_addr, si_syscall, si_arch): Define new macro.
3106         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
3107         _sigsys.
3108         (si_call_addr, si_syscall, si_arch): Define new macro.
3109
3110 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
3111
3112         [BZ #13717]
3113         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
3114         Change to 2.4.21 where previously 2.4.1.
3115         * sysdeps/unix/sysv/linux/configure: Regenerated.
3116         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
3117         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
3118         Linux kernel version.
3119         (__ASSUME_STD_AUXV): Remove.
3120         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
3121         kernel version.
3122         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
3123         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
3124         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
3125         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
3126         (__ASSUME_NETLINK_SUPPORT): Likewise.
3127         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
3128         (__no_netlink_support): Remove conditional definition.
3129         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
3130         Remove.
3131         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
3132         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
3133         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
3134         (if_nameindex_ioctl): Remove.
3135         (if_nameindex_netlink): Do not handle __no_netlink_support.
3136         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
3137         code.
3138         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
3139         Remove conditional code.
3140         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
3141         code.
3142         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
3143         unconditional.
3144         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
3145         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
3146         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
3147         Remove.
3148         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
3149         [!__ASSUME_STD_AUXV]: Remove conditional code.
3150         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
3151         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
3152         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
3153         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
3154         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
3155         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
3156         code.
3157         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
3158         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
3159         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
3160         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
3161         conditional code.
3162         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
3163         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
3164         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
3165         code.
3166         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
3167         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
3168         conditional code.
3169         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
3170         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
3171         code unconditional.
3172         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3173         conditional code.
3174         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
3175         unconditional.
3176         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3177         conditional code.
3178         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
3179         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
3180         unconditional.
3181         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3182         conditional code.
3183         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
3184         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
3185         code unconditional.
3186         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3187         conditional code.
3188         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
3189         unconditional.
3190         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3191         conditional code.
3192         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
3193         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
3194         code unconditional.
3195         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3196         conditional code.
3197         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
3198         unconditional.
3199         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3200         conditional code.
3201
3202 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
3203
3204         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
3205         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
3206         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
3207         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
3208         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
3209         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
3210         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
3211         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
3212         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
3213         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
3214         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
3215         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
3216         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
3217         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
3218         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
3219         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
3220         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
3221         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
3222         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
3223         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
3224         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
3225         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
3226         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
3227
3228 2012-07-25  Florian Weimer  <fweimer@redhat.com>
3229
3230         * Versions.def: Add GLIBC_2.17.
3231         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
3232         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
3233         Introduce __libc_secure_getenv.
3234         * stdlib/Versions (2.17): Add secure_getenv
3235         (GLIBC_PRIVATE): Add __libc_secure_getenv.
3236         * stdlib/secure-getenv.c: Rename __secure_getenv to
3237         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
3238         symbol __secure_getenv for GLIBC_2.0.
3239         * stdlib/tst-secure-getenv.c: New.
3240         * stdlib/Makefile (tests): Add testcase.
3241         * manual/startup.texi (Environment Access): Document
3242         secure_getenv.
3243         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
3244         __libc_secure_getenv.
3245         * inet/ruserpass.c (ruserpass): Likewise.
3246         * malloc/mtrace.c (mtrace): Likewise.
3247         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
3248         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
3249         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
3250         * sysdeps/posix/tempname.c: Likewise.  Evaluate
3251         HAVE_SECURE_GETENV.
3252         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
3253         __secure_getenv to __libc_secure_getenv.
3254         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
3255         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
3256         Likewise.
3257         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
3258         Likewise.
3259         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
3260         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
3261         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
3262         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
3263         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
3264         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
3265         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
3266
3267 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
3268
3269         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
3270         (struct La_i86_retval): Likewise.
3271         (struct La_x86_64_regs): Likewise.
3272         (struct La_x86_64_retval): Likewise.
3273         (struct La_x32_regs): Likewise.
3274         (struct La_x32_retval): Likewise.
3275         (struct La_ppc32_regs): Likewise.
3276         (struct La_ppc32_retval): Likewise.
3277         (struct La_ppc64_regs): Likewise.
3278         (struct La_ppc64_retval): Likewise.
3279         (struct La_sh_regs): Likewise.
3280         (struct La_sh_retval): Likewise.
3281         (struct La_s390_32_regs): Likewise.
3282         (struct La_s390_32_retval): Likewise.
3283         (struct La_s390_64_regs): Likewise.
3284         (struct La_s390_64_retval): Likewise.
3285         (struct La_sparc32_regs): Likewise.
3286         (struct La_sparc32_retval): Likewise.
3287         (struct La_sparc64_regs): Likewise.
3288         (struct La_sparc64_retval): Likewise.
3289         (struct audit_ifaces): Remove architecture-specific pltenter and
3290         pltexit members.
3291         * sysdeps/i386/ldsodefs.h: New file.
3292         * sysdeps/powerpc/ldsodefs.h: Likewise.
3293         * sysdeps/s390/ldsodefs.h: Likewise.
3294         * sysdeps/sh/ldsodefs.h: Likewise.
3295         * sysdeps/sparc/ldsodefs.h: Likewise.
3296         * sysdeps/x86_64/ldsodefs.h: Likewise.
3297
3298 2012-07-25  Marek Polacek  <polacek@redhat.com>
3299
3300         [BZ #6808]
3301         * math/libm-test.inc (yn_test): Add another test.
3302         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
3303         to ERANGE when the result is +-Inf.
3304         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
3305         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
3306         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
3307         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
3308
3309 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
3310
3311         * conform/data/time.h-data (NULL): Use macro-constant.  Require
3312         equal to 0.
3313         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
3314         clock_t.
3315         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
3316
3317 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
3318
3319         * configure.in <sysdeps resolving>: Correct printing
3320         Implies_before.
3321         * configure: Regenerate.
3322
3323 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
3324
3325         * math/w_ilogb.c: Include <limits.h>.
3326         * math/w_ilogbl.c: Likewise.
3327
3328 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
3329
3330         * manual/lang.texi (__va_copy): Document primarily as ISO C99
3331         va_copy.  Document allowing for unavailable va_copy only as
3332         pre-C99 compatibility.
3333         * manual/string.texi (Copying and Concatenation): Use va_copy
3334         instead of __va_copy in concat example.
3335
3336 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
3337
3338         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
3339         (__sendto): Use create_address_port.  Initialize APORT and deallocate
3340         it if not null.
3341
3342         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
3343         with O_NOLINK passed to __file_name_lookup.
3344
3345         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
3346         with O_NOLINK passed to __file_name_lookup.
3347
3348         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
3349         negative N or less than NGIDS.
3350
3351         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
3352         type to string_t.  Set ERANGE as errno and return it if NAME is not big
3353         enough.  Use memcpy instead of strncpy.
3354
3355 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
3356
3357         * elf/Makefile (check-data): Remove.
3358         (localplt.data): New vpath directive.
3359         ($(objpfx)check-localplt.out): Use localplt.data from vpath
3360         instead of $(check-data).
3361         * scripts/data/localplt-generic.data: Move to ...
3362         * sysdeps/generic/localplt.data: ... here.
3363         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
3364         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
3365         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
3366         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
3367         ... here.
3368         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
3369         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
3370         ... here.
3371         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
3372         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
3373         ... here.
3374         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
3375         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
3376         ... here.
3377         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
3378         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
3379         ... here.
3380         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
3381         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
3382         ... here.
3383
3384 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3385
3386         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
3387         PPC32 and PPC64 files.
3388         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
3389         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
3390
3391 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3392
3393         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
3394         __makecontext_ret to ...
3395         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
3396         ... here and call exit if uc_link is NULL.  New file.
3397         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
3398         __makecontext_ret.S.
3399         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
3400         __makecontext_ret to ...
3401         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
3402         ... here and call exit if uc_link is NULL.  New file.
3403         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
3404         __makecontext_ret.S.
3405
3406 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3407
3408         * elf/elf.h (R_390_IRELATIVE): New definition.
3409         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
3410         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
3411         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
3412         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
3413         (elf_machine_lazy_rel): Likewise.
3414         * sysdeps/s390/dl-irel.h: New file.
3415         * sysdeps/s390/s390-64/memcpy.S: New asm code.
3416         * sysdeps/s390/s390-64/memset.S: New asm code.
3417         * sysdeps/s390/s390-64/memcmp.S: New asm code.
3418         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
3419         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
3420         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
3421         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
3422         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
3423         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
3424         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
3425         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
3426         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
3427         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
3428         * sysdeps/s390/s390-32/memcpy.S: New asm code.
3429         * sysdeps/s390/s390-32/memset.S: New asm code.
3430         * sysdeps/s390/s390-32/memcmp.S: New asm code.
3431
3432 2012-07-17  Marek Polacek  <polacek@redhat.com>
3433
3434         [BZ #14349]
3435         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
3436         * sysdeps/s390/s390-64/configure.in: Likewise.
3437         * sysdeps/sparc/configure.in: Likewise.
3438         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
3439         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
3440         * sysdeps/i386/configure.in: Likewise.
3441         * sysdeps/x86_64/configure.in: Likewise.
3442         * sysdeps/sh/configure.in: Likewise.
3443         * sysdeps/s390/s390-32/configure: Regenerated.
3444         * sysdeps/s390/s390-64/configure: Likewise.
3445         * sysdeps/x86_64/configure: Likewise.
3446         * sysdeps/sh/configure: Likewise.
3447         * sysdeps/powerpc/powerpc64/configure: Likewise.
3448         * sysdeps/powerpc/powerpc32/configure: Likewise.
3449         * sysdeps/sparc/configure: Likwise.
3450         * sysdeps/i386/configure: Likewise.
3451
3452         * elf/dl-open.c: Comment fixes.
3453
3454 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
3455
3456         * Makefile [CXX] (check-data): Remove.
3457         [CXX] (c++-types.data): New vpath directive.
3458         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
3459         vpath.  Do not allow for C++ type data being missing.
3460         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
3461         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
3462         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
3463         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
3464         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
3465         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
3466         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
3467         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
3468         ... here.
3469         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
3470         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
3471         ... here.
3472         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
3473         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
3474         ... here.
3475         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
3476         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
3477         ... here.
3478         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
3479         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
3480         ... here.
3481         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
3482         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
3483         ... here.
3484         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
3485         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
3486         ... here.
3487         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
3488         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
3489
3490         * elf/tls-macros.h (TLS_LE): Move architecture-specific
3491         definitions to architecture-specific files.
3492         (TLS_IE): Likewise.
3493         (TLS_LD): Likewise.
3494         (TLS_GD): Likewise.
3495         * sysdeps/i386/tls-macros.h: New file.
3496         * sysdeps/powerpc/tls-macros.h: Likewise.
3497         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
3498         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
3499         * sysdeps/sh/tls-macros.h: Likewise.
3500         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
3501         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
3502         * sysdeps/x86_64/tls-macros.h: Likewise.
3503
3504 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
3505
3506         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
3507         zero value for regular exit case.
3508
3509         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
3510         (__start_context): Preserve zero value for regular exit case.
3511
3512 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
3513             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3514
3515         * manual/setjmp.texi (setcontext): Clarify normal process
3516         termination when uc_link is the null pointer.
3517         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
3518         exit call.
3519
3520 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
3521
3522         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
3523         preprocessor.  Test for each exception mask separately.
3524
3525 2012-07-16  Andreas Jaeger  <aj@suse.de>
3526
3527         * po/ru.po: Update from translation team.
3528
3529 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
3530
3531         * conform/data/string.h-data (NULL): Use macro-constant.  Require
3532         equal to 0.
3533         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
3534         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
3535         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
3536         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
3537         [ISO || ISO99 || ISO11] (*_t): Do not allow.
3538
3539 2012-07-13  Andreas Jaeger  <aj@suse.de>
3540
3541         * po/fr.po: Update from translation team.
3542
3543 2012-07-12  Marek Polacek  <polacek@redhat.com>
3544
3545         [BZ #14173]
3546         * math/libm-test.inc (yn_test): Add test for BZ #14173.
3547         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
3548         loop condition.
3549
3550 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
3551
3552         [BZ #13717]
3553         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
3554         Change to 2.4.1 where previously 2.4.0.
3555         * sysdeps/unix/sysv/linux/configure: Regenerated.
3556         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
3557         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
3558         version.
3559         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
3560         (__ASSUME_AT_CLKTCK): Remove.
3561         (__ASSUME_AT_PAGESIZE): Likewise.
3562         (__ASSUME_AT_XID): Likewise.
3563         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
3564         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
3565         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
3566         unconditionally.
3567         (HAVE_AUX_PAGESIZE): Likewise.
3568         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
3569         [__ASSUME_AT_CLKTCK]: Make code unconditional.
3570         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
3571
3572 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
3573
3574         [BZ #14307]
3575         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
3576         the temporary buffer used to invoke __gethostbyname2_r,
3577         __gethostbyaddr_r and gethostbyname4_r to make room for struct
3578         host_data / struct gaih_addrtuple.
3579         * resolv/nss_dns/dns-host.c (global scope): Move definition of
3580         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
3581         header file nss/nsswitch.h.
3582         * nss/nsswitch.h (global scope): Add definition of implementation
3583         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
3584         resolv/nss_dns/dns-host.c).
3585
3586 2012-07-11  Andreas Jaeger  <aj@suse.de>
3587
3588         * po/fr.po: Update from translation team.
3589
3590         * po/sv.po: Update from translation team
3591         * po/fr.po: Another update from translation team.
3592
3593 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3594
3595         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
3596         for subnormals or multiply small sinh result by itself.
3597         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
3598         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3599
3600 2012-07-11  David S. Miller  <davem@davemloft.net>
3601
3602         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3603
3604 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
3605
3606         [BZ #14347]
3607         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
3608         (INTERNAL_MARK): Shift it here.
3609
3610 2012-07-10  Marek Polacek  <polacek@redhat.com>
3611
3612         [BZ #14151]
3613         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
3614         libc_cv_asm_global_directive with .globl.
3615         * configure: Regenerated.
3616         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
3617         with .globl.
3618         * sysdeps/i386/configure: Regenerated.
3619         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
3620         with .globl.
3621         * sysdeps/x86_64/configure: Regenerated.
3622         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
3623         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
3624         * elf/tst-unique2mod2.c: Likewise.
3625         * elf/tst-unique2mod1.c: Likewise.
3626         * elf/tst-unique1mod2.c: Likewise.
3627         * elf/tst-unique1mod1.c: Likewise.
3628         * sysdeps/s390/s390-32/sysdep.h: Likewise.
3629         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
3630         * sysdeps/s390/s390-64/sysdep.h: Likewise.
3631         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
3632         * sysdeps/mach/sysdep.h: Likewise.
3633         * sysdeps/i386/sysdep.h: Likewise.
3634         * sysdeps/i386/i386-mcount.S: Likewise.
3635         * sysdeps/x86_64/_mcount.S: Likewise.
3636         * sysdeps/x86_64/sysdep.h: Likewise.
3637         * sysdeps/sh/_mcount.S: Likewise.
3638         * sysdeps/sh/sysdep.h: Likewise.
3639         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
3640         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
3641         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
3642         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
3643         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
3644         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
3645         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
3646         * locale/localeinfo.h: Likewise.
3647         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
3648         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
3649
3650 2012-07-09  Roland McGrath  <roland@hack.frob.com>
3651
3652         [BZ #14336]
3653         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
3654         system".
3655         * manual/message.texi (The Uniforum approach): Likewise.
3656         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
3657         (glibc iconv Implementation): Likewise.
3658
3659 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
3660
3661         [BZ #14337]
3662         * math/s_clog.c (__clog): Avoid scaling a value down where that
3663         could result in underflow.
3664         * math/s_clog10.c (__clog10): Likewise.
3665         * math/s_clog10f.c (__clog10f): Likewise.
3666         * math/s_clog10l.c (__clog10l): Likewise.
3667         * math/s_clogf.c (__clogf): Likewise.
3668         * math/s_clogl.c (__clogl): Likewise.
3669         * math/libm-test.inc (clog_test): Add more tests.
3670         (clog10_test): Likewise.
3671         * sysdeps/i386/fpu/libm-test-ulps: Update.
3672         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3673
3674 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
3675
3676         [BZ #14283]
3677         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
3678         by 7 not 8 to examine high bit of fractional part.
3679
3680         [BZ #14042]
3681         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
3682         for call to __mcount_internal.
3683         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
3684         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
3685         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
3686
3687 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
3688
3689         [BZ #14154]
3690         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
3691         approximation for values within 0x1p-13f of an odd multiple of
3692         pi/4.
3693         * math/libm-test.inc (tan_test): Do not allow spurious underflow
3694         exception.  Add more tests.
3695         * sysdeps/i386/fpu/libm-test-ulps: Update.
3696
3697         [BZ #6778]
3698         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
3699         inputs and return -1 for them.  Do not check for +Inf in case not
3700         reachable for +Inf.
3701         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
3702         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
3703         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
3704         and return -1 for them.  Do not check for +Inf in case not
3705         reachable for +Inf.
3706         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
3707         define.
3708         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
3709         and return -1 for them.  Do not check for +Inf in case not
3710         reachable for +Inf.
3711         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
3712         spurious underflow.
3713         * sysdeps/i386/fpu/libm-test-ulps: Update.
3714         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3715
3716 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
3717
3718         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
3719
3720 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
3721
3722         [BZ #14157]
3723         [BZ #14331]
3724         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
3725         could result in spurious underflow.  Scale down values above
3726         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
3727         * math/s_csqrtf.c (__csqrtf): Likewise.
3728         * math/s_csqrtl.c (__csqrtl): Likewise.
3729         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
3730         spurious underflow.
3731         * sysdeps/i386/fpu/libm-test-ulps: Update.
3732         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3733
3734 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
3735
3736         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
3737         xopen-msg.sed.
3738         * catgets/xopen-msg.awk: New file.
3739         * catgets/xopen-msg.sed: Removed.
3740
3741         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
3742         po2text.sed.
3743         * intl/po2test.awk: New file.
3744         * intl/po2test.sed: Removed.
3745
3746 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
3747
3748         [BZ #14328]
3749         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
3750         or multiply small sinh result by itself.
3751         * math/s_ctanf.c (__ctanf): Likewise.
3752         * math/s_ctanh.c (__ctanh): Likewise.
3753         * math/s_ctanhf.c (__ctanhf): Likewise.
3754         * math/s_ctanhl.c (__ctanhl): Likewise.
3755         * math/s_ctanl.c (__ctanl): Likewise.
3756         * math/libm-test.inc (ctan_test_tonearest): New function.
3757         (ctan_test_towardzero): Likewise.
3758         (ctan_test_downward): Likewise.
3759         (ctan_test_upward): Likewise.
3760         (ctanh_test_tonearest): Likewise.
3761         (ctanh_test_towardzero): Likewise.
3762         (ctanh_test_downward): Likewise.
3763         (ctanh_test_upward): Likewise.
3764         (main): Call these new functions.
3765         * sysdeps/i386/fpu/libm-test-ulps: Update.
3766         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3767
3768 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
3769
3770         * .gitignore: Delete /ports entry.
3771
3772 2012-07-03  Andreas Jaeger  <aj@suse.de>
3773
3774         * po/bg.po: Update from translation team.
3775         * po/cs.po: Likewise.
3776         * po/de.po: Likewise.
3777         * po/hr.po: Likewise.
3778         * po/nl.pl: Likewise.
3779         * po/pl.po: Likewise.
3780         * po/vi.po: Likewise.
3781
3782 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
3783
3784         * Makeconfig [!+link] (+link-before-libc): New variable.
3785         [!+link] (+link-after-libc): Likewise.
3786         [!+link] (+link-tests): Likewise.
3787         [!+link] (+link): Define in terms of $(+link-before-libc) and
3788         $(+link-after-libc).
3789         [!+link-static] (+link-static-before-libc): New variable.
3790         [!+link-static] (+link-static-after-libc): Likewise.
3791         [!+link-static] (+link-static-tests): Likewise.
3792         [!+link-static] (+link-static): Define in terms of
3793         $(+link-static-before-libc) and $(+link-static-after-libc).
3794         [build-shared] (link-libc-before-gnulib): New variable.
3795         [build-shared] (link-libc-tests): Likewise.
3796         [build-shared] (link-libc): Define in terms of
3797         $(link-libc-before-gnulib).
3798         [!build-shared] (link-libc-tests): New variable.
3799         (link-libc-static-tests): New variable.
3800         [!gnulib] (gnulib-arch): New variable.
3801         [!gnulib] (gnulib-tests): Likewise.
3802         [!gnulib] (static-gnulib-arch): Likewise.
3803         [!gnulib] (static-gnulib-tests): Likewise.
3804         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
3805         Define with "=" instead of ":=".
3806         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
3807         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
3808         * Rules (binaries-all-notests): New variable.
3809         (binaries-all-tests): Likewise.
3810         (binaries-static-notests): Likewise.
3811         (binaries-static-tests): Likewise.
3812         (binaries-all): Define using $(binaries-all-notests) and
3813         $(binaries-all-tests).
3814         (binaries-static): Define using $(binaries-static-notests) and
3815         $(binaries-static-tests).
3816         (binaries-shared-tests): New variable.
3817         (binaries-shared-notests): Likewise.
3818         (binaries-shared): Remove variable.
3819         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
3820         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
3821         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
3822         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
3823         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
3824         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
3825         * elf/Makefile (sln-modules): New variable.
3826         (extra-objs): Add $(sln-modules:=.o).
3827         (ldconfig-modules): Add static-stubs.
3828         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
3829         * elf/static-stubs.c: New file.
3830
3831         [BZ #14283]
3832         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
3833         by 7 not 8 to examine high bit of fractional part.  Use volatile
3834         variables when splitting into final array of floats if
3835         __FLT_EVAL_METHOD__ != 0.
3836         * math/libm-test.inc (cos_test): Add another test.
3837         (sin_test): Likewise.
3838         * sysdeps/i386/fpu/libm-test-ulps: Update.
3839
3840         [BZ #14273]
3841         * math/libm-test.inc (cosh_test): Add more tests.
3842
3843         * version.h (RELEASE): Set to "development".
3844         (VERSION): Set to "2.16.90".
3845
3846 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
3847
3848         * NEWS: Update copyright. Remove last-updated date.
3849         Mention math library bug fixes and timezone data changes.
3850         * README: Mention GNU/Hurd, x32, and HPPA support status.
3851
3852 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
3853
3854         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
3855
3856 2012-06-27  Andreas Jaeger  <aj@suse.de>
3857
3858         * manual/contrib.texi (Contributors): Add Samuel Thibault.
3859
3860 2012-06-25  Andreas Jaeger  <aj@suse.de>
3861
3862         * sysdeps/s390/fpu/libm-test-ulps: Update.
3863
3864 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
3865             Thomas Schwinge  <thomas@codesourcery.com>
3866
3867         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
3868         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
3869         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
3870         fanotify_mark.
3871
3872 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
3873
3874         * sysdeps/mach/start.c: Remove file.
3875         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
3876         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
3877         * sysdeps/sh/init-first.c: Likewise.
3878
3879         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
3880         registers for frame unwinding purposes, add CFI directives.
3881         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
3882         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
3883         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
3884         Likewise.
3885
3886         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
3887         __fortify_fail returning.
3888         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
3889
3890         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
3891         sysdeps/sh/____longjmp_chk.S.
3892         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
3893         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
3894         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
3895         (gen-as-const-headers): Append sigaltstack-offsets.sym.
3896
3897         * sysdeps/sh/abort-instr.h: New file.
3898         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
3899         process in case exit returns.
3900
3901         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
3902         initialize the GOT register before use.
3903
3904         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
3905         calculation of ARGC > 4.
3906
3907         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
3908         meaningful names to some local labels.
3909
3910 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
3911             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3912
3913         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
3914         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
3915         (__arch_compare_and_exchange_val_16_acq): Likewise.
3916         (__arch_compare_and_exchange_val_32_acq): Likewise.
3917         (atomic_exchange_and_add): Fix gUSA sequence.
3918         (atomic_add): Likewise.
3919         (atomic_add_negative): Likewise.
3920         (atomic_add_zero): Likewise.
3921         (atomic_bit_test_set): Likewise.
3922
3923 2012-06-22  Andreas Schwab  <schwab@redhat.com>
3924
3925         [BZ #13579]
3926         * include/link.h (struct link_map): Add l_free_initfini.
3927         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
3928         l_initfini.
3929         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
3930         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
3931         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
3932         set.
3933
3934 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
3935
3936         * configure.in: Use AC_LANG_SOURCE.
3937         * configure: Regenerate.
3938
3939 2012-06-22  Roland McGrath  <roland@hack.frob.com>
3940
3941         * configure.in (libc_cv_localstatedir): New substituted variable.
3942         * configure: Regenerated.
3943         * config.make.in (localstatedir): New variable, substituted from
3944         libc_cv_localstatedir.
3945         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
3946         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
3947         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
3948         * sysdeps/gnu/configure: Regenerated.
3949
3950 2012-06-21  Jeff Law  <law@redhat.com>
3951
3952         [BZ #14277]
3953         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
3954         free.  Simplify list management for _LIBC case.
3955
3956 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
3957
3958         [BZ #14273]
3959         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
3960         Clear sign bit of 64-bit integer value before comparing against
3961         overflow value.
3962
3963         * sysdeps/mach/configure: Regenerated.
3964
3965 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
3966
3967         [BZ #14278]
3968         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
3969
3970 2012-06-21  Jeff Law  <law@redhat.com>
3971
3972         [BZ #13882]
3973         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
3974         uint16_t for elements in the "seen" array to avoid char overflows.
3975         * elf/dl-fini.c (_dl_sort_fini): Likewise.
3976         * elf/dl-open.c (dl_open_worker): Likewise.
3977
3978 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
3979
3980         * scripts/list-sources.sh: Scan PORTS for translations.
3981         * po/libc.pot: Regenerated.
3982
3983 2012-06-21  Andreas Jaeger  <aj@suse.de>
3984
3985         [BZ #12194]
3986         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
3987         warning.
3988         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
3989         * bits/byteswap-16.h (__bswap_16): Likewise.
3990         * bits/byteswap.h (__bswap_constant_16): Likewise.
3991
3992 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
3993
3994         [BZ #14117]
3995         * sysdeps/i386/fpu_control.h: Removed.
3996         * sysdeps/x86_64/fpu_control.h: Moved to ...
3997         * sysdeps/x86/fpu_control.h: Here.
3998
3999         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
4000         (_FPU_SETCW): Likewise.
4001
4002 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
4003
4004         [BZ #14117]
4005         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
4006         * sysdeps/x86/fpu/bits/mathinline.h: This.
4007         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
4008
4009         [BZ #14050]
4010         [BZ #14117]
4011         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
4012         functions if __x86_64__ is defined.
4013
4014 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
4015
4016         * string/endian.h: Add !__ASSEMBLER__ condition for including
4017         conversion interfaces.
4018
4019 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
4020
4021         [BZ #14241]
4022         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
4023         of ABS(x) in calculating zero to negative powers other than odd
4024         integers.
4025         * math/libm-test.inc (pow_test): Add more tests.
4026
4027 2012-06-15  Andreas Jaeger  <aj@suse.de>
4028
4029         * manual/contrib.texi (Contributors): Update entry of Liubov
4030         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
4031         Machado Filho.
4032
4033 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
4034
4035         * string/string.h: Add __wur to GNU version of strerror_r.
4036
4037 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
4038
4039         [BZ #14229]
4040         * string/Makefile (tests): Add tst-strtok_r.
4041         * string/tst-strtok_r.c: New file.
4042         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
4043         RAX_LP/RDX_LP on SAVE_PTR.
4044
4045 2012-06-14  Roland McGrath  <roland@hack.frob.com>
4046
4047         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
4048
4049 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
4050
4051         * libm_test.inc (csqrt_test): Allow more spurious underflow
4052         exceptions.
4053         (j0_test): Likewise.
4054         (j1_test): Likewise.
4055         (y0_test): Likewise.
4056         (y1_test): Likewise.
4057
4058 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
4059
4060         * po/Makefile (libc.pot): Use UTF-8 charset.
4061
4062 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
4063
4064         [BZ #14210]
4065         Suppress sign-conversion warning from FD_SET.
4066         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
4067         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
4068         not unsigned long int.
4069         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
4070
4071 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
4072
4073         [BZ #14050]
4074         [BZ #14117]
4075         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
4076         __extern_always_inline instead of __extern_inline.
4077         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
4078         (__signbit): Likewise.
4079         (__signbitl): Support C++ namespace.
4080         (lrintf): New inline function.
4081         (lrint): Likewise.
4082         (llrintf): Likewise.
4083         (llrint): Likewise.
4084         (fmaxf): Likewise.
4085         (fmax): Likewise.
4086         (fminf): Likewise.
4087         (fmin): Likewise.
4088         (rint): Likewise.
4089         (rintf): Likewise.
4090         (ceil): Likewise.
4091         (ceilf): Likewise.
4092         (floor): Likewise.
4093         (floorf): Likewise.
4094         (nearbyint): Likewise.
4095         (nearbyintf): Likewise.
4096
4097 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
4098
4099         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
4100         non-default versions.
4101
4102 2012-06-11  Roland McGrath  <roland@hack.frob.com>
4103
4104         [BZ #14218]
4105         * manual/argp.texi (Argp): Reword argp_parse description slightly.
4106
4107 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
4108
4109         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
4110         (FE_UPWARD, FE_DOWNWARD): Don't define.
4111         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
4112         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
4113
4114         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
4115         reading it.
4116         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
4117         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
4118
4119 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4120
4121         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
4122         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
4123         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
4124         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
4125
4126 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
4127
4128         [BZ #14117]
4129         * sysdeps/i386/fpu/bits/fenv.h: Removed.
4130         * sysdeps/i386/fpu/Implies: New file.
4131         * sysdeps/x86_64/fpu/Implies: Likewise.
4132         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
4133         * sysdeps/x86/fpu/bits/fenv.h: This.
4134
4135         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
4136         __SSE_MATH__.
4137
4138 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
4139
4140         [BZ #14134]
4141         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
4142         character 0xffff that matches the last element of the
4143         conversion table.
4144
4145 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4146
4147         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
4148         fmodl commit.
4149
4150 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4151
4152         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
4153         values higher than 25.6283.
4154
4155 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4156
4157         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
4158         subnormal exponent extraction and add some __builtin_expect.
4159         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
4160         Fix for subnormal mantissa calculation.
4161
4162 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
4163
4164         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
4165         cpu2 is -1 and errno is not ENOSYS.
4166
4167 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
4168
4169         [BZ #14117]
4170         * sysdeps/i386/i486/bits/string.h: Renamed to ...
4171         * sysdeps/x86/bits/string.h: This.
4172         * sysdeps/x86_64/bits/string.h: Removed.
4173
4174         * sysdeps/i386/i486/bits/string.h: Define inline functions only
4175         if not compiling for x86-64, but compiling for >= i486.
4176
4177         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
4178         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
4179
4180         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
4181         New macro from Linux kernel 3.4.0.
4182         (FP_XSTATE_MAGIC2): Likewise.
4183         (FP_XSTATE_MAGIC2_SIZE): Likewise.
4184         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
4185         (struct _fpx_sw_bytes): New struct.
4186         (struct _xsave_hdr): Likewise.
4187         (struct _ymmh_state): Likewise.
4188         (struct _xstate): Likewise.
4189
4190         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
4191         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
4192         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
4193         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
4194         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
4195         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
4196
4197         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
4198         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
4199         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
4200         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
4201         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
4202         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
4203
4204 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
4205
4206         [BZ #13743]
4207         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
4208         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
4209         (sysdep_headers): Include sys/platform/ppc.h.
4210         * sysdeps/powerpc/test-gettimebase.c: Test for
4211         __ppc_get_timebase() to catch future ISA opcode/insn changes.
4212         * manual/Makefile (appendices): Include platform.texi.
4213         * manual/contrib.texi (Contributors): Update @node pointers.
4214         * manual/maint.texi (Maintenance): Likewise.
4215         (Platform): New node.
4216         * manual/platform.texi: New file.  Document the new features.
4217
4218 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
4219             Jakub Jelinek  <jakub@redhat.com>
4220
4221         [BZ #14188]
4222         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
4223         where __builtin_expect is unavailable.
4224
4225 2012-06-03  David S. Miller  <davem@davemloft.net>
4226
4227         * stdlib/longlong.h: Updated from GCC.
4228
4229 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
4230
4231         [BZ #14042]
4232         * sysdeps/powerpc/powerpc32/mcount.c: New file.
4233         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
4234         __mcount_internal.
4235         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
4236         (GLIBC_2.16): Likewise.
4237
4238 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
4239
4240         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
4241
4242 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
4243
4244         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
4245         (default-abi): New variable.
4246         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
4247         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
4248         variable.
4249         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
4250         Likewise.
4251         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
4252         Likewise.
4253         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
4254         Likewise.
4255
4256         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
4257         definition.  Document in comment.
4258
4259 2012-06-01  David S. Miller  <davem@davemloft.net>
4260
4261         * stdlib/longlong.h: Updated from GCC.
4262
4263 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
4264
4265         [BZ #14117]
4266         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
4267         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
4268         sys/debugreg.h sys/io.h here.
4269         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
4270         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
4271         sys/io.h.
4272         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
4273         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
4274         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
4275         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
4276         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
4277         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
4278
4279         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
4280         Define only if __x86_64__ is defined.
4281
4282 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
4283
4284         [BZ #14048]
4285         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
4286         Use int64_t for variable i.
4287         * math/libm-test.inc (fmod_test): Add more tests.
4288
4289         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
4290         z computation is not scheduled after fetestexcept.
4291         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
4292         Use math_force_eval instead of asm to ensure calculation scheduled
4293         before exception test.
4294         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
4295         Ensure a1 + u.d computation is not scheduled after fetestexcept.
4296
4297 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
4298
4299         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
4300         computation is not scheduled after fetestexcept.
4301
4302 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
4303
4304         [BZ #14117]
4305         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
4306         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
4307
4308 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4309
4310         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
4311         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
4312
4313 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
4314
4315         [BZ #14117]
4316         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
4317         <bits/wordsize.h>.
4318         (__WCHAR_MIN): Support __WORDSIZE == 64.
4319         (__WCHAR_MAX): Likewise.
4320
4321         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
4322         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
4323
4324         [BZ #14183]
4325         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
4326         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
4327
4328         [BZ #14117]
4329         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
4330         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
4331
4332         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
4333         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
4334
4335         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
4336         Defined to 1 if __x86_64__ isn't defined.
4337         (_STAT_VER_LINUX_OLD): New.
4338         (st_atime): Remove duplicate.
4339         (st_mtime): Likewise.
4340         (st_ctime): Likewise.
4341
4342 2012-05-31  David S. Miller  <davem@davemloft.net>
4343
4344         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
4345         entries.
4346
4347 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
4348
4349         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
4350         gen-libm-test.pl.
4351
4352         [BZ #14132]
4353         * elf/dl-reloc.c: Include <_itoa.h>.
4354         (_dl_reloc_bad_type): Remove use of INTUSE.
4355         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
4356         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
4357         * stdio-common/psiginfo.c (psiginfo): Likewise.
4358         * stdio-common/psignal.c (psignal): Likewise.
4359         * string/strsignal.c (strsignal): Likewise.
4360         * include/signal.h (_sys_siglist): Declare hidden proto.
4361         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
4362         INTVARDEF with libc_hidden_data_def.
4363         * stdio-common/itoa-udigits.c: Likewise.
4364         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
4365         (_itoa_lower_digits_internal): Remove declaration.
4366         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
4367         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
4368         (_sys_sigabbrev_internal): Remove aliases.
4369         (_sys_siglist): Define hidden alias.
4370
4371 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
4372
4373         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4374         bits/sysctl.h.
4375
4376 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
4377
4378         [BZ #14117]
4379         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
4380         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
4381
4382         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
4383         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
4384         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
4385         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
4386         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
4387         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
4388
4389         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
4390         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
4391         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
4392
4393         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
4394         with __addr.
4395         (insw): Likewise.
4396         (insl): Likewise.
4397         (outsb): Likewise.
4398         (outsw): Likewise.
4399         (outsl): Likewise.
4400
4401         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
4402         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
4403         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
4404
4405         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
4406         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
4407         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
4408         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
4409         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
4410         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
4411
4412         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
4413         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
4414
4415         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
4416         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
4417
4418         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
4419         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
4420         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
4421
4422         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
4423         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
4424         to ...
4425         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
4426
4427         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
4428         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
4429         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
4430
4431         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
4432         for x86-64.
4433         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
4434
4435 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
4436
4437         * math/math.h (M_El): Use two more decimal places.
4438         (M_LOG2El): Likewise.
4439         (M_LOG10El): Likewise.
4440         (M_LN2l): Likewise.
4441         (M_LN10l): Likewise.
4442         (M_PIl): Likewise.
4443         (M_PI_2l): Likewise.
4444         (M_PI_4l): Likewise.
4445         (M_1_PIl): Likewise.
4446         (M_2_PIl): Likewise.
4447         (M_2_SQRTPIl): Likewise.
4448         (M_SQRT2l): Likewise.
4449         (M_SQRT1_2l): Likewise.
4450
4451 2012-05-31  David S. Miller  <davem@davemloft.net>
4452
4453         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
4454         values between float registers.
4455         * sysdeps/sparc/sparc64/memset.S: Likewise.
4456         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
4457
4458 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
4459
4460         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
4461         -D_FORTIFY_SOURCE=1.
4462         (CPPFLAGS-tst-longjmp_chk.c): Define.
4463         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
4464         (CPPFLAGS-tst-longjmp_chk2.c): Define.
4465         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
4466         CFLAGS-tst-wchar-h.c.
4467
4468 2012-05-31  Marek Polacek  <polacek@redhat.com>
4469
4470         [BZ #14132]
4471         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
4472         __endmntent_internal): Remove declaration.
4473         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
4474         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
4475         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
4476
4477 2012-05-30  David S. Miller  <davem@davemloft.net>
4478
4479         * sysdeps/sparc/sparc32/soft-fp/q_util.c
4480         (___Q_simulate_exceptions): Use real FP ops rather than writing
4481         into the %fsr.
4482         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
4483         Likewise.
4484
4485 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
4486
4487         [BZ #14117]
4488         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
4489         * sysdeps/x86/bits/xtitypes.h: This.
4490
4491         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
4492         * sysdeps/x86/bits/wordsize.h: This.
4493
4494         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
4495         * sysdeps/x86/bits/huge_vall.h: This.
4496
4497         * sysdeps/i386/bits/select.h: Removed.
4498         * sysdeps/x86_64/bits/select.h: Renamed to ...
4499         * sysdeps/x86/bits/select.h: This.
4500
4501         * sysdeps/i386/bits/setjmp.h: Removed.
4502         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
4503         * sysdeps/x86/bits/setjmp.h: This.
4504
4505         * sysdeps/i386/bits/mathdef.h: Removed.
4506         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
4507         * sysdeps/x86/bits/mathdef.h: This.
4508
4509 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
4510
4511         [BZ #14132]
4512         * include/sys/socket.h (__connect_internal)
4513         (__libc_sa_len_internal): Remove declaration.
4514         (__connect, __libc_sa_len): Declare hidden_proto.
4515         (SA_LEN): Remove use of INTUSE.
4516         * socket/connect.c: Add libc_hidden_def.
4517         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
4518         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
4519         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
4520         alias.
4521         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
4522         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
4523         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
4524         of adding _internal alias.
4525
4526 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
4527
4528         [BZ #14117]
4529         * sysdeps/i386/bits/link.h: Removed.
4530         * sysdeps/i386/bits/linkmap.h: Likewise.
4531         * sysdeps/x86_64/bits/link.h: Renamed to ...
4532         * sysdeps/x86/bits/link.h: This.
4533         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
4534         * sysdeps/x86/bits/linkmap.h: This.
4535
4536         * sysdeps/i386/bits/endian.h: Removed.
4537         * sysdeps/x86_64/bits/endian.h: Renamed to ...
4538         * sysdeps/x86/bits/endian.h: This.
4539
4540         * sysdeps/i386/bits/byteswap.h: Removed.
4541         * sysdeps/i386/bits/byteswap-16.h: Likewise.
4542         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
4543         * sysdeps/x86/bits/byteswap.h: This.
4544         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
4545         * sysdeps/x86/bits/byteswap-16.h: This.
4546         * sysdeps/i386/Implies: Add x86.
4547         * sysdeps/x86_64/Implies: Likewise.
4548
4549 2012-05-30  David S. Miller  <davem@davemloft.net>
4550
4551         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
4552         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
4553         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
4554         (FP_TRAPPING_EXCEPTIONS): Define.
4555         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
4556         (FP_TRAPPING_EXCEPTIONS): Define.
4557         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
4558         subnormals only when inexact has been signalled or underflow
4559         exceptions are enabled.
4560         (_FP_PACK_CANONICAL): Likewise.
4561
4562 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
4563
4564         [BZ #14183]
4565         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
4566         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
4567
4568 2012-05-30  Richard Henderson  <rth@twiddle.net>
4569
4570         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
4571         with #ifndef NOT_IN_libc.
4572
4573         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
4574         marked to avoid plt entry.
4575
4576 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
4577
4578         [BZ #14112]
4579         * Makeconfig (default-abi): New macro.
4580         (abi-includes): Likewise.
4581         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
4582         $(abi-$(default-abi)-lib-soname) for soname if defined.
4583         ($(common-objpfx)gnu/lib-names.stmp): Generate from
4584         abi-variants.
4585         * Makefile (installed-stubs): Likewise.
4586         * include/stubs-biarch.h: Removed.
4587         * scripts/lib-names.awk: Only handle one library at a time.
4588         * scripts/soversions.awk: Remove WORDSIZE support.
4589         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
4590         entries.
4591         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
4592         Removed.
4593         (syscall-list-default-condition): Likewise.
4594         (syscall-list-default-condition): Likewise.
4595         (syscall-list-includes): Likewise.
4596         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
4597         syscall-list-* with abi-*.  Handle undefined abi-variants.
4598         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
4599         * sysdeps/unix/sysv/linux/i386/Implies: New file.
4600         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
4601         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
4602         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
4603         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
4604         Removed.
4605         (syscall-list-32-options): Likewise.
4606         (syscall-list-32-condition): Likewise.
4607         (syscall-list-64-options): Likewise.
4608         (syscall-list-64-condition): Likewise.
4609         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
4610         macro.
4611         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
4612         Renamed to ...
4613         (abi-*): This.
4614         (abi-64-ld-soname): New macro.
4615         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
4616         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
4617         Renamed to ...
4618         (abi-*): This.
4619         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
4620         * sysdeps/x86_64/x32/shlib-versions: Likewise.
4621
4622 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
4623
4624         * sysdeps/unix/sysv/linux/kernel-features.h
4625         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
4626         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
4627         include <kernel-features.h>.
4628         [!__NR_ftruncate64]: Remove conditional code.
4629         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4630         [__NR_ftruncate64]: Make code unconditional.
4631         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4632         * sysdeps/unix/sysv/linux/truncate64.c: Do not
4633         include <kernel-features.h>.
4634         [!__NR_ftruncate64]: Remove conditional code.
4635         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4636         [__NR_ftruncate64]: Make code unconditional.
4637         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4638         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
4639         include <kernel-features.h>.
4640         [!__NR_ftruncate64]: Remove conditional code.
4641         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4642         [__NR_ftruncate64]: Make code unconditional.
4643         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4644         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
4645         include <kernel-features.h>.
4646         [!__NR_ftruncate64]: Remove conditional code.
4647         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4648         [__NR_ftruncate64]: Make code unconditional.
4649         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4650
4651         * configure.in (libc_cv_fpie): Weaken to a compile test using
4652         LIBC_TRY_CC_OPTION.
4653         * configure: Regenerated.
4654
4655 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4656
4657         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
4658         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
4659         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
4660         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
4661         Refreshed.
4662         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
4663         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
4664         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
4665         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
4666         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
4667         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
4668         Refreshed.
4669
4670 2012-05-27  David S. Miller  <davem@davemloft.net>
4671
4672         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
4673         (___Q_zero): New.
4674         (__Q_simulate_exceptions): Return void.  Change to simulate
4675         exceptions by writing into the %fsr.
4676         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
4677         (__Qp_handle_exceptions): Likewise.
4678         (numbers): Delete.
4679         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
4680         __Qp_handle_exceptions.
4681         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
4682         __Qp_handle_exceptions.
4683         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
4684         as unused and give dummy FP_RND_NEAREST initializer.
4685         (FP_INHIBIT_RESULTS): Define.
4686         (___Q_simulate_exceptions): Update declaration.
4687         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
4688         formatting.
4689         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
4690         as unused and give dummy FP_RND_NEAREST initializer.
4691         (__Qp_handle_exceptions): Update declaration.
4692         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
4693         formatting.
4694
4695 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
4696
4697         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
4698         the temporary FPU control word.
4699         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
4700         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
4701         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
4702         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
4703         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
4704         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
4705         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
4706         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
4707         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
4708         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
4709         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
4710
4711 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4712
4713         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
4714         fields.
4715
4716 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
4717
4718         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
4719         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
4720         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
4721         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
4722         Likewise.
4723         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
4724         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
4725         Likewise.
4726
4727 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
4728
4729         * po/h.po: Update from translation team.
4730
4731 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
4732
4733         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
4734
4735         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
4736         handling of denormals.
4737         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
4738         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
4739         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
4740         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
4741         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
4742         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
4743         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
4744         Likewise.
4745
4746 2012-05-26  Marek Polacek  <polacek@redhat.com>
4747
4748         [BZ #14152]
4749         * math/libm-test.inc (fma_test): Don't always expect underflow
4750         exception.
4751
4752 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
4753
4754         [BZ #12416]
4755         * elf/tst-execstack.c: Include stackinfo.h.
4756         (do_test): Adjust test case to ensure that pthread_getattr_np
4757         behaviour remains the same after marking stack executable.
4758
4759 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
4760
4761         * sysdeps/unix/sysv/linux/kernel-features.h
4762         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
4763         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
4764         kernel-features.h.
4765         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
4766         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
4767         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
4768         kernel-features.h.
4769         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
4770         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
4771
4772 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
4773
4774         * configure.in: Define the default includes to being none.
4775         * configure: Regenerated.
4776
4777 2012-05-25  Roland McGrath  <roland@hack.frob.com>
4778
4779         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
4780         * sysdeps/x86_64/setjmp.S: Likewise.
4781         * sysdeps/i386/bsd-setjmp.S: Likewise.
4782         * sysdeps/i386/bsd-_setjmp.S: Likewise.
4783         * sysdeps/i386/setjmp.S: Likewise.
4784         * sysdeps/i386/__longjmp.S: Likewise.
4785         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
4786         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
4787
4788         * include/stap-probe.h: New file.
4789         * configure.in: Handle --enable-systemtap.
4790         * configure: Regenerated.
4791         * config.h.in (USE_STAP_PROBE): New #undef.
4792         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
4793         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
4794         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
4795
4796 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
4797
4798         [BZ #13717]
4799         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
4800         to 2.4.0 where earlier.
4801         * sysdeps/unix/sysv/linux/configure: Regenerated.
4802         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
4803         <kernel-features.h>.
4804         [__ASSUME_32BITUIDS]: Make code unconditional.
4805         [!__ASSUME_32BITUIDS]: Remove conditional code.
4806         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
4807         <kernel-features.h>.
4808         [__ASSUME_32BITUIDS]: Make code unconditional.
4809         [!__ASSUME_32BITUIDS]: Remove conditional code.
4810         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
4811         [__ASSUME_32BITUIDS]: Make code unconditional.
4812         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
4813         * sysdeps/unix/sysv/linux/i386/getegid.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/geteuid.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/getgid.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/getgroups.c: Do not include
4826         <kernel-features.h>.
4827         [__ASSUME_32BITUIDS]: Make code unconditional.
4828         [!__ASSUME_32BITUIDS]: Remove conditional code.
4829         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
4830         <kernel-features.h>.
4831         [__ASSUME_32BITUIDS]: Make code unconditional.
4832         [!__ASSUME_32BITUIDS]: Remove conditional code.
4833         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
4834         <kernel-features.h>.
4835         [__ASSUME_32BITUIDS]: Make code unconditional.
4836         [!__ASSUME_32BITUIDS]: Remove conditional code.
4837         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
4838         <kernel-features.h>.
4839         [__ASSUME_32BITUIDS]: Make code unconditional.
4840         [!__ASSUME_32BITUIDS]: Remove conditional code.
4841         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
4842         <kernel-features.h>.
4843         [__ASSUME_32BITUIDS]: Make code unconditional.
4844         [!__ASSUME_32BITUIDS]: Remove conditional code.
4845         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
4846         <kernel-features.h>.
4847         [__ASSUME_32BITUIDS]: Make code unconditional.
4848         [!__ASSUME_32BITUIDS]: Remove conditional code.
4849         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
4850         <kernel-features.h>.
4851         [__ASSUME_32BITUIDS]: Make code unconditional.
4852         [!__ASSUME_32BITUIDS]: Remove conditional code.
4853         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
4854         <kernel-features.h>.
4855         [__NR_setresgid] (__setresgid): Do not declare.
4856         [__ASSUME_32BITUIDS]: Make code unconditional.
4857         [!__ASSUME_32BITUIDS]: Remove conditional code.
4858         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
4859         <kernel-features.h>.
4860         [__NR_setresuid] (__setresuid): Do not declare.
4861         [__ASSUME_32BITUIDS]: Make code unconditional.
4862         [!__ASSUME_32BITUIDS]: Remove conditional code.
4863         * sysdeps/unix/sysv/linux/i386/setfsgid.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/setfsuid.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/setgid.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/i386/setgroups.c: Do not include
4876         <kernel-features.h>.
4877         [__ASSUME_32BITUIDS]: Make code unconditional.
4878         [!__ASSUME_32BITUIDS]: Remove conditional code.
4879         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
4880         <kernel-features.h>.
4881         [__ASSUME_32BITUIDS]: Make code unconditional.
4882         [!__ASSUME_32BITUIDS]: Remove conditional code.
4883         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
4884         <kernel-features.h>.
4885         [__ASSUME_32BITUIDS]: Make code unconditional.
4886         [!__ASSUME_32BITUIDS]: Remove conditional code.
4887         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
4888         <kernel-features.h>.
4889         [__ASSUME_32BITUIDS]: Make code unconditional.
4890         [!__ASSUME_32BITUIDS]: Remove conditional code.
4891         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
4892         <kernel-features.h>.
4893         [__ASSUME_32BITUIDS]: Make code unconditional.
4894         [!__ASSUME_32BITUIDS]: Remove conditional code.
4895         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
4896         <kernel-features.h>.
4897         [__ASSUME_32BITUIDS]: Make code unconditional.
4898         [!__ASSUME_32BITUIDS]: Remove conditional code.
4899         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
4900         <kernel-features.h>.
4901         [__ASSUME_32BITUIDS]: Make code unconditional.
4902         [!__ASSUME_32BITUIDS]: Remove conditional code.
4903         * sysdeps/unix/sysv/linux/kernel-features.h
4904         (__ASSUME_SETRESUID_SYSCALL): Remove.
4905         (__ASSUME_SETRESGID_SYSCALL): Likewise.
4906         (__ASSUME_32BITUIDS): Likewise.
4907         (__ASSUME_LDT_WORKS): Likewise.
4908         (__ASSUME_O_DIRECTORY): Likewise.
4909         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
4910         architecture but not kernel version.
4911         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
4912         (__ASSUME_MMAP2_SYSCALL): Likewise.
4913         (__ASSUME_STAT64_SYSCALL): Likewise.
4914         (__ASSUME_IPC64): Likewise.
4915         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
4916         <kernel-features.h>.
4917         [__ASSUME_32BITUIDS]: Make code unconditional.
4918         [!__ASSUME_32BITUIDS]: Remove conditional code.
4919         * sysdeps/unix/sysv/linux/opendir.c: Do not include
4920         <kernel-features.h>.
4921         [__ASSUME_O_DIRECTORY]: Make code unconditional.
4922         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
4923         132096]: Remove conditional code.
4924         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
4925         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
4926         <kernel-features.h>.
4927         [__ASSUME_32BITUIDS]: Make code unconditional.
4928         [!__ASSUME_32BITUIDS]: Remove conditional code.
4929         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
4930         <kernel-features.h>.
4931         [__ASSUME_32BITUIDS]: Make code unconditional.
4932         [!__ASSUME_32BITUIDS]: Remove conditional code.
4933         * sysdeps/unix/sysv/linux/setegid.c: Do not include
4934         <kernel-features.h>.
4935         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
4936         unconditional.
4937         (__setresgid): Do not declare.
4938         [__ASSUME_32BITUIDS]: Make code unconditional.
4939         [!__ASSUME_32BITUIDS]: Remove conditional code.
4940         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
4941         <kernel-features.h>.
4942         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
4943         unconditional.
4944         (__setresuid): Do not declare.
4945         [__ASSUME_32BITUIDS]: Make code unconditional.
4946         [!__ASSUME_32BITUIDS]: Remove conditional code.
4947         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
4948         <kernel-features.h>.
4949         [__ASSUME_32BITUIDS]: Make code unconditional.
4950         [!__ASSUME_32BITUIDS]: Remove conditional code.
4951         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
4952         <kernel-features.h>.
4953         [__ASSUME_32BITUIDS]: Make code unconditional.
4954         [!__ASSUME_32BITUIDS]: Remove conditional code.
4955
4956 2012-05-25  Richard Henderson  <rth@twiddle.net>
4957
4958         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
4959         dl_hwcap to ifunc resolver.
4960         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
4961         elf_ifunc_invoke.
4962         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
4963         dl_hwcap to ifunc resolver.
4964         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
4965
4966 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
4967
4968         [BZ #14153]
4969         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
4970         for |x| <= 2**-26, not 2**-57.
4971         * math/libm-test.inc (acos_test): Do not allow spurious underflow
4972         exception.
4973
4974 2012-05-24  Jeff Law  <law@redhat.com>
4975
4976         * stdio-common/Makefile (tests): Add bug25.
4977         * stdio-common/bug25.c: New test.
4978
4979 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
4980
4981         [BZ #13576]
4982         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
4983         multiple of MALLOC_ALIGNMENT in size.
4984         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
4985
4986 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
4987
4988         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
4989         Require >= 256.
4990         (FILENAME_MAX): Use macro-int-constant.
4991         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
4992         (_IOFBF): Use macro-int-constant.
4993         (_IOLBF): Likewise.
4994         (_IONBF): Likewise.
4995         (SEEK_CUR): Likewise.
4996         (SEEK_END): Likewise.
4997         (SEEK_SET): Likewise.
4998         (TMP_MAX): Likewise.
4999         (EOF): Use macro-int-constant.  Require < 0.
5000         (NULL): Use macro-constant.  Require == 0.
5001         (stdin): Require type to be FILE *.
5002         (stdout): Likewise.
5003         (stderr): Likewise.
5004         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
5005         macro-int-constant.
5006         (EXIT_SUCCESS): Likewise.
5007         (NULL): Use macro-constant.  Require == 0.
5008         (RAND_MAX): Use macro-int-constant.
5009         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
5010         [C99-based standards] (strtof): Require function.
5011         [C99-based standards] (strtold): Likewise.
5012         [C99-based standards] (strtoll): Likewise.
5013         [C99-based standards] (strtoull): Likewise.
5014         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
5015         [ISO || ISO99 || ISO11] (limits.h): Likewise.
5016         [ISO || ISO99 || ISO11] (math.h): Likewise.
5017         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
5018         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
5019         [ISO || ISO99 || ISO11] (*_t): Do not allow.
5020
5021 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
5022
5023         [BZ #14132]
5024         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
5025         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
5026         * intl/dgettext.c (DCGETTEXT): Likewise.
5027         * intl/gettext.c (DCGETTEXT): Likewise.
5028         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
5029         * posix/regex_internal.h (gettext): Likewise.
5030         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
5031         Remove declaration.
5032         * include/argz.h (__argz_count_internal)
5033         (__argz_stringify_internal): Remove declaration.
5034         (__argz_count, __argz_stringify): Declare hidden proto.
5035         * intl/dcgettext.c: Remove use of INTDEF.
5036         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
5037         * string/argz-stringify.c: Likewise.
5038         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
5039         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
5040         Declare hidden proto.
5041         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
5042         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
5043         Declare hidden proto.
5044         * include/stdio.h (__asprintf_internal): Don't declare.
5045         (__asprintf): Don't define as macro.  Declare hidden proto.
5046         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
5047         (__fsetlocking): Declare hidden proto.
5048         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
5049         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
5050         hidden proto.
5051         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
5052         (_IO_setlinebuf): Remove use of INTUSE.
5053         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
5054         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
5055         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
5056         Remove declaration.
5057         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
5058         (_IO_do_flush): Remove use of INTUSE.
5059         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
5060         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
5061         (_IO_adjust_column, _IO_least_wmarker)
5062         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
5063         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
5064         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
5065         (_IO_default_doallocate, _IO_wdefault_doallocate)
5066         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
5067         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
5068         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
5069         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
5070         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
5071         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
5072         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
5073         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
5074         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
5075         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
5076         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
5077         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
5078         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
5079         proto.
5080         (_IO_flush_all_internal, _IO_adjust_column_internal)
5081         (_IO_default_uflow_internal, _IO_default_finish_internal)
5082         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
5083         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
5084         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
5085         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
5086         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
5087         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
5088         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
5089         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
5090         (_IO_file_close_internal, _IO_file_close_it_internal)
5091         (_IO_file_underflow_internal, _IO_file_overflow_internal)
5092         (_IO_file_init_internal, _IO_file_attach_internal)
5093         (_IO_file_fopen_internal, _IO_file_read_internal)
5094         (_IO_file_sync_internal, _IO_file_seek_internal)
5095         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
5096         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
5097         (_IO_str_underflow_internal, _IO_str_overflow_internal)
5098         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
5099         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
5100         (_IO_list_all_internal, _IO_link_in_internal)
5101         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
5102         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
5103         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
5104         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
5105         (_IO_do_write_internal, _IO_padn_internal)
5106         (_IO_getline_info_internal, _IO_getline_internal)
5107         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
5108         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
5109         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
5110         (_IO_vfscanf_internal, _IO_vfprintf_internal)
5111         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
5112         (_IO_init_internal, _IO_un_link_internal): Don't declare.
5113         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
5114         with libc_hidden_ver, remove use of INTUSE.
5115         * libio/genops.c: Likewise.
5116         * libio/freopen.c: Likewise.
5117         * libio/freopen64.c: Likewise.
5118         * libio/iofclose.c: Likewise.
5119         * libio/iofdopen.c: Likewise.
5120         * libio/iofflush.c: Likewise.
5121         * libio/iofflush_u.c: Likewise.
5122         * libio/iofgets.c: Likewise.
5123         * libio/iofgets_u.c: Likewise.
5124         * libio/iofopen.c: Likewise.
5125         * libio/iofopncook.c: Likewise.
5126         * libio/iofread.c: Likewise.
5127         * libio/iofread_u.c: Likewise.
5128         * libio/ioftell.c: Likewise.
5129         * libio/iofwrite.c: Likewise.
5130         * libio/iogetline.c: Likewise.
5131         * libio/iogets.c: Likewise.
5132         * libio/iogetwline.c: Likewise.
5133         * libio/iopadn.c: Likewise.
5134         * libio/iopopen.c: Likewise.
5135         * libio/ioseekoff.c: Likewise.
5136         * libio/ioseekpos.c: Likewise.
5137         * libio/iosetbuffer.c: Likewise.
5138         * libio/iosetvbuf.c: Likewise.
5139         * libio/ioungetc.c: Likewise.
5140         * libio/ioungetwc.c: Likewise.
5141         * libio/iovdprintf.c: Likewise.
5142         * libio/iovsprintf.c: Likewise.
5143         * libio/iovsscanf.c: Likewise.
5144         * libio/memstream.c: Likewise.
5145         * libio/obprintf.c: Likewise.
5146         * libio/oldfileops.c: Likewise.
5147         * libio/oldiofclose.c: Likewise.
5148         * libio/oldiofdopen.c: Likewise.
5149         * libio/oldiofopen.c: Likewise.
5150         * libio/oldiopopen.c: Likewise.
5151         * libio/oldstdfiles.c: Likewise.
5152         * libio/putc.c: Likewise.
5153         * libio/setbuf.c: Likewise.
5154         * libio/setlinebuf.c: Likewise.
5155         * libio/stdfiles.c: Likewise.
5156         * libio/strops.c: Likewise.
5157         * libio/vasprintf.c: Likewise.
5158         * libio/vscanf.c: Likewise.
5159         * libio/vsnprintf.c: Likewise.
5160         * libio/vswprintf.c: Likewise.
5161         * libio/wfiledoalloc.c: Likewise.
5162         * libio/wfileops.c: Likewise.
5163         * libio/wgenops.c: Likewise.
5164         * libio/wmemstream.c: Likewise.
5165         * libio/wstrops.c: Likewise.
5166         * libio/__fpurge.c: Likewise.
5167         * libio/__fsetlocking.c: Likewise.
5168         * assert/assert.c: Likewise.
5169         * debug/fgets_chk.c: Likewise.
5170         * debug/fgets_u_chk.c: Likewise.
5171         * debug/fread_chk.c: Likewise.
5172         * debug/fread_u_chk.c: Likewise.
5173         * debug/gets_chk.c: Likewise.
5174         * debug/obprintf_chk.c: Likewise.
5175         * debug/vasprintf_chk.c: Likewise.
5176         * debug/vdprintf_chk.c: Likewise.
5177         * debug/vsnprintf_chk.c: Likewise.
5178         * debug/vsprintf_chk.c: Likewise.
5179         * malloc/mtrace.c: Likewise.
5180         * misc/error.c: Likewise.
5181         * misc/syslog.c: Likewise.
5182         * stdio-common/asprintf.c: Likewise.
5183         * stdio-common/fxprintf.c: Likewise.
5184         * stdio-common/getw.c: Likewise.
5185         * stdio-common/isoc99_fscanf.c: Likewise.
5186         * stdio-common/isoc99_scanf.c: Likewise.
5187         * stdio-common/isoc99_vfscanf.c: Likewise.
5188         * stdio-common/isoc99_vscanf.c: Likewise.
5189         * stdio-common/isoc99_vsscanf.c: Likewise.
5190         * stdio-common/printf-prs.c: Likewise.
5191         * stdio-common/printf_fp.c: Likewise.
5192         * stdio-common/printf_fphex.c: Likewise.
5193         * stdio-common/printf_size.c: Likewise.
5194         * stdio-common/putw.c: Likewise.
5195         * stdio-common/scanf.c: Likewise.
5196         * stdio-common/sprintf.c: Likewise.
5197         * stdio-common/tmpfile.c: Likewise.
5198         * stdio-common/vfprintf.c: Likewise.
5199         * stdio-common/vfscanf.c: Likewise.
5200         * stdlib/strfmon_l.c: Likewise.
5201         * sunrpc/openchild.c: Likewise.
5202         * sunrpc/xdr_stdio.c: Likewise.
5203         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
5204         * sysdeps/mach/hurd/tmpfile.c: Likewise.
5205
5206 2012-05-24  Roland McGrath  <roland@hack.frob.com>
5207
5208         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
5209
5210         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
5211         in the third column, to generate for the shared library an IFUNC
5212         that uses _dl_vdso_vsym.
5213         * Makerules (COMPILE.c, compile-stdin.c): New variables.
5214         * Makeconfig (object-suffixes-noshared): New variable.
5215
5216         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
5217         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
5218         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
5219         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
5220
5221         [BZ #14132]
5222         * include/sys/time.h (__gettimeofday): Remove macro.
5223         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
5224         * time/gettimeofday.c (__gettimeofday): Remove #undef.
5225         Remove INTDEF.
5226         (__gettimeofday): Add libc_hidden_def.
5227         (gettimeofday): Add libc_hidden_weak.
5228         * sysdeps/mach/gettimeofday.c: Likewise.
5229         * sysdeps/posix/gettimeofday.c: Likewise.
5230         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
5231         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
5232         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
5233         (__gettimeofday_internal): Remove strong_alias.
5234         (__gettimeofday): Add libc_hidden_def.
5235         (gettimeofday): Add libc_hidden_weak.
5236         * sysdeps/unix/syscalls.list (gettimeofday):
5237         Remove __gettimeofday_internal alias.
5238
5239 2012-05-24  Daniel Jacobowitz  <drow@false.org>
5240             H.J. Lu  <hongjiu.lu@intel.com>
5241
5242         [BZ #12495]
5243         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
5244         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
5245         (largebin_index_32_big): New.
5246         (largebin_index): Use it for 16-byte alignment.
5247         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
5248         correction with front_misalign.
5249
5250 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
5251
5252         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
5253         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
5254         Likewise.
5255         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
5256         Likewise.
5257         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
5258         Likewise.
5259         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
5260         Likewise.
5261         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
5262         Likewise.
5263         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
5264         Likewise.
5265         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
5266         Likewise.
5267         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
5268         Likewise.
5269         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
5270         Likewise.
5271         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
5272         Likewise.
5273         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
5274         Likewise.
5275         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
5276         Likewise.
5277
5278         * scripts/data/c++-types-x32-linux-gnu.data: New file.
5279         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
5280
5281 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
5282
5283         [BZ #10846]
5284         [BZ #14036]
5285         * math/libm-test.inc (exp_test): Add test from bug 14036.
5286         (pow_test): Add test from bug 10846.
5287
5288         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
5289         and other flags.
5290         (special_function): Do not include flags in test name.
5291         (parse_args): Likewise.
5292         * sysdeps/i386/fpu/libm-test-ulps: Update.
5293         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
5294         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
5295         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
5296         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5297
5298         * math/gen-libm-test.pl (%beautify): Add entries for underflow
5299         exceptions.
5300         * math/libm-test.inc ("Philosophy"): Update comment about
5301         exception testing.
5302         (UNDERFLOW_EXCEPTION): New macro.
5303         (UNDERFLOW_EXCEPTION_OK): Likewise.
5304         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
5305         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
5306         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
5307         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
5308         (INVALID_EXCEPTION_OK): Update value.
5309         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
5310         (OVERFLOW_EXCEPTION_OK): Likewise.
5311         (IGNORE_ZERO_INF_SIGN): Likewise.
5312         (test_exceptions): Handle underflow exceptions.
5313         (acos_test): Update for underflow exception expectations.
5314         (cexp_test): Likewise.
5315         (clog_test): Likewise.
5316         (clog10_test): Likewise.
5317         (csqrt_test): Likewise.
5318         (ctan_test): Likewise.
5319         (ctanh_test): Likewise.
5320         (exp_test): Likewise.
5321         (exp10_test): Likewise.
5322         (exp2_test): Likewise.
5323         (expm1_test): Likewise.
5324         (fma_test): Likewise.
5325         (j0_test): Likewise.
5326         (jn_test): Likewise.
5327         (nexttoward_test): Likewise.
5328         (pow_test): Likewise.
5329         (scalbn_test): Likewise.
5330         (scalbln_test): Likewise.
5331         (tan_test): Likewise.
5332         (y1_test): Likewise.
5333         * sysdeps/i386/fpu/libm-test-ulps: Update.
5334         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5335
5336 2012-05-23  David S. Miller  <davem@davemloft.net>
5337
5338         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
5339         (__libc_sigaction): Remove unused local variables.
5340
5341 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
5342
5343         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
5344
5345 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
5346
5347         mktime: avoid signed integer overflow
5348         * time/mktime.c (__mktime_internal): Do not mishandle the case
5349         where diff == INT_MIN.
5350
5351         mktime: simplify computation of average
5352         * time/mktime.c (ranged_convert): Use new time_t_avg function
5353         instead of rolling our own (probably-slower) code.
5354
5355         mktime: do not assume signed right shift propagates sign bit
5356         * time/mktime.c (isdst_differ): New static function.
5357         (__mktime_internal): No need to normalize tm_isdst now.
5358         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
5359         tm_isdst values.
5360
5361         mktime: merge another wrapv change from gnulib
5362         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
5363         from some compilers.
5364
5365         mktime: remove incorrect attempt at unusual arithmetics
5366         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
5367         The code didn't really work on such machines anyway.
5368         (TYPE_MINIMUM): Assume two's complement.
5369         (twos_complement_arithmetic): Verify that long_int and time_t
5370         are two's complement (or unsigned, in the latter case).
5371
5372         mktime: check signed shifts on long_int and time_t, too
5373         * time/mktime.c (SHR): Check that shifts work as desired
5374         on the types long_int and time_t too, as SHR is used on
5375         such types.
5376
5377         mktime: do not assume 'long' is wide enough
5378         * time/mktime.c (verify): Move decl up.
5379         (long_int): New type.
5380         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
5381         to remove assumption in the code that 'long' is wide enough to
5382         store year values.  This assumption is not true on x32 and on
5383         some non-glibc platforms.
5384
5385         mktime: merge wrapv change from gnulib
5386         * time/mktime.c (WRAPV): New macro.
5387         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
5388         (guess_time_tm, __mktime_internal): Do not assume that signed
5389         integer overflow wraps around; modern compilers generate code
5390         where this assumption is no longer valid.
5391
5392 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
5393
5394         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
5395         Replace "jmp L(pseudo_end)" with "ret".
5396         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
5397         Likewise.
5398
5399 2012-05-23  Andreas Jaeger  <aj@suse.de>
5400
5401         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
5402         * sysdeps/unix/sysv/linux/poll.c: Remove file.
5403
5404 2012-05-23  Andreas Jaeger  <aj@suse.de>
5405             Maximilian Attems  <max@stro.at>
5406
5407         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
5408         New macros.
5409
5410 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
5411
5412         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
5413         code so that pseudo_end is just ret and the stack pointer is
5414         correct also for static library in error case.
5415
5416 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
5417
5418         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
5419         move to syscalls.list.
5420         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
5421         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
5422         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
5423         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
5424
5425         * manual/install.texi (Running make install): Do not mention Linux
5426         kernel version for which pt_chown is not needed.
5427         (Linux): Do not mention problems with nscd with 2.0 kernels.
5428         * INSTALL: Regenerated.
5429
5430 2012-05-23  Andreas Jaeger  <aj@suse.de>
5431
5432         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
5433         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
5434         macro.
5435         * sysdeps/unix/sysv/linux/s390/bits/mman.h
5436         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5437         * sysdeps/unix/sysv/linux/sh/bits/mman.h
5438         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5439         * sysdeps/unix/sysv/linux/i386/bits/mman.h
5440         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5441         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
5442         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5443         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
5444         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5445         * sysdeps/unix/sysv/linux/bits/in.h
5446         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
5447
5448 2012-05-22  Roland McGrath  <roland@hack.frob.com>
5449
5450         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
5451         (PREPARE_VERSION): Just use assert instead, it will be elided
5452         under [NDEBUG] anyway.
5453
5454 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
5455
5456         * sysdeps/unix/sysv/linux/Makefile: Include
5457         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
5458         (sysdep_routines): Remove sysctl.
5459         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
5460         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
5461         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
5462         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
5463         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
5464
5465 2012-05-22  Andreas Jaeger  <aj@suse.de>
5466
5467         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
5468         that pseudo_end is just ret and the stack pointer is correct also
5469         for static library in error case.
5470
5471 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
5472
5473         [BZ #14122]
5474         * nss/nsswitch.c (defconfig_entries): New variable.
5475         (__nss_database_lookup): Don't leak defconfig entries.
5476         (nss_parse_service_list): Don't leak on error paths.
5477         (free_database_entries): New function.
5478         (free_defconfig): New function.
5479         (free_mem): Move common code to free_database_entries.
5480
5481 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
5482
5483         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
5484         Add arch_prctl.
5485         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
5486
5487         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
5488         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
5489         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
5490         New macro.
5491         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
5492         (INTERNAL_SYSCALL_TYPES): Likewise.
5493         (LOAD_ARGS_TYPES_[1-6]): Likewise.
5494         (LOAD_REGS_TYPES_[1-6]): Likewise.
5495         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
5496         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
5497
5498 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5499
5500         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
5501         copysignl for GLIBC_2_0.
5502         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
5503         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
5504         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
5505         logbl for GLIBC_2_0.
5506         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
5507         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
5508
5509 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
5510
5511         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
5512         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
5513
5514         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
5515         Use "neg %eax".
5516
5517         * time/mktime.c: Update copyright years.
5518
5519 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
5520
5521         mktime: merge comment-quoting-style change from gnulib
5522         * time/mktime.c: Quote 'like this' in comments.
5523         The GNU coding standards suggest that we no longer quote `like this',
5524         as "`" and "'" are typically rendered asymmetrically nowadays.
5525         The typical gnulib style is to quote 'like this' when quoting
5526         code, and "like this" when quoting English.
5527
5528         * time/mktime.c (compile-command): Add "-I.".
5529
5530         mktime: merge mktime-internal.h change from gnulib
5531         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
5532
5533         mktime: merge time_r change from gnulib
5534         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
5535
5536         mktime: merge DEBUG change from gnulib
5537         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
5538         case system <time.h> has a #define.
5539
5540         mktime: merge <sys/types.h> change from gnulib
5541         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
5542         since <time.t> is now guaranteed to define time_t.
5543
5544         mktime: merge HAVE_CONFIG_H change from gnulib
5545         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
5546
5547 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
5548
5549         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
5550         Use "neg %eax".
5551
5552         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
5553         __rlim_t cast.
5554         (struct rusage): Use anonymous union to pad each field to
5555         __syscall_slong_t.
5556
5557 2012-05-21  David S. Miller  <davem@davemloft.net>
5558
5559         * Makefules (o-iterator): Remove .s cases.
5560         (compile-command.s): Delete.
5561         (COMPILE.s): Delete.
5562         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
5563
5564 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
5565
5566         * configure.in (libc_cv_predef_stack_protector): Only consider
5567         "foobar" and "__stack_chk_fail" lines in libc_undefs.
5568         * configure: Regenerated.
5569
5570 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
5571
5572         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
5573         New macro.  Use R*LP on int and pointer.
5574         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
5575         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
5576         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
5577         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
5578
5579         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
5580         [__WORDSIZE_TIME64_COMPAT32] instead of
5581         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
5582         (struct utmp): Likewise.
5583         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
5584         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
5585         Renamed to ...
5586         (__WORDSIZE_TIME64_COMPAT32): This.
5587         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
5588         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
5589         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
5590         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
5591         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
5592         (__WORDSIZE_TIME64_COMPAT32): New macro.
5593
5594 2012-05-21  Andreas Jaeger  <aj@suse.de>
5595
5596         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
5597         only if [SHARED]. Add prototype for __wcschr_ia32.
5598
5599 2012-05-21  Roland McGrath  <roland@hack.frob.com>
5600
5601         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
5602         of %rbp unmolested in the jmp_buf while mangling the low bits.
5603         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
5604         unmolested high bits of %rbp while demangling the low bits.
5605         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
5606
5607 2012-05-21  Andreas Jaeger  <aj@suse.de>
5608
5609         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
5610         * sunrpc/svc_simple.c: Use it for registerrpc.
5611         * sunrpc/xcrypt.c: Use it for passwd2des.
5612
5613         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
5614
5615 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
5616
5617         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
5618         Don't define if [__SYSCALL_WORDSIZE != 32].
5619         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
5620         New macro.
5621
5622 2012-05-21  Bruno Haible  <bruno@clisp.org>
5623             Andreas Jaeger  <aj@suse.de>
5624
5625         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
5626         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
5627         inptr and inend for must_buffer_ch.
5628         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
5629         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
5630         * stdio-common/Makefile (tests): Remove bug15.
5631         (bug15-ENV): Remove macro.
5632         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
5633         anymore.
5634
5635 2012-05-19  Andreas Jaeger  <aj@suse.de>
5636             Roland McGrath  <roland@hack.frob.com>
5637
5638         * manual/contrib.texi: Completely rewritten. It contains now an
5639         alphabetical list of contributors and their contributions.
5640
5641 2012-05-21  Richard Henderson  <rth@twiddle.net>
5642
5643         * misc/getauxval.c (__getauxval): Use unsigned long int.
5644         * misc/sys/auxv.h: Include <sys/cdefs.h>.
5645         (getauxval): Use unsigned long int.
5646
5647 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
5648
5649         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
5650
5651 2012-05-21  Roland McGrath  <roland@hack.frob.com>
5652
5653         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
5654         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
5655         __alignof__ (long double).
5656
5657 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5658
5659         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5660
5661 2012-05-20  Richard Henderson  <rth@twiddle.net>
5662
5663         * misc/getauxval.c: New file.
5664         * misc/sys/auxv.h: New file.
5665         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
5666         (routines): Add getauxval.
5667         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
5668         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
5669         * elf/dl-sysdep.c (_dl_auxv): Remove.
5670         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
5671         * elf/dl-support.c (_dl_auxv): New variable.
5672         (_dl_aux_init): Initialize it.
5673         * manual/startup.texi (Auxiliary Vector): New node.
5674         * sysdeps/generic/bits/hwcap.h: New file.
5675         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
5676         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
5677         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
5678         * sysdeps/sparc/sysdep.h: ... here.  Include it.
5679         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
5680         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
5681         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
5682         Update.
5683         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
5684         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
5685         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
5686         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
5687         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
5688         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
5689         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
5690         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
5691
5692 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5693
5694         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5695
5696 2012-05-19  David S. Miller  <davem@davemloft.net>
5697
5698         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5699
5700 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
5701
5702         [BZ #14123]
5703         * math/s_ccosh.c: Include <float.h>
5704         (__ccosh): Avoid internal overflow calculating sinh and cosh
5705         values before multiplying by sin and cos values.
5706         * math/s_ccoshf.c: Likewise.
5707         * math/s_ccoshl.c: Likewise.
5708         * math/s_csin.c: Likewise.
5709         * math/s_csinf.c: Likewise.
5710         * math/s_csinl.c: Likewise.
5711         * math/s_csinh.c: Likewise.
5712         * math/s_csinhf.c: Likewise.
5713         * math/s_csinhl.c: Likewise.
5714         * math/libm-test.inc (ccos_test): Add more tests.
5715         (ccosh_test): Likewise.
5716         (csin_test): Likewise.
5717         (csinh_test): Likewise.
5718         * sysdeps/i386/fpu/libm-test-ulps: Update.
5719         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5720
5721 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
5722
5723         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
5724         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
5725
5726         * sysdeps/x86_64/x32/_itoa.h: Add comment.
5727
5728 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
5729
5730         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
5731         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
5732         * sysdeps/powerpc/soft-fp/Versions: Likewise.
5733         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
5734         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
5735         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
5736         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
5737         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
5738         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
5739         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
5740         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
5741         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
5742         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
5743         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
5744         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
5745         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
5746         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
5747         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
5748         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
5749         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
5750         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
5751         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
5752         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
5753         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
5754         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
5755         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
5756         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
5757         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
5758         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
5759         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
5760         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
5761
5762 2012-05-18  Andreas Jaeger  <aj@suse.de>
5763
5764         * csu/.gitignore: Delete.
5765
5766 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
5767
5768         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
5769         (timex): Use __syscall_slong_t.
5770
5771 2012-05-18  Andreas Jaeger  <aj@suse.de>
5772             Carlos O'Donell  <carlos_odonell@mentor.com>
5773
5774         * manual/install.texi (Configuring and compiling): Update
5775         description about files modified in the source directory.
5776         * INSTALL: Regenerated.
5777
5778 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
5779
5780         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
5781         value.  Use "or" to set return value to -1.
5782         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
5783         negate return value.
5784
5785 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5786
5787         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
5788         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
5789         failure if the compiler has Graphite support disabled.
5790         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
5791         Likewise.
5792         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
5793         CFLAGS-memmove.c): Likewise.
5794         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
5795         Likewise.
5796
5797 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
5798
5799         * sysdeps/x86_64/x32/_itoa.h: New file.
5800
5801         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
5802         getdents system call only if kernel and user dirents have the
5803         same d_ino and d_off.
5804
5805         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
5806         LLONG_MAX != LONG_MAX.
5807         (_itoa_word): Use _ITOA_WORD_TYPE on value.
5808         (_fitoa_word): Likewise.
5809
5810         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
5811         years.
5812         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
5813         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
5814         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
5815
5816         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
5817         include <bits/wordsize.h>.  Check __x86_64__ instead of
5818         __WORDSIZE.
5819         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
5820         if __x86_64__ is defined.  Use anonymous union on fpstate.
5821
5822         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
5823         anonymous union.
5824
5825 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
5826
5827         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
5828         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
5829         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
5830         Refer to _rtld_local_ro instead of _rtld_global_ro.
5831         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
5832         Likewise.
5833         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
5834         Likewise.
5835         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
5836         Likewise.
5837         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
5838         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
5839         of _rtld_global, and rtld_progname instead of _dl_argv[0].
5840
5841         * sysdeps/powerpc/powerpc32/dl-machine.c
5842         (__elf_machine_runtime_setup) [PROF]: Don't reference
5843         _dl_prof_resolve.
5844
5845 2012-05-18  Andreas Jaeger  <aj@suse.de>
5846
5847         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
5848         function only available for GCCs before 3.4 since GCC 3.4
5849         introduced a builtin.
5850         (lrint): Likewise.
5851         (llrintf): Likewise.
5852         (llrint): Likewise.
5853         (fmaxf): Likewise.
5854         (fmax): Likewise.
5855         (fminf): Likewise.
5856         (fmin): Likewise.
5857         (rint): Likewise.
5858         (rintf): Likewise.
5859         (nearbyint): Likewise.
5860         (nearbyintf): Likewise.
5861         (ceil): Likewise.
5862         (ceilf): Likewise.
5863         (floor): Likewise.
5864         (floorf): Likewise.
5865
5866 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
5867
5868         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
5869         on both fields and cast pointer to __syscall_ulong_t.
5870
5871         * bits/types.h (__fsword_t): New type.
5872         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
5873         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
5874         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
5875         (__FSWORD_T_TYPE): Likewise.
5876         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
5877         (__FSWORD_T_TYPE): Likewise.
5878         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
5879         (__FSWORD_T_TYPE): Likewise.
5880         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
5881         (__FSWORD_T_TYPE): Likewise.
5882         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
5883         __SWORD_TYPE with __fsword_t.
5884         (statfs64): Likewise.
5885
5886 2012-05-17  David S. Miller  <davem@davemloft.net>
5887
5888         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
5889
5890 2012-05-17  Andreas Jaeger  <aj@suse.de>
5891
5892         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
5893         warning.
5894
5895 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
5896
5897         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
5898
5899 2012-05-17  Andreas Jaeger  <aj@suse.de>
5900
5901         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
5902         when it is used.
5903
5904 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
5905
5906         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
5907
5908 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
5909
5910         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
5911         * sysdeps/x86_64/tst-mallocalign1.c: New file.
5912
5913 2012-05-17  Andreas Jaeger  <aj@suse.de>
5914             Carlos O'Donell  <carlos_odonell@mentor.com>
5915
5916         [BZ #14059]
5917         * sysdeps/x86_64/multiarch/init-arch.h
5918         (bit_YMM_Usable): Rename to...
5919         (bit_AVX_Usable): ... this.
5920         (bit_FMA4_Usable): New macro.
5921         (bit_XMM_state): New macro.
5922         (bit_YMM_state): New macro.
5923         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
5924         [__ASSEMBLER__] (index_AVX_Usable): ... this.
5925         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
5926         (CPUID_OSXSAVE): New macro.
5927         (CPUID_AVX): New macro.
5928         (CPUID_FMA4): New macro.
5929         (index_YMM_Usable): Rename to...
5930         (index_AVX_Usable): ... this.
5931         (HAS_AVX): Use HAS_ARCH_FEATURE.
5932         (HAS_FMA4): Likewise.
5933         (HAS_YMM_USABLE): Remove.
5934         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
5935         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
5936         are present.
5937         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
5938         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
5939         * sysdeps/x86_64/multiarch/Makefile: Likewise.
5940         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
5941         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
5942
5943 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
5944
5945         * math/libm-test.c: Support platforms without multiple rounding modes.
5946         * math/bug-nextafter.c: Support platforms without FP exceptions.
5947         * math/bug-nexttoward.c: Likewise.
5948         * math/test-fenv.c: Likewise.
5949         * math/test-misc.c: Likewise.
5950         * stdlib/bug-getcontext.c: Likewise.
5951
5952 2012-05-17  Andreas Jaeger  <aj@suse.de>
5953
5954         * manual/examples/search.c (critter_cmp): Change signature to
5955         avoid warnings.
5956         * manual/string.texi (Collation Functions): Likewise.
5957
5958 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5959
5960         * bits/types.h: Fold copyright years.
5961         * bits/typesizes.h: Likewise.
5962         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
5963         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
5964         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
5965         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
5966         * time/time.h: Likewise.
5967
5968 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
5969
5970         [BZ #208]
5971         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
5972         in instead of returning them.  Return void.
5973         (__libc_mallinfo): Accumulate over all arenas.
5974         (__malloc_stats): Adjust for change in int_mallinfo interface.
5975
5976 2012-05-16  Roland McGrath  <roland@hack.frob.com>
5977
5978         [BZ #10375]
5979         * configure.in (NM): Add AC_CHECK_TOOL for it.
5980         (libc_extra_cflags): New substituted variable.
5981         Check for -fstack-protector being used implicitly.
5982         * configure: Regenerated.
5983         * config.make.in (config-extra-cflags): New variable,
5984         gets @libc_extra_cflags@.
5985         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
5986
5987         [BZ #10375]
5988         * configure.in: Check for _FORTIFY_SOURCE being predefined.
5989         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
5990         * configure: Regenerated.
5991         * config.make.in (CPPUNDEFS): New substituted variable.
5992         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
5993         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
5994         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
5995
5996 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5997
5998         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
5999         (mq_attr): Use __syscall_slong_t.
6000
6001 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6002
6003         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
6004         Check __x86_64__ instead of __WORDSIZE.
6005         (_STAT_VER_LINUX): Likewise.
6006         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
6007         __syscall_ulong_t and __syscall_slong_t.
6008         (stat64): Likewise.
6009
6010 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6011
6012         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
6013
6014 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6015
6016         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
6017
6018 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6019
6020         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
6021         __syscall_ulong_t.
6022
6023         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
6024         include <bits/wordsize.h>.  Check __x86_64__ instead of
6025         __WORDSIZE.
6026         (greg_t): Use "__extension__ long long int" if __x86_64__ is
6027         defined.
6028         (mcontext_t): Replace "unsigned long" with "unsigned long long".
6029
6030         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
6031         include <bits/wordsize.h>.  Check __x86_64__ instead of
6032         __WORDSIZE.
6033         (user_regs_struct): Use "__extension__ unsigned long long"
6034         instead of "unsigned long" if __x86_64__ is defined.
6035         (user): Likewise.  Pad after pointer field if __ILP32__ is
6036         defined.
6037
6038 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
6039
6040         * configure.in (makeinfo): Require version 4.5 or later.  Allow
6041         versions 5 to 9.
6042         * configure: Regenerated.
6043         * manual/install.texi (texinfo): Increase version requirement to
6044         4.5 or later.
6045         * INSTALL: Regenerated.
6046
6047         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
6048
6049 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6050
6051         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
6052
6053         * sysdeps/x86_64/x32/ffs.c: New file.
6054
6055         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
6056         __syscall_ulong_t.
6057         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
6058         defined.  Use __syscall_ulong_t.
6059         (shminfo): Use __syscall_ulong_t.
6060         (shm_info): Likewise.
6061
6062         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
6063         __syscall_ulong_t.
6064
6065         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
6066         <bits/wordsize.h>.
6067         (msgqnum_t): Use __syscall_ulong_t.
6068         (msglen_t): Likewise.
6069         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
6070         __syscall_ulong_t.
6071
6072         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
6073         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
6074
6075         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
6076
6077         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
6078         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
6079
6080         * sysvipc/sys/msg.h (msgbuf): Replace long int with
6081         __syscall_slong_t.
6082
6083         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
6084         include <bits/wordsize.h>.  Check __x86_64__ instead of
6085         __WORDSIZE.
6086
6087         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
6088         "unsigned long long int" if __x86_64__ is defined.
6089         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
6090
6091         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
6092         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
6093         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
6094
6095         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
6096         <stdint.h>.
6097         (GET_PC): Cast to uintptr_t first.
6098         (GET_FRAME): Likewise.
6099         (GET_STACK): Likewise.
6100
6101         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
6102         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
6103         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
6104         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
6105         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
6106         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
6107         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
6108         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
6109         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
6110         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
6111         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
6112         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
6113         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
6114         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
6115         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
6116         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
6117         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
6118         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
6119         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
6120         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
6121         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
6122         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
6123         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
6124         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
6125         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
6126         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
6127         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
6128         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
6129         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
6130
6131 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
6132
6133         * Makerules (+depfiles): Also collect depfiles from .oS in
6134         $(extra-objs).
6135         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
6136         .oS, $(libnldbl-routines)).
6137
6138         * Makerules (native-compile-mkdep-flags): Define.
6139         * sunrpc/Makefile (extra-objs): Add $(addprefix
6140         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
6141         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
6142         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
6143         calling $(make-target-directory).
6144
6145 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6146
6147         * bits/types.h (__snseconds_t): Removed.
6148         * time/time.h (struct timespec): Replace __snseconds_t with
6149         __syscall_slong_t.
6150         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
6151         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
6152         Likewise.
6153         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
6154         (__SNSECONDS_T_TYPE): Likewise.
6155         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
6156         (__SNSECONDS_T_TYPE): Likewise.
6157         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
6158         (__SNSECONDS_T_TYPE): Likewise.
6159
6160 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6161
6162         * sysdeps/mach/hurd/bits/typesizes.h
6163         (__SYSCALL_SLONG_TYPE): New macro.
6164         (__SYSCALL_ULONG_TYPE): Likewise.
6165
6166 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6167
6168         * bits/types.h (__syscall_slong_t): New type.
6169         (__syscall_ulong_t): Likewise.
6170
6171         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
6172         (__SYSCALL_ULONG_TYPE): Likewise.
6173         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
6174         (__SYSCALL_SLONG_TYPE): Likewise.
6175         (__SYSCALL_ULONG_TYPE): Likewise.
6176         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
6177         (__SYSCALL_SLONG_TYPE): Likewise.
6178         (__SYSCALL_ULONG_TYPE): Likewise.
6179         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
6180         (__SYSCALL_SLONG_TYPE): Likewise.
6181         (__SYSCALL_ULONG_TYPE): Likewise.
6182
6183 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6184
6185         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
6186         Add sigaltstack-offsets.sym.
6187         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
6188         <sigaltstack-offsets.h>.
6189         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
6190         longjmp_msg pointer.
6191         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
6192         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
6193         signal stack.
6194         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
6195
6196 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
6197
6198         * elf/stackguard-macros.h: Remove file.
6199         * sysdeps/generic/stackguard-macros.h: New file.
6200         * sysdeps/i386/stackguard-macros.h: Likewise.
6201         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
6202         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
6203         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
6204         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
6205         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
6206         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
6207         * sysdeps/x86_64/stackguard-macros.h: Likewise.
6208         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
6209         <elf/stackguard-macros.h>.
6210
6211         [BZ #14109]
6212         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
6213         __aligned__ in attribute.
6214         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
6215         (gregset_t): Likewise.
6216
6217 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6218
6219         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
6220         * sysdeps/x86_64/64/Implies-after: Here.  New file.
6221         * sysdeps/x86_64/x32/Implies-after: New file.
6222
6223 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6224
6225         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
6226         and access return value for _dl_profile_fixup.  Use R10_LP to
6227         load frame size.
6228
6229 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6230
6231         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
6232
6233 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6234
6235         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
6236         * sysdeps/x86_64/x32/sysdep.h: New file.
6237
6238 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6239
6240         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
6241         * sysdeps/x86_64/setjmp.S: Likewise.
6242
6243 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6244
6245         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
6246         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
6247         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
6248         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
6249         remove unused global constant.
6250
6251 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
6252
6253         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
6254         include of <not-cancel.h>.
6255
6256 2012-05-15  Roland McGrath  <roland@hack.frob.com>
6257
6258         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
6259
6260 2012-05-15  Jeff Law  <law@redhat.com>
6261             Andreas Jaeger  <aj@suse.de>
6262
6263         [BZ #13594]
6264         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
6265         out from...
6266         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
6267         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
6268         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
6269         code changing __hst_map_handle.map.
6270
6271 2012-05-15  Roland McGrath  <roland@hack.frob.com>
6272
6273         * configure.in (sysnames): Look for Implies-before and Implies-after
6274         files.
6275         * configure: Regenerated.
6276
6277 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6278
6279         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
6280         8-byte data alignment with LP_SIZE alignment.
6281
6282 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6283
6284         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
6285         into R10_LP.
6286
6287 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6288
6289         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
6290
6291 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6292
6293         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
6294         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
6295         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
6296         Likewise.
6297         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
6298
6299 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6300
6301         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
6302         (stackinfo_sub_sp): Likewise.
6303
6304 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6305
6306         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
6307         RAX_LP.
6308
6309 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6310
6311         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
6312         into R*_LP.
6313
6314 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6315
6316         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
6317         sizes into R*_LP.
6318
6319 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6320
6321         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
6322
6323 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6324
6325         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
6326         into R11_LP and load __x86_64_shared_cache_size_half into
6327         R8_LP.
6328
6329 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6330
6331         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
6332         R8_LP.
6333
6334 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6335
6336         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
6337         logb for POWER7.
6338         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
6339         logbf for POWER7.
6340         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
6341         logbl for POWER7.
6342         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
6343         powerpc32/power7/fpu/s_logb.c via #include.
6344         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
6345         powerpc32/power7/fpu/s_logbf.c via #include.
6346         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
6347         powerpc32/power7/fpu/s_logbl.c via #include.
6348
6349 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
6350
6351         * README.libm: Remove file.
6352
6353 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6354
6355         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
6356         count for x32.  Use R*_LP and omit operand-size suffix.
6357
6358 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6359
6360         * shlib-versions: Move x86_64-.*-linux.* entries to ...
6361         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
6362         * sysdeps/x86_64/x32/shlib-versions: New file.
6363
6364 2012-05-14  Roland McGrath  <roland@hack.frob.com>
6365
6366         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
6367         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
6368         Use _dl_fatal_printf instead.
6369
6370 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
6371
6372         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
6373         set if not set by the user.  Do not allow for being unset.
6374         * sysdeps/unix/sysv/linux/configure: Regenerated.
6375
6376 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6377
6378         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
6379         the `q' suffix from lea and replace .quad with ASM_ADDR.
6380
6381 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6382
6383         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
6384         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
6385         instead of $17.
6386         (PTR_DEMANGLE): Likewise.
6387
6388 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6389
6390         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
6391         (LP_OP): Likewise.
6392         (ASM_ADDR): Likewise.
6393         (RAX_LP): Likewise.
6394         (RBP_LP): Likewise.
6395         (RBX_LP): Likewise.
6396         (RCX_LP): Likewise.
6397         (RDI_LP): Likewise.
6398         (RSI_LP): Likewise.
6399         (RSP_LP): Likewise.
6400         (R8_LP): Likewise.
6401         (R9_LP): Likewise.
6402         (R10_LP): Likewise.
6403         (R10_LP): Likewise.
6404         (R11_LP): Likewise.
6405         (R12_LP): Likewise.
6406         (R13_LP): Likewise.
6407         (R14_LP): Likewise.
6408         (R15_LP): Likewise.
6409
6410 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6411
6412         * sysdeps/x86_64/x32/dl-machine.h: New file.
6413
6414 2012-05-14  Andreas Jaeger  <aj@suse.de>
6415
6416         * manual/Makefile (subdir): Remove export of subdir.
6417         (all): Remove target.
6418         (.PHONY): Remove all from list.
6419         (mkinstalldirs): Remove.
6420         (.PHONY): Remove installdirs from list.
6421         ($(inst_infodir)/libc.info): Use make-target-directory.
6422         (installdirs): Remove.
6423         (subdir_%): Remove.
6424         (glibc-targets): Remove.
6425         (lib): Remove.
6426         (stubs): Remove.
6427         ($(objpfx)stubs ../po/manual.pot): Remove.
6428         ($(objpfx)stamp%): Remove.
6429         (make-target-directory): Remove.
6430         (subdir_install): Remove.
6431         (routines): Remove.
6432         (aux): Remove.
6433         (sources): Remove.
6434         (objects): Remove.
6435         (headers): Remove.
6436
6437         [BZ #13750]
6438         * manual/.gitignore: Remove, it's not needed anymore.
6439         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
6440         all files in it.
6441         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
6442         directory.
6443         (texis): Renamed to $(objpfx)texis.
6444         (texis-path): New, contains path to generated files.
6445         (chapters.%): Use texis-path for complete path, add extra argument
6446         libc-texinfo.sh.
6447         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
6448         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
6449         (summary,texi, stamp-summary): Use complete path of
6450         files. Generate files in build dir.
6451         (dir-add.texi): Build in build dir.
6452         (libm-err.texi,stamp-libm-err): Likewise.
6453         (version.texi, stamp-version): Likewise.
6454         (.%c.texi): Likewise.
6455         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
6456         (mostlyclean): Remove target.
6457         (realclean): Remove target.
6458         (generated): Add new variable with contents from mostlyclean and
6459         realclean, remove entries duplicated in common-mostlyclean, add
6460         stamp-libm-err and stamp-version.
6461         (generated-dirs): Add libc directory.
6462         ($(inst_infodir)/libc.info): Install files from build dir.
6463
6464         * manual/install.texi (Configuring and compiling): Adjust since
6465         the info files are not part of the tar ball anymore.
6466
6467 2012-05-14  Andreas Jaeger  <aj@suse.de>
6468
6469         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
6470         variable.
6471
6472 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
6473
6474         [BZ #13717]
6475         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
6476         to 2.2.0 where earlier.
6477         * sysdeps/unix/sysv/linux/configure: Regenerated.
6478         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
6479         Remove conditional code.
6480         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
6481         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
6482         Remove conditional code.
6483         [!__NR_lchown]: Likewise.
6484         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
6485         [__NR_lchown]: Likewise.
6486         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
6487         comment referencing __ASSUME_LCHOWN_SYSCALL.
6488         * sysdeps/unix/sysv/linux/i386/sigaction.c
6489         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
6490         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
6491         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
6492         Remove conditional code.
6493         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
6494         (__protocol_available): Remove #if 0 code.
6495         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
6496         conditional code.
6497         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
6498         * sysdeps/unix/sysv/linux/kernel-features.h
6499         (__ASSUME_GETCWD_SYSCALL): Don't define.
6500         (__ASSUME_REALTIME_SIGNALS): Likewise.
6501         (__ASSUME_PREAD_SYSCALL): Likewise.
6502         (__ASSUME_PWRITE_SYSCALL): Likewise.
6503         (__ASSUME_POLL_SYSCALL): Likewise.
6504         (__ASSUME_LCHOWN_SYSCALL): Likewise.
6505         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
6506         non-SPARC.
6507         (__ASSUME_SIOCGIFNAME): Don't define.
6508         (__ASSUME_MSG_NOSIGNAL): Likewise.
6509         (__ASSUME_SENDFILE): Define unconditionally.
6510         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
6511         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
6512         conditional code.
6513         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
6514         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
6515         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
6516         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
6517         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
6518         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
6519         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
6520         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
6521         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
6522         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6523         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
6524         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
6525         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6526         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
6527         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
6528         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6529         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
6530         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
6531         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6532         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
6533         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
6534         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6535         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
6536         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
6537         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6538         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
6539         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
6540         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6541         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
6542         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
6543         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6544         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
6545         Remove conditional code.
6546         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6547         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
6548         Remove conditional code.
6549         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6550         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
6551         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
6552         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
6553         Remove conditional code.
6554         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6555         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
6556         Remove conditional code.
6557         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6558         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
6559         Remove conditional code.
6560         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6561         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
6562         Remove conditional code.
6563         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6564         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
6565         Remove conditional code.
6566         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6567         * sysdeps/unix/sysv/linux/sh/pwrite64.c
6568         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
6569         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6570         * sysdeps/unix/sysv/linux/sigaction.c
6571         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
6572         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
6573         * sysdeps/unix/sysv/linux/sigpending.c
6574         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
6575         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
6576         * sysdeps/unix/sysv/linux/sigprocmask.c
6577         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
6578         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
6579         * sysdeps/unix/sysv/linux/sigsuspend.c
6580         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
6581         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
6582         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
6583         (__libc_missing_rt_sigs): Remove.
6584         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
6585         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
6586         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
6587         Remove conditional code.
6588         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
6589         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
6590         return 1.
6591         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
6592         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
6593         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
6594         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
6595
6596 2012-05-14  Andreas Jaeger  <aj@suse.de>
6597
6598         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
6599         it's not used in glibc.
6600         (__coshm1): Likewise.
6601         (__acosh1p): Likewise.
6602         (__sgn): Likewise.
6603
6604         * manual/string.texi (Copying and Concatenation): Add missing
6605         variable in concat example.
6606         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
6607
6608 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6609
6610         [BZ #14103]
6611         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
6612         __builtin_clzl with __builtin_clzll.
6613
6614 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6615
6616         [BZ #14104]
6617         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
6618         libc_freeres_ptr.
6619
6620 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6621
6622         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
6623         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
6624         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
6625         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
6626
6627 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
6628
6629         * NEWS: Update ia64 info.
6630
6631 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
6632
6633         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
6634         used as bcopy.
6635
6636 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
6637
6638         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
6639         * sysdeps/unix/syscalls.list (dup3): Likewise.
6640         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
6641         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
6642
6643 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
6644
6645         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
6646         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
6647
6648 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
6649
6650         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
6651         thread pointer.
6652         (TLS_IE): Use mov/add instead of movq/addq to load thread
6653         pointer.
6654         (TLS_GD_PREFIX): New.
6655         (TLS_GD): Use it.
6656
6657 2012-05-11  David S. Miller  <davem@davemloft.net>
6658
6659         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
6660         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
6661         (_FPU_SETCW): Likewise.
6662
6663 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
6664
6665         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
6666         is 32-byte aligned.
6667
6668 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
6669
6670         [BZ #11837]
6671         * iconvdata/gb18030.c: Update tables.
6672         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
6673         characters specially.
6674         (BODY for TO_LOOP): Add encoding of missing ranges.
6675
6676 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
6677
6678         [BZ #13673]
6679         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
6680         * sysdeps/mach/hurd/dup3.c: Likewise.
6681         * sysdeps/mach/hurd/readlinkat.c: Likewise.
6682         * sysdeps/powerpc/memmove.c:: Likewise.
6683
6684 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
6685
6686         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
6687         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
6688
6689 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
6690
6691         * elf/elf.h (R_X86_64_RELATIVE64): New.
6692         (R_X86_64_NUM): Updated.
6693         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
6694         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
6695         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
6696         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
6697         tst-quad1pie tst-quad2pie
6698         (modules-names): Add tst-quadmod1 tst-quadmod2.
6699         ($(objpfx)tst-quad1): New dependency.
6700         ($(objpfx)tst-quad2): Likewise.
6701         ($(objpfx)tst-quad1pie): Likewise.
6702         ($(objpfx)tst-quad2pie): Likewise.
6703         * sysdeps/x86_64/tst-quad1.c: New file.
6704         * sysdeps/x86_64/tst-quad1pie.c: New file.
6705         * sysdeps/x86_64/tst-quad2.c: Likewise.
6706         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
6707         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
6708         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
6709         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
6710         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
6711
6712 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6713
6714         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
6715         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
6716         * streams/stropts.h (t_scalar_t): Define type.
6717
6718         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
6719         (_PATH_PRESERVE): Set to "/var/lib".
6720         (_PATH_RWHODIR): Set to "/var/spool/rwho".
6721
6722         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
6723         instead of int.
6724
6725         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
6726         if __dir_mkfile succeeded.
6727
6728         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
6729         checking for _hurd_dtablesize.  Unlock it right after having
6730         finished _hurd_dtable allocation.
6731
6732 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6733
6734         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
6735         * sysdeps/mach/hurd/configure: Regenerated.
6736         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
6737         special-casing to...
6738         * sysdeps/gnu/configure.in: ... this new file.
6739         * sysdeps/unix/sysv/linux/configure: Regenerated.
6740         * sysdeps/gnu/configure: New generated file.
6741
6742         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
6743         for Linux: use nsec instead of usec, as well as:
6744         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
6745         members of type struct timespec.
6746         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
6747         New macros.
6748         (struct stat64): Likewise.
6749         (_STATBUF_ST_NSEC): New macro.
6750         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
6751
6752         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
6753         __strtoul_internal rather than strtoul.
6754
6755 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
6756
6757         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
6758         and reject them.
6759
6760 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6761
6762         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
6763         which preserves existing values.
6764         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
6765
6766 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
6767
6768         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
6769         TIMEOUT values.  Return EINVAL for NFDS values either negative or
6770         greater than FD_SETSIZE.
6771
6772 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6773
6774         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
6775         allocated, call __vm_protect to finish enabling the existing space, and
6776         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
6777         allocate the remainder.
6778
6779 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
6780
6781         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
6782         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
6783
6784 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6785
6786         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
6787         sysdeps/mach/hurd/readlink.c.
6788
6789         * posix/tst-sysconf.c (posix_options): Only use
6790         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
6791         _POSIX_SYNCHRONIZED_IO when they are defined
6792         * sysdeps/mach/hurd/bits/posix_opt.h:
6793         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
6794         (_XOPEN_REALTIME): Undefine macro.
6795         (_XOPEN_REALTIME_THREADS): Undefine macro.
6796         (_XOPEN_SHM): Undefine macro.
6797         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
6798         macro to -1.
6799         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
6800         macro to -1.
6801         (_POSIX_ASYNC_IO): Undefine macro.
6802         (_POSIX_PRIORITIZED_IO): Undefine macro.
6803         (_POSIX_SPIN_LOCKS): Define macro to -1.
6804
6805         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
6806         SA_NODEFER, SA_RESETHAND.
6807         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
6808         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
6809         F_DUPFD_CLOEXEC.
6810
6811 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6812
6813         * elf/Makefile (pldd-modules): Define unconditionally.
6814
6815 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6816
6817         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
6818
6819 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6820
6821         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
6822         Return ENOENT when name is empty.
6823         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
6824
6825 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6826
6827         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
6828
6829         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
6830
6831 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6832
6833         Fix mlock in all cases except non-readable pages.
6834         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
6835         instead of VM_PROT_ALL as parameter to __vm_wire function.
6836
6837         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
6838         (__mkdir): When path is `/', just fail with EEXIST.
6839         * sysdeps/mach/hurd/mkdirat.c: Likewise.
6840
6841 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6842
6843         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
6844         <sys/uio.h> (for writev).
6845         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
6846         and <sys/param.h> (for MIN).
6847
6848 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
6849
6850         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
6851         REQUESTED_TIME.  Properly set the remaining time and return EINTR
6852         if interrupted.
6853
6854 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6855
6856         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
6857         Depend on against $(link-rpcuserlibs).
6858
6859 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6860
6861         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
6862         (__libc_stack_end): Do not use attribute_relro.
6863         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
6864         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
6865         to libthread-provided value.
6866         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
6867         attribute_relro.
6868
6869 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6870
6871         [BZ #3748]
6872         * bits/libc-lock.h (__libc_once_get): New macro.
6873         * sysdeps/mach/bits/libc-lock.h: Likewise.
6874         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
6875         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
6876         instead of using implementation details.
6877
6878         * libio/fileops.c: Unconditionally include <kernel-features.h>.
6879         * libio/freopen.c: Likewise.
6880         * libio/freopen64.c: Likewise.
6881         * misc/syslog.c: Likewise.
6882         * nscd/connections.c: Likewise.
6883         * nscd/netgroupcache.c: Likewise.
6884         * sysdeps/posix/getcwd.c: Likewise.
6885
6886 2012-05-10  Roland McGrath  <roland@hack.frob.com>
6887
6888         * math/w_ilogbf.c: Add #include <limits.h>.
6889
6890 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6891
6892         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
6893         path instead of returning without unlocking.
6894
6895         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
6896         immediate-write ioctls.
6897         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
6898
6899 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6900
6901         * sysdeps/mach/hurd/i386/init-first.c (init): Use
6902         __builtin_frame_address instead of making assumptions about the
6903         location of the return address relative to DATA.  Force early load of
6904         the return address.
6905         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
6906         __builtin_frame_address.
6907
6908         dup3 for GNU Hurd.
6909         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
6910         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
6911         implement dup3 and do some further code clean-ups.
6912         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
6913         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
6914
6915 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6916
6917         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
6918
6919         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
6920         HURD_CRITICAL_END around holding _hurd_dtable_lock.
6921         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
6922         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
6923         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
6924         d->port.lock.
6925
6926         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
6927         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
6928         when handler == SIG_ERR, not when handler != SIG_ERR.
6929
6930 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6931
6932         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
6933         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
6934         definitions.
6935
6936         accept4 for GNU Hurd.
6937         * include/sys/socket.h (__libc_accept4): New prototype.
6938         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
6939         to implement __libc_accept4.
6940         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
6941         __libc_accept4.
6942         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
6943
6944         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
6945         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
6946         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
6947         signal-defines.sym.
6948
6949 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6950
6951         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
6952
6953 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6954
6955         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
6956         assertion on O_CLOEXEC flag.
6957         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
6958         * hurd/intern-fd.c: Likewise.
6959         * hurd/port2fd.c: Likewise.
6960
6961 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6962
6963         [BZ #3906]
6964         * bits/in.h (IPV6_PKTINFO): Define new macro.
6965         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
6966
6967 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6968
6969         [BZ #13954]
6970         [BZ #13955]
6971         [BZ #13956]
6972         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
6973         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
6974         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
6975         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
6976         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
6977         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
6978         * math/libm-test.inc (logb_test) : Additional logb tests.
6979
6980 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
6981             Andreas Jaeger  <aj@suse.de>
6982
6983         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
6984         * configure: Regenerated.
6985         * config.h.in (LINK_OBSOLETE_RPC): New macro.
6986         * config.make.in (link-obsolete-rpc): New substituted variable.
6987         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
6988         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
6989         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
6990         (shared-only-routines): Don't set it under [link-obsolete-rpc],
6991         so that libc.a contains the symbols.
6992         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
6993         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
6994         * sunrpc/auth_none.c: Likewise.
6995         * sunrpc/auth_unix.c: Likewise.
6996         * sunrpc/authdes_prot.c: Likewise.
6997         * sunrpc/authuxprot.c: Likewise.
6998         * sunrpc/clnt_gen.c: Likewise.
6999         * sunrpc/clnt_perr.c: Likewise.
7000         * sunrpc/clnt_raw.c: Likewise.
7001         * sunrpc/clnt_simp.c: Likewise.
7002         * sunrpc/clnt_tcp.c: Likewise.
7003         * sunrpc/clnt_udp.c: Likewise.
7004         * sunrpc/clnt_unix.c: Likewise.
7005         * sunrpc/des_crypt.c: Likewise.
7006         * sunrpc/des_soft.c: Likewise.
7007         * sunrpc/get_myaddr.c: Likewise.
7008         * sunrpc/key_call.c: Likewise.
7009         * sunrpc/key_prot.c: Likewise.
7010         * sunrpc/netname.c: Likewise.
7011         * sunrpc/pm_getmaps.c: Likewise.
7012         * sunrpc/pm_getport.c: Likewise.
7013         * sunrpc/pmap_clnt.c: Likewise.
7014         * sunrpc/pmap_prot.c: Likewise.
7015         * sunrpc/pmap_prot2.c: Likewise.
7016         * sunrpc/pmap_rmt.c: Likewise.
7017         * sunrpc/publickey.c: Likewise.
7018         * sunrpc/rpc_cmsg.c: Likewise.
7019         * sunrpc/rpc_common.c: Likewise.
7020         * sunrpc/rpc_dtable.c: Likewise.
7021         * sunrpc/rpc_prot.c: Likewise.
7022         * sunrpc/rpc_thread.c: Likewise.
7023         * sunrpc/rtime.c: Likewise.
7024         * sunrpc/svc.c: Likewise.
7025         * sunrpc/svc_auth.c: Likewise.
7026         * sunrpc/svc_raw.c: Likewise.
7027         * sunrpc/svc_run.c: Likewise.
7028         * sunrpc/svc_tcp.c: Likewise.
7029         * sunrpc/svc_udp.c: Likewise.
7030         * sunrpc/svc_unix.c: Likewise.
7031         * sunrpc/svcauth_des.c: Likewise.
7032         * sunrpc/xcrypt.c: Likewise.
7033         * sunrpc/xdr.c: Likewise.
7034         * sunrpc/xdr_array.c: Likewise.
7035         * sunrpc/xdr_float.c: Likewise.
7036         * sunrpc/xdr_intXX_t.c: Likewise.
7037         * sunrpc/xdr_mem.c: Likewise.
7038         * sunrpc/xdr_rec.c: Likewise.
7039         * sunrpc/xdr_ref.c: Likewise.
7040         * sunrpc/xdr_sizeof.c: Likewise.
7041         * sunrpc/xdr_stdio.c: Likewise.
7042
7043 2012-05-10  Roland McGrath  <roland@hack.frob.com>
7044
7045         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
7046         change.  Update copyright years.
7047
7048 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
7049
7050         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
7051
7052 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
7053             Joseph Myers  <joseph@codesourcery.com>
7054             Paul Pluzhnikov  <ppluzhnikov@google.com>
7055
7056         [BZ #14012]
7057         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
7058         requiring rpcgen.
7059         [cross-compiling] (extra-libs): Likewise.
7060         [cross-compiling] (extra-libs-others): Likewise.
7061         [cross-compiling] (librpcsvc-routines): Likewise.
7062         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
7063         [cross-compiling] (omit-deps): Likewise.
7064         (sunrpc-CPPFLAGS): New variable.
7065         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
7066         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
7067         (cross-rpcgen-objs): New variable.
7068         (extra-objs): Append $(cross-rpcgen-objs).
7069         ($(cross-rpcgen-objs)): New rule.
7070         ($(objpfx)cross-rpcgen): Likewise.
7071         (rpcgen-cmd): Define to use $(built-program-file).  Expand
7072         comment.
7073         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
7074         ($(objpfx)x%.stmp): Likewise.
7075         * sunrpc/proto.h [IS_IN_build] (_): Define.
7076         [IS_IN_build] (_libc_intl_domainname): Likewise.
7077
7078 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
7079
7080         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
7081         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
7082         and R_X86_64_TPOFF64.
7083
7084 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
7085
7086         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
7087         sysdeps/unix/sysv/syscalls.list.
7088         (stime): Likewise.
7089         (utime): Likewise.
7090         * sysdeps/unix/sysv/syscalls.list: Remove file.
7091
7092 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
7093
7094         [BZ #3440]
7095         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
7096         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
7097         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
7098         (__LC_IDENTIFICATION): Make these macros useful in #if
7099         expressions, as required by C99.
7100
7101 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
7102
7103         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
7104         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
7105         after this.
7106
7107 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
7108
7109         * stdlib/longlong.h: Updated from GCC.
7110
7111 2012-05-09  Andreas Jaeger  <aj@suse.de>
7112
7113         * nscd/nscd.c (run_modes): Make named enum, reorder so that
7114         default is first entry.
7115         (run_mode): Set type.
7116         (main): Remove informal message about syslog.
7117         (options): Fix typo.
7118
7119         [BZ #14053]
7120         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
7121         to asm.
7122         (lrint): Likewise.
7123         (llrintf): Likewise.
7124         (llrint): Likewise.
7125         (rint): Likewise.
7126         (rintf): Likewise.
7127         (nearbyint): Likewise.
7128         (nearbyintf): Likewise.
7129
7130 2012-05-09  Andreas Jaeger  <aj@suse.de>
7131             Pedro Alves  <palves@redhat.com>
7132
7133         * nscd/nscd.c (run_mode): Use enum.
7134         (main): Cleanup coding style issue.
7135
7136 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
7137             Andreas Jaeger  <aj@suse.de>
7138
7139         * nscd/nscd.c (go_background): Replaced with...
7140         (run_mode): ... this.
7141         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
7142         (options): Add -F --foreground.
7143         (main): Implement it.
7144         (parse_opt): Parse it.
7145
7146 2012-05-09  Andreas Jaeger  <aj@suse.de>
7147
7148         [BZ #14083]
7149         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
7150         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
7151         -Wconversion warning.
7152         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
7153         Likewise.
7154
7155 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
7156
7157         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
7158         == 0.
7159         (LC_ALL): Use macro-int-constant.
7160         (LC_COLLATE): Likewise.
7161         (LC_CTYPE): Likewise.
7162         (LC_MESSAGES): Likewise.
7163         (LC_MONETARY): Likewise.
7164         (LC_NUMERIC): Likewise.
7165         (LC_TIME): Likewise.
7166         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
7167         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
7168         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7169         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
7170         Specify type.
7171         [C99-based standards] (float_t): Expect type.
7172         [C99-based standards] (double_t): Expect type.
7173         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
7174         type.
7175         [C99-based standards] (HUGE_VALL): Likewise.
7176         [C99-based standards] (INFINITY): Likewise.
7177         [C99-based standards] (NAN): Likewise.
7178         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
7179         [C99-based standards] (FP_NAN): Likewise.
7180         [C99-based standards] (FP_NORMAL): Likewise.
7181         [C99-based standards] (FP_SUBNORMAL): Likewise.
7182         [C99-based standards] (FP_ZERO): Likewise.
7183         [C99-based standards] (FP_FAST_FMA): Use
7184         optional-macro-int-constant.  Specify type.  Require == 1.
7185         [C99-based standards] (FP_FAST_FMAF): Likewise.
7186         [C99-based standards] (FP_FAST_FMAL): Likewise.
7187         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
7188         [C99-based standards] (FP_ILOGBNAN): Likewise.
7189         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
7190         Specify type.
7191         [C99-based standards] (MATH_ERREXCEPT): Likewise.
7192         [C99-based standards] (math_errhandling): Specify type.
7193         [ISO99 || ISO11] (signgam): Do not allow.
7194         [non-C99-based standards] (copysignf): Do not allow.
7195         [non-C99-based standards] (exp2f): Likewise.
7196         [non-C99-based standards] (log2f): Likewise.
7197         [non-C99-based standards] (modff): Allow.
7198         [non-C99-based standards] (erff): Do not allow.
7199         [non-C99-based standards] (erfcf): Likewise.
7200         [non-C99-based standards] (gammaf): Likewise.
7201         [non-C99-based standards] (hypotf): Likewise.
7202         [non-C99-based standards] (j0f): Likewise.
7203         [non-C99-based standards] (j1f): Likewise.
7204         [non-C99-based standards] (jnf): Likewise.
7205         [non-C99-based standards] (lgammaf): Likewise.
7206         [non-C99-based standards] (tgammaf): Likewise.
7207         [non-C99-based standards] (y0f): Likewise.
7208         [non-C99-based standards] (y1f): Likewise.
7209         [non-C99-based standards] (ynf): Likewise.
7210         [non-C99-based standards] (isnanf): Likewise.
7211         [non-C99-based standards] (acoshf): Likewise.
7212         [non-C99-based standards] (asinhf): Likewise.
7213         [non-C99-based standards] (atanhf): Likewise.
7214         [non-C99-based standards] (cbrtf): Likewise.
7215         [non-C99-based standards] (expm1f): Likewise.
7216         [non-C99-based standards] (ilogbf): Likewise.
7217         [non-C99-based standards] (log1pf): Likewise.
7218         [non-C99-based standards] (logbf): Likewise.
7219         [non-C99-based standards] (nextafterf): Likewise.
7220         [non-C99-based standards] (remainderf): Likewise.
7221         [non-C99-based standards] (rintf): Likewise.
7222         [non-C99-based standards] (scalbf): Likewise.
7223         [non-C99-based standards] (copysignl): Likewise.
7224         [non-C99-based standards] (exp2l): Likewise.
7225         [non-C99-based standards] (log2l): Likewise.
7226         [non-C99-based standards] (modfl): Allow.
7227         [non-C99-based standards] (erfl): Do not allow.
7228         [non-C99-based standards] (erfcl): Likewise.
7229         [non-C99-based standards] (gammal): Likewise.
7230         [non-C99-based standards] (hypotl): Likewise.
7231         [non-C99-based standards] (j0l): Likewise.
7232         [non-C99-based standards] (j1l): Likewise.
7233         [non-C99-based standards] (jnl): Likewise.
7234         [non-C99-based standards] (lgammal): Likewise.
7235         [non-C99-based standards] (tgammal): Likewise.
7236         [non-C99-based standards] (y0l): Likewise.
7237         [non-C99-based standards] (y1l): Likewise.
7238         [non-C99-based standards] (ynl): Likewise.
7239         [non-C99-based standards] (isnanl): Likewise.
7240         [non-C99-based standards] (acoshl): Likewise.
7241         [non-C99-based standards] (asinhl): Likewise.
7242         [non-C99-based standards] (atanhl): Likewise.
7243         [non-C99-based standards] (cbrtl): Likewise.
7244         [non-C99-based standards] (expm1l): Likewise.
7245         [non-C99-based standards] (ilogbl): Likewise.
7246         [non-C99-based standards] (log1pl): Likewise.
7247         [non-C99-based standards] (logbl): Likewise.
7248         [non-C99-based standards] (nextafterl): Likewise.
7249         [non-C99-based standards] (remainderl): Likewise.
7250         [non-C99-based standards] (rintl): Likewise.
7251         [non-C99-based standards] (scalbl): Likewise.
7252         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7253         [non-C99-based standards] (FP_*): Do not allow.
7254         [C99-based standards] (FP_*): Change to
7255         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
7256         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
7257         allow.
7258         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
7259         (SIG_ERR): Likewise.
7260         [X/Open-based standards] (SIG_HOLD): Likewise.
7261         (SIG_IGN): Likewise.
7262         (SIGABRT): Use macro-int-constant.  Specify type.  Require
7263         positive value.
7264         (SIGFPE): Likewise.
7265         (SIGILL): Likewise.
7266         (SIGINT): Likewise.
7267         (SIGSEGV): Likewise.
7268         (SIGTER): Likewise.
7269         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
7270         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
7271         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
7272         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
7273         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
7274         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
7275         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
7276         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
7277         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
7278         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
7279         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
7280         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
7281         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
7282         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
7283         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
7284         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
7285         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
7286         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
7287         [X/Open-based standards] (SIGTRAP): Likewise.
7288         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
7289         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
7290         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
7291         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
7292         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
7293         allow.
7294
7295 2012-05-08  Ian Wienand  <ianw@vmware.com>
7296
7297         [BZ #14080]
7298         * time/tzset.c (__tzset_parse_tz): Update default rules for
7299         daylight time changes in the Energy Policy Act of 2005.
7300
7301 2012-05-09  Andreas Jaeger  <aj@suse.de>
7302
7303         [BZ #13983]
7304         * elf/ldconfig.c (parse_conf): Change string to make clear that
7305         ldconfig only issued a warning if ld.so.conf does not exist.
7306
7307 2012-05-08  David S. Miller  <davem@davemloft.net>
7308
7309         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
7310         movxtod instead of popping the value on the stack.
7311
7312         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7313
7314 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
7315
7316         * config.h.in: Add HAVE_ARM_PCS_VFP.
7317
7318 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
7319
7320         [BZ #13979]
7321         * include/features.h: Warn if user requests __FORTIFY_SOURCE
7322         checking but the checks are disabled for any reason.
7323
7324 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
7325
7326         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
7327         and ELF64_R_TYPE with ELFW(R_TYPE).
7328
7329 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
7330
7331         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
7332         (ulimit): Likewise.
7333
7334         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
7335         (settimeofday): Likewise.
7336
7337 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
7338
7339         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
7340         a struct th_u2 inside the union, and move tu_block/tu_code into
7341         a new th_u3 union of tu_block/tu_code inside of that.  Move
7342         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
7343         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
7344         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
7345         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
7346         (th_stuff): Change to th_u1.tu_stuff.
7347         (th_data): Define.
7348         (th_msg): Change to th_u1.th_u2.tu_data.
7349
7350 2012-05-07  David S. Miller  <davem@davemloft.net>
7351
7352         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7353
7354         [BZ #14074]
7355         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
7356         (SETUP_PIC_REG): Use it.
7357         (SETUP_PIC_REG_LEAF): Use it.
7358
7359 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
7360
7361         [BZ #13885]
7362         [BZ #13923]
7363         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7364         USE_AS_EXPM1L.
7365         (EXPL_FINITE): Likewise.
7366         (FLDLOG): Likewise.
7367         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
7368         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
7369         e_expl.S.
7370         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7371         USE_AS_EXPM1L.
7372         (EXPL_FINITE): Likewise.
7373         (FLDLOG): Likewise.
7374         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
7375         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
7376         e_expl.S.
7377         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
7378         test of -max_value argument for long double.
7379         * sysdeps/i386/fpu/libm-test-ulps: Update.
7380         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7381
7382 2012-05-06  David S. Miller  <davem@davemloft.net>
7383
7384         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
7385         quad soft-float symbols whose references which are compiler
7386         generated.
7387         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
7388
7389 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
7390
7391         [BZ #13884]
7392         [BZ #13914]
7393         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7394         USE_AS_EXP10L.
7395         (EXPL_FINITE): Likewise.
7396         (FLDLOG): Likewise.
7397         (c0): Likewise.
7398         (c1): Likewise.
7399         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
7400         Adjust comments for base varying.
7401         (__expl_finite): Change alias to EXPL_FINITE.
7402         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
7403         e_expl.S.
7404         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
7405         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
7406         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
7407         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
7408         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7409         USE_AS_EXP10L.
7410         (EXPL_FINITE): Likewise.
7411         (FLDLOG): Likewise.
7412         (c0): Likewise.
7413         (c1): Likewise.
7414         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
7415         Adjust comments for base varying.
7416         (__expl_finite): Change alias to EXPL_FINITE.
7417         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
7418         tests for bugs.
7419         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7420
7421         [BZ #14064]
7422         * math/libm-test.inc (check_float_internal): Correct ulp
7423         calculation for subnormal expected results.
7424
7425 2012-05-06  Andreas Jaeger  <aj@suse.de>
7426
7427         * Makeconfig (+math-flags): New, set to -frounding-math.
7428         (+cflags): Add +math-flags so that all of glibc gets compiled with
7429         it.
7430
7431         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
7432
7433 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
7434
7435         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
7436         Disable one test.
7437
7438         [BZ #13787]
7439         [BZ #13922]
7440         [BZ #14036]
7441         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
7442         (__ieee754_expl): Allow for and saturate large arguments.
7443         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
7444         (u_threshold): Likewise.
7445         (__exp): Call __ieee754_exp before checking for overflow and
7446         underflow.
7447         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
7448         (u_threshold): Likewise.
7449         (__expf): Call __ieee754_expf before checking for overflow and
7450         underflow.
7451         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
7452         (u_threshold): Likewise.
7453         (__expl): Call __ieee754_expl before checking for overflow and
7454         underflow.
7455         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
7456         (__ieee754_expl): Allow for and saturate large arguments.
7457         * math/libm-test.inc (exp_test): Add another test.  Do not allow
7458         missing overflow exception on overflow.
7459         (expm1_test): Do not allow missing overflow exception on overflow.
7460
7461         * sysdeps/i386/fpu/e_expl.c: Move to ...
7462         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
7463         rather than using inline asm.
7464         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
7465         * sysdeps/x86_64/fpu/e_expl.S: Copy from
7466         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
7467
7468         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
7469         (nice): Likewise.
7470         (poll): Likewise.
7471         (signal): Likewise.
7472         (time): Likewise.
7473         (times): Likewise.
7474
7475 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
7476
7477         * sysdeps/unix/syscalls.list (adjtime): Add entry from
7478         sysdeps/unix/common/syscalls.list.
7479         (fchmod): Likewise.
7480         (fchown): Likewise.
7481         (ftruncate): Likewise.
7482         (getrusage): Likewise.
7483         (gettimeofday): Likewise.
7484         (setpgid): Likewise.
7485         (setregid): Likewise.
7486         (setreuid): Likewise.
7487         (sigaction): Likewise.
7488         (truncate): Likewise.
7489         (vhangup): Likewise.
7490         * sysdeps/unix/common/syscalls.list: Remove file.
7491         * sysdeps/unix/bsd/Implies: Don't include unix/common.
7492         * sysdeps/unix/sysv/linux/Implies: Likewise.
7493
7494 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
7495
7496         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
7497         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
7498         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
7499         Moved to ...
7500         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
7501         Here.
7502         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
7503         to ...
7504         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
7505         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
7506         to ...
7507         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
7508         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
7509         to ...
7510         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
7511         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
7512         to ...
7513         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
7514         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
7515         to ...
7516         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
7517         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
7518         to ...
7519         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
7520         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
7521         to ...
7522         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
7523         Here.
7524         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
7525         to ...
7526         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
7527         Here.
7528         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
7529         to ...
7530         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
7531         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
7532         Moved to ...
7533         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
7534         Here.
7535         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
7536         to ...
7537         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
7538
7539 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
7540
7541         * sysdeps/unix/common/bits/dirent.h: Remove file.
7542         * sysdeps/unix/common/bits/fcntl.h: Likewise.
7543
7544         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
7545         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
7546         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
7547         * sysdeps/unix/bsd/isatty.c: Likewise.
7548         * sysdeps/unix/bsd/tcdrain.c: Likewise.
7549         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
7550         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
7551
7552 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7553
7554         [BZ #13563]
7555         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
7556         long double comparison inaccuracies.
7557         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
7558         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7559
7560 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
7561
7562         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
7563         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
7564
7565 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
7566
7567         [BZ #14049]
7568         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
7569         nonzero digits before rounding a hex value.
7570         * stdlib/tst-strtod.c (tests): Add another test.
7571
7572 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7573
7574         * sysdeps/s390/fpu/libm-test-ulps: Update.
7575
7576 2012-05-03  Andreas Jaeger  <aj@suse.de>
7577
7578         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
7579         does not get optimized out.
7580         (malloc_opt_barrier): New.
7581
7582 2012-05-03  Andreas Jaeger  <aj@suse.de>
7583             Roland McGrath  <roland@hack.frob.com>
7584
7585         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
7586         intermediate file deletion.
7587         (generated): Add .symlist files.
7588
7589 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
7590
7591         [BZ #13775]
7592         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
7593         Redirect under this condition.
7594         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
7595         [__USE_GNU] (__dprintf_chk): Not under this condition.
7596         [__USE_GNU] (__vdprintf_chk): Likewise.
7597         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
7598         under this condition.
7599         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
7600         [__USE_XOPEN2K8] (dprintf): Define under this condition.
7601         [__USE_XOPEN2K8] (vdprintf): Likewise.
7602         [__USE_GNU] (__dprintf_chk): Not under this condition.
7603         [__USE_GNU] (__vdprintf_chk): Likewise.
7604         [__USE_GNU] (dprintf): Likewise.
7605         [__USE_GNU] (vdprintf): Likewise.
7606
7607 2012-05-03  Roland McGrath  <roland@hack.frob.com>
7608
7609         * elf/Makefile (common-generated): Set this instead of generated for
7610         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
7611         $(all-built-dso)-derived lists.
7612
7613 2012-05-03  Andreas Jaeger  <aj@suse.de>
7614
7615         * sysdeps/i386/fpu/libm-test-ulps: Update.
7616
7617         * FAQ: Removed.
7618         * FAQ.in: Likewise.
7619         * scripts/gen-FAQ.pl: Likewise.
7620         * manual/install.texi (Installation): Point to online location of
7621         FAQ.
7622         * Makefile (files-for-dist): Remove FAQ.
7623         (FAQ): Remove.
7624
7625 2012-05-02  Allan McRae  <allan@archlinux.org>
7626
7627         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
7628         (LDFLAGS-reldepmod5.so): Likewise.
7629         (LDFLAGS-reldep6mod1.so): Likewise.
7630         (LDFLAGS-reldep6mod4.so): Likewise.
7631         (LDFLAGS-reldep8mod3.so): Likewise.
7632         (LDFLAGS-unload4mod1.so): Likewise.
7633         (LDFLAGS-unload4mod2.so): Likewise.
7634         (LDFLAGS-tst-initorder): Likewise.
7635         (LDFLAGS-tst-initordera2.so): Likewise.
7636         (LDFLAGS-tst-initordera3.so): Likewise.
7637         (LDFLAGS-tst-initordera4.so): Likewise.
7638         (LDFLAGS-tst-initorderb2.so): Likewise.
7639         (LDFLAGS-noload): Likewise.
7640         (LDFLAGS-next): Likewise.
7641         (LDFLAGS-order2mod1.so): Likewise.
7642         (LDFLAGS-order2mod2.so): Likewise.
7643         (LDFLAGS-tst-initorder2): Likewise.
7644         (LDFLAGS-tst-initorder2a.so): Likewise.
7645         (LDFLAGS-tst-initorder2b.so): Likewise.
7646         (LDFLAGS-tst-initorder2c.so): Likewise.
7647         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
7648
7649 2012-05-02  David S. Miller  <davem@davemloft.net>
7650
7651         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7652
7653 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
7654
7655         [BZ #14055]
7656         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
7657
7658 2012-05-02  Andreas Jaeger  <aj@suse.de>
7659
7660         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
7661         since we manipulate rounding mode.
7662         (CPPFLAGS-test-idouble.c): Likewise.
7663         (CPPFLAGS-test-ifloat.c): Likewise.
7664         (CFLAGS-test-ldouble.c): Likewise.
7665         (CFLAGS-test-double.c): Likewise.
7666         (CFLAGS-test-float.c): Likewise.
7667         (CFLAGS-test-misc.c): Likewise.
7668         (CFLAGS-test-test-fenv.c): Likewise.
7669
7670 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7671
7672         [BZ #2550]
7673         [BZ #2570]
7674         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
7675         comparisons to determine direction to adjust input.
7676
7677 2012-05-01  Roland McGrath  <roland@hack.frob.com>
7678
7679         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
7680         output to the target.
7681
7682         * scripts/localplt.awk: New file.
7683         * elf/Makefile ($(objpfx)check-localplt): Target removed.
7684         (check-localplt-CFLAGS): Variable removed.
7685         ($(all-built-dso:=.jmprel)): New static pattern rule.
7686         (generated): Add those targets.
7687         (localplt-built-dso): New variable.
7688         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
7689
7690         * elf/check-localplt.c: File removed.
7691
7692         * scripts/check-execstack.awk: New file.
7693         * elf/Makefile ($(objpfx)check-execstack): Target removed.
7694         (check-execstack-CFLAGS): Variable removed.
7695         ($(objpfx)check-execstack.h): Target removed.
7696         ($(objpfx)execstack-default): New target.
7697         (generated): Add that instead of check-execstack.h.
7698         ($(all-built-dso:=.phdr)): New static pattern rule.
7699         (generated): Add those targets.
7700         * elf/check-execstack.c: File removed.
7701
7702         * scripts/check-textrel.awk: New file.
7703         * elf/Makefile ($(objpfx)check-textrel): Target removed.
7704         (check-textrel-CFLAGS): Variable removed.
7705         (all-built-dso): Use := to define.o
7706         ($(all-built-dso:=.dyn)): New static pattern rule.
7707         (generated): Add those targets.
7708         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
7709         * config.make.in (READELF): New substituted variable.
7710         * elf/check-textrel.c: File removed.
7711
7712 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
7713
7714         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
7715         allow.
7716         * conform/data/ctype.h-data [C99-based standards] (isblank):
7717         Expect function.
7718         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
7719         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
7720         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7721         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
7722         Specify type.  Require positive value.
7723         (EILSEQ): Likewise.
7724         (ERANGE): Likewise.
7725         [ISO || POSIX] (EILSEQ): Do not expect.
7726         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
7727         Specify type.  Require positive value.
7728         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
7729         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
7730         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
7731         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
7732         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
7733         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
7734         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
7735         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
7736         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
7737         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
7738         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
7739         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
7740         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
7741         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
7742         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
7743         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
7744         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
7745         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
7746         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
7747         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
7748         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
7749         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
7750         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
7751         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
7752         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
7753         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
7754         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
7755         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
7756         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
7757         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
7758         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
7759         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
7760         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
7761         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
7762         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
7763         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
7764         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
7765         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
7766         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
7767         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
7768         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
7769         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
7770         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
7771         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
7772         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
7773         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
7774         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
7775         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
7776         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
7777         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
7778         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
7779         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
7780         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
7781         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
7782         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
7783         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
7784         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
7785         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
7786         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
7787         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
7788         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
7789         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
7790         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
7791         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
7792         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
7793         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
7794         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
7795         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
7796         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
7797         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
7798         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
7799         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
7800         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
7801         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
7802         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
7803         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
7804         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
7805         Require >= 2.
7806         (FLT_ROUNDS): Expect as macro, not constant.
7807         (FLT_MANT_DIG): Use macro-int-constant.
7808         (DBL_MANT_DIG): Likewise.
7809         (LDBL_MANT_DIG): Likewise.
7810         (FLT_DIG): Likewise.
7811         (DBL_DIG): Likewise.
7812         (LDBL_DIG): Likewise.
7813         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
7814         (DBL_MIN_EXP): Likewise.
7815         (LDBL_MIN_EXP): Likewise.
7816         (FLT_MAX_EXP): Use macro-int-constant.
7817         (DBL_MAX_EXP): Likewise.
7818         (LDBL_MAX_EXP): Likewise.
7819         (FLT_MAX_10_EXP): Likewise.
7820         (DBL_MAX_10_EXP): Likewise.
7821         (LDBL_MAX_10_EXP): Likewise.
7822         (FLT_MAX): Use macro-constant.
7823         (DBL_MAX): Likewise.
7824         (LDBL_MAX): Likewise.
7825         (FLT_EPSILON): Use macro-constant.  Give upper bound.
7826         (DBL_EPSILON): Likewise.
7827         (LDBL_EPSILON): Likewise.
7828         (FLT_MIN): Likewise.
7829         (DBL_MIN): Likewise.
7830         (LDBL_MIN): Likewise.
7831         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
7832         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
7833         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
7834         [ISO11] (FLT_HAS_SUBNORM): Likewise.
7835         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
7836         [ISO11] (DBL_DECIMAL_DIG): Likewise.
7837         [ISO11] (FLT_DECIMAL_DIG): Likewise.
7838         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
7839         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
7840         [ISO11] (FLT_TRUE_MIN): Likewise.
7841         [ISO11] (LDBL_TRUE_MIN): Likewise.
7842         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7843         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
7844         (SCHAR_MIN): Use macro-int-constant.  Specify type.
7845         (SCHAR_MAX): Likewise.
7846         (UCHAR_MAX): Likewise.
7847         (CHAR_MIN): Likewise.
7848         (CHAR_MAX): Likewise.
7849         (MB_LEN_MAX): Use macro-int-constant.
7850         (SHRT_MIN): Use macro-int-constant.  Specify type.
7851         (SHRT_MAX): Likewise.
7852         (USHRT_MAX): Likewise.
7853         (INT_MAX): Likewise.
7854         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
7855         bound negative.
7856         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
7857         bound with "U".
7858         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
7859         bound with "L".
7860         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
7861         bound negative.  Suffix upper bound with "L".
7862         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
7863         bound with "UL".
7864         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
7865         Specify type.
7866         [C99-based standards] (LLONG_MAX): Likewise.
7867         [C99-based standards] (ULLONG_MAX): Likewise.
7868         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
7869         == 0.
7870         [ISO11] (max_align_t): Require type.
7871         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7872
7873         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
7874         from $CFLAGS, without defining away __attribute__ calls.
7875         (checknamespace): Use $CFLAGS_namespace.
7876
7877         * conform/conformtest.pl (@keywords): Only include C99 keywords
7878         for standards based on C99 or C11.
7879
7880         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
7881         Disable tests.
7882         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
7883         UNIX98]: Likewise.
7884
7885         * conform/conformtest.pl: Handle "macro-int-constant" and test for
7886         usability of symbols in #if.
7887
7888         * conform/conformtest.pl: If macro or constant types start
7889         "promoted:", expect the symbol to be of the following type
7890         promoted by the integer promotions.
7891
7892         * conform/conformtest.pl: Parse all "constant" and "macro" lines
7893         in one place.  Also handle "macro-constant".
7894
7895         * conform/conformtest.pl: Only accept expected macro values with
7896         "==".  Parse all "macro" lines in one place.
7897         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
7898
7899         * conform/conformtest.pl: Handle braced types on "constant" lines
7900         instead of handling "typed-constant".
7901         * conform/data/signal.h-data: Use "constant" instead of
7902         "typed-constant".
7903
7904         * conform/conformtest.pl: Handle "optional-" at start of lines in
7905         one place rather than duplicating several cases.  Handle each
7906         format of "macro" line with initial "optional-".
7907
7908         * conform/conformtest.pl: Only accept expected constant or
7909         optional-constant values with "==".  Parse all "constant" lines in
7910         one place.  Parse all "optional-constant" lines in one place.
7911         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
7912         * conform/data/fmtmsg.h-data: Likewise.
7913         * conform/data/netinet/in.h-data: Likewise.
7914         * conform/data/tar.h-data: Likewise.
7915         * conform/data/limits.h-data: Use "==" form on "constant" and
7916         "optional-constant" lines.
7917
7918         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
7919         Use -std=c99 for XOPEN2K.
7920         (@knownproblems): Remove.
7921         (newtoken): Don't check %isknown.
7922
7923         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
7924         Do not expect macro.
7925         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
7926         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
7927         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
7928         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
7929         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
7930         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
7931         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
7932         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
7933         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
7934         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
7935         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
7936         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
7937         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
7938         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
7939         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
7940         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
7941         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
7942         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
7943         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
7944         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
7945         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
7946         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
7947         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
7948         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
7949         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
7950         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
7951         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
7952         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
7953         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
7954         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
7955         [XPG3] (acosh): Likewise.
7956         [XPG3] (asinh): Likewise.
7957         [XPG3] (atanh): Likewise.
7958         [XPG3] (cbrt): Likewise.
7959         [XPG3] (expm1): Likewise.
7960         [XPG3] (ilogb): Likewise.
7961         [XPG3] (log1p): Likewise.
7962         [XPG3] (logb): Likewise.
7963         [XPG3] (nextafter): Likewise.
7964         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
7965         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
7966         [XPG3] (remainder): Likewise.
7967         [XPG3] (rint): Likewise.
7968         [XPG3 || XPG4 || UNIX98] (round): Likewise.
7969         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
7970         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
7971         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
7972         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
7973         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
7974         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
7975         [UNIX98 || XOPEN2K] (scalb): Expect.
7976         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
7977         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
7978         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
7979         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
7980         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
7981         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
7982         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
7983         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
7984         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
7985         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
7986         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
7987         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
7988         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
7989         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
7990         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
7991         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
7992         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
7993         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
7994         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
7995         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
7996         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
7997         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
7998         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
7999         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
8000         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
8001         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
8002         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
8003         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
8004         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
8005         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
8006         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
8007         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
8008         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
8009         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
8010         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
8011         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
8012         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
8013         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
8014         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
8015         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
8016         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
8017         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
8018         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
8019         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
8020         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
8021         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
8022         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
8023         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
8024         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
8025         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
8026         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
8027         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
8028         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
8029         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
8030         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
8031         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
8032         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
8033         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
8034         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
8035         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
8036         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
8037         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
8038         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
8039         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
8040         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
8041         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
8042         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
8043         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
8044         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
8045         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
8046         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
8047         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
8048         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
8049         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
8050         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
8051         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
8052         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
8053         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
8054         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
8055         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
8056         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
8057         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
8058         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
8059         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
8060         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
8061         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
8062         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
8063         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
8064         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
8065         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
8066         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
8067         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
8068         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
8069         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
8070         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
8071         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
8072         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
8073         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
8074         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
8075         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
8076         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
8077         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
8078         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
8079         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
8080         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
8081         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
8082         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
8083         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
8084         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
8085         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
8086         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
8087         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
8088         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
8089         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
8090         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
8091         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
8092         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
8093         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
8094         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
8095         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
8096         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
8097         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
8098         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
8099         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
8100         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
8101         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
8102         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
8103         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
8104         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
8105         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
8106         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
8107         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
8108         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
8109         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
8110         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
8111         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
8112         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
8113
8114         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
8115         _XOPEN_SOURCE_EXTENDED for XPG4.
8116
8117         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
8118
8119         * Makeconfig (localtime): Remove variable.
8120         (inst_localtime-file): Likewise.
8121
8122 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
8123
8124         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
8125         Update.
8126         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
8127         Update.
8128         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
8129         Update.
8130         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
8131         Update.
8132         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
8133         Update.
8134         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
8135         Update.
8136         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
8137         Update.
8138         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
8139         Update.
8140         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
8141         Update.
8142
8143 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
8144
8145         [BZ #2550]
8146         [BZ #2570]
8147         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
8148         comparisons to determine direction to adjust input.
8149         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
8150         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
8151         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
8152         Likewise.
8153         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
8154         Likewise.
8155         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
8156         Likewise.
8157         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
8158         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
8159         Likewise.
8160         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
8161         Likewise.
8162         * math/libm-test.inc (nexttoward_test): Add more tests.
8163
8164 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
8165
8166         [BZ #14040]
8167         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
8168         in version GLIBC_2.1, not GLIBC_2.0.
8169         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
8170         Likewise.
8171
8172 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
8173
8174         [BZ #13942]
8175         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
8176         (1 - x) * (1 + x).
8177         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
8178         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
8179         * math/libm-test.inc (acos_test): Add more tests.
8180         (asin_test): Likewise.
8181         * sysdeps/i386/fpu/libm-test-ulps: Update.
8182         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8183
8184         [BZ #14034]
8185         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
8186         of square root.
8187         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
8188         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
8189         * math/libm-test.inc (acos_test_tonearest): New function.
8190         (acos_test_towardzero): Likewise.
8191         (acos_test_downward): Likewise.
8192         (acos_test_upward): Likewise.
8193         (asin_test_tonearest): Likewise.
8194         (asin_test_towardzero): Likewise.
8195         (asin_test_downward): Likewise.
8196         (asin_test_upward): Likewise.
8197         (main): Call the new functions.
8198         * sysdeps/i386/fpu/libm-test-ulps: Update.
8199         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8200
8201         [BZ #13884]
8202         [BZ #13924]
8203         * math/e_exp10.c: Include <float.h>.
8204         (__ieee754_exp10): Handle underflow here rather than multiplying
8205         large negative argument by M_LN10.
8206         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
8207         of __ieee754_expf.
8208         * math/e_exp10l.c: Include <float.h>.
8209         (__ieee754_exp10l): Handle underflow here rather than multiplying
8210         large negative argument by M_LN10l.
8211         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
8212         spurious overflow exception on underflow.
8213
8214 2012-04-29  Marek Polacek  <polacek@redhat.com>
8215
8216         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
8217         (__fortify_function): New macro.
8218         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
8219         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
8220         __extern_always_inline.
8221         * libio/bits/stdio2.h: Likewise.
8222         * libio/bits/stdio.h: Likewise.
8223         * string/string.h: Likewise.
8224         * string/bits/string3.h: Likewise.
8225         * include/stdio.h: Likewise.
8226         * stdlib/bits/stdlib.h: Likewise.
8227         * stdlib/stdlib.h: Likewise.
8228         * rt/bits/mqueue2.h: Likewise.
8229         * rt/mqueue.h: Likewise.
8230         * posix/bits/unistd.h: Likewise.
8231         * posix/unistd.h: Likewise.
8232         * io/bits/poll2.h: Likewise.
8233         * io/bits/fcntl2.h: Likewise.
8234         * io/fcntl.h: Likewise.
8235         * io/sys/poll.h: Likewise.
8236         * misc/bits/syslog.h: Likewise.
8237         * misc/bits/syslog-ldbl.h: Likewise.
8238         * misc/sys/syslog.h: Likewise.
8239         * socket/bits/socket2.h: Likewise.
8240         * socket/sys/socket.h: Likewise.
8241         * debug/tst-chk1.c: Likewise.
8242         * wcsmbs/bits/wchar2.h: Likewise.
8243         * wcsmbs/bits/wchar-ldbl.h: Likewise.
8244         * wcsmbs/wchar.h: Likewise.
8245
8246 2012-04-29  Andreas Jaeger  <aj@suse.de>
8247
8248         * Makerules (tests): Remove enable-check-abi protection.
8249         (check-abi-warn): Remove.
8250         (check-abi-%): Remove check-abi-warn usage.
8251
8252         * configure.in: Remove check-abi configure option.
8253         * configure: Regenerated.
8254         * config.make.in (enable-check-abi): Remove.
8255
8256 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
8257
8258         [BZ #14033]
8259         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
8260         double functions to double *_finite functions.
8261
8262         [BZ #13941]
8263         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
8264         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
8265         LDBL_MIN_EXP.
8266         * stdio-common/Makefile (tests): Add tst-sprintf3.
8267         * stdio-common/tst-sprintf3.c: New file.
8268
8269         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
8270         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
8271
8272 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
8273
8274         * conform/conformtest.pl: Remove duplicate typed-constant
8275         handling.
8276
8277 2012-04-28  David S. Miller  <davem@davemloft.net>
8278
8279         * Makerules (%.abilist): Add vpath on sysdep_dirs.
8280         (check-abi-%): Remove AWK script prerequisite and explicit
8281         abilist directory.
8282         (check-abi): Rewrite to just diff the symlist with the abilist.
8283         (config-tls, config-abi-config): Delete, no longer used.
8284         (update-abi-%): Remove AWK script and explicit abilist directory.
8285         (update-abi): Rewrite to simply compare and conditionally copy the
8286         symlist and the sysdep abilist file.  Remove update-abi-config
8287         checks.
8288         * abilist/ld.abilist: Remove.
8289         * abilist/libBrokenLocale.abilist: Remove.
8290         * abilist/libanl.abilist: Remove.
8291         * abilist/libcrypt.abilist: Remove.
8292         * abilist/libdl.abilist: Remove.
8293         * abilist/librt.abilist: Remove.
8294         * abilist/libthread_db.abilist: Remove.
8295         * abilist/libutil.abilist: Remove.
8296         * scripts/extract-abilist.awk: Remove.
8297         * scripts/merge-abilist.awk: Remove.
8298         * sysdeps/generic/libcidn.abilist: New file.
8299         * sysdeps/generic/libnss_compat.abilist: New file.
8300         * sysdeps/generic/libnss_db.abilist: New file.
8301         * sysdeps/generic/libnss_dns.abilist: New file.
8302         * sysdeps/generic/libnss_files.abilist: New file.
8303         * sysdeps/generic/libnss_hesiod.abilist: New file.
8304         * sysdeps/generic/libnss_nis.abilist: New file.
8305         * sysdeps/generic/libnss_nisplus.abilist: New file.
8306         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
8307         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
8308         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
8309         file.
8310         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
8311         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
8312         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
8313         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
8314         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
8315         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
8316         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
8317         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
8318         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
8319         file.
8320         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
8321         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
8322         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
8323         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
8324         file.
8325         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
8326         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
8327         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
8328         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
8329         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
8330         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
8331         file.
8332         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
8333         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
8334         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
8335         file.
8336         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
8337         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
8338         New file.
8339         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
8340         New file.
8341         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
8342         New file.
8343         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
8344         New file.
8345         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
8346         New file.
8347         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
8348         New file.
8349         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
8350         New file.
8351         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
8352         New file.
8353         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
8354         New file.
8355         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
8356         New file.
8357         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
8358         New file.
8359         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
8360         New file.
8361         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
8362         New file.
8363         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
8364         file.
8365         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
8366         New file.
8367         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
8368         New file.
8369         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
8370         file.
8371         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
8372         New file.
8373         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
8374         New file.
8375         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
8376         file.
8377         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
8378         New file.
8379         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
8380         New file.
8381         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
8382         New file.
8383         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
8384         New file.
8385         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
8386         New file.
8387         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
8388         New file.
8389         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
8390         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
8391         file.
8392         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
8393         New file.
8394         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
8395         file.
8396         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
8397         file.
8398         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
8399         file.
8400         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
8401         file.
8402         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
8403         file.
8404         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
8405         New file.
8406         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
8407         file.
8408         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
8409         file.
8410         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
8411         New file.
8412         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
8413         file.
8414         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
8415         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
8416         file.
8417         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
8418         New file.
8419         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
8420         file.
8421         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
8422         file.
8423         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
8424         file.
8425         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
8426         file.
8427         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
8428         file.
8429         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
8430         New file.
8431         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
8432         file.
8433         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
8434         file.
8435         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
8436         New file.
8437         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
8438         file.
8439         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
8440         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
8441         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
8442         file.
8443         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
8444         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
8445         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
8446         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
8447         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
8448         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
8449         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
8450         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
8451         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
8452         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
8453         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
8454         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
8455         file.
8456         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
8457         New file.
8458         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
8459         file.
8460         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
8461         file.
8462         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
8463         file.
8464         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
8465         file.
8466         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
8467         file.
8468         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
8469         New file.
8470         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
8471         New file.
8472         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
8473         file.
8474         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
8475         New file.
8476         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
8477         file.
8478         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
8479         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
8480         file.
8481         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
8482         New file.
8483         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
8484         file.
8485         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
8486         file.
8487         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
8488         file.
8489         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
8490         file.
8491         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
8492         file.
8493         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
8494         New file.
8495         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
8496         New file.
8497         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
8498         file.
8499         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
8500         New file.
8501         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
8502         file.
8503
8504 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
8505
8506         * conform/conformtest.pl: Fix typo in handling typed-constant from
8507         allow-header.
8508
8509 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
8510
8511         * README: Cut down references to pre-2.6 Linux kernels and
8512         Linuxthreads.  Update lists of configurations in libc and ports
8513         and sort alphabetically.  Say "or newer" with Linux kernel version
8514         requirements.
8515
8516         * config.h.in [IS_IN_build]: Allow compiling without optimization.
8517
8518 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
8519
8520         [BZ #887]
8521         * math/libm-test.inc (logb_test_downward): New test to expose
8522         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
8523         rounding mode.
8524
8525 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
8526
8527         [BZ #14027]
8528         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
8529         to be done.
8530         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
8531         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
8532
8533 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
8534
8535         * sysdeps/unix/i386/brk.S: Remove file.
8536         * sysdeps/unix/i386/dl-brk.S: Likewise.
8537         * sysdeps/unix/i386/pipe.S: Likewise.
8538         * sysdeps/unix/i386/sigreturn.S: Likewise.
8539         * sysdeps/unix/i386/syscall.S: Likewise.
8540         * sysdeps/unix/i386/vfork.S: Likewise.
8541         * sysdeps/unix/i386/wait.S: Likewise.
8542
8543         * sysdeps/unix/common/tcsendbrk.c: Move to ...
8544         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
8545
8546         * configure.in (arm*-none*): Do not allow without
8547         --enable-hacker-mode.
8548         (netbsd*): Remove case setting base_os.
8549         (386bsd*): Likewise.
8550         (freebsd*): Likewise.
8551         (bsdi*): Likewise.
8552         (osf*): Likewise.
8553         (sunos*): Likewise.
8554         (ultrix*): Likewise.
8555         (newsos*): Likewise.
8556         (dynix*): Likewise.
8557         (*bsd*): Likewise.
8558         (sysv*): Likewise.
8559         (isc*): Likewise.
8560         (esix*): Likewise.
8561         (sco*): Likewise.
8562         (minix*): Likewise.
8563         (irix4*): Likewise.
8564         (irix6*): Likewise.
8565         (solaris[2-9]*): Likewise.
8566         (none): Likewise.
8567         * configure: Regenerated.
8568
8569 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8570
8571         [BZ #11521]
8572         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
8573         overflow or cancellation in calculating denominator.
8574         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
8575         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
8576         down expression to avoid unexpected rounding in newer GCCs.
8577         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
8578
8579 2012-04-26  David S. Miller  <davem@davemloft.net>
8580
8581         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
8582         long-double compat symbols.
8583         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
8584         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
8585         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
8586         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
8587         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
8588         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
8589         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
8590         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
8591         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
8592         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
8593         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
8594         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
8595         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
8596
8597 2012-04-25  David S. Miller  <davem@davemloft.net>
8598
8599         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
8600         HWCAP_* values only after the memory barriers have been defined.
8601         (atomic_full_barrier): Define.
8602         (atomic_read_barrier): Define.
8603         (atomic_write_barrier): Define.
8604
8605 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
8606
8607         * shlib-versions: Add libgcc_s version information.
8608         * sysdeps/generic/libgcc_s.h: Remove.
8609         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
8610         libgcc_s.h.
8611         * sysdeps/gnu/unwind-resume.c: Likewise.
8612         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
8613
8614 2012-04-25  David S. Miller  <davem@davemloft.net>
8615
8616         * sysdeps/unix/sparc/brk.S: Delete.
8617         * sysdeps/unix/sparc/dl-brk.S: Delete.
8618         * sysdeps/unix/sparc/pipe.S: Delete.
8619         * sysdeps/unix/sparc/sysdep.S: Delete.
8620         * sysdeps/unix/sparc/sysdep.h: Delete.
8621         * sysdeps/unix/sparc/vfork.S: Delete.
8622         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
8623         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
8624         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
8625         ret_ERRVAL, r0, r1, MOVE): Define.
8626         (JUMPTARGET): Remove.
8627         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
8628         sysdeps/unix/sparc/sysdep.h
8629         (ENTRY, END): Remove.
8630         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
8631
8632 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
8633
8634         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
8635         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
8636         -DIS_IN_build.
8637
8638         * timezone/README: Update upstream location and email address for
8639         tzcode and tzdata.
8640         * timezone/zdump.c: Update from tzcode 2012b.
8641         * timezone/zic.c: Likewise.
8642
8643         * configure.in (libc_cv_as_needed): Remove test.
8644         * configure: Regenerated.
8645         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
8646         conditional definition.
8647         [$(have-as-needed) != yes] (no-as-needed): Likewise.
8648         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
8649         * config.make.in (have-as-needed): Remove variable.
8650
8651 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
8652             Paul Pluzhnikov  <ppluzhnikov@google.com>
8653
8654         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
8655         strings correctly.
8656
8657 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
8658
8659         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
8660         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
8661         * sysdeps/sh/strlen.S: Likewise.
8662
8663 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
8664
8665         * sysdeps/unix/fork.S: Remove file.
8666         * sysdeps/unix/i386/fork.S: Likewise.
8667         * sysdeps/unix/sparc/fork.S: Likewise.
8668
8669         * sysdeps/unix/system.c: Remove file.
8670         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
8671
8672         * sysdeps/unix/getegid.S: Remove file.
8673         * sysdeps/unix/geteuid.S: Likewise.
8674
8675 2012-04-24  Roland McGrath  <roland@hack.frob.com>
8676
8677         * scripts/check-localplt.awk: New file.
8678         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
8679         of diff.
8680         * scripts/data/localplt-generic.data: Add a comment.
8681
8682         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
8683         NODE when __dir_mkfile failed.
8684         * sysdeps/mach/hurd/symlinkat.c: Likewise.
8685         Reported by Ludovic Courtès <ludo@gnu.org>.
8686
8687 2012-04-24  Andreas Jaeger  <aj@suse.de>
8688
8689         * Makerules (common-clean): Also remove gen-as-const-headers
8690         files.
8691
8692 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
8693
8694         * Makerules (native-compile): Do not change working directory for
8695         build.  Use $(OUTPUT_OPTION) in command.
8696         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
8697
8698 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8699
8700         [BZ #13886]
8701         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
8702         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
8703         * math/libm-test.inc (floor_test): Add more tests.
8704         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
8705
8706 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
8707
8708         * sysdeps/unix/getdents.c: Remove file.
8709         * sysdeps/unix/sysv/getdents.c: Likewise.
8710         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
8711
8712         * sysdeps/unix/syscalls.list (madvise): Add syscall from
8713         sysdeps/unix/mman/syscalls.list.
8714         (mmap): Likewise.
8715         (mprotect): Likewise.
8716         (msync): Likewise.
8717         (munmap): Likewise.
8718         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
8719         * sysdeps/unix/mman/syscalls.list: Remove.
8720         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
8721
8722         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
8723         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
8724         * configure: Regenerated.
8725         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
8726         $(libgcc_s_suffix).
8727         * config.make.in (libgcc_s_suffix): Remove variable.
8728
8729 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
8730
8731         * sysdeps/unix/sysv/gethostname.c: Move to ...
8732         * sysdeps/posix/gethostname.c: ... here.
8733
8734         * sysdeps/unix/execve.S: Remove file.
8735
8736         * sysdeps/unix/_exit.S: Remove file.
8737
8738 2012-04-23  Andreas Jaeger  <aj@suse.de>
8739
8740         [BZ #13739]
8741         * manual/Makefile: Remove make dist support, there's no
8742         need for a stand-alone documentation tar ball.
8743         (TEXI2DVI): Define always, it's not in Makeconfig.
8744         (dist): Removed.
8745         (tar-it): Removed.
8746         (edition): Removed.
8747         (glibc-doc-$(edition).tar): Removed
8748         (%.Z): Removed.
8749         (%.gz): Removed.
8750         (%.uu): Removed.
8751         (ETAGS): Remove, it's in Makeconfig.
8752         (move-if-change): Remove, it's in Makeconfig.
8753
8754 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
8755
8756         [BZ #13970]
8757         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
8758         (strtod, strtof, strtold, strtol, strtoul, strtoq)
8759         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
8760         (strtod_l, strtof_l, strtold_l): Remove __wur.
8761         It is not necessarily an error to ignore strtol's return value.
8762         One can reliably look at the stored endptr to decide whether
8763         the number had valid syntax.
8764
8765 2012-04-21  Andreas Jaeger  <aj@suse.de>
8766
8767         [BZ #13739]
8768         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
8769
8770 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
8771
8772         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
8773         * sysdeps/unix/sysv/Versions: Remove file.
8774
8775 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
8776
8777         [BZ #13927]
8778         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8779
8780 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
8781
8782         [BZ #7064]
8783         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
8784         version from __vm86.
8785
8786 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
8787
8788         * sysdeps/unix/common/lxstat.c: Remove file.
8789         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
8790
8791         * sysdeps/unix/sysv/Makefile: Remove file.
8792
8793         * sysdeps/unix/sysv/direct.h: Remove file.
8794
8795         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
8796         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
8797         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
8798         * sysdeps/unix/sysv/bits/signum.h: Likewise.
8799         * sysdeps/unix/sysv/bits/stat.h: Likewise.
8800         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
8801         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
8802
8803         * sysdeps/unix/sysv/setrlimit.c: Remove file.
8804
8805         * sysdeps/unix/xmknod.c: Remove file.
8806         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
8807
8808         * sysdeps/unix/sysv/settimeofday.c: Remove file.
8809
8810         * sysdeps/unix/sysv/i386/time.S: Remove file.
8811
8812         * sysdeps/unix/fxstat.c: Remove file.
8813         * sysdeps/unix/xstat.c: Likewise.
8814         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
8815
8816         * sysdeps/unix/sysv/sigaction.c: Remove file.
8817
8818         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
8819         (sysdep_headers): Remove variable.
8820         [termio.h not in sysdep_headers] (generated): Likewise.
8821         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
8822         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
8823         * sysdeps/unix/sysv/tcdrain.c: Likewise.
8824         * sysdeps/unix/sysv/tcflow.c: Likewise.
8825         * sysdeps/unix/sysv/tcflush.c: Likewise.
8826         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
8827         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
8828         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
8829         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
8830         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
8831
8832         * sysdeps/unix/siglist.c: Remove file.
8833
8834         * sysdeps/unix/getppid.S: Remove file.
8835
8836         * sysdeps/unix/mkdir.c: Remove file.
8837         * sysdeps/unix/rmdir.c: Likewise.
8838
8839 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
8840
8841         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
8842         ERR_MAX value.
8843         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
8844         errlist-compat value.
8845
8846 2012-04-18  David S. Miller  <davem@davemloft.net>
8847
8848         * sysdeps/generic/memcopy.h (reg_char): Delete.
8849         * debug/strcat_chk.c: Use char, not reg_char.
8850         * debug/strcpy_chk.c: Likewise.
8851         * debug/strncat_chk.c: Likewise.
8852         * debug/strncpy_chk.c: Likewise.
8853         * string/memchr.c: Likewise.
8854         * string/memrchr.c: Likewise.
8855         * string/rawmemchr.c: Likewise.
8856         * string/strcat.c: Likewise.
8857         * string/strchr.c: Likewise.
8858         * string/strchrnul.c: Likewise.
8859         * string/strcmp.c: Likewise.
8860         * string/strcpy.c: Likewise.
8861         * string/strncat.c: Likewise.
8862         * string/strncmp.c: Likewise.
8863         * string/strncpy.c: Likewise.
8864
8865 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
8866
8867         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
8868         __builtin_memcopy is called when src and dest ranges are known to not
8869         overlap.
8870
8871 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
8872
8873         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
8874         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
8875         fwd_align_merge macro call.
8876         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
8877         bwd_align_merge macro call.
8878         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
8879
8880 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
8881
8882         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
8883         bwd_align_merge macros.
8884         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
8885         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
8886         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
8887
8888 2012-04-18  David S. Miller  <davem@davemloft.net>
8889
8890         * sysdeps/sparc/sparc64/memcopy.h: Delete.
8891
8892 2012-04-18  Andreas Jaeger  <aj@suse.de>
8893
8894         [BZ# 6794]
8895         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
8896         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
8897         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
8898
8899         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
8900         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
8901         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
8902
8903         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
8904         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
8905         Adjust for changed ldbl-128 files.
8906
8907         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
8908         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
8909         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
8910
8911 2012-04-17  David S. Miller  <davem@davemloft.net>
8912
8913         * sysdeps/sparc/sparc32/memcopy.h: Delete.
8914
8915 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
8916
8917         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
8918         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
8919         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
8920         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
8921         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
8922         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
8923
8924 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8925
8926         [BZ #6794]
8927         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
8928         * math/libm-test.inc: Add ilogb errno and exception tests.
8929         * math/w_ilogb.c: New file: ilogb wrapper.
8930         * math/w_ilogbf.c: New file: ilogbf wrapper.
8931         * math/w_ilogbl.c: New file: ilogbl wrapper.
8932         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
8933         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
8934         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
8935         exception being thrown with 0.0 as argument.
8936         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
8937         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
8938         exception being thrown with 0.0 as argument.
8939         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
8940         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
8941         exception being thrown with 0.0 as argument.
8942         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
8943         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
8944         exception being thrown with 0.0 as argument.
8945         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
8946         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
8947         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
8948         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
8949         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
8950         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
8951         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
8952         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
8953         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
8954
8955 2012-04-17  Petr Baudis  <pasky@ucw.cz>
8956
8957         * include/sys/uio.h: Change __vector to __iovec to avoid clash
8958         with altivec.
8959
8960 2012-04-16  Marek Polacek  <polacek@redhat.com>
8961
8962         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
8963
8964 2012-04-16  Marek Polacek  <polacek@redhat.com>
8965
8966         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
8967         operands of fdivp instruction.
8968
8969 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
8970
8971         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
8972         * elf/tst-auditmod3b.c: Likewise.
8973         * elf/tst-auditmod4b.c: Likewise.
8974         * elf/tst-auditmod5b.c: Likewise.
8975         * elf/tst-auditmod6b.c: Likewise.
8976         * elf/tst-auditmod6c.c: Likewise.
8977         * elf/tst-auditmod7b.c: Likewise.
8978         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
8979         * sysdeps/x86_64/preconfigure.in: Likewise.
8980         * sysdeps/x86_64/preconfigure: Regenerated.
8981
8982 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
8983
8984         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
8985         __ILP32__.
8986
8987 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
8988
8989         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
8990         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
8991
8992 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
8993
8994         [BZ #13973]
8995         * locale/iso-639.def: Fix gl language name. Spotted by
8996         Yaron Shahrabani.
8997
8998 2012-04-12  Roland McGrath  <roland@hack.frob.com>
8999
9000         [BZ #2074]
9001         * libio/libio.h (__io_write_fn): Update comment.
9002
9003 2012-04-12  Petr Baudis  <pasky@ucw.cz>
9004
9005         [BZ #2074]
9006         * stdio.texi (Hook Functions): The user provided writer function
9007         is not allowed to return -1.
9008
9009 2012-04-11  David S. Miller  <davem@davemloft.net>
9010
9011         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9012
9013 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
9014
9015         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
9016         Add a leading slash to rtkaio.
9017
9018 2012-04-11  Jim Meyering  <meyering@redhat.com>
9019
9020         [BZ #11959]
9021         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
9022         It is not necessarily an error to ignore fwrite's return
9023         value.  One can reliably use ferror to test for errors after
9024         the fact.
9025
9026 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
9027
9028         * bits/types.h (__snseconds_t): New type.
9029         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
9030
9031         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
9032         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
9033         (__SNSECONDS_T_TYPE): Likewise.
9034         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
9035         (__SNSECONDS_T_TYPE): Likewise.
9036         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
9037         (__SNSECONDS_T_TYPE): Likewise.
9038
9039 2012-04-10  Andreas Jaeger  <aj@suse.de>
9040
9041         [BZ #2636]
9042         * manual/time.texi (Processor Time): Return type of times is
9043         elapsed real time since an arbitrary point in the past.
9044         (CPU Time): Move CLK_TCK from here...
9045         (Processor Time): ...to here.  Correct description.
9046         * manual/conf.texi (Constants for Sysconf): Correct description of
9047         _SC_CLK_TCK.
9048
9049 2012-04-10  David S. Miller  <davem@davemloft.net>
9050
9051         [BZ #13967]
9052         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
9053         where the is a gap between DT_REL(A) and DT_JMPREL.
9054
9055 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
9056
9057         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
9058         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
9059         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
9060
9061 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
9062
9063         * elf/dl-support.c (_dl_inhibit_cache): New variable.
9064         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
9065         (dl_main): Handle --inhibit-cache.
9066         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
9067         _dl_inhibit_cache.
9068         * elf/dl-load.c (_dl_map_object): Use it.
9069         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
9070
9071 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
9072
9073         [BZ #13872]
9074         * sysdeps/i386/fpu/e_powl.S (p78): New object.
9075         (__ieee754_powl): Saturate large exponents rather than testing for
9076         overflow of y*log2(x).
9077         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
9078         * math/libm-test.inc (pow_test): Do not permit spurious overflow
9079         exceptions.
9080
9081         [BZ #11521]
9082         * math/s_ctan.c: Include <float.h>.
9083         (__ctan): Avoid internal overflow or cancellation in calculating
9084         denominator.
9085         * math/s_ctanf.c: Likewise.
9086         * math/s_ctanl.c: Likewise.
9087         * math/s_ctanh.c: Likewise.
9088         * math/s_ctanhf.c: Likewise.
9089         * math/s_ctanhl.c: Likewise.
9090         * math/libm-test.inc (ctan_test): Add more tests.
9091         (ctanh_test): Likewise.
9092         * sysdeps/i386/fpu/libm-test-ulps: Update.
9093         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9094
9095 2012-04-09  Andreas Jaeger  <aj@suse.de>
9096
9097         [BZ #6894]
9098         * manual/filesys.texi (Directory Entries): Mention that d_namlen
9099         is an optional BSD extension.
9100
9101         [BZ #10254]
9102         * manual/stdio.texi (Opening Streams): Document additional fopen
9103         parameters.
9104
9105 2012-04-09  Roland McGrath  <roland@hack.frob.com>
9106
9107         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
9108         %eax without telling the compiler.
9109
9110 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
9111
9112         [BZ # 13963]
9113         * manual/install.texi: Use sourceware.org.
9114
9115 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
9116
9117         [BZ #13873]
9118         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
9119         (__ieee754_pow): Generate overflow and underflow using huge*huge
9120         and tiny*tiny rather than just returning constant infinity or zero
9121         for large exponents.
9122         * math/libm-test.inc (pow_test): Require overflow exceptions for
9123         applicable cases of large exponents.
9124
9125         [BZ #706]
9126         * sysdeps/i386/fpu/e_pow.S (p10): New object.
9127         (__ieee754_pow): Use iterative multiplication algorithm only for
9128         integer exponents with absolute value below 1024.  Check for odd
9129         integer exponents when using algorithm for real exponents.
9130         * math/libm-test.inc (pow_test): Add more tests.
9131         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9132
9133 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
9134
9135         [BZ #13705]
9136         * math/libm-test.inc (exp_test): Do not allow overflow exception
9137         on underflow test.
9138
9139 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
9140
9141         [BZ #13705]
9142         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
9143         instead of __kernel_standard_f.
9144
9145 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
9146
9147         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
9148         * sysdeps/x86_64/memset_chk.S: Likewise.
9149
9150 2012-04-08  Andreas Jaeger  <aj@suse.de>
9151
9152         [BZ #10153]
9153         * manual/startup.texi (Environment Access): Describe return value
9154         for putenv and setenv.
9155
9156         [BZ #6895]
9157         * manual/filesys.texi (Directory Entries): Add description for
9158         DT_LNK.
9159
9160         [BZ #6890]
9161         * manual/filesys.texi (Directory Entries): Clarify that it's file
9162         system not operating system in the description of DT_UNKNOWN.
9163
9164         [BZ #6578]
9165         * manual/syslog.texi (closelog): Fix reference, it's openlog.
9166
9167 2012-04-08  Stephen Compall  <s11@member.fsf.org>
9168
9169         [BZ #6649]
9170         * manual/llio.texi (Opening and Closing Files): Add cross
9171         reference to explain mode argument.
9172
9173 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
9174
9175         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
9176         * sysdeps/x86_64/memset_chk.S: Likewise.
9177
9178 2012-04-07  David S. Miller  <davem@davemloft.net>
9179
9180         * elf/elf.h (R_SPARC_WDISP10): Define.
9181         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
9182         R_SPARC_SIZE32.
9183         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
9184         R_SPARC_SIZE64 and R_SPARC_H34.
9185
9186 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
9187
9188         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
9189         conditions and remove no longer applicable assertion.
9190
9191 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
9192
9193         * bits/byteswap.h: Include <features.h>.
9194         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
9195         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
9196
9197 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
9198
9199         * bits/byteswap.h (__bswap_16): Removed.
9200         Include <bits/byteswap-16.h> to get __bswap_16.
9201         * sysdeps/i386/bits/byteswap.h: Likewise.
9202         * sysdeps/s390/bits/byteswap.h: Likewise.
9203         * sysdeps/x86_64/bits/byteswap.h: Likewise.
9204         * bits/byteswap-16.h: New file.
9205         * sysdeps/i386/bits/byteswap-16.h: Likewise.
9206         * sysdeps/s390/bits/byteswap-16.h: Likewise.
9207         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
9208         * string/Makefile (headers): Add bits/byteswap-16.h.
9209
9210 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
9211
9212         [BZ #13895]
9213         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
9214         extra indirection.
9215         * nss/Makefile (tests-static, tests): Add tst-nss-static.
9216         * nss/tst-nss-static.c: New.
9217
9218 2012-04-06  Robert Millan  <rmh@gnu.org>
9219
9220         [BZ #6486]
9221         * manual/llio.texi (File Position Primitive): lseek
9222         refers to WHENCE when it really means OFFSET.
9223
9224 2012-04-06  Andreas Jaeger  <aj@suse.de>
9225
9226         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
9227         strncmp declarations.
9228
9229         * abilist/libc.abilist: Add __poll and __ppoll.
9230
9231 2012-04-05  David S. Miller  <davem@davemloft.net>
9232
9233         * scripts/check-local-headers.sh: Accept a host triplet in the
9234         path matched by the exclude regexp.
9235
9236         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
9237         definition.
9238         * sysdeps/powerpc/powerpc32/dl-machine.h
9239         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
9240         * sysdeps/s390/s390-32/dl-machine.h
9241         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
9242         * sysdeps/sparc/sparc32/dl-machine.h
9243         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
9244         * sysdeps/sparc/sparc64/dl-machine.h
9245         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
9246
9247         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
9248         lazy binding.
9249         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
9250         undefined symbol errors.
9251
9252         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
9253         DT_NEEDED entries.
9254
9255 2012-04-05  Michael Matz  <matz@suse.de>
9256
9257         [BZ #13592]
9258         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
9259
9260 2012-04-05  Andreas Jaeger  <aj@suse.de>
9261
9262         [BZ #13908]
9263         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
9264         comment.
9265
9266 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9267
9268         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
9269         which ROUND is no valid rounding mode.
9270
9271 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9272
9273         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
9274         read again.
9275         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
9276
9277 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9278
9279         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
9280         an exception using FPU order intentionally.
9281
9282 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9283
9284         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
9285         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
9286         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
9287         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
9288
9289 2012-04-05  Simon Josefsson  <simon@josefsson.org>
9290
9291         [BZ #12340]
9292         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
9293         EINVAL when BUFLEN is too smal.
9294
9295 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
9296
9297         [BZ #13553]
9298         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
9299         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
9300
9301 2012-04-03  Andreas Jaeger  <aj@suse.de>
9302
9303         [BZ #13938]
9304         * manual/setjmp.texi (System V contexts): Fix sentence.
9305
9306         [BZ #13926]
9307         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
9308         New macro for this case.
9309         [!__GNUC__] (__bswap_64): New inline function for this case.
9310         * sysdeps/x86_64/bits/byteswap.h: Likewise.
9311         * bits/byteswap.h: Likewise.
9312         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
9313         ull, guard with __GLIBC_HAVE_LONG_LONG.
9314
9315         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
9316         __GLIBC_HAVE_LONG_LONG.
9317
9318         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
9319         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
9320
9321 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
9322
9323         [BZ #13691]
9324         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
9325         inptr and inend, rather than using last_ch.
9326
9327 2012-04-02  David S. Miller  <davem@davemloft.net>
9328
9329         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
9330         * stdio-common/printf-parse.h (read_int): Change return type to
9331         'int', return -1 on INT_MAX overflow.
9332         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
9333         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
9334         overflows INT_MAX.  Check for overflow of in-format-string precision
9335         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
9336         SIZE_MAX not INT_MAX for integer overflow test.
9337         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
9338         skip the construct in the format string but do not record anything.
9339         * stdio-common/bug22.c: Adjust to test both width/prevision
9340         INT_MAX overflow as well as total length INT_MAX overflow.  Check
9341         explicitly for proper errno values.
9342
9343 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
9344
9345         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
9346         CHAR_MAX.
9347         * string/test-strcmp.c [! WIDE]: Likewise.
9348         * time/tst-mktime2.c: Likewise for INT_MAX.
9349         * string/test-string.h: #include <sys/param.h> for MIN.
9350
9351         * csu/init-first.c (__libc_init_first): Call __ctype_init.
9352         * sysdeps/i386/init-first.c (init): Likewise.
9353         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
9354         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
9355         * sysdeps/sh/init-first.c (init): Likewise.
9356
9357 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
9358
9359         * po/ru.po: Update from translation team.
9360         * po/vi.po: Likewise.
9361
9362 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
9363
9364         * resolv/nss_dns/dns-host.c: Merge copyright years.
9365
9366 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9367
9368         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
9369         Optimize memcpy with prefetch if
9370         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
9371         src, dst pointers have unequal 16 byte alignments.
9372
9373 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
9374
9375         [BZ #13928]
9376         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
9377         from a CNAME entry and return the minimum ttl for the query.
9378         (gaih_getanswer_slice): Likewise.
9379
9380 2012-03-30  Jeff Law  <law@redhat.com>
9381
9382         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
9383         due to long keys.
9384         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
9385         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
9386
9387         * resolv/nss_dns/dns-host.c: Update copyright year.
9388
9389 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
9390
9391         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
9392         requests to save a system call.  Fix check that all bytes are sent.
9393
9394         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
9395         comments for sendmmsg.
9396
9397 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
9398
9399         [BZ #13691]
9400         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
9401         with only 1 character between 0x0041 and 0x01b0.
9402         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
9403         * wcsmbs/tst-mbsnrtowcs.c: New file.
9404
9405 2012-03-29  David S. Miller  <davem@davemloft.net>
9406
9407         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
9408         small copies by hand.
9409
9410 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
9411
9412         [BZ #13761]
9413         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
9414         _nss_compat_initgroups_dyn): Fall back to malloc/free
9415         for large group memberships.
9416
9417 2012-03-28  David S. Miller  <davem@davemloft.net>
9418
9419         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
9420         that branches into memcpy.
9421         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
9422         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
9423         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
9424         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
9425         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
9426         bits.
9427         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
9428         implementation too.
9429         * sysdeps/sparc/mempcpy.S: New file.
9430
9431         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
9432         the IFUNC routine in the libc case.
9433         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
9434
9435         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
9436         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
9437         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
9438         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
9439         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
9440         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
9441         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
9442         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
9443
9444         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
9445         loop to 256 bytes instead of 64 bytes and fix test signedness.
9446
9447         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
9448         * sysdeps/sparc/sparc32/Makefile: rather than here...
9449         * sysdeps/sparc/sparc64/Makefile: and here.
9450
9451 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
9452
9453         * malloc/mallocbug.c: Avoid warnings about unused variables.
9454
9455 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
9456
9457         [BZ #13760]
9458         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
9459         in the right place. Discard and retry query if response is
9460         larger than input buffer size.
9461
9462 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
9463
9464         [BZ #369]
9465         [BZ #2678]
9466         [BZ #3866]
9467         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
9468         x for large integer exponent.
9469         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
9470         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
9471         sign of result as needed afterwards.
9472         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
9473         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
9474         result for underflowing pow the same as for overflow.
9475         (__kernel_standard_l): Handle powl overflow and underflow here
9476         rather than calling __kernel_standard.
9477         * math/libm-test.inc (pow_test): Add more tests.
9478
9479         [BZ #3868]
9480         [BZ #13879]
9481         [BZ #13910]
9482         [BZ #13911]
9483         [BZ #13912]
9484         [BZ #13913]
9485         [BZ #13915]
9486         [BZ #13916]
9487         [BZ #13917]
9488         [BZ #13918]
9489         [BZ #13919]
9490         [BZ #13920]
9491         [BZ #13921]
9492         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
9493         * sysdeps/ieee754/k_standard.c: Include <float.h>.
9494         (__kernel_standard_l): New function.
9495         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
9496         __kernel_standard.
9497         * math/w_acosl.c (__acosl): Likewise.
9498         * math/w_asinl.c (__asinl): Likewise.
9499         * math/w_atan2l.c (__atan2l): Likewise.
9500         * math/w_atanhl.c (__atanhl): Likewise.
9501         * math/w_coshl.c (__coshl): Likewise.
9502         * math/w_exp10l.c (__exp10l): Likewise.
9503         * math/w_exp2l.c (__exp2l): Likewise.
9504         * math/w_fmodl.c (__fmodl): Likewise.
9505         * math/w_hypotl.c (__hypotl): Likewise.
9506         * math/w_j0l.c (__j0l, __y0l): Likewise.
9507         * math/w_j1l.c (__j1l, __y1l): Likewise.
9508         * math/w_jnl.c (__jnl, __ynl): Likewise.
9509         * math/w_lgammal.c (__lgammal): Likewise.
9510         * math/w_log10l.c (__log10l): Likewise.
9511         * math/w_log2l.c (__log2l): Likewise.
9512         * math/w_logl.c (__logl): Likewise.
9513         * math/w_powl.c (__powl): Likewise.
9514         * math/w_remainderl.c (__remainderl): Likewise.
9515         * math/w_scalbl.c (sysv_scalbl): Likewise.
9516         * math/w_sinhl.c (__sinhl): Likewise.
9517         * math/w_sqrtl.c (__sqrtl): Likewise.
9518         * math/w_tgammal.c (__tgammal): Likewise.
9519         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
9520         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
9521         * math/libm-test.inc (acos_test): Add more tests.
9522         (acosh_test): Likewise.
9523         (asin_test): Likewise.
9524         (atanh_test): Likewise.
9525         (exp_test): Likewise.
9526         (exp10_test): Likewise.
9527         (exp2_test): Likewise.
9528         (expm1_test): Likewise.
9529         (lgamma_test): Likewise.
9530         (log_test): Likewise.
9531         (log10_test): Likewise.
9532         (log1p_test): Likewise.
9533         (log2_test): Likewise.
9534         (pow_test): Do not allow some spurious overflow exceptions.
9535         (sqrt_test): Add more tests.
9536         (tgamma_test): Likewise.
9537         (y0_test): Likewise.
9538         (y1_test): Likewise.
9539         (yn_test): Likewise.
9540
9541 2012-03-27  Anton Blanchard  <anton@samba.org>
9542
9543         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
9544         MAP_HUGETLB.
9545         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
9546         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
9547         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
9548
9549 2012-03-27  David S. Miller  <davem@davemloft.net>
9550
9551         * conform/Makefile: Run run-conformtest.sh using $(BASH).
9552
9553         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
9554         have-as-vis3 check.
9555
9556 2012-03-27  Andreas Jaeger  <aj@suse.de>
9557
9558         * sysdeps/x86_64/elf/configure.in: Moved to ...
9559         * sysdeps/x86_64/configure.in: ... here.
9560         * sysdeps/x86_64/elf/start.S: Moved to ...
9561         * sysdeps/x86_64/start.S: ... here.
9562         * sysdeps/x86_64/elf/configure: Delete.
9563
9564         * sysdeps/x86_64/configure.in: Merge contents from
9565         sysdeps/i386/configure.in (without i686 check).
9566
9567         * sysdeps/i386/elf/Versions: Merge into ...
9568         * sysdeps/i386/Versions: ... this.
9569         * sysdeps/i386/elf/Versions: Delete file.
9570         * sysdeps/i386/elf/start.S: Moved to ...
9571         * sysdeps/i386/start.S: ...here.
9572         * sysdeps/i386/elf/configure.in: Merge into...
9573         * sysdeps/i386/configure.in: ...here.
9574         * sysdeps/i386/elf/configure.in: Delete file.
9575         * sysdeps/i386/elf/configure: Delete file.
9576
9577         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
9578         * debug/backtracesyms.c: ... here.
9579         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
9580         * debug/backtracesymsfd.c: ... here.
9581         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
9582         * sysdeps/generic/ifunc-sel.h: ... here.
9583
9584         * sysdeps/unix/i386/start.c: Delete file.
9585         * sysdeps/unix/sparc/start.c: Delete file.
9586         * sysdeps/unix/start.c: Delete file.
9587
9588         * sysdeps/sh/elf/configure.in: Moved to ...
9589         * sysdeps/sh/configure.in: ... here.
9590         * sysdeps/sh/elf/start.S: Moved to ...
9591         * sysdeps/sh/start.S: ... here.
9592         * sysdeps/sh/elf/configure: Delete file.
9593
9594         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
9595         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
9596         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
9597         * sysdeps/powerpc/powerpc64/entry.h: ... here.
9598         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
9599         * sysdeps/powerpc/powerpc64/start.S: here.
9600         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
9601         * sysdeps/powerpc/powerpc64/Makefile: ... this.
9602         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
9603         * sysdeps/powerpc/powerpc64/configure.in: ... this.
9604         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
9605
9606         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
9607         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
9608         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
9609         * sysdeps/powerpc/powerpc32/start.S: ... here.
9610         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
9611         * sysdeps/powerpc/powerpc32/configure.in: ... this.
9612         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
9613
9614         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
9615         * sysdeps/powerpc/ifunc-sel.h: ... here.
9616         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
9617         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
9618
9619         * sysdeps/sparc/elf/configure.in: Moved to ...
9620         * sysdeps/sparc/configure.in: ... here.
9621         * sysdeps/sparc/elf/configure: Delete file.
9622         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
9623         * sysdeps/sparc/sparc32/start.S: ... here.
9624         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
9625         * sysdeps/sparc/sparc64/start.S: ... here.
9626         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
9627         * sysdeps/sparc/sparc32/Makefile: ... this.
9628         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
9629         * sysdeps/sparc/sparc64/Makefile: ... this.
9630
9631         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
9632         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
9633         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
9634         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
9635         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
9636         * sysdeps/s390/s390-32/setjmp.S: ... here.
9637         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
9638         * sysdeps/s390/s390-32/configure.in: ... here.
9639         * sysdeps/s390/s390-32/elf/configure: Delete file.
9640         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
9641         * sysdeps/s390/s390-32/start.S: ... here.
9642
9643         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
9644         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
9645         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
9646         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
9647         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
9648         * sysdeps/s390/s390-64/setjmp.S: ... here.
9649         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
9650         * sysdeps/s390/s390-64/configure.in: ... here
9651         * sysdeps/s390/s390-64/elf/configure: Delete file.
9652         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
9653         * sysdeps/s390/s390-64/start.S: ... here.
9654         * sysdeps/s390/s390-64/elf/configure: Delete.
9655
9656         * configure.in: Remove support for elf directories in sysdeps.
9657
9658         * configure: Regenerated.
9659         * sysdeps/i386/configure: Regenerated.
9660         * sysdeps/powerpc/powerpc32/configure: Regenerated.
9661         * sysdeps/powerpc/powerpc64/configure: Regenerated.
9662         * sysdeps/s390/s390-32/configure: Regenerated.
9663         * sysdeps/s390/s390-64/configure: Regenerated.
9664         * sysdeps/sh/configure: Regenerated.
9665         * sysdeps/sparc/configure: Regenerated.
9666         * sysdeps/x86_64/configure: Regenerated.
9667
9668 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
9669
9670         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9671
9672         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
9673         denormal result into account.
9674
9675 2012-03-25  Roland McGrath  <roland@hack.frob.com>
9676
9677         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
9678         Reported by Allan McRae <allan@archlinux.org>.
9679
9680 2012-03-23  Jeff Law  <law@redhat.com>
9681
9682         * nss/getnssent.c (__nss_getent): Fix typo.
9683
9684 2012-03-23  David S. Miller  <davem@davemloft.net>
9685
9686         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9687
9688 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
9689
9690         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
9691         to pad to uint64_t for each field.
9692         (dl_tls_index): Replace unsigned long with uint64_t.
9693
9694 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
9695         Paul Pluzhnikov  <ppluzhnikov@google.com>
9696
9697         [BZ #6528]
9698         * grp/Makefile (otherlibs): Don't set it.
9699         * inet/Makefile (otherlibs): Likewise.
9700         * login/Makefile (otherlibs): Likewise.
9701         * nscd/Makefile (otherlibs): Likewise.
9702         * posix/Makefile (otherlibs): Likewise.
9703         * pwd/Makefile (otherlibs): Likewise.
9704         * rt/Makefile (otherlibs): Likewise.
9705         * sunrpc/Makefile (otherlibs): Likewise.
9706         * nss/Makefile (otherlibs): Likewise.
9707         Add libnss_files to routines and static-only-routines.
9708         ($(objpfx)getent): Remove rule.
9709         * resolv/Makefile: Add libnss_dns and libresolv to routines and
9710         static-only-routines.
9711
9712 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
9713
9714         [BZ #13892]
9715         * math/s_cexp.c: Include <float.h>.
9716         (__cexp): Handle exp result overflowing not necessarily
9717         overflowing both real and imaginary parts of result.
9718         * math/s_cexpf.c: Likewise.
9719         * math/s_cexpl.c: Likewise.
9720         * math/libm-test.inc (cexp_test): Add more tests.
9721         * sysdeps/i386/fpu/libm-test-ulps: Update.
9722         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9723
9724 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
9725
9726         * include/link.h (ELFW): New macro.
9727         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
9728         Replace ELF64_R_TYPE with ELFW(R_TYPE).
9729
9730 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
9731
9732         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
9733         with uint64_t.
9734
9735 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
9736
9737         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
9738         declaration.
9739         (struct La_x32_retval): Likewise.
9740
9741 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
9742
9743         * sysdeps/x86_64/preconfigure.in: New file.
9744         * sysdeps/x86_64/preconfigure: New generated file.
9745
9746 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
9747
9748         [BZ #13824]
9749         * math/e_exp2l.c: Include <float.h>.
9750         (__ieee754_exp2l): Handle overflow and underflow cases
9751         separately.  Only pass fractional part of argument to
9752         __ieee754_expl.
9753         * math/libm-test.inc (exp2_test): Add more tests.
9754
9755         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
9756         negating x to take absolute value.
9757         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
9758         Likewise.
9759         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
9760         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
9761         Likewise.
9762         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
9763         computing low part if x was negated.
9764         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
9765
9766 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
9767
9768         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
9769         la_x32_gnu_pltexit.
9770         (pltexit): Cast int_retval to ptrdiff_t.
9771         * elf/tst-auditmod3b.c: Likewise.
9772         * elf/tst-auditmod4b.c: Likewise.
9773         * elf/tst-auditmod5b.c: Likewise.
9774         * elf/tst-auditmod6b.c: Likewise.
9775         * elf/tst-auditmod6c.c: Likewise.
9776         * elf/tst-auditmod7b.c: Likewise.
9777
9778         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
9779         and x32_gnu_pltexit.
9780
9781         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
9782         __ELF_NATIVE_CLASS.
9783         (La_x32_regs): New macro.
9784         (La_x32_retval): Likewise.
9785         (la_x32_gnu_pltenter): New function prototype.
9786         (la_x32_gnu_pltexit): Likewise.
9787
9788 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
9789
9790         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
9791         exponent.
9792
9793         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9794
9795         * configure.in (libc_cv_cc_nofma): Check for option to disable
9796         generation of FMA instructions.
9797         * configure: Regenerate.
9798         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
9799         * sysdeps/ieee754/dbl-64/Makefile: New file.
9800         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
9801         Remove brandred-fma4.
9802         (CFLAGS-brandred-fma4.c): Remove.
9803         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
9804         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
9805         define.
9806         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
9807         define.
9808
9809 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
9810
9811         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
9812         LLONG_MAX != LONG_MAX.
9813         (_itoa_word): Use _ITOA_WORD_TYPE on value.
9814         (_fitoa_word): Likewise.
9815         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
9816         LLONG_MAX != LONG_MAX.
9817         * stdio-common/_itowa.h: Include <_itoa.h>.
9818         (_itowa_word): Use _ITOA_WORD_TYPE on value.
9819         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
9820         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
9821         only if not defined.
9822         (_ITOA_WORD_TYPE): Likewise.
9823         (_itoa_word): Use _ITOA_WORD_TYPE on value.
9824         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
9825
9826 2012-03-21  David S. Miller  <davem@davemloft.net>
9827
9828         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9829
9830 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
9831
9832         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
9833         of x86_64 when setting libc_cv_slibdir, libdir and
9834         libc_cv_localedir.
9835         * sysdeps/unix/sysv/linux/configure: Regenerated.
9836
9837 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
9838
9839         * manual/lang.texi (Old Varargs): Remove section.
9840         (How Variadic): Update menu.
9841         (va_start): Do not mention varargs.h.
9842
9843 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
9844             Joseph Myers  <joseph@codesourcery.com>
9845
9846         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
9847         link test.
9848         * configure: Regenerated.
9849
9850 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
9851
9852         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
9853         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
9854         conformtest.pl
9855
9856 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
9857
9858         * NOTES: Remove.
9859         * Makefile (files-for-dist): Remove NOTES.
9860         (NOTES): Remove rule.
9861         * README: Don't refer to NOTES.
9862         * manual/creature.texi: Don't include macros.texi.
9863         * manual/intro.texi (creature.texi): Remove comment referring to
9864         NOTES.
9865
9866         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
9867         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
9868         * configure: Regenerated.
9869         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
9870         LIBC_TRY_CC_OPTION.
9871         (libc_cv_as_i686): Likewise.
9872         (libc_cv_cc_avx): Likewise.
9873         (libc_cv_cc_sse2avx): Likewise.
9874         (libc_cv_cc_fma4): Likewise.
9875         (libc_cv_cc_novzeroupper): Likewise.
9876         * sysdeps/i386/configure: Regenerated.
9877
9878         [BZ #13883]
9879         * sysdeps/i386/fpu/s_cexp.S: Remove.
9880         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
9881         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
9882         * math/libm-test.inc (cexp_test): Add more tests.
9883         * sysdeps/i386/fpu/libm-test-ulps: Update.
9884         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9885
9886 2012-03-21  Allan McRae  <allan@archlinux.org>
9887
9888         * timezone/Makefile: Do not install iso3166.tab and zone.tab
9889
9890 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
9891
9892         [BZ #13871]
9893         * math/w_exp2.c: Do not include <float.h>.
9894         (o_threshold, u_threshold): Remove.
9895         (__exp2): Calculate result before checking finiteness and calling
9896         __kernel_standard.
9897         * math/w_exp2f.c: Likewise.
9898         * math/w_exp2l.c: Likewise.
9899         * math/libm-test.inc (exp2_test): Require overflow exception for
9900         1e6 input.
9901
9902         [BZ #3866]
9903         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
9904         range of signed 64-bit integers before using fistpll.  Remove
9905         checks for whether integers fit in mantissa bits.
9906         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
9907         the range of signed 32-bit integers before using fistpl.  Remove
9908         checks for whether integers fit in mantissa bits.
9909         * sysdeps/i386/fpu/e_powl.S (p64): New object.
9910         (__ieee754_powl): Test for y outside the range of signed 64-bit
9911         integers before using fistpll.  Reduce 64-bit values to 63-bit
9912         ones as needed.
9913         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
9914         divide-by-zero is raised for zero to large negative powers.
9915         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
9916         (__ieee754_powl): Test for y outside the range of signed 64-bit
9917         integers before using fistpll.  Reduce 64-bit values to 63-bit
9918         ones as needed.
9919         * math/libm-test.inc (pow_test): Add more tests.
9920
9921 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
9922
9923         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
9924         <stdio-common/_itoa.h>.
9925         * debug/segfault.c: Likewise.
9926         * elf/dl-cache.c: Likewise.
9927         * elf/dl-minimal.c: Likewise.
9928         * elf/dl-misc.c: Likewise.
9929         * elf/dl-sysdep.c: Likewise.
9930         * elf/dl-version.c: Likewise.
9931         * elf/rtld.c: Likewise.
9932         * hurd/hurdsock.c: Likewise.
9933         * hurd/lookup-retry.c: Likewise.
9934         * malloc/malloc.c: Likewise.
9935         * malloc/mtrace.c: Likewise.
9936         * nscd/nscd_getgr_r.c: Likewise.
9937         * nscd/nscd_getpw_r.c: Likewise.
9938         * nscd/nscd_getserv_r.c: Likewise.
9939         * posix/getopt_init.c: Likewise.
9940         * posix/wordexp.c: Likewise.
9941         * stdio-common/_itoa.c: Likewise.
9942         * stdio-common/printf_fphex.c: Likewise.
9943         * stdio-common/vfprintf.c: Likewise.
9944         * string/_strerror.c: Likewise.
9945         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
9946         * sysdeps/i386/i686/hp-timing.h: Likewise.
9947         * sysdeps/mach/_strerror.c: Likewise.
9948         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
9949         * sysdeps/mach/hurd/sethostid.c: Likewise.
9950         * sysdeps/mach/hurd/xmknodat.c: Likewise.
9951         * sysdeps/mach/xpg-strerror.c: Likewise.
9952         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
9953         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
9954         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
9955         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
9956         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
9957         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
9958         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
9959         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
9960         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
9961         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
9962         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
9963         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
9964         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
9965         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
9966         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
9967         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
9968         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
9969         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
9970         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
9971         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
9972         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
9973
9974         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
9975
9976         * stdio-common/_itoa.h: Moved to ...
9977         * sysdeps/generic/_itoa.h: Here.
9978
9979         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
9980
9981         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
9982         instead of "_itoa.h" and "_itowa.h".
9983         * stdio-common/vfprintf.: Likewise.
9984
9985 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
9986
9987         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
9988         <bits/wordsize.h>.
9989         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
9990         (__signbit): Likwise.
9991         (llrintf): Likwise.
9992         (llrint): Likwise.
9993
9994 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
9995
9996         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
9997         __WORDSIZE != 64.
9998
9999 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
10000
10001         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
10002         OVERFLOW_EXCEPTION_OK.
10003         * math/libm-test.inc ("Philosophy"): Update comment about
10004         exception testing.
10005         (OVERFLOW_EXCEPTION): Define.
10006         (OVERFLOW_EXCEPTION_OK): Likewise.
10007         (INVALID_EXCEPTION_OK): Renumber.
10008         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
10009         (IGNORE_ZERO_INF_SIGN): Likewise.
10010         (test_exceptions): Handle FE_OVERFLOW.
10011         (exp10_test): Expect overflow exceptions.
10012         (exp2_test): Likewise.
10013         (expm1_test): Likewise.
10014         (nextafter_test): Likewise.
10015         (pow_test): Likewise.
10016         (scalbn_test): Likewise.
10017         (scalbln_test): Likewise.
10018
10019 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10020
10021         * sysdeps/x86_64/bits/atomic.h
10022         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
10023         64bit integer.
10024         (atomic_exchange_acq): Likewise.
10025         (__arch_exchange_and_add_body): Likewise.
10026         (__arch_add_body): Likewise.
10027         (atomic_add_negative): Likewise.
10028         (atomic_add_zero): Likewise.
10029
10030 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10031
10032         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
10033         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
10034
10035 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10036
10037         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
10038         Check __x86_64__ instead of __WORDSIZE.
10039
10040 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10041
10042         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
10043
10044 2012-03-19  David S. Miller  <davem@davemloft.net>
10045
10046         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10047
10048         * sysdeps/sparc/fpu/fenv_private.h: New file.
10049         * sysdeps/sparc/fpu/math_private.h: Use it.
10050         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
10051         Remove.
10052         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
10053         (libc_feholdexcept_setroundl): Remove.
10054         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
10055         Remove.
10056         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
10057         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
10058
10059 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10060
10061         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
10062         int64_t instead of long int.
10063         (INSERT_WORDS64): Likwise.
10064
10065 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10066
10067         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
10068         _Unwind_GetCFA return to _Unwind_Ptr first.
10069
10070 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
10071
10072         [BZ #13629]
10073         * math/s_clog.c: Include <float.h>.
10074         (__clog): Scale large or subnormal inputs.
10075         * math/s_clogf.c: Likewise.
10076         * math/s_clogl.c: Likewise.
10077         * math/s_clog10.c: Include <float.h>.
10078         (M_LOG10_2): Define.
10079         (__clog10): Scale large or subnormal inputs.
10080         * math/s_clog10f.c: Likewise.
10081         * math/s_clog10l.c: Likewise.
10082         * math/libm-test.inc (clog_test): Add more tests.
10083         (clog10_test): Likewise.
10084         * sysdeps/i386/fpu/libm-test-ulps: Update.
10085         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10086
10087         [BZ #11451]
10088         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
10089         x and y.
10090         * math/libm-test.inc (atan2_test): Add another test.
10091
10092         * Makerules (common-objdir-compile): Remove.
10093         * sysdeps/unix/Makefile (config-generated): Do not add
10094         $(unix-generated) to variable.
10095         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
10096         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
10097         Remove rule.
10098         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
10099         Likewise.
10100         [generic bits/local_lim.h] (before-compile): Do not append to
10101         variable.
10102         [generic bits/local_lim.h] (common-generated): Likewise.
10103         [generic sys/param.h] (before-compile): Do not append to variable.
10104         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
10105         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
10106         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
10107         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
10108         include.
10109         [generic sys/param.h] (sys/param.h-includes): Remove variable.
10110         [generic sys/param.h] (sys/param.h-includes): Remove rule.
10111         [generic sys/param.h] ($(addprefix
10112         $(common-objpfx),$(sys/param.h-includes))): Likewise.
10113         [generic sys/param.h] (common-generated): Do not append to
10114         variable.
10115         [generic sys/param.h] (sysdep_headers): Likewise.
10116         [generic bits/errno.h] (before-compile): Do not append to
10117         variable.
10118         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
10119         rule.
10120         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
10121         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
10122         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
10123         [generic bits/errno.h] (common-generated): Do not append to
10124         variable.
10125         [generic bits/ioctls.h] (before-compile): Do not append to
10126         variable.
10127         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
10128         rule.
10129         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
10130         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
10131         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
10132         rule.
10133         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
10134         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
10135         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
10136         [generic bits/ioctls.h] (common-generated): Do not append to
10137         variable.
10138         [generic sys/syscall.h] (syscall.h): Remove variable.
10139         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
10140         rule.
10141         [generic sys/syscall.h] (before-compile): Do not append to
10142         variable.
10143         [generic sys/syscall.h] (common-generated): Likewise.
10144         * sysdeps/unix/errnos-tmpl.c: Remove file.
10145         * sysdeps/unix/errnos.awk: Likewise.
10146         * sysdeps/unix/ioctls-tmpl.c: Likewise.
10147         * sysdeps/unix/ioctls.awk: Likewise.
10148         * sysdeps/unix/mk-local_lim.c: Likewise.
10149         * sysdeps/unix/snarf-ioctls: Likewise.
10150
10151 2012-03-19  Richard Henderson  <rth@twiddle.net>
10152
10153         * sysdeps/i386/fpu/fenv_private.h: New file.
10154         * sysdeps/i386/fpu/math_private.h: Use it.
10155         (math_opt_barrier, math_force_eval): Remove.
10156         (libc_feholdexcept_setround_53bit): Remove.
10157         (libc_feupdateenv_53bit): Remove.
10158         * sysdeps/x86_64/fpu/math_private.h: Likewise.
10159         (math_opt_barrier, math_force_eval): Remove.
10160         (libc_feholdexcept): Remove.
10161         (libc_feholdexcept_setround): Remove.
10162         (libc_fetestexcept, libc_fesetenv): Remove.
10163         (libc_feupdateenv_test): Remove.
10164         (libc_feupdateenv, libc_feholdsetround): Remove.
10165         (libc_feresetround): Remove.
10166
10167         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
10168         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
10169
10170         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
10171         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
10172         (libc_feupdateenv_testl): New.
10173         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
10174         (libc_feupdateenv_testf): New.
10175         (libc_feupdateenv): Use libc_feupdateenv_test.
10176         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
10177         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
10178
10179         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
10180         (libc_feholdsetroundf, libc_feholdsetroundl): New.
10181         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
10182         (libc_feresetround_noex): New.
10183         (libc_feresetround_noexf): New.
10184         (libc_feresetround_noexl): New.
10185         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
10186         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
10187         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
10188         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
10189         SET_RESTORE_ROUND.
10190         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
10191         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
10192         (__cos): Likewise.
10193         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
10194         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
10195         SET_RESTORE_ROUND_NOEX.
10196         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
10197         SET_RESTORE_ROUND_NOEXF.
10198         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
10199         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
10200         (libc_feholdsetroundf): New.
10201         (libc_feresetround, libc_feresetroundf): New.
10202
10203         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
10204         (libc_feholdexcept_setround_53bit): Convert from macro to function.
10205         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
10206
10207         * sysdeps/generic/math_private.h: Include <fenv.h>.
10208         (default_libc_feholdexcept): New.
10209         (default_libc_feholdexcept_setround): New.
10210         (default_libc_fesetenv, default_libc_feupdateenv): New.
10211         (libc_feholdexcept): Only define if undefined.
10212         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
10213         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
10214         (libc_feholdexcept_setroundl): Likewise.
10215         (libc_feholdexcept_setround_53bit): Likewise.
10216         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
10217         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
10218         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
10219         (libc_feupdateenv_53bit): Likewise.
10220         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
10221         (libc_feholdexcept): Convert from macro to inline function.
10222         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
10223         (libc_fesetenv, libc_feupdateenv): Likewise.
10224
10225         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
10226         not previously defined.
10227         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
10228         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
10229         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
10230         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
10231         * sysdeps/ieee754/flt-32/math_private.h: New file.
10232         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
10233         math_private.h below SET_FLOAT_WORD.
10234         (__isnan, __isinf_ns, __finite): Remove.
10235         (__isnanf, __isinf_nsf, __finitef): Remove.
10236
10237 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
10238
10239         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10240
10241 2012-03-17  David S. Miller  <davem@davemloft.net>
10242
10243         [BZ #6471]
10244         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
10245         for 2.16.
10246
10247 2012-03-16  David S. Miller  <davem@davemloft.net>
10248
10249         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
10250         warnings.
10251
10252         [BZ #6471]
10253         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
10254         properly.
10255         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
10256         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
10257         sysdep_routines when subdir is sysvipc.
10258         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
10259         __getshmlba helper.
10260
10261         * sysdeps/sparc/fpu/libm-test/ulps: Update.
10262
10263 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10264
10265         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
10266         [__LP64__].
10267
10268 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10269
10270         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
10271         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
10272         (__lround): Renamed to ...
10273         (__llround): This.  Replace long int with long long int.
10274         Define lround functions as aliases of llround functions.
10275         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
10276
10277 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10278
10279         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
10280         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
10281         adresses to uintptr_t.  Replace "long int" and "unsigned long
10282         int" with "greg_t" on va_arg.
10283
10284 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10285
10286         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
10287         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
10288
10289         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
10290         Move e_machine check before EI_CLASS check.  Handle x32
10291         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
10292         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
10293         SKIP_EM_IA_64 and include
10294         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
10295
10296         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
10297         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
10298         (add_system_dir): New macro.
10299
10300         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
10301         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
10302
10303 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
10304
10305         [BZ #2551]
10306         [BZ #2552]
10307         [BZ #2553]
10308         [BZ #2554]
10309         [BZ #2562]
10310         [BZ #2563]
10311         [BZ #2565]
10312         [BZ #2566]
10313         [BZ #2576]
10314         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
10315         (y0): Likewise.
10316         * math/w_j0f.c (j0f): Likewise.
10317         (y0f): Likewise.
10318         * math/w_j0l.c (__j0l): Likewise.
10319         (__y0l): Likewise.
10320         * math/w_j1.c (j1): Likewise.
10321         (y1): Likewise.
10322         * math/w_j1f.c (j1f): Likewise.
10323         (y1f): Likewise.
10324         * math/w_j1l.c (__j1l): Likewise.
10325         (__y1l): Likewise.
10326         * math/w_jn.c (jn): Likewise.
10327         (yn): Likewise.
10328         * math/w_jnf.c (jnf): Likewise.
10329         (ynf): Likewise.
10330         * math/w_jnl.c (__jnl): Likewise.
10331         (__ynl): Likewise.
10332         * math/libm-test.inc (j0_test): Add more tests.
10333         (j1_test): Likewise.
10334         (jn_test): Likewise.  Add trailing semicolon to existing test.
10335         (y0_test): Likewise.
10336         (y1_test): Likewise.
10337         * sysdeps/i386/fpu/libm-test-ulps: Update.
10338         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10339
10340         [BZ #13851]
10341         [BZ #13854]
10342         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
10343         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
10344         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
10345         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
10346         (__tanl): Set errno for infinite argument.
10347         * sysdeps/i386/fpu/mptan.c: Remove.
10348         * sysdeps/i386/fpu/s_tan.S: Likewise.
10349         * sysdeps/i386/fpu/s_tanl.S: Likewise.
10350         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
10351         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
10352         * math/libm-test.inc (tan_test): Add more tests and enable more
10353         tests for double and long double.
10354         * sysdeps/i386/fpu/libm-test-ulps: Update.
10355         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10356
10357 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
10358
10359         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
10360         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
10361
10362 2012-03-16  Roland McGrath  <roland@hack.frob.com>
10363
10364         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
10365         * configure.in: Use it for both main tree and add-ons.
10366         * configure: Regenerated.
10367
10368 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10369
10370         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
10371
10372 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
10373
10374         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
10375         in comment.
10376
10377         [BZ #13851]
10378         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
10379         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
10380         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
10381         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
10382         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
10383         infinite argument.
10384         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
10385         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
10386         != 0 for prec == 2.
10387         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
10388         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
10389         * sysdeps/i386/fpu/s_cosl.S: Likewise.
10390         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
10391         * sysdeps/i386/fpu/s_sinl.S: Likewise.
10392         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
10393         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
10394         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
10395         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
10396         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
10397         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
10398         * math/libm-test.inc (cos_test): Add more tests and enable more
10399         tests for long double.
10400         (sin_test): Likewise.
10401         (sincos_test): Likewise.
10402         * sysdeps/i386/fpu/libm-test-ulps: Update.
10403         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10404
10405 2012-03-16  David S. Miller  <davem@davemloft.net>
10406
10407         * sysdeps/sparc/fpu/math_private.h: New file.
10408
10409 2012-03-15  David S. Miller  <davem@davemloft.net>
10410
10411         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
10412         file.
10413         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
10414         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
10415         file.
10416         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
10417         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
10418         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
10419         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
10420         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
10421         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
10422         sysdep routines.
10423         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
10424
10425         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
10426         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
10427
10428         * sysdeps/sparc/sparc-ifunc.h: New file.
10429         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
10430         sparc-ifunc.h
10431         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
10432         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
10433         Likewise.
10434         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
10435         Likewise.
10436         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
10437         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
10438         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
10439         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
10440         Likewise.
10441         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
10442         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
10443         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
10444         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
10445         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
10446         Likewise.
10447         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
10448         Likewise.
10449         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
10450         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
10451         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
10452         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
10453         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
10454         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
10455         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
10456         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
10457         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
10458         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
10459         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
10460         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
10461         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
10462         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
10463         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
10464         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
10465         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
10466         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
10467         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
10468         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
10469         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
10470         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
10471         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
10472         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
10473
10474 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
10475
10476         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
10477         scaling.
10478         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10479
10480 2012-03-15  Andreas Jaeger  <aj@suse.de>
10481
10482         [BZ #13852]
10483         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
10484         ieee754/flt-32 implementation for sin, cos and sincos.
10485         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
10486         * sysdeps/i386/fpu/s_cosf.S: Likewise.
10487         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
10488         * sysdeps/i386/fpu/s_sinf.S: Likewise.
10489         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
10490         ieee754/flt-32 implementation for tan.
10491
10492         * math/libm-test.inc (cos_test): Enable some large input tests for
10493         float as well
10494         (sin_test): Likewise.
10495         (sincos_test): Likewise.
10496         (tan_test): Add tests for large input.
10497
10498         * sysdeps/i386/fpu/libm-test-ulps: Update.
10499
10500 2012-03-15  Andreas Jaeger  <aj@suse.de>
10501
10502         [BZ #13658]
10503         * math/libm-test.inc (cos_test): Add more test cases.
10504         (sin_test): Likewise.
10505         (sincos_test): Likewise.
10506
10507 2012-03-15  Andreas Jaeger  <aj@suse.de>
10508
10509         [BZ #13837]
10510         * math/libm-test.inc (cos_test): Add a test case for large input
10511         value.
10512         (sin_test): Likewise.
10513         (sincos_test): Likewise.
10514
10515 2012-03-15  Andreas Jaeger  <aj@suse.de>,
10516         Joseph Myers  <joseph@codesourcery.com>
10517
10518         [BZ #13658]
10519         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
10520         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
10521         * sysdeps/i386/fpu/branred.c: Likewise.
10522         * sysdeps/i386/fpu/dosincos.c: Likewise.
10523         * sysdeps/i386/fpu/mpa.c: Likewise.
10524         * sysdeps/i386/fpu/s_cos.S: Likewise.
10525         * sysdeps/i386/fpu/s_sin.S: Likewise.
10526         * sysdeps/i386/fpu/s_sincos.S: Likewise.
10527         * sysdeps/i386/fpu/sincos32.c: Likewise.
10528
10529         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
10530         Define.
10531         (libc_feupdateenv_53bit): Define.
10532         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
10533         Define.
10534         (libc_feupdateenv_53bit): Define.
10535
10536         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
10537         53 bit (without extend i386 double precision).
10538
10539         * math/libm-test.inc (sincos_test): Add tests for large input.
10540         (sin): Likewise.
10541         (cos): Likewise.
10542
10543         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
10544
10545 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
10546
10547         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10548
10549 2012-03-15  David S. Miller  <davem@davemloft.net>
10550
10551         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
10552         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
10553         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
10554         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
10555         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
10556         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
10557         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
10558         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
10559         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
10560         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
10561         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
10562         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
10563         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
10564         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
10565         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
10566         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
10567         file.
10568         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
10569         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
10570         file.
10571         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
10572         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
10573         file.
10574         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
10575         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
10576         file.
10577         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
10578         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
10579         fmin/fmax sysdep routines.
10580         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
10581
10582 2012-03-14  David S. Miller  <davem@davemloft.net>
10583
10584         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
10585         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
10586         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
10587         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
10588         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
10589         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
10590         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
10591         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
10592         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
10593         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
10594         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
10595         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
10596         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
10597         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
10598         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
10599         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
10600         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
10601         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
10602         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
10603         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
10604         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
10605         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
10606         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
10607         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
10608         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
10609         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
10610         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
10611         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
10612         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
10613         routines.
10614         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
10615         file.
10616         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
10617         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
10618         file.
10619         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
10620         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
10621         file.
10622         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
10623         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
10624         file.
10625         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
10626         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
10627         file.
10628         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
10629         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
10630         file.
10631         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
10632         file.
10633         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
10634         file.
10635         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
10636         file.
10637         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
10638         New file.
10639         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
10640         file.
10641         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
10642         file.
10643         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
10644         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
10645         file.
10646         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
10647         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
10648         file.
10649         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
10650         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
10651         file.
10652         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
10653         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
10654         VIS3 routines.
10655
10656         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
10657         New file.
10658
10659         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10660
10661         * sysdeps/sparc/configure.in: New file.
10662         * sysdeps/sparc/configure: Generate.
10663         * configure.in (libc_cv_sparc_as_vis3): Substitute.
10664         * configure: Regenerate.
10665         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
10666         * config.make.in (have-as-vis3): New.
10667         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
10668         available use -Av9d instead of -Av9a.
10669         * sysdeps/sparc/sparc64/Makefile: Likewise.
10670         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
10671         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
10672         New file.
10673         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
10674         file.
10675         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
10676         New file.
10677         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
10678         file.
10679         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
10680         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
10681         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
10682         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
10683         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
10684
10685         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
10686         fzeros/fnegs to load 0x80000000 into a float register instead of
10687         using the stack.
10688         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
10689
10690 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
10691
10692         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
10693         bits/syscall.h.
10694         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
10695         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
10696         ($(inst_includedir)/bits/syscall.h): Remove rule.
10697         ($(objpfx)bits/syscall.d): Include instead of
10698         $(objpfx)syscall-list.d.
10699         (generated): Change syscall-list.h and syscall-list.d to
10700         bits/syscall.h and bits/syscall.d.
10701
10702 2012-03-14  Roland McGrath  <roland@hack.frob.com>
10703
10704         [BZ #13846]
10705         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
10706
10707 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
10708
10709         [BZ #13841]
10710         * math/s_csqrt.c: Include <float.h>.
10711         (__csqrt): Scale large or subnormal inputs.
10712         * math/s_csqrtf.c: Likewise.
10713         * math/s_csqrtl.c: Likewise.
10714         * math/libm-test.inc (csqrt_test): Add more tests.
10715         * sysdeps/i386/fpu/libm-test-ulps: Update.
10716         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10717
10718         [BZ #13840]
10719         * math/libm-test.inc (hypot_test): Add more tests.
10720
10721 2012-03-13  David S. Miller  <davem@davemloft.net>
10722
10723         [BZ #13840]
10724         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
10725         double-precision for the calculation instead of scaling.
10726
10727 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
10728
10729         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
10730         manipulate bits before adding and subtracting TWO52[sx].
10731         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
10732         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
10733         Likewise.
10734         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
10735
10736 2012-03-13  David S. Miller  <davem@davemloft.net>
10737
10738         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
10739         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
10740         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
10741         rtld-global-offsets.h
10742         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
10743
10744         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
10745         large parameters.
10746
10747         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
10748
10749         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
10750         'err' in the ifdef scope in which it is actually used.
10751
10752         * nss/nss_db/db-init.c: Include string.h
10753
10754 2012-03-12  David S. Miller  <davem@davemloft.net>
10755
10756         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
10757         masking out of the most significant byte of random value used.
10758         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
10759         Fix coding style in previous change.
10760
10761         * sysdeps/unix/sysv/linux/kernel-features.h
10762         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
10763         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
10764         expression.
10765         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
10766         later.
10767
10768 2012-03-11  David S. Miller  <davem@davemloft.net>
10769
10770         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
10771         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
10772         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
10773         for 'resultvar' otherwise things get truncated on 64-bit.
10774
10775         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
10776         Fix masking out of the most significant byte of random value used.
10777
10778         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10779
10780 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
10781
10782         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10783
10784 2012-03-09  David S. Miller  <davem@davemloft.net>
10785
10786         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
10787         variables with appropriate CPP guards.
10788         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
10789         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
10790         on resulting framesize and the management of the outregs buffer for pltexit.
10791         Preserve floating point return values across _dl_call_pltexit call.
10792         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
10793         framesize and the management of the outregs buffer for pltexit.
10794         Preserve floating point return values across _dl_call_pltexit
10795         call.
10796         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
10797         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
10798         (print_exit): Fix format string for return register value.
10799
10800 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
10801
10802         * sunrpc/Makefile (others): Add rpcgen.
10803         ($(objpfx)rpcgen): Remove special build rule and dependency on
10804         libc.
10805         * sunrpc/rpcgen.c: New file.
10806
10807 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
10808
10809         [BZ #13673]
10810         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
10811         * stdio-common/bug-vfprintf-nargs.c: Likewise.
10812         * sysdeps/i386/crti.S: Likewise.
10813         * sysdeps/i386/crtn.S: Likewise.
10814         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
10815         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
10816         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
10817         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
10818         * sysdeps/sh/crti.S: Likewise.
10819         * sysdeps/sh/crtn.S: Likewise.
10820         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
10821
10822         [BZ #13673]
10823         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
10824         with URL.
10825         * locale/programs/locfile-kw.gperf: Likewise.
10826         * locale/programs/charmap-kw.h: Regenerated.
10827         * locale/programs/locfile-kw.h: Likewise.
10828
10829         [BZ #13673]
10830         * intl/plural.y: Replace FSF snail mail address with URL.
10831         * intl/plural.c: Regenerated.
10832
10833 2012-03-09  Richard Henderson  <rth@twiddle.net>
10834
10835         * include/math_private.h: Remove file.
10836         * math/math_private.h: Move file ...
10837         * sysdeps/generic/math_private.h: ... here.
10838
10839         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
10840         * sysdeps/powerpc/fpu/math_private.h: Likewise.
10841         * sysdeps/x86_64/fpu/math_private.h: Likewise.
10842
10843         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
10844         and <math_private.h>.
10845         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
10846         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
10847         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
10848         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
10849         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
10850         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
10851         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
10852         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
10853         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
10854         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
10855         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
10856         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
10857         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
10858         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
10859         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
10860         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
10861         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
10862         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
10863         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
10864         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
10865         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
10866         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
10867         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
10868         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
10869         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
10870         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
10871         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
10872         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
10873         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
10874         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
10875         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
10876         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
10877         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
10878         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
10879         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
10880         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
10881         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
10882         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
10883         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
10884         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
10885         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
10886         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
10887         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
10888         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
10889         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
10890         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
10891         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
10892         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
10893         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
10894         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
10895         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
10896         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
10897         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
10898         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
10899         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
10900         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
10901         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
10902         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
10903         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
10904         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
10905         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
10906         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
10907         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
10908         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
10909         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
10910         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
10911         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
10912         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
10913         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
10914         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
10915         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
10916         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
10917         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
10918         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
10919         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
10920         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
10921         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
10922         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
10923         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
10924         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
10925         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
10926         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
10927         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
10928         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
10929         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
10930         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
10931         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
10932         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
10933         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
10934         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
10935         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
10936         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
10937         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
10938         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
10939         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
10940         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
10941         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
10942         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
10943         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
10944         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
10945         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
10946         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
10947         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
10948         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
10949         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
10950         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
10951         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
10952         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
10953         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
10954         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
10955         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
10956         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
10957         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
10958         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
10959         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
10960         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
10961         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
10962         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
10963         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
10964         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
10965         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
10966         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
10967         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
10968         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
10969         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
10970         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
10971         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
10972         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
10973         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
10974         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
10975         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
10976         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
10977         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
10978         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
10979         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
10980         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
10981         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
10982         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
10983         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
10984         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
10985         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
10986         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
10987         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
10988         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
10989         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
10990         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
10991         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
10992         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
10993         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
10994         * sysdeps/ieee754/k_standard.c: Likewise.
10995         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
10996         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
10997         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
10998         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
10999         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
11000         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
11001         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
11002         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
11003         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
11004         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
11005         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
11006         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
11007         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
11008         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
11009         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
11010         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
11011         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
11012         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
11013         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
11014         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
11015         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
11016         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
11017         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
11018         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
11019         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
11020         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
11021         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
11022         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
11023         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
11024         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
11025         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
11026         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
11027         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
11028         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
11029         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
11030         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
11031         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
11032         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
11033         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
11034         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
11035         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
11036         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
11037         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
11038         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
11039         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
11040         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
11041         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
11042         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
11043         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
11044         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
11045         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
11046         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
11047         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
11048         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
11049         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
11050         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
11051         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
11052         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
11053         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
11054         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
11055         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
11056         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
11057         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
11058         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
11059         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
11060         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
11061         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
11062         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
11063         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
11064         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
11065         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
11066         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
11067         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
11068         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
11069         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
11070         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
11071         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
11072         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
11073         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
11074         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
11075         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
11076         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
11077         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
11078         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
11079         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
11080         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
11081         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
11082         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
11083         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
11084         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
11085         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
11086         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
11087         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
11088         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
11089         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
11090         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
11091         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
11092         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
11093         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
11094         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
11095         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
11096         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
11097         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
11098         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
11099         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
11100         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
11101         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
11102         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
11103         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
11104         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
11105         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
11106         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
11107         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
11108         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
11109         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
11110         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
11111         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
11112         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
11113         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
11114         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
11115         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
11116         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
11117         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
11118         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
11119         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
11120         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
11121         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
11122         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
11123         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
11124         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
11125         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
11126         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
11127         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
11128         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
11129         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
11130         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
11131         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
11132         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
11133         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
11134         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
11135         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
11136         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
11137         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
11138         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
11139         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
11140         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
11141         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
11142         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
11143         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
11144         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
11145         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
11146         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
11147         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
11148         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
11149         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
11150         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
11151         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
11152         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
11153         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
11154         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
11155         * sysdeps/ieee754/s_lib_version.c: Likewise.
11156         * sysdeps/ieee754/s_matherr.c: Likewise.
11157         * sysdeps/ieee754/s_signgam.c: Likewise.
11158         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
11159         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
11160         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
11161         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
11162         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
11163         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
11164         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
11165         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
11166         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
11167         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
11168         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
11169         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
11170         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
11171         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
11172         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
11173         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
11174         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
11175         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
11176         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
11177         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
11178         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
11179
11180 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
11181
11182         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
11183         * sunrpc/rpc_main.c: Likewise.
11184         * sunrpc/rpc_svcout.c: Likewise.
11185
11186 2012-03-09  David S. Miller  <davem@davemloft.net>
11187
11188         * include/math_private.h: New file.
11189
11190 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
11191
11192         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
11193         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
11194         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
11195         from <bits/socket_type.h>.
11196         (enum __socket_type): Don't define here.
11197         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
11198         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11199         bits/socket_type.h.
11200
11201         [BZ #13566]
11202         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
11203         checking __USE_GNU.
11204
11205         * Makerules ($(inst_includedir)/%.h): New rule.
11206         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
11207         (install-others): Remove variable setting.
11208         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
11209
11210 2012-03-08  Richard Henderson  <rth@twiddle.net>
11211
11212         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
11213         from macro to inline function; merge with the
11214         !__LIBC_INTERNAL_MATH_INLINES version.
11215         (__ieee754_sqrtf): Likewise.
11216
11217         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
11218         to inline function.
11219         (__rintf, __floor, __floorf): Likewise.
11220
11221         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
11222         macro to inline function.
11223         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
11224
11225         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
11226         not <math/math_private.h>.
11227
11228 2012-03-08  David S. Miller  <davem@davemloft.net>
11229
11230         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
11231         copyright year.
11232         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
11233
11234 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
11235
11236         * resolv/gai_misc.c (handle_requests): Fix struct timespec
11237         normalization.
11238         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
11239         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
11240
11241 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
11242
11243         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
11244         be defined individually, they must be defined as a block.  Define
11245         S for printing a string instead of hidint the different by using a
11246         macro for adding the 'l'.
11247         * stdio-common/tst-fphex-wide.c: Adjust.
11248
11249 2012-03-07  Marek Polacek  <polacek@redhat.com>
11250
11251         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
11252
11253 2012-03-08  Marek Polacek  <polacek@redhat.com>
11254
11255         [BZ #13806]
11256         * stdio-common/Makefile (tests): Add tst-fphex-wide.
11257         * stdio-common/tst-fphex.c: Define a few macros to make the
11258         test reusable.  Use them.
11259         * stdio-common/tst-fphex-wide.c: New file.
11260
11261 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
11262
11263         [BZ #6911]
11264         * manual/macros.texi (gnusystems): New macro.
11265         (nongnusystems): Likewise.
11266         (gnulinuxhurdsystems): Likewise.
11267         (gnuhurdsystems): Likewise..
11268         (gnulinuxsystems): Likewise.
11269         * manual/charset.texi: Use new macros or @theglibc{} to refer to
11270         variants of the GNU system, not "GNU system".
11271         * manual/conf.texi: Likewise.
11272         * manual/errno.texi: Likewise.  Update example of errno macro
11273         expansion.
11274         * manual/filesys.texi: Likewise.
11275         (getumask): Document as specific to GNU/Hurd.
11276         * manual/install.texi: Likewise.  Reword some references to
11277         GNU/Linux.
11278         * manual/intro.texi: Likewise.
11279         * manual/io.texi: Likewise.
11280         (File Name Portability): Detail which constraints are inapplicable
11281         to all GNU systems and which are only inapplicable to GNU/Hurd.
11282         * manual/job.texi: Likewise.
11283         * manual/llio.texi: Likewise.
11284         (O_NOCTTY): Document as present on GNU/Linux.
11285         * manual/maint.texi: Likewise.
11286         * manual/memory.texi: Likewise.
11287         * manual/pattern.texi: Likewise.
11288         * manual/pipe.texi: Likewise.
11289         * manual/process.texi: Likewise.
11290         * manual/resource.texi: Likewise.
11291         (RUSAGE_CHILDREN): Remove statement about specifying a particular
11292         child on GNU/Hurd.
11293         * manual/setjmp.texi: Likewise.
11294         * manual/signal.texi: Likewise.
11295         * manual/startup.texi: Likewise.
11296         * manual/stdio.texi: Likewise.
11297         * manual/terminal.texi: Likewise.
11298         (ONLCR): Document as POSIX.
11299         (OXTABS): Document availability on GNU/Linux as XTABS.
11300         (ONOEOT): Document availability separately from other bits.
11301         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
11302         * manual/time.texi: Likewise.
11303         * manual/users.texi: Likewise.
11304         * INSTALL: Regenerated.
11305         * sysdeps/gnu/errlist.c: Regenerated.
11306
11307         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
11308         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
11309         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
11310         puts.
11311         * configure: Regenerated.
11312
11313 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
11314
11315         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
11316         default includes instead of AC_HEADER_CHECK.
11317         * sysdeps/i386/configure: Regenerated.
11318
11319         [BZ #10716]
11320         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
11321         * math/s_cacoshf.c (__cacoshf): Likewise.
11322         * math/s_cacoshl.c (__cacoshl): Likewise.
11323         * math/s_casinh.c (__casinh): Set signs of result from argument.
11324         * math/s_casinhf.c (__casinhf): Likewise.
11325         * math/s_casinhl.c (__casinhl): Likewise.
11326         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
11327         (casinh_test): Add more tests.
11328         * sysdeps/i386/fpu/libm-test-ulps: Update.
11329         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11330
11331 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
11332
11333         * po/zh_TW.po: Update from translation team.
11334
11335         * login/Makefile (distribute): Remove variable.
11336         * catgets/Makefile: Likewise.
11337         * mach/Makefile: Likewise.
11338         * malloc/Makefile: Likewise.
11339         * misc/Makefile: Likewise.
11340         * iconv/Makefile: Likewise.
11341         * nscd/Makefile: Likewise.
11342         * hurd/Makefile: Likewise.
11343         * manual/Makefile: Likewise.
11344         * locale/Makefile: Likewise.
11345         * intl/Makefile: Likewise.
11346         * conform/Makefile: Likewise.
11347         * nss/Makefile: Likewise.
11348         * time/Makefile: Likewise.
11349         * soft-fp/Makefile: Likewise.
11350         * dirent/Makefile: Likewise.
11351         * gmon/Makefile: Likewise.
11352         * po/Makefile: Likewise.
11353         * rt/Makefile: Likewise.
11354         * socket/Makefile: Likewise.
11355         * math/Makefile: Likewise.
11356         * signal/Makefile: Likewise.
11357         * debug/Makefile: Likewise.
11358         * elf/Makefile: Likewise.
11359         * timezone/Makefile: Likewise.
11360         * stdlib/Makefile: Likewise.
11361         * iconvdata/Makefile: Likewise.
11362         * sunrpc/Makefile: Likewise.
11363         * io/Makefile: Likewise.
11364         * argp/Makefile: Likewise.
11365         * inet/Makefile: Likewise.
11366         * hesiod/Makefile: Likewise.
11367         * grp/Makefile: Likewise.
11368         * csu/Makefile: Likewise.
11369         * wctype/Makefile: Likewise.
11370         * crypt/Makefile: Likewise.
11371         * libio/Makefile: Likewise.
11372         * string/Makefile: Likewise.
11373         * nis/Makefile: Likewise.
11374         * resolv/Makefile: Likewise.
11375         * stdio-common/Makefile: Likewise.
11376         * wcsmbs/Makefile: Likewise.
11377         * dlfcn/Makefile: Likewise.
11378         * posix/Makefile: Likewise.
11379
11380         [BZ #6959]
11381         * timezone/Makefile: Don't install timezone files, just the programs
11382         and scripts.
11383
11384 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
11385
11386         * nss/databases.def: Add missing gshadow entry.
11387
11388         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
11389
11390 2012-03-06  Marek Polacek  <polacek@redhat.com>
11391
11392         [BZ #13726]
11393         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
11394         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
11395         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
11396         * stdio-common/tst-long-dbl-fphex.c: New file.
11397
11398 2012-03-06  David S. Miller  <davem@davemloft.net>
11399
11400         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
11401         (set_obp_int): New function.
11402         (get_obp_int): New function.
11403         (__get_clockfreq_via_dev_openprom): Likewise.
11404         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
11405         Avoid unused variable warnings on 'val' and use builtin_expect.
11406         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
11407         __builtin_expect.
11408         (INLINE_CLONE_SYSCALL): Likewise.
11409
11410 2012-03-05  David S. Miller  <davem@davemloft.net>
11411
11412         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11413
11414 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
11415
11416         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11417
11418         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
11419         only for |x| >= 40.
11420         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
11421
11422 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
11423
11424         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
11425         Replace gettimeofday with __vdso_gettimeofday.
11426
11427         * sysdeps/unix/sysv/linux/x86_64/init-first.c
11428         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
11429         __vdso_clock_gettime and __vdso_getcpu.
11430
11431         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
11432         time with __vdso_time.
11433
11434 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
11435
11436         * manual/lang.texi (size_t): Note types to which size_t may be
11437         equivalent with the GNU C Library, but do not describe when
11438         differences between them are significant.
11439
11440 2012-03-05  Andreas Jaeger  <aj@suse.de>
11441
11442         * sysdeps/i386/fpu/libm-test-ulps: Update.
11443
11444 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
11445
11446         [BZ #3976]
11447         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
11448         (__ieee754_pow): Save and restore rounding mode and use
11449         round-to-nearest for main computations.
11450         * math/libm-test.inc (pow_test_tonearest): New function.
11451         (pow_test_towardzero): Likewise.
11452         (pow_test_downward): Likewise.
11453         (pow_test_upward): Likewise.
11454         (main): Call the new functions.
11455         * sysdeps/i386/fpu/libm-test-ulps: Update.
11456         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11457
11458         [BZ #3976]
11459         * math/libm-test.inc (cosh_test_tonearest): New function.
11460         (cosh_test_towardzero): Likewise.
11461         (cosh_test_downward): Likewise.
11462         (cosh_test_upward): Likewise.
11463         (sinh_test_tonearest): Likewise.
11464         (sinh_test_towardzero): Likewise.
11465         (sinh_test_downward): Likewise.
11466         (sinh_test_upward): Likewise.
11467         (main): Call the new functions.
11468         * sysdeps/i386/fpu/libm-test-ulps: Update.
11469         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11470
11471 2012-03-05  Tom de Vries  <tom@codesourcery.com>
11472
11473         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
11474         default stack guard is set in last bytes.
11475         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
11476
11477 2012-03-05  Kees Cook  <keescook@chromium.org>
11478
11479         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
11480
11481         [BZ #13656]
11482         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
11483         possibly allocate from heap instead of stack.
11484         * stdio-common/bug-vfprintf-nargs.c: New file.
11485         * stdio-common/Makefile (tests): Add nargs overflow test.
11486
11487 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
11488
11489         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11490
11491 2012-03-03  Marek Polacek  <polacek@redhat.com>
11492
11493         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
11494         * math/math_private.h: Likewise.
11495         * stdlib/tst-strtod.c: Likewise.
11496         * sysdeps/i386/i486/bits/atomic.h: Likewise.
11497         * sysdeps/x86_64/bits/atomic.h: Likewise.
11498
11499 2012-03-02  David S. Miller  <davem@davemloft.net>
11500
11501         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
11502         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
11503         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
11504         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
11505         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
11506         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
11507         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
11508         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
11509
11510 2012-03-02  Roland McGrath  <roland@hack.frob.com>
11511
11512         [BZ #13792]
11513         * manual/examples/README: New file, says the example source files
11514         can be used under GPL>=2.
11515         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
11516         line containing just "*/".
11517         * manual/examples/add.c: Add copyright header (GPL>=2).
11518         * manual/examples/argp-ex1.c: Likewise.
11519         * manual/examples/argp-ex2.c: Likewise.
11520         * manual/examples/argp-ex3.c: Likewise.
11521         * manual/examples/argp-ex4.c: Likewise.
11522         * manual/examples/atexit.c: Likewise.
11523         * manual/examples/db.c: Likewise.
11524         * manual/examples/dir.c: Likewise.
11525         * manual/examples/dir2.c: Likewise.
11526         * manual/examples/execinfo.c: Likewise.
11527         * manual/examples/filecli.c: Likewise.
11528         * manual/examples/filesrv.c: Likewise.
11529         * manual/examples/fmtmsgexpl.c: Likewise.
11530         * manual/examples/genpass.c: Likewise.
11531         * manual/examples/inetcli.c: Likewise.
11532         * manual/examples/inetsrv.c: Likewise.
11533         * manual/examples/isockad.c: Likewise.
11534         * manual/examples/longopt.c: Likewise.
11535         * manual/examples/memopen.c: Likewise.
11536         * manual/examples/memstrm.c: Likewise.
11537         * manual/examples/mkfsock.c: Likewise.
11538         * manual/examples/mkisock.c: Likewise.
11539         * manual/examples/mygetpass.c: Likewise.
11540         * manual/examples/pipe.c: Likewise.
11541         * manual/examples/popen.c: Likewise.
11542         * manual/examples/rprintf.c: Likewise.
11543         * manual/examples/search.c: Likewise.
11544         * manual/examples/select.c: Likewise.
11545         * manual/examples/setjmp.c: Likewise.
11546         * manual/examples/sigh1.c: Likewise.
11547         * manual/examples/sigusr.c: Likewise.
11548         * manual/examples/stpcpy.c: Likewise.
11549         * manual/examples/strdupa.c: Likewise.
11550         * manual/examples/strftim.c: Likewise.
11551         * manual/examples/strncat.c: Likewise.
11552         * manual/examples/subopt.c: Likewise.
11553         * manual/examples/swapcontext.c: Likewise.
11554         * manual/examples/termios.c: Likewise.
11555         * manual/examples/testopt.c: Likewise.
11556         * manual/examples/testpass.c: Likewise.
11557         * manual/examples/timeval_subtract.c: Likewise.
11558
11559         [BZ #13792]
11560         * manual/time.texi (Elapsed Time): Move timeval_subtract example
11561         function to ...
11562         * manual/timeval_subtract.c.texi: ... here, new file.
11563
11564 2012-03-02  David S. Miller  <davem@davemloft.net>
11565
11566         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
11567
11568 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
11569
11570         [BZ #3976]
11571         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
11572         (__sin): Save and restore rounding mode and use round-to-nearest
11573         for all computations.
11574         (__cos): Save and restore rounding mode and use round-to-nearest
11575         for all computations.
11576         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
11577         <fenv.h>.
11578         (tan): Save and restore rounding mode and use round-to-nearest for
11579         all computations.
11580         * math/libm-test.inc (cos_test_tonearest): New function.
11581         (cos_test_towardzero): Likewise.
11582         (cos_test_downward): Likewise.
11583         (cos_test_upward): Likewise.
11584         (sin_test_tonearest): Likewise.
11585         (sin_test_towardzero): Likewise.
11586         (sin_test_downward): Likewise.
11587         (sin_test_upward): Likewise.
11588         (tan_test_tonearest): Likewise.
11589         (tan_test_towardzero): Likewise.
11590         (tan_test_downward): Likewise.
11591         (tan_test_upward): Likewise.
11592         (main): Call the new functions.
11593         * sysdeps/i386/fpu/libm-test-ulps: Update.
11594         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11595
11596         [BZ #10135]
11597         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
11598         small n, then large n, before computing and testing k+n.
11599         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
11600         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
11601         Likewise.
11602         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
11603         Likewise.
11604         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
11605         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
11606         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
11607         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
11608         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
11609         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
11610         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
11611         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
11612         * math/libm-test.inc (scalbn_test): Add more tests.
11613         (scalbln_test): Likewise.
11614
11615         * manual/filesys.texi (mode_t): Describe constraints on size and
11616         signedness, not exact equivalence to a particular type.
11617         (ino_t): Likewise.
11618         (ino64_t): Likewise.
11619         (dev_t): Likewise.
11620         (nlink_t): Likewise.
11621         (blkcnt_t): Likewise.
11622         (blkcnt64_t): Likewise.
11623         * manual/llio.texi (off_t): Likewise.
11624
11625         [BZ #3976]
11626         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
11627         (__ieee754_exp): Save and restore rounding mode and use
11628         round-to-nearest for all computations.
11629         * math/libm-test.inc (exp_test_tonearest): New function.
11630         (exp_test_towardzero): Likewise.
11631         (exp_test_downward): Likewise.
11632         (exp_test_upward): Likewise.
11633         (main): Call the new functions.
11634         * sysdeps/i386/fpu/libm-test-ulps: Update.
11635         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11636
11637 2012-03-01  Chris Demetriou  <cgd@google.com>
11638
11639         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
11640         have predictable order.
11641
11642 2012-03-01  David S. Miller  <davem@davemloft.net>
11643
11644         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
11645
11646         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
11647         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
11648         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
11649         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
11650
11651         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
11652         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
11653         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
11654         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
11655         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
11656         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
11657         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
11658         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
11659         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
11660
11661         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11662
11663         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
11664         * sysdeps/sparc/fpu/libm-test-ulps: to here.
11665         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
11666
11667         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
11668         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
11669         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
11670         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
11671         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
11672         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
11673         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
11674         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
11675         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
11676         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
11677         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
11678         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
11679         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
11680         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
11681         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
11682         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
11683         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
11684         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
11685         * sysdeps/sparc/elf/configure: Regenerated.
11686
11687 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
11688
11689         * configure.in (AS, LD): Require binutils 2.20 or later.
11690         * configure: Regenerated.
11691         * manual/install.texi (Tools for Compilation): Give binutils 2.20
11692         as required minimum version.
11693         * INSTALL: Regenerated.
11694
11695         [BZ #2541]
11696         [BZ #4108]
11697         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
11698         before squaring exponent.
11699         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
11700         bottom long double and 27 bits of top long double before squaring
11701         exponent.
11702         * math/libm-test.inc (erfc_test): Add more tests.
11703         * sysdeps/i386/fpu/libm-test-ulps: Update.
11704         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
11705         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11706
11707 2012-03-01  Kai Tietz  <ktietz@redhat.com>
11708
11709         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
11710         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
11711         containing bit-fields.
11712         * soft-fp/extended.h (_FP_UNION_E): Likewise.
11713         * soft-fp/single.h (_FP_UNION_S): Likewise.
11714         * soft-fp/double.h (_FP_UNION_D): Likewise.
11715
11716 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
11717
11718         [BZ #13786]
11719         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
11720         not include ../strcmp.S.
11721         [USE_AS_STRNCASECMP_L]: Likewise.
11722         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
11723         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
11724         * sysdeps/i386/i686/multiarch/strncase_l-c.c
11725         (__strncasecmp_l_ia32): Define as alias to
11726         __strncasecmp_l_nonascii.
11727
11728         [BZ #5794]
11729         * math/libm-test.inc (expm1_test): Add test for bug 5794.
11730         * sysdeps/i386/fpu/libm-test-ulps: Update.
11731         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11732
11733         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
11734         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11735
11736 2012-02-29  Jeff Law  <law@redhat.com>
11737
11738         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
11739         out of bounds read.
11740
11741 2012-02-29  Marek Polacek  <polacek@redhat.com>
11742
11743         [BZ #13706]
11744         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
11745         * elf/Makefile: Add rules to run tst-unused-dep.out.
11746
11747 2012-02-28  David S. Miller  <davem@davemloft.net>
11748
11749         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
11750         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
11751         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
11752         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
11753         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
11754         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
11755
11756 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
11757
11758         * math/libm-test.inc (llround_test): Move one test from
11759         lround_test.  Use TEST_f_L in moved test.
11760         (lround_test): Move misplaced test to llround_test.  Add testcase
11761         from bug 2561.
11762
11763 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
11764
11765         * sysdeps/x86_64/fpu/e_expf.S: New file.
11766         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
11767
11768 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
11769
11770         [BZ #13637]
11771         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
11772         of remain_len that may cause incomplete multi-byte character and
11773         false match.
11774         * posix/bug-regex33.c: New file.
11775         * posix/Makefile (tests): Add bug-regex33.
11776
11777 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
11778
11779         * manual/macros.texi: New file.
11780         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
11781         * manual/libc.texinfo: Include macros.texi.
11782         * manual/creatute.texi: Likewise.
11783         * manual/install.texi: Likewise.
11784         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
11785         @glibcadj{} in references to the GNU C Library.
11786         * manual/charset.texi: Likewise.
11787         * manual/conf.texi: Likewise.
11788         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
11789         when not using those macros.
11790         * manual/creature.texi: Likewise.
11791         * manual/crypt.texi: Likewise.
11792         * manual/errno.texi: Likewise.
11793         * manual/filesys.texi: Likewise.
11794         * manual/header.texi: Likewise.
11795         * manual/install.texi: Likewise.
11796         * manual/intro.texi: Likewise.
11797         * manual/io.texi: Likewise.
11798         * manual/job.texi: Likewise.
11799         * manual/lang.texi: Likewise.
11800         * manual/libc.texiinfo: Likewise.
11801         * manual/llio.texi: Likewise.
11802         * manual/locale.texi: Likewise.
11803         * manual/maint.texi: Likewise.
11804         * manual/math.texi: Likewise.
11805         * manual/memory.texi: Likewise.
11806         * manual/message.texi: Likewise.
11807         * manual/nss.texi: Likewise.
11808         * manual/pattern.texi: Likewise.
11809         * manual/process.texi: Likewise.
11810         * manual/resource.texi: Likewise.
11811         * manual/search.texi: Likewise.
11812         * manual/setjmp.texi: Likewise.
11813         * manual/signal.texi: Likewise.
11814         * manual/socket.texi: Likewise.
11815         * manual/startup.texi: Likewise.
11816         * manual/stdio.texi: Likewise.
11817         * manual/string.texi: Likewise.
11818         * manual/sysinfo.texi: Likewise.
11819         * manual/syslog.texi: Likewise.
11820         * manual/terminal.texi: Likewise.
11821         * manual/time.texi: Likewise.
11822         * manual/users.texi: Likewise.
11823         * INSTALL: Regenerated.
11824         * NOTES: Regenerated.
11825         * sysdeps/gnu/errlist.c: Regenerated.
11826
11827 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
11828
11829         * include/dirent.h: Include <dirstream.h> before
11830         <dirent/dirent.h>.
11831
11832 2012-02-28  David S. Miller  <davem@davemloft.net>
11833
11834         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
11835         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
11836         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
11837         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
11838
11839 2012-02-27  David S. Miller  <davem@davemloft.net>
11840
11841         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
11842         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
11843         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
11844         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
11845
11846         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
11847         frame pointer instead of stack pointer relative arg slot.
11848         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
11849         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
11850         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
11851
11852 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
11853
11854         [BZ #3992]
11855         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
11856
11857 2012-02-27  David S. Miller  <davem@davemloft.net>
11858
11859         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
11860         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
11861         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
11862         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
11863         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
11864         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
11865         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
11866         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
11867
11868 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
11869
11870         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
11871         later.  Allow versions 5-9.
11872         * configure: Regenerated.
11873         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
11874         required minimum version and 4.6 as recommended version.  Do not
11875         mention bugs in GCC 2.7 and 2.8.
11876         * INSTALL: Regenerated.
11877
11878 2012-02-27  David S. Miller  <davem@davemloft.net>
11879
11880         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
11881         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
11882         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
11883         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
11884         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
11885         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
11886         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
11887         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
11888
11889         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
11890         manipulate bits before adding and subtracting TWO112[sx].
11891         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
11892
11893 2012-02-27  Roland McGrath  <roland@hack.frob.com>
11894
11895         [BZ #13775]
11896         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
11897         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
11898         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
11899         being in POSIX, because they are in 1003.1-2008.
11900
11901         * rt/tst-aio.c: Include <fcntl.h>.
11902         * rt/tst-aio7.c: Likewise.
11903         * rt/tst-aio64.c: Likewise.
11904
11905         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
11906
11907 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
11908
11909         * manual/install.texi (--with-headers): Describe headers as
11910         interface headers, not private headers.
11911         (Specific advice for GNU/Linux systems): Describe use of headers
11912         from "make headers_install", not private headers from older
11913         kernels.
11914         * INSTALL: Regenerated.
11915         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
11916         Change to 2.6.19.
11917         * sysdeps/unix/sysv/linux/configure: Regenerated.
11918
11919         * manual/llio.texi (fclean): Remove documentation.
11920
11921         * manual/Makefile (libc-texi-generated): New variable.  Include
11922         version.texi.
11923         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
11924         $(libc-texi-generated), not duplicated list of files.
11925         (version.texi, stamp-version): New rules.
11926         (realclean): Remove $(libc-texi-generated), not individual files
11927         from that list.  Do not remove dir-add.texinfo.
11928         * manual/libc.texinfo: Comment out uses of edition numbers and
11929         references to printed manual.  Remove last-updated dates.
11930         (EDITION): Comment out.
11931         (ISBN): Likewise.
11932         (VERSION, UPDATED): Remove.
11933         (version.texi): Include.
11934
11935 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
11936
11937         * sysdeps/posix/spawni.c: Include <signal.h>.
11938         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
11939         * sysdeps/pthread/aio_fsync.c: Likewise.
11940
11941 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
11942
11943         * conform/Makefile (tests): Run only when not cross-compiling and
11944         when fast-check is not defined.
11945
11946         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
11947         * conform/data/limits.h-data: Fixes for POSIX2008.
11948         * conform/run-conformtest.sh: Run all tests.
11949         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
11950         headers.
11951         * include/bits/dlfcn.h: Likewise.
11952         * include/langinfo.h: Likewise.
11953         * include/monetary.h: Likewise.
11954         * include/sys/poll.h: Likewise.
11955
11956         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
11957         for __USE_GNU.
11958         * posix/spawn.h: Define __need_sigset_t.
11959         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
11960         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
11961         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
11962         to get sigevent_t only.
11963         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
11964         only for __USE_GNU.
11965         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
11966         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
11967         process_vm_writev only for __USE_GNU.
11968         * termios/termios.h: Declare tcgetsid also for POSIX2008.
11969
11970         * conform/Makefile: For now ignore errors from run-conformtest.
11971         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
11972         POSIX to avoid namespace pollution.  Don't prepend headers.
11973         * conform/data/aio.h-data: Fixes for POSIX testing.
11974         * conform/data/fcntl.h-data: Likewise.
11975         * conform/data/glob.h-data: Likewise.
11976         * conform/data/grp.h-data: Likewise.
11977         * conform/data/pthread.h-data: Likewise.
11978         * conform/data/pwd.h-data: Likewise.
11979         * conform/data/signal.h-data: Likewise.
11980         * conform/data/spawn.h-data: Likewise.
11981         * conform/data/stdio.h-data: Likewise.
11982         * conform/data/stdlib.h-data: Likewise.
11983         * conform/data/stropts.h-data: Likewise.
11984         * conform/data/sys/mman.h-data: Likewise.
11985         * conform/data/sys/stat.h-data: Likewise.
11986         * conform/data/sys/types.h-data: Likewise.
11987         * conform/data/sys/wait.h-data: Likewise.
11988         * conform/data/time.h-data: Likewise.
11989         * conform/data/unistd.h-data: Likewise.
11990         * conform/data/utime.h-data: Likewise.
11991
11992         * io/sys/stat.h: fchmod was always in POSIX.
11993         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
11994         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
11995         * rt/aio.h: Define __need_timespec before including <time.h>.
11996         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
11997         struct.  Add forward declaration of pthread_attr_t and use it in
11998         sigevent.
11999         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
12000         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
12001         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
12002         always remove CLK_TCK definition.
12003
12004 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
12005
12006         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
12007
12008 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
12009
12010         * conform/run-conformtest.sh: New file.
12011         * conform/Makefile: Run run-conformtest for tests.
12012         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
12013         support.
12014
12015         * conform/data/uchar.h-data: New file.
12016         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
12017         * conform/data/arpa/inet.h-data: Likewise.
12018         * conform/data/assert.h-data: Likewise.
12019         * conform/data/complex.h-data: Likewise.
12020         * conform/data/cpio.h-data: Likewise.
12021         * conform/data/ctype.h-data: Likewise.
12022         * conform/data/dirent.h-data: Likewise.
12023         * conform/data/dlfcn.h-data: Likewise.
12024         * conform/data/errno.h-data: Likewise.
12025         * conform/data/fcntl.h-data: Likewise.
12026         * conform/data/float.h-data: Likewise.
12027         * conform/data/fmtmsg.h-data: Likewise.
12028         * conform/data/fnmatch.h-data: Likewise.
12029         * conform/data/ftw.h-data: Likewise.
12030         * conform/data/glob.h-data: Likewise.
12031         * conform/data/grp.h-data: Likewise.
12032         * conform/data/iconv.h-data: Likewise.
12033         * conform/data/inttypes.h-data: Likewise.
12034         * conform/data/langinfo.h-data: Likewise.
12035         * conform/data/libgen.h-data: Likewise.
12036         * conform/data/limits.h-data: Likewise.
12037         * conform/data/locale.h-data: Likewise.
12038         * conform/data/math.h-data: Likewise.
12039         * conform/data/monetary.h-data: Likewise.
12040         * conform/data/mqueue.h-data: Likewise.
12041         * conform/data/ndbm.h-data: Likewise.
12042         * conform/data/net/if.h-data: Likewise.
12043         * conform/data/netdb.h-data: Likewise.
12044         * conform/data/netinet/in.h-data: Likewise.
12045         * conform/data/nl_types.h-data: Likewise.
12046         * conform/data/poll.h-data: Likewise.
12047         * conform/data/pthread.h-data: Likewise.
12048         * conform/data/pwd.h-data: Likewise.
12049         * conform/data/regex.h-data: Likewise.
12050         * conform/data/sched.h-data: Likewise.
12051         * conform/data/search.h-data: Likewise.
12052         * conform/data/semaphore.h-data: Likewise.
12053         * conform/data/setjmp.h-data: Likewise.
12054         * conform/data/signal.h-data: Likewise.
12055         * conform/data/spawn.h-data: Likewise.
12056         * conform/data/stdarg.h-data: Likewise.
12057         * conform/data/stdio.h-data: Likewise.
12058         * conform/data/stdlib.h-data: Likewise.
12059         * conform/data/string.h-data: Likewise.
12060         * conform/data/strings.h-data: Likewise.
12061         * conform/data/stropts.h-data: Likewise.
12062         * conform/data/sys/ipc.h-data: Likewise.
12063         * conform/data/sys/mman.h-data: Likewise.
12064         * conform/data/sys/msg.h-data: Likewise.
12065         * conform/data/sys/resource.h-data: Likewise.
12066         * conform/data/sys/select.h-data: Likewise.
12067         * conform/data/sys/sem.h-data: Likewise.
12068         * conform/data/sys/shm.h-data: Likewise.
12069         * conform/data/sys/socket.h-data: Likewise.
12070         * conform/data/sys/stat.h-data: Likewise.
12071         * conform/data/sys/statvfs.h-data: Likewise.
12072         * conform/data/sys/time.h-data: Likewise.
12073         * conform/data/sys/timeb.h-data: Likewise.
12074         * conform/data/sys/times.h-data: Likewise.
12075         * conform/data/sys/types.h-data: Likewise.
12076         * conform/data/sys/uio.h-data: Likewise.
12077         * conform/data/sys/un.h-data: Likewise.
12078         * conform/data/sys/utsname.h-data: Likewise.
12079         * conform/data/sys/wait.h-data: Likewise.
12080         * conform/data/syslog.h-data: Likewise.
12081         * conform/data/tar.h-data: Likewise.
12082         * conform/data/termios.h-data: Likewise.
12083         * conform/data/utime.h-data: Likewise.
12084         * conform/data/utmpx.h-data: Likewise.
12085         * conform/data/varargs.h-data: Likewise.
12086         * conform/data/wchar.h-data: Likewise.
12087         * conform/data/wctype.h-data: Likewise.
12088         * conform/data/wordexp.h-data: Likewise.
12089
12090         * include/stropts.h: New file.
12091         * include/uchar.h: New file.
12092         * include/aio.h: Changes to allow conformtest.pl to use the headers.
12093         * include/assert.h: Likewise.
12094         * include/ctype.h: Likewise.
12095         * include/dirent.h: Likewise.
12096         * include/dlfcn.h: Likewise.
12097         * include/fcntl.h: Likewise.
12098         * include/fnmatch.h: Likewise.
12099         * include/glob.h: Likewise.
12100         * include/grp.h: Likewise.
12101         * include/libio.h: Likewise.
12102         * include/locale.h: Likewise.
12103         * include/math.h: Likewise.
12104         * include/net/if.h: Likewise.
12105         * include/netdb.h: Likewise.
12106         * include/netinet/in.h: Likewise.
12107         * include/pthread.h: Likewise.
12108         * include/pwd.h: Likewise.
12109         * include/regex.h: Likewise.
12110         * include/sched.h: Likewise.
12111         * include/search.h: Likewise.
12112         * include/setjmp.h: Likewise.
12113         * include/signal.h: Likewise.
12114         * include/stdio.h: Likewise.
12115         * include/stdlib.h: Likewise.
12116         * include/string.h: Likewise.
12117         * include/sys/cdefs.h: Likewise.
12118         * include/sys/mman.h: Likewise.
12119         * include/sys/msg.h: Likewise.
12120         * include/sys/resource.h: Likewise.
12121         * include/sys/select.h: Likewise.
12122         * include/sys/socket.h: Likewise.
12123         * include/sys/stat.h: Likewise.
12124         * include/sys/statvfs.h: Likewise.
12125         * include/sys/time.h: Likewise.
12126         * include/sys/times.h: Likewise.
12127         * include/sys/uio.h: Likewise.
12128         * include/sys/utsname.h: Likewise.
12129         * include/sys/wait.h: Likewise.
12130         * include/termios.h: Likewise.
12131         * include/time.h: Likewise.
12132         * include/ulimit.h: Likewise.
12133         * include/unistd.h: Likewise.
12134         * include/utime.h: Likewise.
12135         * include/wchar.h: Likewise.
12136         * include/wctype.h: Likewise.
12137         * include/wordexp.h: Likewise.
12138
12139         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
12140
12141         * time/time.h: TIME_UTC must be a macro.
12142         Make timespec_get available for ISO C11 only as well.
12143
12144 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
12145
12146         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
12147         Reported by Peng Haitao <penght@cn.fujitsu.com>.
12148
12149 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
12150
12151         * configure.in: Use -o not -a in test for unsupported multi-arch.
12152
12153 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
12154
12155         * manual/texinfo.tex: Update to version 2012-01-19.16.
12156
12157 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
12158
12159         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
12160
12161 2012-02-24  Roland McGrath  <roland@hack.frob.com>
12162
12163         [BZ #13738]
12164         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
12165         * manual/fdl-1.3.texi: New file.
12166         * manual/fdl-1.1.texi: File removed.
12167
12168         [BZ #13738]
12169         * manual/libc.texinfo (FDL_VERSION): New @set.
12170         Use it for mention of FDL in cover text.
12171         (Documentation License): Use it in @include file name.
12172
12173 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12174             Roland McGrath  <roland@hack.frob.com>
12175
12176         [BZ #5461]
12177         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
12178         not LONG_LONG_MAX and LONG_LONG_MIN.
12179         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
12180         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
12181         name.
12182         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
12183
12184 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12185
12186         [BZ #2547]
12187         [BZ #11365]
12188         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
12189         manipulate bits before adding and subtracting TWO23[sx].
12190         * math/libm-test.inc (nearbyint_test): Add more tests.
12191
12192 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12193
12194         [BZ #2548]
12195         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
12196         bits before adding and subtracting TWO23[sx].
12197         * math/libm-test.inc (rint_test): Add more tests.
12198         (rint_test_tonearest): Likewise.
12199         (rint_test_towardzero): Likewise.
12200         (rint_test_downward): Likewise.
12201         (rint_test_upward: Likewise.
12202
12203 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12204
12205         [BZ #10110]
12206         * include/stdc-predef.h: New file.  Extracted from features.h.
12207         * include/features.h: Include stdc-predef.h.
12208         * Makefile (headers): Add stdc-predef.h.
12209         * CONFORMANCE (Compiler limitations): Update.
12210
12211 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12212
12213         * manual/libc.texinfo (VERSION, UPDATED): Revert.
12214
12215 2012-02-21  David S. Miller  <davem@davemloft.net>
12216
12217         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
12218         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
12219
12220 2012-02-20  David S. Miller  <davem@davemloft.net>
12221
12222         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
12223         using a normal save/restore sequence, rather than allocating a
12224         dummy stack frame just to store a frame pointer and restore.
12225         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
12226
12227 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
12228
12229         * manual/install.texi: Fix stray word in line-wrapped comment.
12230
12231 2012-02-20  David S. Miller  <davem@davemloft.net>
12232
12233         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
12234         both binutils and gcc support GOTDATA.
12235
12236         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
12237         "rd %pc" in the PIC register setup sequences.
12238
12239         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
12240         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
12241         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
12242         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
12243         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
12244         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
12245         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
12246         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
12247         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
12248         (SYSCALL_ERROR_HANDLER): Likewise.
12249         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
12250         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
12251         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
12252         (SYSCALL_ERROR_HANDLER): Likewise.
12253
12254         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
12255         (HAVE_GCC_GOTDATA): New.
12256         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
12257         relocation support in both binutils and gcc.
12258         * sysdeps/sparc/elf/configure: Regenerate.
12259
12260         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
12261         * sysdeps/sparc/sparc32/elf/configure: Delete.
12262         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
12263         * sysdeps/sparc/sparc64/elf/configure: Delete.
12264         * sysdeps/sparc/elf/configure.in: New file.
12265         * sysdeps/sparc/elf/configure: Generate.
12266
12267         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
12268         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
12269         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
12270         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
12271         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
12272
12273 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
12274
12275         * manual/install.texi: Do not mention specific glibc version
12276         numbers.
12277         * manual/libc.texinfo (VERSION, UPDATED): Update.
12278         (@copying): Use @copyright{} and range of years.
12279
12280 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
12281
12282         [BZ #13695]
12283         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
12284         [crti.S not in sysdirs] (generated): Do not append.
12285         [crti.S not in sysdirs] (omit-deps): Likewise.
12286         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
12287         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
12288         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
12289         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
12290         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
12291         Likewise.
12292         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
12293         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
12294         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
12295         * csu/defs.awk: Remove file.
12296         * sysdeps/generic/initfini.c: Likewise.
12297         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
12298         variable.
12299         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
12300         Likewise.
12301
12302 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
12303
12304         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
12305         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
12306         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
12307         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
12308         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
12309         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
12310         <bits/epoll.h>.
12311         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
12312         (__EPOLL_PACKED): Define to empty if not defined by
12313         <bits/epoll.h>.
12314         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
12315         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12316         bits/epoll.h.
12317
12318 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
12319
12320         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
12321         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
12322         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
12323         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
12324         <bits/timerfd.h>.
12325         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
12326         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12327         bits/timerfd.h.
12328
12329 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
12330
12331         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
12332         in C locale.
12333         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
12334         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
12335         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
12336         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12337
12338 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
12339
12340         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
12341         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
12342
12343 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
12344
12345         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
12346         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
12347         defined.
12348         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
12349         Likewise.
12350         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
12351         entry for 2.16.
12352
12353 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
12354
12355         * math/w_acos.c: Use non-signaling floating-point comparisons.
12356         * math/w_acosf.c: Likewise.
12357         * math/w_acosh.c: Likewise.
12358         * math/w_acoshf.c: Likewise.
12359         * math/w_acoshl.c: Likewise.
12360         * math/w_acosl.c: Likewise.
12361         * math/w_asin.c: Likewise.
12362         * math/w_asinf.c: Likewise.
12363         * math/w_asinl.c: Likewise.
12364         * math/w_atanh.c: Likewise.
12365         * math/w_atanhf.c: Likewise.
12366         * math/w_atanhl.c: Likewise.
12367         * math/w_exp2.c: Likewise.
12368         * math/w_exp2f.c: Likewise.
12369         * math/w_exp2l.c: Likewise.
12370         * math/w_j0.c: Likewise.
12371         * math/w_j0f.c: Likewise.
12372         * math/w_j0l.c: Likewise.
12373         * math/w_j1.c: Likewise.
12374         * math/w_j1f.c: Likewise.
12375         * math/w_j1l.c: Likewise.
12376         * math/w_jn.c: Likewise.
12377         * math/w_jnf.c: Likewise.
12378         * math/w_log.c: Likewise.
12379         * math/w_log10.c: Likewise.
12380         * math/w_log10f.c: Likewise.
12381         * math/w_log10l.c: Likewise.
12382         * math/w_log2.c: Likewise.
12383         * math/w_log2f.c: Likewise.
12384         * math/w_log2l.c: Likewise.
12385         * math/w_logf.c: Likewise.
12386         * math/w_logl.c: Likewise.
12387         * math/w_sqrt.c: Likewise.
12388         * math/w_sqrtf.c: Likewise.
12389         * math/w_sqrtl.c: Likewise.
12390         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
12391         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
12392         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
12393         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
12394         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
12395
12396 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
12397
12398         [BZ #9739]
12399         * manual/string.texi (strnlen): Use correct parameter name in
12400         equivalent expression.
12401
12402 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
12403
12404         [BZ #11174]
12405         * manual/users.texi (seteuid): Consistently use neweuid for
12406         argument name.
12407
12408 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
12409
12410         [BZ #13704]
12411         * manual/nss.texi (Services in the NSS configuration): Correct
12412         list of services in example configuration file.
12413
12414 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
12415
12416         [BZ #11322]
12417         * manual/arith.texi: Remove statements about negative zero
12418         behaving identically to zero.
12419
12420 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
12421
12422         [BZ #5993]
12423         * manual/install.texi: Do not document upgrading from libc5.
12424
12425 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
12426
12427         [BZ #4596]
12428         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
12429
12430 2012-02-18  David S. Miller  <davem@davemloft.net>
12431
12432         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
12433         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
12434         %o7 across the call.
12435         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
12436         instead.
12437         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
12438         SETUP_PIC_REG_LEAF.
12439         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
12440         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
12441         * sysdeps/sparc/crtn.S: Likewise.
12442
12443 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
12444
12445         * aout/Makefile: Remove.
12446
12447 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
12448
12449         [BZ #13058]
12450         * manual/examples/argp-ex1.c (main): Format definition in GNU
12451         style.
12452         * manual/examples/argp-ex2.c (main): Likewise.
12453         * manual/examples/argp-ex3.c (main): Likewise.
12454         * manual/examples/argp-ex4.c (main): Likewise.
12455         * manual/examples/longopt.c (main): Use new-style prototype
12456         definition.
12457         * manual/examples/strncat.c (main): Specify return type and use
12458         (void) for arguments.
12459         * manual/examples/subopt.c (main): Use char **argv argument.
12460
12461 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12462
12463         [BZ #5077]
12464         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
12465         rounding modes.
12466
12467 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
12468
12469         [BZ #6907]
12470         * manual/string.texi (strchr): Change when strchrnul is
12471         recommended.
12472
12473 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
12474
12475         [BZ #174]
12476         * manual/locale.texi (setlocale): Document LOCPATH.
12477
12478 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12479
12480         [BZ #10210]
12481         * manual/process.texi (execle): Move @dots{} before last argument.
12482
12483 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
12484
12485         [BZ #12047]
12486         * manual/charset.texi (Generic Charset Conversion): Fix typo
12487         (LC_TYPE -> LC_CTYPE).
12488
12489 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
12490
12491         [BZ #5805]
12492         * manual/arith.texi (scalbn): Use @var{} on parameter names.
12493         (scalbnf): Likewise.
12494         (scalbnl): Likewise.
12495         (scalbln): Likewise.
12496         (scalblnf): Likewise.
12497         (scalblnl): Likewise.
12498         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
12499         (vwarnx): Likewise.
12500         (verr): Likewise.
12501         (verrx): Likewise.
12502         * manual/filesys.texi (telldir): Use braces around return type.
12503         * manual/llio.texi (mmap): Add space after comma.
12504         (mmap64): Likewise.
12505         * manual/math.texi (jn): Use @var{} on parameter names.
12506         (jnf): Likewise.
12507         (jnl): Likewise.
12508         (yn): Likewise.
12509         (ynf): Likewise.
12510         (ynl): Likewise.
12511         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
12512         line.
12513         * manual/resource.texi (ulimit): Use @dots{} instead of literal
12514         "...".
12515         (sched_get_priority_min): Remove semicolon on @deftypefun line.
12516         (sched_get_priority_max): Likewise.
12517         * manual/signal.texi (sigvec): Add space after comma.
12518         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
12519         names.
12520         (if_indextoname): Likewise.
12521         (if_freenameindex): Likewise.
12522         (sendto): Use ',' instead of '.' in prototype.
12523         * manual/startup.texi (syscall): Use @dots{} instead of literal
12524         "...".
12525         * manual/stdio.texi (__fpending): Separate initial words of
12526         paragraph from @deftypefun line.
12527         * manual/syslog.texi (syslog): Use @dots{} instead of literal
12528         "...".
12529         (vsyslog): Use @var{} on parameter names.
12530         * manual/terminal.texi (stty): Use @var{} on parameter names.
12531         * manual/users.texi (getutmp): Use @var{} on parameter names.
12532         (getutmpx): Likewise.
12533
12534 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12535
12536         [BZ #6884]
12537         * manual/stdio.texi (fopen): Fix typos in description of
12538         ",ccs=STRING".
12539
12540 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
12541
12542         [BZ #4026]
12543         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
12544         get clock_id definition.
12545
12546 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
12547
12548         [BZ #4822]
12549         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
12550         (madvise): Cast every argument to void on its own.
12551
12552 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12553
12554         [BZ #9902]
12555         * manual/startup.texi (Exit Status): Fix typo.
12556
12557 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12558
12559         [BZ #10140]
12560         * manual/examples/argp-ex1.c: Include <stdlib.h>.
12561         * manual/examples/argp-ex2.c: Likewise.
12562         * manual/examples/argp-ex3.c: Likewise.
12563
12564 2012-02-16  Richard Henderson  <rth@redhat.com>
12565
12566         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
12567         * sysdeps/s390/s390-32/initfini.c: Remove.
12568         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
12569         * sysdeps/s390/s390-64/initfini.c: Remove.
12570
12571 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
12572
12573         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
12574         compiler output for sysdeps/generic/initfini.c.
12575         * sysdeps/sh/elf/initfini.c: Remove file.
12576
12577 2012-02-16  David S. Miller  <davem@davemloft.net>
12578
12579         [BZ #11494]
12580         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
12581
12582         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
12583         * sysdeps/sparc/crti.S: New file.
12584         * sysdeps/sparc/crtn.S: New file.
12585         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
12586         * sysdeps/sparc/sparc64/Makefile: Likewise.
12587
12588 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
12589
12590         [BZ #3335]
12591         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
12592
12593 2012-02-15  Roland McGrath  <roland@hack.frob.com>
12594
12595         [BZ #4822]
12596         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
12597
12598         * mach/devstream.c (cookie_io_functions_t): Macro removed.
12599         (write, read, close): Likewise.
12600         Patch by Aurelien Jarno <aurelien@aurel32.net>.
12601
12602 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
12603
12604         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
12605         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
12606         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
12607         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
12608         <bits/signalfd.h>.
12609         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
12610         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12611         bits/signalfd.h.
12612
12613 2012-02-14  Marek Polacek  <polacek@redhat.com>
12614
12615         * sysdeps/x86_64/crti.S: New file.
12616         * sysdeps/x86_64/crtn.S: New file.
12617         * sysdeps/x86_64/elf/initfini.c: Remove file.
12618
12619 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
12620
12621         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
12622         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
12623         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
12624         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
12625         <bits/inotify.h>.
12626         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
12627         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12628         bits/inotify.h.
12629
12630 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
12631
12632         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
12633         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
12634         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
12635         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
12636         <bits/eventfd.h>.
12637         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
12638         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12639         bits/eventfd.h.
12640
12641 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
12642
12643         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
12644         __feraiseexcept instead of feraiseexcept.
12645
12646         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
12647         nanosleep invocations.
12648         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
12649         strings, and add error checking for a nanosleep invocations.
12650
12651 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
12652
12653         Replace FSF snail mail address with URLs, as per GNU coding standards.
12654         Most of the snail mail addresses were wrong anyway, and omitting
12655         them makes the source code easier to maintain.  Almost all of the
12656         changes are to license notices and to locale LC_IDENTIFICATION
12657         addresses, except for this one:
12658         * manual/libc.texinfo: In "Published by", give the FSF's URL,
12659         not its snail mail address.
12660
12661 2012-02-09  Richard Henderson  <rth@twiddle.net>
12662
12663         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
12664         of kernel-features.h.
12665
12666         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
12667
12668 2012-02-08  Marek Polacek  <polacek@redhat.com>
12669
12670         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
12671         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
12672         * sysdeps/gnu/_G_config.h: Likewise.
12673         * sysdeps/generic/_G_config.h: Likewise.
12674
12675 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
12676
12677         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
12678         tests.
12679         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12680
12681         * sysdeps/powerpc/powerpc32/crti.S: New file.
12682         * sysdeps/powerpc/powerpc32/crtn.S: New file.
12683         * sysdeps/powerpc/powerpc64/crti.S: New file.
12684         * sysdeps/powerpc/powerpc64/crtn.S: New file.
12685
12686         * Makeconfig (have-initfini): Don't set.
12687         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
12688         * configure.in (nopic_initfini): Don't substitute.
12689         * config.h.in (HAVE_INITFINI): Don't #undef.
12690         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
12691         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
12692
12693 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
12694
12695         Support crti.S and crtn.S provided directly by architectures.
12696         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
12697         [crti.S in sysdirs] (omit-deps): Likewise.
12698         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
12699         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
12700         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
12701         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
12702         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
12703         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
12704         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
12705         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
12706         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
12707         compiler output for sysdeps/generic/initfini.c.
12708         * sysdeps/i386/elf/Makefile: Remove file.
12709         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
12710
12711 2012-02-07  Marek Polacek  <polacek@redhat.com>
12712
12713         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
12714         * sysdeps/gnu/_G_config.h: Likewise.
12715         * sysdeps/mach/hurd/_G_config.h: Likewise.
12716
12717 2012-02-07  Marek Polacek  <polacek@redhat.com>
12718
12719         * math/Makefile (tests): Add tst-CMPLX2.
12720         * math/tst-CMPLX2.c: New file.
12721
12722 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
12723
12724         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
12725
12726         * math/libm-test.inc (jn_test): Add missing L suffix.
12727
12728 2012-02-06  Marek Polacek  <polacek@redhat.com>
12729
12730         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
12731         * sysdeps/i386/fpu/e_powf.S: Likewise.
12732         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
12733         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
12734         * sysdeps/i386/fpu/e_acosh.S: Likewise.
12735         * sysdeps/i386/fpu/e_pow.S: Likewise.
12736         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
12737         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
12738         * sysdeps/i386/fpu/s_expm1.S: Likewise.
12739         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
12740         * sysdeps/i386/fpu/e_log2.S: Likewise.
12741         * sysdeps/i386/fpu/e_log2l.S: Likewise.
12742         * sysdeps/i386/fpu/e_scalb.S: Likewise.
12743         * sysdeps/i386/fpu/e_powl.S: Likewise.
12744         * sysdeps/i386/fpu/s_log1p.S: Likewise.
12745         * sysdeps/i386/fpu/e_log10f.S: Likewise.
12746         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
12747         * sysdeps/i386/fpu/e_logl.S: Likewise.
12748         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
12749         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
12750         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
12751         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
12752         * sysdeps/i386/fpu/e_log2f.S: Likewise.
12753         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
12754         * sysdeps/i386/fpu/e_log.S: Likewise.
12755         * sysdeps/i386/fpu/s_cexp.S: Likewise.
12756         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
12757         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
12758         * sysdeps/i386/fpu/e_logf.S: Likewise.
12759         * sysdeps/i386/fpu/e_log10l.S: Likewise.
12760         * sysdeps/i386/fpu/e_atanh.S: Likewise.
12761         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
12762         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
12763         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
12764         * sysdeps/i386/fpu/e_log10.S: Likewise.
12765         * sysdeps/i386/fpu/s_frexp.S: Likewise.
12766         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
12767         * sysdeps/i386/fpu/s_asinh.S: Likewise.
12768         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
12769         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
12770         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
12771         * sysdeps/i386/asm-syntax.h: Likewise.
12772         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
12773         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
12774         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
12775         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
12776         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
12777         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
12778         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
12779         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
12780         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
12781         * sysdeps/powerpc/sysdep.h: Likewise.
12782         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
12783         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
12784
12785 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
12786
12787         [BZ #411]
12788         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
12789
12790 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
12791
12792         * sysdeps/i386/sysdep.h: Include <features.h>.
12793         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
12794         version.
12795
12796 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
12797
12798         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
12799         Define.
12800         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
12801         LOAD_PIC_REG_STR.
12802
12803 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
12804
12805         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
12806         (SETUP_PIC_REG): Use GET_PC_THUNK.
12807         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
12808         macro.
12809
12810 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
12811
12812         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
12813         for non-PIC compilation.
12814         (SETUP_PIC_REG): Add .p2align directive.
12815         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
12816         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
12817         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
12818         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
12819         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
12820         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
12821         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
12822         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
12823         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
12824         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
12825         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
12826         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
12827         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
12828         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
12829         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
12830         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
12831         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
12832         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
12833         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
12834         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
12835         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
12836         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
12837         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
12838         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
12839         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
12840         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
12841         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
12842         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
12843         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
12844         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
12845         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
12846         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
12847         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
12848         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
12849         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
12850         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
12851         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
12852         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
12853         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
12854         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
12855         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
12856
12857 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
12858
12859         * math/tst-CMPLX.c: Include <stdio.h>.
12860
12861 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
12862
12863         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
12864         float.
12865         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
12866         * sysdeps/sparc/bits/mathdef.h: Likewise.
12867
12868 2012-01-31  Marek Polacek  <polacek@redhat.com>
12869
12870         * libio/libio.h: Don't define _PARAMS.
12871         * locale/programs/config.h: Don't define PARAMS.
12872         * stdlib/strtol_l.c: Likewise.
12873         (__strtol_l): Remove PARAMS from the prototype.
12874
12875 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
12876
12877         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
12878         names.  Just use the correct names.  Remove unnecessary wrapper
12879         functions.
12880         * malloc/arena.c: Likewise.
12881         * malloc/hooks.c: Likewise.
12882
12883         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
12884         ARENA_TEST says not to.  Simplify test for creation of a new arena.
12885         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
12886
12887 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
12888
12889         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
12890         into tail calls.
12891         (update_get_addr): New function.
12892         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
12893         GET_ADDR_MODULE parameter.
12894
12895 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
12896
12897         * crypt/cert.c: Remove __STDC__ conditionals.
12898         * crypt/crypt-entry.c: Likewise.
12899         * crypt/crypt_util.c: Likewise.
12900         * libio/filedoalloc.c: Likewise.
12901         * libio/fileops.c: Likewise.
12902         * libio/genops.c: Likewise.
12903         * libio/iofclose.c: Likewise.
12904         * libio/iofdopen.c: Likewise.
12905         * libio/iofopen.c: Likewise.
12906         * libio/iofopen64.c: Likewise.
12907         * libio/iogetdelim.c: Likewise.
12908         * libio/iopopen.c: Likewise.
12909         * libio/obprintf.c: Likewise.
12910         * libio/oldfileops.c: Likewise.
12911         * libio/oldiofclose.c: Likewise.
12912         * libio/oldiofdopen.c: Likewise.
12913         * libio/oldiofopen.c: Likewise.
12914         * libio/oldiopopen.c: Likewise.
12915         * libio/wfiledoalloc.c: Likewise.
12916         * libio/wgenops.c: Likewise.
12917         * locale/programs/xmalloc.c: Likewise.
12918         * misc/syslog.c: Likewise.
12919         * stdio-common/xbug.c: Likewise.
12920         * string/memchr.c: Likewise.
12921         * string/memcmp.c: Likewise.
12922         * string/memrchr.c: Likewise.
12923         * string/rawmemchr.c: Likewise.
12924         * sysdeps/posix/getcwd.c: Likewise.
12925         * time/strftime_l.c: Likewise.
12926
12927 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
12928
12929         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
12930         * config.make.in (config-cflags-sse2avx): Define.
12931         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
12932         Fix typo.
12933
12934 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
12935
12936         * scripts/config.guess: Update from upstream config git repository.
12937         * scripts/config.sub: Likewise.
12938
12939 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
12940
12941         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
12942         (EM_NUM): Update.
12943         (R_TILEPRO_*, R_TILEGX_*): New macros.
12944
12945         * scripts/firstversions.awk: Fix bug in version range handling.
12946
12947         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
12948
12949         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
12950
12951         * include/sys/epoll.h: New file.
12952         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
12953         libc_hidden_def.
12954
12955 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
12956
12957         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
12958         Avoid unnecessary __WORDSIZE == 64 test.
12959         (fmaxf): Use VEX format if possible.
12960         (fmax): Likewise.
12961         (fminf): Likewise.
12962         (fmin): Likewise.
12963
12964         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
12965         * math/math_private.h: Remove libc_fegetround* and
12966         libc_fesetround*.
12967         * sysdeps/i386/configure.in: Check for -msse2avx.
12968         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
12969         also if SSE2AVX is defined.
12970         Remove libc_fegetround* and libc_fesetround*.
12971         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
12972         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
12973         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
12974         of HAS_YMM_USABLE.
12975         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
12976         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
12977         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
12978         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
12979         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
12980
12981         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
12982
12983 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12984
12985         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
12986         size is not set.
12987         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
12988
12989 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
12990
12991         [BZ #13618]
12992         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
12993         relocation.
12994         * Makeconfig (libm): Define.
12995         * elf/Makefile: Add rules to build and run tst-relsort1.
12996         * elf/tst-relsort1.c: New file.
12997         * elf/tst-relsort1mod1.c: New file.
12998         * elf/tst-relsort1mod2.c: New file.
12999
13000 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
13001
13002         * math/s_ldexp.c: Remove __STDC__ conditionals.
13003         * math/s_ldexpf.c: Likewise.
13004         * math/s_ldexpl.c: Likewise.
13005         * math/s_nextafter.c: Likewise.
13006         * math/s_nexttowardf.c: Likewise.
13007         * math/s_significand.c: Likewise.
13008         * math/s_significandf.c: Likewise.
13009         * math/s_significandl.c: Likewise.
13010         * math/w_jnl.c: Likewise.
13011         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
13012         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
13013         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
13014         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
13015         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
13016         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
13017         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
13018         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
13019         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
13020         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
13021         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
13022         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
13023         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
13024         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
13025         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
13026         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
13027         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
13028         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
13029         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
13030         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
13031         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
13032         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
13033         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
13034         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
13035         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
13036         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
13037         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
13038         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
13039         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
13040         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
13041         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
13042         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
13043         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
13044         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
13045         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
13046         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
13047         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
13048         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
13049         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
13050         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
13051         * sysdeps/ieee754/k_standard.c: Likewise.
13052         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
13053         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
13054         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
13055         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
13056         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
13057         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
13058         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
13059         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
13060         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
13061         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
13062         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
13063         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
13064         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
13065         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
13066         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
13067         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
13068         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
13069         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
13070         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
13071         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
13072         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
13073         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
13074         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
13075         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
13076         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
13077         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
13078         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
13079         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
13080         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
13081         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
13082         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
13083         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
13084         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
13085         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
13086         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
13087         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
13088         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
13089         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
13090         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
13091         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
13092         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
13093         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
13094         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
13095         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
13096         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
13097         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
13098         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
13099         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
13100         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
13101         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
13102         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
13103         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
13104         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
13105         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
13106         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
13107         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
13108         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
13109         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
13110         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
13111         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
13112         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
13113         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
13114         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
13115         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
13116         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
13117         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
13118         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
13119         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
13120         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
13121         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
13122         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
13123         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
13124         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
13125         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
13126         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
13127         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
13128         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
13129         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
13130         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
13131         * sysdeps/ieee754/s_matherr.c: Likewise.
13132         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
13133         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
13134         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
13135         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
13136
13137 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
13138
13139         * crypt/md5.h: Remove __STDC__ conditionals.
13140         * libio/libioP.h: Likewise.
13141         * locale/programs/config.h: Likewise.
13142         * sysdeps/generic/sysdep.h: Likewise.
13143         * sysdeps/i386/asm-syntax.h: Likewise.
13144         * sysdeps/s390/asm-syntax.h: Likewise.
13145         * sysdeps/unix/sysdep.h: Likewise.
13146         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
13147         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
13148
13149 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
13150
13151         * libio/libio.h: Remove __STDC__ conditionals.
13152         * malloc/obstack.h: Likewise.
13153         * math/complex.h: Likewise.
13154         * math/math.h: Likewise.
13155         * sysdeps/generic/_G_config.h: Likewise.
13156         * sysdeps/gnu/_G_config.h: Likewise.
13157         * sysdeps/mach/hurd/_G_config.h: Likewise.
13158         * sysdeps/powerpc/bits/mathdef.h: Likewise.
13159         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
13160         * sysdeps/sparc/bits/mathdef.h: Likewise.
13161
13162 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
13163
13164         [BZ #13583]
13165         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
13166         Clean up HAS_* macros.
13167         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
13168         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
13169         possible.
13170         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
13171         HAS_AVX.
13172         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
13173         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
13174         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
13175         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
13176         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
13177
13178 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
13179
13180         * elf/tst-unique3.cc (gets): Remove declaration.
13181         * elf/tst-unique3lib.cc (gets): Likewise.
13182         * elf/tst-unique3lib2.cc (gets): Likewise.
13183         * elf/tst-unique4.cc (gets): Likewise.
13184
13185 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
13186
13187         * include/stdio.h: Add C++ protection.  Add gets declarations and
13188         definitions.
13189         * debug/tst-chk1.c: Don't declare gets here.
13190         * stdio-common/tst-gets.c: Likewise.
13191
13192 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
13193
13194         * posix/glob: Remove directory.
13195
13196 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
13197
13198         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
13199
13200 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
13201
13202         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
13203         of the non-standard EPFNOSUPPORT.
13204
13205 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13206
13207         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
13208         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
13209         ANYWHERE set to 1 only on KERN_NO_SPACE error.
13210
13211 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
13212
13213         * wcsmbs/uchar.h: Test __STDC_VERSION__.
13214
13215 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
13216
13217         * nscd/aicache.c (addhstaiX): Do not cache negative results of
13218         transient errors.
13219         * nscd/grpcache.c (cache_addgr): Likewise.
13220         * nscd/hstcache.c (cache_addhst): Likewise.
13221         * nscd/initgrcache.c (addinitgroupsX): Likewise.
13222         * nscd/pwdcache.c (cache_addpw): Likewise.
13223         * nscd/servicescache.c (cache_addserv): Likewise.
13224
13225 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
13226
13227         * malloc/malloc.c: Various cleanups.
13228         * malloc/hooks.c: Likewise.
13229
13230         * stdlib/Makefile (tests): Add bug-fmtmsg1.
13231         * stdlib/bug-fmtmsg1.c: New file.
13232
13233         * stdlib/fmtmsg.c (init): Add missing unlock.
13234         Patch by Peng Haitao <penght@cn.fujitsu.com>.
13235
13236 2012-01-12  Marek Polacek  <polacek@redhat.com>
13237
13238         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
13239         and _GNU_SOURCE.
13240
13241 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
13242
13243         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
13244         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
13245         macro to ensure uniqueness of label name.
13246         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
13247         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
13248
13249 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
13250
13251         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
13252
13253         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
13254         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
13255         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
13256         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
13257
13258 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
13259
13260         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
13261
13262         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
13263         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
13264         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
13265
13266         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
13267
13268         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
13269         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
13270         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
13271         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
13272
13273         * math/bits/math-finite.h: Add ldexp support.
13274
13275 2012-01-10  Marek Polacek  <polacek@redhat.com>
13276
13277         * locale/programs/localedef.h (show_archive_content): Add noreturn
13278         attribute.
13279
13280 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
13281
13282         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
13283
13284 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
13285
13286         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
13287
13288         * io/Makefile (headers): Add bits/poll2.h.
13289
13290 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
13291
13292         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
13293         typo #include statement.
13294
13295 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
13296
13297         * include/sys/cdefs.h: Define __attribute_alloc_size.
13298         * catgets/gencat.c: Add alloc_size attribute and apply consistently
13299         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
13300         * elf/pldd.c: Likewise.
13301         * iconv/iconv_charmap.c: Likewise.
13302         * iconv/iconvconfig.c: Likewise.
13303         * iconv/strtab.c: Likewise.
13304         * locale/programs/locale.c: Likewise.
13305         * locale/programs/localedef.h: Likewise.
13306         * locale/programs/simple-hash.c: Likewise.
13307         * nscd/nscd.h: Likewise.
13308         * nss/makedb.c: Likewise.
13309         * sysdeps/generic/ldconfig.h: Likewise.
13310         * locale/programs/localedef.c: Remove xmalloc prototype.
13311         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
13312
13313 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
13314
13315         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
13316         appropriate.
13317
13318 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
13319
13320         * math/Makefile (tests): Add tst-CMPLX.
13321         * math/tst-CMPLX.c: New file.
13322
13323         * math/complex.h (CMPLXL): Fix typo.
13324
13325         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
13326         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
13327         GLIBC_2.16.
13328         * debug/tst-chk1.c: Add poll and ppoll tests.
13329         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
13330         * include/sys/poll.h: Add hidden proto for ppoll.
13331         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
13332         * sysdeps/mach/hurd/ppoll.c: Likewise.
13333         * io/ppoll.c: Likewise.
13334         * debug/poll_chk.c: New file.
13335         * debug/ppoll_chk.c: New file.
13336         * include/bits/poll2.h: New file.
13337         * io/bits/poll2.h: New file.
13338
13339         [BZ #1350]
13340         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
13341
13342         * configure.in: static is always set to yes.  Remove.
13343         * config.make.in: Don't set build-static.
13344         * Makeconfig: Remove use of build-static.
13345         * dlfcn/Makefile: Likewise.
13346         * elf/Makefile: Likewise.
13347         * math/Makefile: Likewise.
13348         * misc/Makefile: Likewise.
13349         * nptl/Makefile: Likewise.
13350         * sysdeps/mach/hurd/Makefile: Likewise.
13351
13352         * configure.in: PWD_P is not used anymore.
13353         * config.make.in: Remove PWD_P entry.
13354
13355         * configure.in: Remove last remnants of RANLIB.
13356         No need to check for signed size_t anymore.
13357         Don't set libc_commonpagesize and libc_relro_required here for Alpha
13358         and IA-64.
13359         Remove __builtin_expect test because we require at least gcc 3.4.
13360         * aclocal.m4: Likewise.
13361
13362         * wcsmbs/mbrtoc16.c: Implement using towc function.
13363         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
13364         * wcsmbs/wcsmbsload.c: Likewise.
13365         * iconv/gconv_simple.c: Likewise.
13366         * iconv/gconv_int.h: Likewise.
13367         * iconv/gconv_builtin.h: Likewise.
13368         * iconv/iconv_prog.c: Remove CHAR16 handling.
13369
13370         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
13371
13372         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
13373
13374         * configure.in: Remove --with-elf and --enable-bounded options.
13375         Dont set base_machine for ia64.  More non-ELF conditions removed.
13376         Remove testing and setting of leading underscore information.
13377         * config.make.in (build-bounded): Set to no.
13378         * config.h.in: Remove NO_UNDERSCORES entry.
13379         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
13380         them.
13381         * csu/start.c: Remove !NO_UNDERSCORE code.
13382         * locale/localeinfo.h: Likewise.
13383         * sysdeps/generic/machine-gmon.h: Likewise.
13384         * sysdeps/generic/sysdep.h: Likewise.
13385         * sysdeps/i386/sysdep.h: Likewise.
13386         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
13387         * sysdeps/mach/sysdep.h: Likewise.
13388         * sysdeps/s390/s390-32/sysdep.h: Likewise.
13389         * sysdeps/s390/s390-64/sysdep.h: Likewise.
13390         * sysdeps/sh/sysdep.h: Likewise.
13391         * sysdeps/sparc/sparc32/alloca.S: Likewise.
13392         * sysdeps/unix/i386/sysdep.S: Likewise.
13393         * sysdeps/unix/sparc/start.c: Likewise.
13394         * sysdeps/unix/sparc/sysdep.S: Likewise.
13395         * sysdeps/unix/sparc/sysdep.h: Likewise.
13396         * sysdeps/unix/start.c: Likewise.
13397         * sysdeps/unix/x86_64/sysdep.S: Likewise.
13398         * sysdeps/x86_64/sysdep.h: Likewise.
13399
13400 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
13401
13402         [BZ #13553]
13403         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
13404         for non-gcc.
13405         * argp/argp-fmtstream.h: Use const instead __const.
13406         * argp/argp.h: Likewise.
13407         * assert/assert.h: Likewise.
13408         * bits/fenv.h: Likewise.
13409         * bits/sched.h: Likewise.
13410         * bits/sigset.h: Likewise.
13411         * bits/sigthread.h: Likewise.
13412         * catgets/nl_types.h: Likewise.
13413         * conform/data/pthread.h-data: Likewise.
13414         * crypt/crypt-private.h: Likewise.
13415         * crypt/crypt.h: Likewise.
13416         * crypt/crypt_util.c: Likewise.
13417         * ctype/ctype.h: Likewise.
13418         * debug/execinfo.h: Likewise.
13419         * debug/mbsnrtowcs_chk.c: Likewise.
13420         * debug/mbsrtowcs_chk.c: Likewise.
13421         * debug/wcsnrtombs_chk.c: Likewise.
13422         * debug/wcsrtombs_chk.c: Likewise.
13423         * debug/wcstombs_chk.c: Likewise.
13424         * dirent/dirent.h: Likewise.
13425         * dlfcn/dlfcn.h: Likewise.
13426         * elf/neededtest4.c: Likewise.
13427         * grp/grp.h: Likewise.
13428         * gshadow/gshadow.h: Likewise.
13429         * iconv/gconv.h: Likewise.
13430         * iconv/gconv_int.h: Likewise.
13431         * iconv/gconv_simple.c: Likewise.
13432         * iconv/iconv.h: Likewise.
13433         * iconv/loop.c: Likewise.
13434         * iconv/skeleton.c: Likewise.
13435         * include/aio.h: Likewise.
13436         * include/aliases.h: Likewise.
13437         * include/argz.h: Likewise.
13438         * include/arpa/inet.h: Likewise.
13439         * include/assert.h: Likewise.
13440         * include/dirent.h: Likewise.
13441         * include/dlfcn.h: Likewise.
13442         * include/execinfo.h: Likewise.
13443         * include/fcntl.h: Likewise.
13444         * include/fenv.h: Likewise.
13445         * include/glob.h: Likewise.
13446         * include/grp.h: Likewise.
13447         * include/libintl.h: Likewise.
13448         * include/mntent.h: Likewise.
13449         * include/netdb.h: Likewise.
13450         * include/pwd.h: Likewise.
13451         * include/rpc/netdb.h: Likewise.
13452         * include/sched.h: Likewise.
13453         * include/search.h: Likewise.
13454         * include/shadow.h: Likewise.
13455         * include/signal.h: Likewise.
13456         * include/stdio.h: Likewise.
13457         * include/stdlib.h: Likewise.
13458         * include/string.h: Likewise.
13459         * include/sys/socket.h: Likewise.
13460         * include/sys/stat.h: Likewise.
13461         * include/sys/statfs.h: Likewise.
13462         * include/sys/statvfs.h: Likewise.
13463         * include/sys/syslog.h: Likewise.
13464         * include/sys/time.h: Likewise.
13465         * include/sys/uio.h: Likewise.
13466         * include/time.h: Likewise.
13467         * include/unistd.h: Likewise.
13468         * include/utmp.h: Likewise.
13469         * include/wchar.h: Likewise.
13470         * include/wctype.h: Likewise.
13471         * inet/aliases.h: Likewise.
13472         * inet/arpa/inet.h: Likewise.
13473         * inet/netinet/ether.h: Likewise.
13474         * inet/netinet/in.h: Likewise.
13475         * intl/libintl.h: Likewise.
13476         * io/bits/fcntl2.h: Likewise.
13477         * io/fcntl.h: Likewise.
13478         * io/ftw.h: Likewise.
13479         * io/sys/poll.h: Likewise.
13480         * io/sys/stat.h: Likewise.
13481         * io/sys/statfs.h: Likewise.
13482         * io/sys/statvfs.h: Likewise.
13483         * io/utime.h: Likewise.
13484         * libio/bits/stdio.h: Likewise.
13485         * libio/bits/stdio2.h: Likewise.
13486         * libio/libio.h: Likewise.
13487         * libio/libioP.h: Likewise.
13488         * libio/stdio.h: Likewise.
13489         * locale/lc-ctype.c: Likewise.
13490         * locale/locale.h: Likewise.
13491         * login/utmp.h: Likewise.
13492         * malloc/arena.c: Likewise.
13493         * malloc/malloc.c: Likewise.
13494         * malloc/malloc.h: Likewise.
13495         * malloc/mcheck.c: Likewise.
13496         * malloc/mtrace.c: Likewise.
13497         * math/bits/mathcalls.h: Likewise.
13498         * math/fenv.h: Likewise.
13499         * math/math_private.h: Likewise.
13500         * misc/bits/error.h: Likewise.
13501         * misc/bits/syslog.h: Likewise.
13502         * misc/err.h: Likewise.
13503         * misc/error.h: Likewise.
13504         * misc/fstab.h: Likewise.
13505         * misc/mntent.h: Likewise.
13506         * misc/regexp.h: Likewise.
13507         * misc/search.h: Likewise.
13508         * misc/sgtty.h: Likewise.
13509         * misc/sys/mman.h: Likewise.
13510         * misc/sys/syslog.h: Likewise.
13511         * misc/sys/uio.h: Likewise.
13512         * misc/sys/xattr.h: Likewise.
13513         * misc/ttyent.h: Likewise.
13514         * nis/rpcsvc/ypclnt.h: Likewise.
13515         * nss/nss.h: Likewise.
13516         * posix/bits/unistd.h: Likewise.
13517         * posix/fnmatch.h: Likewise.
13518         * posix/glob.h: Likewise.
13519         * posix/sched.h: Likewise.
13520         * posix/spawn.h: Likewise.
13521         * posix/sys/wait.h: Likewise.
13522         * posix/unistd.h: Likewise.
13523         * posix/wordexp.h: Likewise.
13524         * pwd/pwd.h: Likewise.
13525         * resolv/netdb.h: Likewise.
13526         * resource/sys/resource.h: Likewise.
13527         * rt/aio.h: Likewise.
13528         * rt/bits/mqueue2.h: Likewise.
13529         * rt/mqueue.h: Likewise.
13530         * shadow/shadow.h: Likewise.
13531         * signal/signal.h: Likewise.
13532         * socket/send.c: Likewise.
13533         * socket/sendto.c: Likewise.
13534         * socket/sys/socket.h: Likewise.
13535         * stdio-common/printf.h: Likewise.
13536         * stdlib/bits/stdlib.h: Likewise.
13537         * stdlib/fmtmsg.h: Likewise.
13538         * stdlib/monetary.h: Likewise.
13539         * stdlib/stdlib.h: Likewise.
13540         * stdlib/ucontext.h: Likewise.
13541         * streams/stropts.h: Likewise.
13542         * string/argz.h: Likewise.
13543         * string/bits/string2.h: Likewise.
13544         * string/string.h: Likewise.
13545         * string/strings.h: Likewise.
13546         * sunrpc/rpc/auth.h: Likewise.
13547         * sunrpc/rpc/auth_des.h: Likewise.
13548         * sunrpc/rpc/clnt.h: Likewise.
13549         * sunrpc/rpc/netdb.h: Likewise.
13550         * sunrpc/rpc/pmap_clnt.h: Likewise.
13551         * sunrpc/rpc/xdr.h: Likewise.
13552         * sysdeps/generic/inttypes.h: Likewise.
13553         * sysdeps/generic/net/if.h: Likewise.
13554         * sysdeps/generic/sys/swap.h: Likewise.
13555         * sysdeps/gnu/net/if.h: Likewise.
13556         * sysdeps/gnu/utmpx.h: Likewise.
13557         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
13558         * sysdeps/i386/i486/bits/string.h: Likewise.
13559         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
13560         * sysdeps/s390/bits/string.h: Likewise.
13561         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
13562         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
13563         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
13564         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
13565         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
13566         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
13567         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
13568         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
13569         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
13570         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
13571         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
13572         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
13573         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
13574         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
13575         * sysdeps/unix/sysv/linux/readv.c: Likewise.
13576         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
13577         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
13578         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
13579         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
13580         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
13581         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
13582         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
13583         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
13584         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
13585         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
13586         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
13587         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
13588         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
13589         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
13590         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
13591         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
13592         * sysvipc/sys/ipc.h: Likewise.
13593         * sysvipc/sys/msg.h: Likewise.
13594         * sysvipc/sys/sem.h: Likewise.
13595         * sysvipc/sys/shm.h: Likewise.
13596         * termios/termios.h: Likewise.
13597         * time/sys/time.h: Likewise.
13598         * time/time.h: Likewise.
13599         * wcsmbs/bits/wchar2.h: Likewise.
13600         * wcsmbs/uchar.h: Likewise.
13601         * wcsmbs/wchar.h: Likewise.
13602         * wctype/wctype.h: Likewise.
13603
13604         [BZ #13551]
13605         * Makeconfig: Remove all but ELF support including AIX support.
13606         * Makerules: Likewise.
13607         * config.h.in: Likewise.
13608         * config.make.in: Likewise.
13609         * configure: Likewise.
13610         * configure.in: Likewise.
13611         * csu/Makefile: Likewise.
13612         * csu/version.c: Likewise.
13613         * debug/Makefile: Likewise.
13614         * dlfcn/Makefile: Likewise.
13615         * elf/Makefile: Likewise.
13616         * extra-lib.mk: Likewise.
13617         * iconv/Makefile: Likewise.
13618         * include/libc-symbols.h: Likewise.
13619         * include/shlib-compat.h: Likewise.
13620         * resolv/Makefile: Likewise.
13621         * resolv/res_libc.c: Likewise.
13622         * rt/Makefile: Likewise.
13623         * sysdeps/i386/asm-syntax.h: Likewise.
13624         * sysdeps/i386/sysdep.h: Likewise.
13625         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
13626         * sysdeps/mach/sysdep.h: Likewise.
13627         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
13628         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
13629         * sysdeps/s390/asm-syntax.h: Likewise.
13630         * sysdeps/s390/s390-32/sysdep.h: Likewise.
13631         * sysdeps/s390/s390-64/sysdep.h: Likewise.
13632         * sysdeps/sh/sysdep.h: Likewise.
13633         * sysdeps/unix/sparc/sysdep.h: Likewise.
13634         * sysdeps/wordsize-32/divdi3.c: Likewise.
13635         * sysdeps/x86_64/sysdep.h: Likewise.
13636
13637         * argp/Versions: Remove _argp_unlock_xxx.
13638
13639         [BZ #13559]
13640         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
13641         * abilist/libBrokenLocale.abilist: Likewise.
13642         * abilist/libanl.abilist: Likewise.
13643         * abilist/libc.abilist: Likewise.
13644         * abilist/libcrypt.abilist: Likewise.
13645         * abilist/libdl.abilist: Likewise.
13646         * abilist/libm.abilist: Likewise.
13647         * abilist/libnsl.abilist: Likewise.
13648         * abilist/libpthread.abilist: Likewise.
13649         * abilist/libresolv.abilist: Likewise.
13650         * abilist/librt.abilist: Likewise.
13651         * abilist/libthread_db.abilist: Likewise.
13652         * abilist/libutil.abilist: Likewise.
13653         * abilist/libnss_db.abilist: New file.
13654
13655         * scripts/abilist.awk: Add support for indirect functions.
13656
13657         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
13658
13659         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
13660
13661         * shlib-versions: Remove entries for ports architectures.
13662
13663         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
13664         files in ports.
13665         * elf/stackguard-macros.h: Remove support for IA-64.
13666         * elf/tst-auditmod1.c: Likewise.
13667         * sysdeps/generic/ldsodefs.h: Likewise.
13668
13669         * sysdeps/unix/sysv/linux/configure.in: Ports should define
13670         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
13671         configure files.
13672
13673         [BZ #13552]
13674         * configure.in: Remove --enable-omitfp support.
13675         * FAQ.in: Adjust.
13676         * config.make.in: Likewise.
13677         * Makeconfig: Likewise.
13678         * manual/install.texi: Likewise.
13679
13680         In case anyone cares, the IA-64 architecture could move to ports.
13681         * sysdeps/ia64/*: Removed.
13682         * sysdeps/unix/sysv/linux/ia64/*: Removed.
13683         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
13684
13685         [BZ #13555]
13686         * configure.in: Remove entries for unsupported architectures.
13687
13688         [BZ #13533]
13689         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
13690         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
13691         routines.
13692         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
13693         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
13694         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
13695         fall back to using wcrtomb.
13696         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
13697         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
13698         renaming.
13699         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
13700         * wcsmbs/tst-c16c32-1.c: New file.
13701
13702         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
13703         local variable.
13704
13705         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
13706
13707         * elf/tst-unique3.cc: Add explicit declaration of gets.
13708         * elf/tst-unique3lib.cc: Likewise.
13709         * elf/tst-unique3lib2.cc: Likewise.
13710         * elf/tst-unique4.cc: Likewise.
13711
13712         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
13713
13714 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
13715
13716         [BZ #13566]
13717         * assert/assert.h (static_assert): Don't define for C++.
13718         * libio/stdio.h (gets): Do declare for C++ <= C++11.
13719         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
13720
13721 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
13722
13723         * iconv/loop.c (single loop): Fix assertion in storing of
13724         remaining bytes.
13725
13726         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
13727
13728 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
13729
13730         * posix/getconf.c: Update copyright year.
13731         * nss/getent.c: Likewise.
13732         * nss/makedb.c: Likewise.
13733         * iconv/iconvconfig.c: Likewise.
13734         * iconv/iconv_prog.c: Likewise.
13735         * elf/ldconfig.c: Likewise.
13736         * elf/pldd.c: Likewise.
13737         * elf/sotruss.ksh: Likewise.
13738         * catgets/gencat.c: Likewise.
13739         * csu/version.c: Likewise.
13740         * elf/ldd.bash.in: Likewise.
13741         * elf/sprof.c (print_version): Likewise.
13742         * locale/programs/locale.c: Likewise.
13743         * locale/programs/localedef.c: Likewise.
13744         * login/programs/pt_chown.c: Likewise.
13745         * nscd/nscd.c (print_version): Likewise.
13746         * debug/xtrace.sh: Likewise.
13747         * malloc/memusage.sh: Likewise.
13748         * malloc/mtrace.pl: Likewise.
13749         * debug/catchsegv.sh: Likewise.
13750
13751 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
13752
13753         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
13754         pure attribute.
13755
13756 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
13757
13758         [BZ #13533]
13759         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
13760         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
13761         transformations.
13762         * iconv/gconv_int.h: Likewise.
13763         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
13764         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
13765         from libc for GLIBC_2.16.
13766         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
13767         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
13768         * wcsmbs/uchar.h: Really define mbstate_t.
13769         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
13770         * wcsmbs/c16rtomb.c: New file.
13771         * wcsmbs/mbrtoc16.c: New file.
13772         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
13773         for C/POSIX locale.
13774         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
13775         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
13776
13777         * wcsmbs/wchar.h: Add missing __restrict.
13778
13779 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
13780
13781         [BZ #13532]
13782         * time/Makefile (routines): Add timespec_get.
13783         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
13784         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
13785         timespec for ISO C11.
13786         * time/timespec_get.c: New file.
13787         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
13788         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
13789
13790         [BZ #13531]
13791         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
13792         * stdlib/stdlib.h: Declare aligned_alloc.
13793         * Versions.def: Add GLIBC_2.16 for libc.
13794         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
13795
13796         [BZ 13527]
13797         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
13798         ISO C11.
13799
13800         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
13801         code.
13802
13803         [BZ #13528]
13804         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
13805
13806         [BZ #13529]
13807         * assert/assert.h (static_assert): Define.
13808
13809         * version.h: Update for 2.16 development version.
13810
13811         [BZ #13526]
13812         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
13813         _ISOC11_SOURCE.
13814
13815         * version.h (RELEASE): Bump for 2.15 release.
13816         * include/features.h (__GLIBC_MINOR__): Bump to 15.
13817
13818         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
13819         Patch by Marek Polacek <mpolacek@redhat.com>.
13820
13821         * bits/byteswap.h: Protect long long constants with __extension__.
13822         * sysdeps/i386/bits/byteswap.h: Likewise.
13823         * sysdeps/ia64/bits/byteswap.h: Likewise.
13824         * sysdeps/s390/bits/byteswap.h: Likewise.
13825         * sysdeps/x86_64/bits/byteswap.h: Likewise.
13826
13827 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13828
13829         [BZ #13540]
13830         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
13831         destination buffer.
13832         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
13833
13834 2011-12-23  Marek Polacek  <polacek@redhat.com>
13835
13836         * elf/dl-addr.c (determine_info): Add inline keyword.
13837         * elf/tst-auditmod4b.c (check_avx): Likewise.
13838         * elf/tst-auditmod6b.c (check_avx): Likewise.
13839         * elf/tst-auditmod6c.c (check_avx): Likewise.
13840         * elf/tst-auditmod7b.c (check_avx): Likewise.
13841
13842 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
13843
13844         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
13845         !__SSE_MATH__.
13846
13847 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13848
13849         [BZ #13540]
13850         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
13851         processing for last bytes.
13852
13853 2011-08-06  Bruno Haible  <bruno@clisp.org>
13854
13855         [BZ #13061]
13856         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
13857         U+0385, not to U+1FEE.
13858
13859         [BZ #13062]
13860         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
13861         entry for U+00A5 U+0301.
13862
13863 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
13864
13865         [BZ #13166]
13866         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
13867         buffer for the output is too small.
13868
13869         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
13870         optimization.
13871
13872         [BZ #13185]
13873         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
13874         SSE flags if possible.
13875
13876 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13877
13878         [BZ #13540]
13879         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
13880         processing for last bytes.
13881
13882 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
13883
13884         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
13885         (syscall-list-default-options, syscall-list-default-condition)
13886         (syscall-list-includes): Define.
13887         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
13888         list of ABIs and options and #if conditions for each ABI.  Do not
13889         handle common syscalls between ABIs specially.
13890         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
13891         Remove.
13892         (syscall-list-variants, syscall-list-32bit-options)
13893         (syscall-list-32bit-condition, syscall-list-64bit-options)
13894         (syscall-list-64bit-condition): Define.
13895         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
13896         (syscall-list-variants, syscall-list-32bit-options)
13897         (syscall-list-32bit-condition, syscall-list-64bit-options)
13898         (syscall-list-64bit-condition): Define.
13899         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
13900         Remove.
13901         (syscall-list-variants, syscall-list-32bit-options)
13902         (syscall-list-32bit-condition, syscall-list-64bit-options)
13903         (syscall-list-64bit-condition): Define.
13904         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
13905         Remove.
13906         (syscall-list-variants, syscall-list-32bit-options)
13907         (syscall-list-32bit-condition, syscall-list-64bit-options)
13908         (syscall-list-64bit-condition): Define.
13909
13910 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
13911
13912         * locale/iso-639.def: Add brx entry.
13913
13914         [BZ #13328]
13915         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
13916         Proposed by Mariusz_Cukr <marcukr@op.pl>.
13917
13918         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
13919         __feraiseexcept_renamed.
13920
13921 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
13922
13923         [BZ #13538]
13924         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
13925         EPOLLET with unsigned values.
13926         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
13927         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
13928
13929         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
13930         to large cancellation.
13931         * math/s_cacoshf.c: Likewise.
13932         * math/s_cacoshl.c: Likewise.
13933
13934 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
13935
13936         [BZ #13305]
13937         [BZ #12786]
13938         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
13939         * math/s_cacoshf.c: Likewise.
13940         * math/s_cacoshl.c: Likewise.
13941
13942 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
13943
13944         [BZ #13439]
13945         * iconv/gconv.h: Define __GCONV_SWAP.
13946         * iconvdata/unicode.c: The swap bit must be stored in __flags.
13947         * iconvdata/utf-16.c: Likewise.
13948         * iconvdata/utf-32.c: Likewise.
13949
13950 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
13951
13952         [BZ #13524]
13953         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
13954         numerator after shifting it by one limb.
13955
13956 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
13957
13958         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
13959         under [__USE_EXTERN_INLINES].
13960
13961 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
13962
13963         [BZ #13446]
13964         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
13965
13966 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13967
13968         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
13969         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
13970         optimized code.
13971         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
13972         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
13973         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
13974         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
13975         for strncasecmp/strncasecmp_l compilation.
13976         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
13977         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
13978
13979 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
13980
13981         [BZ #13484]
13982         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
13983         of __asm__.
13984
13985 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
13986
13987         [BZ #13506]
13988         * time/tzfile.c (__tzfile_read): Check values from file header.
13989
13990 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
13991
13992         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
13993         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
13994         * powerpc/powerpc32/dl-start.S: Likewise.
13995         * powerpc/powerpc32/elf/start.S: Likewise.
13996         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
13997         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
13998         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
13999         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
14000         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
14001         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
14002         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
14003         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
14004         * powerpc/powerpc32/fpu/s_round.S: Likewise.
14005         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
14006         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
14007         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
14008         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
14009         * powerpc/powerpc32/memset.S: Likewise.
14010         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
14011         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
14012         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
14013         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
14014         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
14015         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
14016         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
14017         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
14018         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
14019         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
14020         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
14021         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
14022         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
14023
14024 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14025
14026         * math/libm-test.inc: Added more nearbyint tests.
14027         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
14028         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
14029         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
14030         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
14031
14032 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
14033
14034         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
14035         FD_CLOEXEC.
14036
14037 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14038
14039         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
14040         Add wcscpy-ssse3 wcscpy-c.
14041         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
14042         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
14043         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
14044         * sysdeps/x86_64/wcschr.S: New file.
14045         * sysdeps/x86_64/wcsrchr.S: New file.
14046         * string/test-strcmp.c: Remove checking of wcscmp function for
14047         wrong alignments.
14048         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
14049         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
14050         wcsrchr-sse2 wcsrchr-c.
14051         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
14052         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
14053         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
14054         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
14055         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
14056         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
14057         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
14058         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
14059         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
14060         * wcsmbc/wcschr.c (WCSCHR): New macro.
14061
14062 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14063
14064         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
14065         * wcsmbs/test-wcsrchr.c: New file.
14066         * string/test-strrchr.c: Add wcsrchr support.
14067         (WIDE): New macro.
14068         * wcsmbs/test-wcscpy.c: New file.
14069         * string/test-strcpy.c: Add wcscpy support.
14070         (WIDE): New macro.
14071
14072 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
14073
14074         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
14075         the inner loop.
14076
14077 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
14078
14079         [BZ #13472]
14080         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
14081
14082 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
14083
14084         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
14085         Minor optimizations.
14086
14087         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
14088         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
14089         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
14090
14091 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
14092
14093         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
14094         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
14095         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
14096         for gcc to avoid warnings.
14097         * inet/Makefile (tests): Add tst-checks.
14098         * inet/tst-checks.c: New file.
14099
14100         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
14101         warning.
14102
14103         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
14104         __wmemcmp_sse2.
14105
14106         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
14107         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
14108
14109         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
14110
14111 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
14112
14113         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
14114         problem.
14115
14116         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
14117
14118 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
14119
14120         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
14121         conditional on GCC version.
14122         (__arch_compare_and_exchange_val_8_acq)
14123         (__arch_compare_and_exchange_val_16_acq)
14124         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
14125         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
14126         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
14127
14128 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
14129
14130         * sysdeps/sh/backtrace.c: New file.
14131
14132 2011-12-02  Andreas Schwab  <schwab@redhat.com>
14133
14134         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
14135         parenthesis.
14136
14137 2011-12-01  Andreas Schwab  <schwab@redhat.com>
14138
14139         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
14140         falling back to utime.
14141
14142 2011-11-30  Andreas Schwab  <schwab@redhat.com>
14143
14144         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
14145         expectations for float.
14146
14147 2011-11-29  Andreas Schwab  <schwab@redhat.com>
14148
14149         * locale/weight.h (findidx): Add parameter len.
14150         * locale/weightwc.h (findidx): Likewise.
14151         * posix/fnmatch_loop.c (FCT): Adjust caller.
14152         * posix/regcomp.c (build_equiv_class): Likewise.
14153         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
14154         * posix/regexec.c (check_node_accept_bytes): Likewise.
14155         * string/strcoll_l.c (STRCOLL): Likewise.
14156         * string/strxfrm_l.c (STRXFRM): Likewise.
14157
14158 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
14159
14160         * Makefile.in: Remove CVSOPT handling.
14161         * configure.in: Remove use of AC_REVISION.
14162         * iconvdata/Makefile (distribute): No need to filter out CVS.
14163         * scripts/list-sources.sh: Remove CVS, subversion and monotone
14164         handling.
14165
14166 2011-11-16  Andreas Schwab  <schwab@redhat.com>
14167
14168         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
14169         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
14170         [USE_AS_STRNCASECMP_L]: Likewise.
14171         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
14172         NO_TLS_DIRECT_SEG_REFS.
14173         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
14174         Fix argument offsets for non-PIC.
14175         [USE_AS_STRNCASECMP_L]: Likewise.
14176         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
14177         NO_TLS_DIRECT_SEG_REFS.
14178
14179 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
14180
14181         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
14182         O_CLOEXEC.
14183         * locale/loadlocale.c (_nl_load_locale): Likewise.
14184
14185 2011-11-15  Andreas Schwab  <schwab@redhat.com>
14186
14187         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
14188         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
14189         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
14190         (SYSCALL_GETTIME): Set errno on error.
14191
14192         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
14193         count references to noai6ai_cached.
14194
14195 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
14196
14197         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
14198
14199         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
14200         FD_CLOEXEC for /proc/self/maps.
14201
14202         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
14203         FD_CLOEXEC for /proc/meminfo.
14204
14205         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
14206         gai.conf.
14207
14208         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
14209         FD_CLOEXEC for given file.
14210
14211         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
14212
14213         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
14214         FD_CLOEXEC for /etc/hosts.
14215         (_gethtent): Likewise.
14216
14217         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
14218
14219         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
14220         cancellation and set FD_CLOEXEC for /etc/netgroup.
14221
14222         * nss/nss_files/files-key.c (search): Don't allow cancellation when
14223         reading /etc/publickey.
14224
14225         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
14226         allow cancellation when reading /etc/group.
14227
14228         * nss/nss_files/files-alias.c (internal_setent): Don't allow
14229         cancellation.
14230         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
14231
14232         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
14233         when using data file.
14234
14235         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
14236
14237         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
14238         (write_nis_obj): Use "c" and "e" in fopen.
14239
14240         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
14241
14242         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
14243
14244         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
14245
14246         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
14247
14248         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
14249         locale.alias.
14250
14251         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
14252
14253         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
14254
14255         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
14256
14257         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
14258         file parsing and set FD_CLOEXEC.
14259
14260 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
14261
14262         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
14263
14264 2011-11-14  Andreas Schwab  <schwab@redhat.com>
14265
14266         * malloc/arena.c (arena_get2): Don't call reused_arena when
14267         _int_new_arena failed.
14268
14269 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
14270
14271         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
14272         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
14273         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
14274         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
14275         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
14276         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
14277         to compile strcasecmp and strncasecmp.
14278         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
14279         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
14280
14281         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
14282
14283 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
14284
14285         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
14286         locale-defines.sym to gen-as-const-headers.
14287         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
14288         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
14289         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
14290         to compile strcasecmp and strncasecmp.
14291         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
14292         strcasecmp_l and strncasecmp_l.
14293         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
14294         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
14295         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
14296         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
14297         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
14298         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
14299         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
14300         * sysdeps/i386/i686/multiarch/strncase.S: New file.
14301         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
14302         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
14303         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
14304
14305 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
14306
14307         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
14308         result of SYSDEP_GETTIME_CPU to retval.
14309         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
14310         parameter list to macro.  Remove trailing semicolon.  Adjust users.
14311
14312         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
14313         variable.
14314
14315         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
14316         mantissa words.
14317         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
14318
14319         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
14320         from unused variable.
14321
14322         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
14323         DWARF definitions.
14324         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
14325         for assembling.
14326
14327         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
14328         over namespaces.
14329
14330         * sunrpc/rpc_prot.c (rejected): Fix case value.
14331
14332         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
14333         unsigned long long int to avoid warnings in shift.
14334
14335         * posix/regex_internal.c (re_string_reconstruct): Actually use result
14336         of use of trans.
14337         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
14338         variable tmp.
14339
14340         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
14341         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
14342         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
14343
14344         * nis/nis_table.c (nis_list): Use variable of correct type for
14345         result of __follow_path call.
14346
14347 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14348
14349         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
14350         of math functions ceil, trunc, floor, round, and sqrt, when
14351         avaliable on the platform.
14352         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
14353         name clash.
14354         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
14355         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
14356         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
14357
14358 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
14359
14360         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
14361         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
14362
14363 2011-11-11  Roland McGrath  <roland@hack.frob.com>
14364
14365         * include/unistd.h: Fix __readlink return type.
14366         Reported by Chris Metcalf <cmetcalf@tilera.com>.
14367
14368 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
14369
14370         * stdlib/ucontext.h: Undo last change for makecontext.
14371
14372 2011-11-11  Andreas Schwab  <schwab@redhat.com>
14373
14374         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
14375
14376         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
14377         * setjmp/setjmp.h: Mark functions as non-leaf.
14378         * setjmp/bits/setjmp2.h: Likewise.
14379         * stdlib/ucontext.h: Likewise.
14380
14381 2011-11-10  Andreas Schwab  <schwab@redhat.com>
14382
14383         * malloc/arena.c (_int_new_arena): Don't increment narenas.
14384         (reused_arena): Don't check arena limit.
14385         (arena_get2): Atomically check arena limit.
14386
14387 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
14388
14389         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
14390         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
14391
14392         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
14393         instructions.
14394
14395 2011-11-07  Andreas Schwab  <schwab@redhat.com>
14396
14397         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
14398         handler when locking.
14399
14400         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
14401         Fix size of allocated buffer.
14402
14403 2011-11-04  Andreas Schwab  <schwab@redhat.com>
14404
14405         [BZ #10103]
14406         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
14407         declarations for long double functions.
14408         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
14409
14410         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
14411
14412 2011-11-03  Andreas Schwab  <schwab@redhat.com>
14413
14414         * nscd/nscd.c (main): Don't start AVC thread until credentials are
14415         installed.
14416
14417         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
14418         is disabled.
14419
14420 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14421
14422         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
14423
14424 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
14425
14426         * include/alloca.h (stackinfo_alloca_round): Define.
14427         (extend_alloca): Use it.
14428         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
14429         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
14430         here.
14431
14432         * scripts/check-local-headers.sh: Ignore libaudit.h.
14433
14434         * nscd/Makefile (extra-objs): Make recursively expanded.
14435
14436 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
14437
14438         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
14439         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
14440
14441         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
14442         * posix/tst-rfc3484-2.c: Likewise.
14443         * posix/tst-rfc3484-3.c: Likewise.
14444
14445         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
14446         process_vm_writev.
14447         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
14448         process_vm_writev.
14449         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
14450         process_vm_writev from libc using GLIBC_2.15 version.
14451
14452         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
14453
14454 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
14455
14456         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
14457         stack usage.
14458
14459 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
14460
14461         [BZ #13367]
14462         * nss/getent.c (initgroups_keys): Show error message in case no group
14463         names are given.
14464
14465         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
14466         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
14467         __bump_nl_timestamp.
14468         * nscd/connections (nscd_init): When host database is served open
14469         netlink socket and request notification about configuration changes.
14470         (main_loop_poll): Track netlink file descriptor and bump timestamp
14471         in case data becomes available.
14472         (main_loop_epoll): Likewise.
14473         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
14474         (database_pers_head): Add extra_data fileds.
14475         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
14476         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
14477         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
14478         Adjust caller.
14479         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
14480         in6ai data, call __free_in6ai.
14481         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
14482         Add -DHAVE_NETLINK.
14483         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
14484         interface information.  Reuse previous data if netlink timestamp
14485         is not changed.
14486         (__bump_nl_timestamp): New function.
14487         (__free_in6ai): New function.
14488
14489 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
14490
14491         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
14492         close_not_cancel_no_status here.
14493         (__check_pf): Reorganize code a bit to not call close twice if OOM.
14494
14495 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
14496
14497         [BZ #13276]
14498         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
14499         return value.
14500
14501         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
14502         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
14503         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
14504
14505 2011-07-03  Andreas Jaeger  <aj@suse.de>
14506
14507         [BZ #10709]
14508         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
14509         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
14510         * math/libm-test.inc (sin_test): Add test case.
14511
14512 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
14513
14514         [BZ #13337]
14515         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
14516         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
14517
14518         * elf/chroot_canon.c (chroot_canon): Cleanups.
14519
14520         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
14521
14522         [BZ #13335]
14523         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
14524         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
14525
14526         * string/test-strchr.c: Make usable for strchrnul testing.
14527         * string/test-strchrnul.c: New file.
14528         * string/Makefile (strop-tests): Add strchrnul.
14529
14530         * po/it.po: Update from translation team.
14531         * po/es.po: Likewise.
14532
14533 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
14534
14535         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
14536         the three constants needed as parameters.  Drop the others.
14537         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
14538         __m128i_strloadu_tolower.
14539         Create and initialize variable zero and use it in all the places
14540         where _mm_setzero_si128 was used.
14541
14542         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
14543         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
14544         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
14545         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
14546         anymore.
14547         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
14548         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
14549         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
14550         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
14551         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
14552         __mpranred, __mptan.
14553         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
14554         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
14555         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
14556         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
14557         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
14558         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
14559         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
14560         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
14561         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
14562
14563 2011-10-28  Andreas Schwab  <schwab@redhat.com>
14564
14565         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
14566         redefine if SHARED.
14567         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
14568
14569         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
14570         wide char related routines to wcsmbs subdir.
14571
14572 2011-10-27  Andreas Schwab  <schwab@redhat.com>
14573
14574         [BZ #13344]
14575         * misc/sys/cdefs.h (__THROWNL): Define.
14576         * posix/unistd.h: Use __THREADNL instead of __THREAD
14577         for memory synchronization functions.
14578
14579 2011-10-26  Roland McGrath  <roland@hack.frob.com>
14580
14581         [BZ #13349]
14582         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
14583         doesn't exist.
14584         * manual/stdio.texi (Obstack Streams): Node removed.
14585
14586 2011-10-26  Andreas Schwab  <schwab@redhat.com>
14587
14588         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
14589         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
14590         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
14591
14592         * math/math_private.h (math_force_eval): Allow non-addressable
14593         arguments.
14594         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
14595
14596 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
14597
14598         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
14599         file is not needed.
14600
14601         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
14602         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
14603         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
14604         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
14605         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
14606         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
14607         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
14608         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
14609         Add AVX variants.
14610         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
14611         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
14612         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
14613         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
14614         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
14615         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
14616         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
14617         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
14618         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
14619         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
14620         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
14621         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
14622         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
14623         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
14624         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
14625         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
14626         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
14627         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
14628         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
14629
14630         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
14631         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
14632
14633         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
14634         place.  Use VEX encoding when compiling for AVX.
14635
14636 2011-10-25  Andreas Schwab  <schwab@redhat.com>
14637
14638         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
14639         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
14640
14641         * string/test-strchr.c (do_test): Don't generate NUL bytes.
14642
14643 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
14644
14645         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
14646         useless if() expression.
14647         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
14648         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
14649         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
14650         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
14651         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
14652         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
14653         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
14654         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
14655         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
14656         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
14657         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
14658         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
14659         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
14660         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
14661         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
14662         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
14663         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
14664         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
14665         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
14666
14667         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
14668
14669 2011-10-25  Andreas Schwab  <schwab@redhat.com>
14670
14671         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
14672         condition.
14673         * elf/dl-fini.c (_dl_sort_fini): Likewise.
14674
14675 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
14676
14677         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
14678         .text section.  Avoid duplicate constants.
14679         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
14680         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14681         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
14682         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14683         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
14684         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14685         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14686         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14687         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
14688         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
14689         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
14690         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
14691         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
14692         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
14693         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
14694         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
14695         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
14696         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
14697         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
14698         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
14699         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
14700         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
14701         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
14702         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
14703         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
14704         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
14705         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
14706         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
14707         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
14708         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
14709         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
14710         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
14711         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
14712         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
14713         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
14714         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
14715         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
14716         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
14717         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
14718         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
14719         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
14720         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
14721         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
14722         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
14723         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
14724
14725 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
14726
14727         * sysdeps/x86_64/dla.h: Move to ...
14728         * sysdeps/x86_64/fpu/dla.h: ...here.
14729         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
14730         situations.  Use __builtin_fma only for gcc 4.6 and up.
14731
14732         * config.make.in: Add have-mfma4 entry.
14733         * configure.in: Substitute libc_cv_cc_fma4.
14734         * math/Makefile (dbl-only-routines): Add sincostab.
14735         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
14736         Use __sincostab not sincos.
14737         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
14738         name is a macro.
14739         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
14740         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14741         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14742         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
14743         using __copysign.
14744         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
14745         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
14746         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
14747         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
14748         and __inv.
14749         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
14750         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
14751         __copysign.
14752         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
14753         define aliases when function name is a macro.
14754         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
14755         sysdeps/ieee754/dbl-64/sincos.tbl.
14756         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
14757         fma4-enabled routines.
14758         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
14759         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
14760         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
14761         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
14762         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
14763         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
14764         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
14765         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
14766         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
14767         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
14768         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
14769         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
14770         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
14771         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
14772         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
14773         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
14774         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
14775         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
14776         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
14777         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
14778         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
14779         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
14780         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
14781         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
14782         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
14783         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
14784         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
14785         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
14786         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
14787         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
14788
14789         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
14790         rename.
14791         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14792         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14793         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14794         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14795         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14796         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14797         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
14798         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
14799
14800 2011-10-24  Andreas Schwab  <schwab@redhat.com>
14801
14802         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
14803
14804 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
14805
14806         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
14807
14808         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
14809         prediction.
14810         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
14811
14812         * string/strnlen.c: Don't define STRNLEN, reverse logic.
14813         Remove unused variable magic_bits.
14814         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
14815
14816         * string/strnlen.c: Define and use STRNLEN macro.
14817         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
14818         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
14819         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
14820         * wcsmbs/wcslen.c: Define and use WCSLEN.
14821         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
14822         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
14823         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
14824         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
14825         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
14826         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
14827         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
14828
14829 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14830
14831         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
14832         strnlen-sse2-no-bsf.
14833         Rename strlen-no-bsf to strlen-sse2-no-bsf.
14834         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
14835         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
14836         Add strnlen support.
14837         (USE_AS_STRNLEN): New macro.
14838         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
14839         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
14840         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
14841         * sysdeps/x86_64/wcslen.S: New file.
14842
14843 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
14844
14845         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
14846         XMM-moves are used for copying on small sizes.
14847
14848 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14849
14850         * wcsmbs/Makefile (strop-tests): Add wcschr.
14851         * wcsmbs/test-wcschr.c: New file.
14852         * string/test-strchr.c: Update.
14853         Add wcschr support.
14854         (WIDE): New macro.
14855
14856 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14857
14858         * wcsmbs/Makefile (strop-tests): Add wcslen.
14859         * wcsmbs/test-wcslen.c: New file.
14860         * string/test-strlen.c: Update.
14861         Add wcslen support.
14862         (WIDE): New macro.
14863
14864 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
14865
14866         * po/it.po: Update from translation team.
14867
14868 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14869
14870         * sysdeps/x86_64/wcscmp.S: Update.
14871         Fix wrong comparison semantics.
14872         wcscmp shall use signed comparison not unsigned.
14873         Don't use substraction to avoid overflow bug.
14874         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
14875         * wcsmbc/wcscmp.c: Likewise.
14876         * string/test-strcmp.c: Likewise.
14877         Add new tests to check cases with negative values.
14878
14879 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
14880
14881         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
14882         * sysdeps/x86_64/dla.h: ...here.  New file.
14883         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
14884         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14885         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14886         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14887         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14888         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
14889         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14890         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
14891         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
14892
14893 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
14894
14895         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
14896         __ynl_finite aliases.
14897
14898 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
14899
14900         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
14901
14902         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
14903         define DLA_FMA.
14904         [DLA_FMA] (EMULV): Use DLA_FMA.
14905         [DLA_FMA] (MUL12): Use EMULV.
14906         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
14907         that are not needed.
14908         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14909         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14910         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14911         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14912         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14913         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
14914         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
14915
14916 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
14917
14918         * math/s_nan.c: Undef __nan.
14919         * math/s_nanf.c: Undef __nanf.
14920         * math/s_nanl.c: Undef __nanl.
14921         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
14922         "math_private.h".
14923
14924 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
14925
14926         * math/s_catan.c: Add branch predictions.
14927         * math/s_catanf.c: Likewise.
14928         * math/s_catanh.c: Likewise.
14929         * math/s_catanhf.c: Likewise.
14930         * math/s_catanhl.c: Likewise.
14931         * math/s_catanl.c: Likewise.
14932         * math/s_cexp.c: Likewise.
14933         * math/s_cexpf.c: Likewise.
14934         * math/s_cexpl.c: Likewise.
14935         * math/s_clog.c: Likewise.
14936         * math/s_clog10.c: Likewise.
14937         * math/s_clog10f.c: Likewise.
14938         * math/s_clog10l.c: Likewise.
14939         * math/s_clogf.c: Likewise.
14940         * math/s_clogl.c: Likewise.
14941         * math/s_csqrt.c: Likewise.
14942         * math/s_csqrtf.c: Likewise.
14943         * math/s_csqrtl.c: Likewise.
14944         * math/s_ctanf.c: Likewise.
14945         * math/s_ctanh.c: Likewise.
14946         * math/s_ctanhf.c: Likewise.
14947         * math/s_ctanhl.c: Likewise.
14948         * math/s_ctanl.c: Likewise.
14949
14950         * math/math_private.h: Define __nan, __nanf, __nanl.
14951         * math/s_cacosh.c: Include <math_private.h>.
14952         * math/s_cacoshl.c: Likewise.
14953         * math/s_casinh.c: Likewise.
14954         * math/s_casinhf.c: Likewise.
14955         * math/s_casinhl.c: Likewise.
14956         * math/s_ccos.c: Rely entire on ccosh.
14957         * math/s_ccosf.c: Rely entire on ccoshf.
14958         * math/s_ccosl.c: Rely entirely on ccoshl.
14959         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
14960         Remove tests for FE_INVALID.
14961         * math/s_ccoshf.c: Likewise.
14962         * math/s_ccoshl.c: Likewise.
14963         * math/s_csin.c: Likewise.
14964         * math/s_csinf.c: Likewise.
14965         * math/s_csinh.c Likewise.
14966         * math/s_csinhf.c: Likewise.
14967         * math/s_csinhl.c: Likewise.
14968         * math/s_csinl.c: Likewise.
14969         * math/s_ctan.c: Likewise.
14970         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
14971         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
14972         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
14973
14974 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
14975
14976         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
14977         compilation problems.
14978
14979         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
14980         __builtin_expect.
14981
14982 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
14983
14984         * sysdeps/i386/configure.in: Test for -mfma4 option.
14985         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
14986         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
14987         COMMON_CPUID_INDEX_80000001.
14988         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
14989         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
14990         use it if FMA3 is not supported.
14991         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
14992
14993         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
14994         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
14995
14996 2011-10-20  Andreas Schwab  <schwab@redhat.com>
14997
14998         [BZ #12892]
14999         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
15000         it would create a cycle with a link time dependency.
15001
15002 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
15003
15004         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
15005         instruction.
15006         * string/Makefile (strop-tests): Add rawmemchr.
15007         * string/test-rawmemchr.c: New file.
15008
15009         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
15010         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
15011         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
15012         when compiling str{,n}casecmp and when AVX is available.  Hook up
15013         new optimized code in initializers.
15014
15015 2011-10-19  Andreas Schwab  <schwab@redhat.com>
15016
15017         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
15018         __feraiseexcept instead of feraiseexcept.
15019
15020 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
15021
15022         * math/math_private.h: Define defaults for libc_fetestexcept and
15023         libc_feupdateenv.
15024         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
15025         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
15026         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
15027         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
15028         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
15029         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
15030         libc_fetestexcept and libc_feupdateenv.
15031
15032         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
15033         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
15034         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
15035         * sysdeps/x86_64/fpu/math_private.h: Define special version of
15036         libc_feholdexcept_setround.
15037
15038         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
15039         Add s_nearbyint-c and s_nearbyintf-c.
15040         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
15041         nearbyintf inlines.
15042         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
15043         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
15044         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
15045         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
15046
15047         * math/math_private.h: Define defaults for libc_fegetround,
15048         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
15049         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
15050         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
15051         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
15052         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
15053         standard functions.
15054         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
15055         Remove comments and hacks for old compiler versions.
15056         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
15057         libc_fegetround, libc_fesetround, libc_feholdexcept, and
15058         libc_feholdexceptl.
15059
15060 2011-10-18  Andreas Schwab  <schwab@redhat.com>
15061
15062         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
15063         (__feraiseexcept_renamed): Add __NTH.
15064         (feraiseexcept): Add __NTH.  Rename local variables to fix
15065         namespace violations.
15066
15067 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
15068
15069         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
15070
15071         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
15072
15073         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
15074         recently added interfaces.
15075         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
15076
15077         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
15078         about macro parameter expansion.
15079
15080         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
15081         __NO_MATH_INLINES is defined.  Cleanups.
15082
15083         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
15084         and __floorf is target has SSE4.1.
15085         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
15086         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
15087         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
15088         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
15089
15090         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
15091         name.
15092         (floorf): Likewise.
15093
15094         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
15095
15096 2011-10-17  Andreas Schwab  <schwab@redhat.com>
15097
15098         * misc/sys/cdefs.h: Fix last change.
15099
15100         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
15101         database lookup.
15102
15103 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
15104
15105         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
15106
15107         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
15108         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
15109         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
15110         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
15111         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
15112         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
15113         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
15114         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
15115         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
15116         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
15117         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
15118         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
15119         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
15120         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
15121         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
15122         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
15123         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
15124         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
15125         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
15126         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
15127         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
15128         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
15129
15130         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
15131         ceil, ceilf, floor, floorf.
15132
15133         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
15134         Perform IRELATIVE relocations last.
15135
15136         * elf/do-rel.h: Add another parameter nrelative, replacing the
15137         local variable with the same name.  Change name of the function
15138         to end in Rel or Rela (uppercase).
15139         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
15140         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
15141         elf_dynamic_do_##reloc function.
15142
15143 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
15144
15145         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
15146         is sufficient, at least on modern CPUs.
15147
15148         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
15149
15150         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
15151         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
15152
15153         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
15154         __expl_finite.
15155         * math/bits/math-finite.h: Add entries for exp.
15156         * math/e_expl.c: Add __*_finite alias.
15157         * sysdeps/i386/fpu/e_exp.S: Likewise.
15158         * sysdeps/i386/fpu/e_expf.S: Likewise.
15159         * sysdeps/i386/fpu/e_expl.c: Likewise.
15160         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
15161         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
15162         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
15163         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
15164         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
15165         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
15166         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
15167
15168         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
15169         is sufficient, at least on modern CPUs.
15170
15171         * ctype/ctype-info.c (__ctype_init): Define.
15172         * include/ctype.h (__ctype_init): Declare.
15173         (__ctype_b_loc): The variable is always initialized.
15174         (__ctype_toupper_loc): Likewise.
15175         (__ctype_tolower_loc): Likewise.
15176         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
15177         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
15178
15179 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
15180
15181         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
15182
15183         * configure.in: Also look in $cxxmachine/include for C++ system
15184         headers.
15185
15186 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15187
15188         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
15189         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
15190         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
15191         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
15192         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
15193         (USE_AS_WMEMCMP): New macro.
15194         Fixing indents.
15195         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
15196         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
15197         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
15198         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
15199         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
15200         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
15201         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
15202         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
15203         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
15204         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
15205         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
15206         (USE_AS_WMEMCMP): New macro.
15207         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
15208         * sysdeps/string/test-memcmp.c: Update.
15209         Fix simple_wmemcmp.
15210         Add new tests.
15211         * wcsmbs/wmemcmp.c: Update.
15212         (WMEMCMP): New macro.
15213         Fix overflow bug.
15214
15215 2011-10-12  Andreas Jaeger  <aj@suse.de>
15216
15217         [BZ #13268]
15218         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
15219
15220 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
15221
15222         * libio/iofwide.c (do_length): Avoid warning.
15223
15224         * ctype/ctype.h (__isctype_f): Add missing __THROW.
15225
15226 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
15227
15228         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
15229
15230         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
15231         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
15232         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
15233         * sysdeps/i386/i686/fpu/e_log.S: New file.
15234         * sysdeps/i386/i686/fpu/e_logf.S: New file.
15235         * sysdeps/i386/i686/fpu/e_logl.S: New file.
15236
15237         * ctype/ctype.h: Add support for inlined isXXX functions when
15238         compiling C++ code.
15239
15240 2011-10-14  Andreas Schwab  <schwab@redhat.com>
15241
15242         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
15243
15244         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
15245
15246 2011-10-13  Roland McGrath  <roland@hack.frob.com>
15247
15248         [BZ #13291]
15249         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
15250
15251 2011-10-13  Andreas Schwab  <schwab@redhat.com>
15252
15253         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
15254         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
15255         feraiseexcept.
15256
15257         * sysdeps/x86_64/memrchr.S: Check for zero size.
15258
15259         * string/stratcliff.c: Add memrchr tests.
15260
15261 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15262
15263         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
15264         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
15265         rawmemchr-sse2 rawmemchr-sse2-bsf.
15266         * sysdeps/i386/i686/multiarch/memchr.S: New file.
15267         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
15268         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
15269         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
15270         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
15271         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
15272         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
15273         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
15274         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
15275         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
15276         * string/memrchr.c (MEMRCHR): New macro.
15277
15278 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
15279
15280         Add integration with gcc's -ffinite-math-only and optimize wrapper
15281         functions in libm.
15282         * Versions.def: Define GLIBC_2.15 version for libm.
15283         * math/Makefile (headers): Add bits/math-finite.h.
15284         * math/bits/math-finite.h: New file.
15285         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
15286         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
15287         * math/e_acoshl.c: Add __*_finite alias.
15288         * math/e_acosl.c: Likewise.
15289         * math/e_asinl.c: Likewise.
15290         * math/e_atan2l.c: Likewise.
15291         * math/e_atanhl.c: Likewise.
15292         * math/e_coshl.c: Likewise.
15293         * math/e_exp10.c: Likewise.
15294         * math/e_exp10f.c: Likewise.
15295         * math/e_exp10l.c: Likewise.
15296         * math/e_exp2l.c: Likewise.
15297         * math/e_fmodl.c: Likewise.
15298         * math/e_gammal_r.c: Likewise.
15299         * math/e_hypotl.c: Likewise.
15300         * math/e_j0l.c: Likewise.
15301         * math/e_j1l.c: Likewise.
15302         * math/e_jnl.c: Likewise.
15303         * math/e_lgammal_r.c: Likewise.
15304         * math/e_log10l.c: Likewise.
15305         * math/e_log2l.c: Likewise.
15306         * math/e_logl.c: Likewise.
15307         * math/e_powl.c: Likewise.
15308         * math/e_sinhl.c: Likewise.
15309         * math/e_sqrtl.c: Likewise.
15310         * math/e_scalb.c: Completely rewritten and optimized.
15311         * math/e_scalbf.c: Likewise.
15312         * math/e_scalbl.c: Likewise.
15313         * math/w_acos.c: Likewise.
15314         * math/w_acosf.c: Likewise.
15315         * math/w_acosl.c: Likewise.
15316         * math/w_acosh.c: Likewise.
15317         * math/w_acoshf.c: Likewise.
15318         * math/w_acoshl.c: Likewise.
15319         * math/w_asin.c: Likewise.
15320         * math/w_asinf.c: Likewise.
15321         * math/w_asinl.c: Likewise.
15322         * math/w_atan2.c: Likewise.
15323         * math/w_atan2f.c: Likewise.
15324         * math/w_atan2l.c: Likewise.
15325         * math/w_atanh.c: Likewise.
15326         * math/w_atanhf.c: Likewise.
15327         * math/w_atanhl.c: Likewise.
15328         * math/w_exp10.c: Likewise.
15329         * math/w_exp10f.c: Likewise.
15330         * math/w_exp10l.c: Likewise.
15331         * math/w_fmod.c: Likewise.
15332         * math/w_fmodf.c: Likewise.
15333         * math/w_fmodl.c: Likewise.
15334         * math/w_j0.c: Likewise.
15335         * math/w_j0f.c: Likewise.
15336         * math/w_j0l.c: Likewise.
15337         * math/w_j1.c: Likewise.
15338         * math/w_j1f.c: Likewise.
15339         * math/w_j1l.c: Likewise.
15340         * math/w_jn.c: Likewise.
15341         * math/w_jnf.c: Likewise.
15342         * math/w_log.c: Likewise.
15343         * math/w_logf.c: Likewise.
15344         * math/w_logl.c: Likewise.
15345         * math/w_log10.c: Likewise.
15346         * math/w_log10f.c: Likewise.
15347         * math/w_log10l.c: Likewise.
15348         * math/w_log2.c: Likewise.
15349         * math/w_log2f.c: Likewise.
15350         * math/w_log2l.c: Likewise.
15351         * math/w_pow.c: Likewise.
15352         * math/w_powf.c: Likewise.
15353         * math/w_powl.c: Likewise.
15354         * math/w_remainder.c: Likewise.
15355         * math/w_remainderf.c: Likewise.
15356         * math/w_remainderl.c: Likewise.
15357         * math/w_scalb.c: Likewise.
15358         * math/w_scalbf.c: Likewise.
15359         * math/w_scalbl.c: Likewise.
15360         * math/w_sqrt.c: Likewise.
15361         * math/w_sqrtf.c: Likewise.
15362         * math/w_sqrtl.c: Likewise.
15363         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
15364         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
15365         used.
15366         * math/math_private.h: Declare __kernel_standard_f.
15367         * math/w_cosh.c: Remove cruft and optimize a bit.
15368         * math/w_coshf.c: Likewise.
15369         * math/w_coshl.c: Likewise.
15370         * math/w_exp2.c: Likewise.
15371         * math/w_exp2f.c: Likewise.
15372         * math/w_exp2l.c: Likewise.
15373         * math/w_hypot.c: Likewise.
15374         * math/w_hypotf.c: Likewise.
15375         * math/w_hypotl.c: Likewise.
15376         * math/w_lgamma.c: Likewise.
15377         * math/w_lgamma_r.c: Likewise.
15378         * math/w_lgammaf.c: Likewise.
15379         * math/w_lgammaf_r.c: Likewise.
15380         * math/w_lgammal.c: Likewise.
15381         * math/w_lgammal_r.c: Likewise.
15382         * math/w_sinh.c: Likewise.
15383         * math/w_sinhf.c: Likewise.
15384         * math/w_sinhl.c: Likewise.
15385         * math/w_tgamma.c: Likewise.
15386         * math/w_tgammaf.c: Likewise.
15387         * math/w_tgammal.c: Likewise.
15388         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
15389         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
15390         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
15391         Minor optimizations.  Pretty printing.  Remove cruft.
15392         * sysdeps/i386/fpu/e_acosf.S: Likewise.
15393         * sysdeps/i386/fpu/e_acosh.S: Likewise.
15394         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
15395         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
15396         * sysdeps/i386/fpu/e_acosl.c: Likewise.
15397         * sysdeps/i386/fpu/e_asin.S: Likewise.
15398         * sysdeps/i386/fpu/e_asinf.S: Likewise.
15399         * sysdeps/i386/fpu/e_atan2.S: Likewise.
15400         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
15401         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
15402         * sysdeps/i386/fpu/e_atanh.S: Likewise.
15403         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
15404         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
15405         * sysdeps/i386/fpu/e_exp10.S: Likewise.
15406         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
15407         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
15408         * sysdeps/i386/fpu/e_exp2.S: Likewise.
15409         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
15410         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
15411         * sysdeps/i386/fpu/e_fmod.S: Likewise.
15412         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
15413         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
15414         * sysdeps/i386/fpu/e_hypot.S: Likewise.
15415         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
15416         * sysdeps/i386/fpu/e_log.S: Likewise.
15417         * sysdeps/i386/fpu/e_log10.S: Likewise.
15418         * sysdeps/i386/fpu/e_log10f.S: Likewise.
15419         * sysdeps/i386/fpu/e_log10l.S: Likewise.
15420         * sysdeps/i386/fpu/e_log2.S: Likewise.
15421         * sysdeps/i386/fpu/e_log2f.S: Likewise.
15422         * sysdeps/i386/fpu/e_log2l.S: Likewise.
15423         * sysdeps/i386/fpu/e_logf.S: Likewise.
15424         * sysdeps/i386/fpu/e_logl.S: Likewise.
15425         * sysdeps/i386/fpu/e_pow.S: Likewise.
15426         * sysdeps/i386/fpu/e_powf.S: Likewise.
15427         * sysdeps/i386/fpu/e_powl.S: Likewise.
15428         * sysdeps/i386/fpu/e_remainder.S: Likewise.
15429         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
15430         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
15431         * sysdeps/i386/fpu/e_scalb.S: Likewise.
15432         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
15433         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
15434         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
15435         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
15436         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
15437         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
15438         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
15439         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15440         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
15441         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
15442         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
15443         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
15444         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
15445         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
15446         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
15447         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
15448         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
15449         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15450         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
15451         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
15452         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15453         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
15454         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
15455         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
15456         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15457         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
15458         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
15459         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
15460         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
15461         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
15462         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
15463         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
15464         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
15465         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
15466         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
15467         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
15468         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
15469         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
15470         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
15471         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
15472         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
15473         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
15474         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
15475         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
15476         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
15477         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
15478         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
15479         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
15480         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
15481         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
15482         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
15483         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
15484         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
15485         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
15486         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
15487         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
15488         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
15489         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
15490         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
15491         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
15492         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
15493         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
15494         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
15495         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
15496         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
15497         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
15498         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
15499         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
15500         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
15501         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
15502         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
15503         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
15504         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
15505         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
15506         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
15507         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
15508         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
15509         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
15510         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
15511         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
15512         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
15513         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
15514         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
15515         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
15516         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
15517         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
15518         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
15519         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
15520         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
15521         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
15522         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
15523         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
15524         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
15525         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
15526         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
15527         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
15528         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
15529         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
15530         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
15531         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
15532         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
15533         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
15534         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
15535         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
15536         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
15537         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
15538         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
15539         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
15540         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
15541         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
15542         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
15543         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
15544         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
15545         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
15546         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
15547         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
15548         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
15549         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
15550         (__isnanf): Likewise.
15551         (__isinf_ns): Likewise.
15552         (__isinf_nsf): Likewise.
15553         (__finite): Likewise.
15554         (__finitef): Likewise.
15555         (__ieee754_sqrt): Define as macro.
15556         (__ieee754_sqrtf): Define as macro.
15557         (__ieee754_sqrtl): Define as macro.
15558         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
15559         inlined copy.
15560         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
15561         __FINITE_MATH_ONLY__ consistent.
15562         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
15563
15564 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
15565
15566         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
15567         of rawmemchr.
15568
15569         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
15570
15571 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
15572
15573         * po/ja.po: Update from translation team.
15574
15575 2011-10-08  Roland McGrath  <roland@hack.frob.com>
15576
15577         * locale/programs/locarchive.c (prepare_address_space): New function.
15578         (create_archive, enlarge_archive, open_archive): Use it.
15579
15580         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
15581         inside [SHARED], where it is used.
15582
15583         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
15584
15585         * nss/getent.c (netgroup_keys): Remove unused variable.
15586         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
15587
15588 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
15589
15590         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
15591         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
15592         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
15593         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
15594         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
15595         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
15596         * math/Makefile (libm-calls): Add s_isinf_ns.
15597         * math/divtc3.c: Use __isinf_nsl instead of isinf.
15598         * math/multc3.c: Likewise.
15599         * math/s_casin.c: Likewise.
15600         * math/s_casinf.c: Likewise.
15601         * math/s_casinl.c: Likewise.
15602         * math/s_ccos.c: Likewise.
15603         * math/s_ccosf.c: Likewise.
15604         * math/s_ccosl.c: Likewise.
15605         * math/s_ctan.c: Likewise.
15606         * math/s_ctanf.c: Likewise.
15607         * math/s_ctanh.c: Likewise.
15608         * math/s_ctanhf.c: Likewise.
15609         * math/s_ctanhl.c: Likewise.
15610         * math/s_ctanl.c: Likewise.
15611         * math/w_fmod.c: Likewise.
15612         * math/w_fmodf.c: Likewise.
15613         * math/w_fmodl.c: Likewise.
15614         * math/w_remainder.c: Likewise.
15615         * math/w_remainderf.c: Likewise.
15616         * math/w_remainderl.c: Likewise.
15617         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
15618         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
15619         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
15620         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
15621         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
15622         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
15623         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
15624         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
15625
15626         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
15627         of the number.
15628         * stdio-common/printf_fphex.c: Likewise.
15629         * stdio-common/printf_size.c: Likewise.
15630
15631         * math/e_exp10.c: Include math_private.h using <...> not "...".
15632         * math/e_exp10f.c: Likewise.
15633         * math/e_exp10l.c: Likewise.
15634         * math/e_exp2l.c: Likewise.
15635         * math/e_j0l.c: Likewise.
15636         * math/e_j1l.c: Likewise.
15637         * math/e_jnl.c: Likewise.
15638         * math/e_lgammal_r.c: Likewise.
15639         * math/e_rem_pio2l.c: Likewise.
15640         * math/e_scalb.c: Likewise.
15641         * math/e_scalbf.c: Likewise.
15642         * math/e_scalbl.c: Likewise.
15643         * math/k_cosl.c: Likewise.
15644         * math/k_sinl.c: Likewise.
15645         * math/k_tanl.c: Likewise.
15646         * math/s_cacoshf.c: Likewise.
15647         * math/s_catan.c: Likewise.
15648         * math/s_catanf.c: Likewise.
15649         * math/s_catanh.c: Likewise.
15650         * math/s_catanhf.c: Likewise.
15651         * math/s_catanhl.c: Likewise.
15652         * math/s_catanl.c: Likewise.
15653         * math/s_ccosh.c: Likewise.
15654         * math/s_ccoshf.c: Likewise.
15655         * math/s_ccoshl.c: Likewise.
15656         * math/s_cexp.c: Likewise.
15657         * math/s_cexpf.c: Likewise.
15658         * math/s_cexpl.c: Likewise.
15659         * math/s_clog.c: Likewise.
15660         * math/s_clog10.c: Likewise.
15661         * math/s_clog10f.c: Likewise.
15662         * math/s_clog10l.c: Likewise.
15663         * math/s_clogf.c: Likewise.
15664         * math/s_clogl.c: Likewise.
15665         * math/s_csin.c: Likewise.
15666         * math/s_csinf.c: Likewise.
15667         * math/s_csinh.c: Likewise.
15668         * math/s_csinhf.c: Likewise.
15669         * math/s_csinhl.c: Likewise.
15670         * math/s_csinl.c: Likewise.
15671         * math/s_csqrt.c: Likewise.
15672         * math/s_csqrtf.c: Likewise.
15673         * math/s_csqrtl.c: Likewise.
15674         * math/s_ctan.c: Likewise.
15675         * math/s_ctanf.c: Likewise.
15676         * math/s_ctanh.c: Likewise.
15677         * math/s_ctanhf.c: Likewise.
15678         * math/s_ctanhl.c: Likewise.
15679         * math/s_ctanl.c: Likewise.
15680         * math/s_ldexp.c: Likewise.
15681         * math/s_ldexpf.c: Likewise.
15682         * math/s_ldexpl.c: Likewise.
15683         * math/s_significand.c: Likewise.
15684         * math/s_significandf.c: Likewise.
15685         * math/s_significandl.c: Likewise.
15686         * math/w_acos.c: Likewise.
15687         * math/w_acosf.c: Likewise.
15688         * math/w_acosh.c: Likewise.
15689         * math/w_acoshf.c: Likewise.
15690         * math/w_acoshl.c: Likewise.
15691         * math/w_acosl.c: Likewise.
15692         * math/w_asin.c: Likewise.
15693         * math/w_asinf.c: Likewise.
15694         * math/w_asinl.c: Likewise.
15695         * math/w_atan2.c: Likewise.
15696         * math/w_atan2f.c: Likewise.
15697         * math/w_atan2l.c: Likewise.
15698         * math/w_atanh.c: Likewise.
15699         * math/w_atanhf.c: Likewise.
15700         * math/w_atanhl.c: Likewise.
15701         * math/w_cosh.c: Likewise.
15702         * math/w_coshf.c: Likewise.
15703         * math/w_coshl.c: Likewise.
15704         * math/w_dremf.c: Likewise.
15705         * math/w_exp10.c: Likewise.
15706         * math/w_exp10f.c: Likewise.
15707         * math/w_exp10l.c: Likewise.
15708         * math/w_exp2.c: Likewise.
15709         * math/w_exp2f.c: Likewise.
15710         * math/w_fmod.c: Likewise.
15711         * math/w_fmodf.c: Likewise.
15712         * math/w_fmodl.c: Likewise.
15713         * math/w_hypot.c: Likewise.
15714         * math/w_hypotf.c: Likewise.
15715         * math/w_hypotl.c: Likewise.
15716         * math/w_j0.c: Likewise.
15717         * math/w_j0f.c: Likewise.
15718         * math/w_j0l.c: Likewise.
15719         * math/w_j1.c: Likewise.
15720         * math/w_j1f.c: Likewise.
15721         * math/w_j1l.c: Likewise.
15722         * math/w_jn.c: Likewise.
15723         * math/w_jnf.c: Likewise.
15724         * math/w_jnl.c: Likewise.
15725         * math/w_lgamma.c: Likewise.
15726         * math/w_lgamma_r.c: Likewise.
15727         * math/w_lgammaf.c: Likewise.
15728         * math/w_lgammaf_r.c: Likewise.
15729         * math/w_lgammal.c: Likewise.
15730         * math/w_lgammal_r.c: Likewise.
15731         * math/w_log.c: Likewise.
15732         * math/w_log10.c: Likewise.
15733         * math/w_log10f.c: Likewise.
15734         * math/w_log10l.c: Likewise.
15735         * math/w_log2.c: Likewise.
15736         * math/w_log2f.c: Likewise.
15737         * math/w_log2l.c: Likewise.
15738         * math/w_logf.c: Likewise.
15739         * math/w_logl.c: Likewise.
15740         * math/w_pow.c: Likewise.
15741         * math/w_powf.c: Likewise.
15742         * math/w_powl.c: Likewise.
15743         * math/w_remainder.c: Likewise.
15744         * math/w_remainderf.c: Likewise.
15745         * math/w_remainderl.c: Likewise.
15746         * math/w_scalb.c: Likewise.
15747         * math/w_scalbf.c: Likewise.
15748         * math/w_scalbl.c: Likewise.
15749         * math/w_sinh.c: Likewise.
15750         * math/w_sinhf.c: Likewise.
15751         * math/w_sinhl.c: Likewise.
15752         * math/w_sqrt.c: Likewise.
15753         * math/w_sqrtf.c: Likewise.
15754         * math/w_sqrtl.c: Likewise.
15755         * math/w_tgamma.c: Likewise.
15756         * math/w_tgammaf.c: Likewise.
15757         * math/w_tgammal.c: Likewise.
15758
15759         * po/ja.po: Update from translation team.
15760
15761 2011-09-29  Andreas Jaeger  <aj@suse.de>
15762
15763         [BZ #13179]
15764         * sunrpc/netname.c (netname2host): Fix logic.
15765
15766         [BZ #6779]
15767         [BZ #6783]
15768         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
15769         correctly.
15770         * math/w_remainder.c (__remainder): Likewise.
15771         * math/w_remainderf.c (__remainderf): Likewise.
15772         * math/libm-test.inc (remainder_test): Add test cases.
15773
15774 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15775
15776         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
15777         sdiv_qrnnd.
15778
15779 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
15780
15781         * string/test-memcmp.c: Avoid unncessary #defines.
15782         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
15783
15784 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15785
15786         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
15787         Use new sse2 version for core i3 - i7 as it's faster
15788         than sse42 version.
15789         (bit_Prefer_PMINUB_for_stringop): New.
15790         * sysdeps/x86_64/rawmemchr.S: Update.
15791         Replace with faster SSE2 version.
15792         * sysdeps/x86_64/memrchr.S: New file.
15793         * sysdeps/x86_64/memchr.S: Update.
15794         Replace with faster SSE2 version.
15795
15796 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
15797
15798         * elf/dl-load.c (lose): Add cast to avoid warning.
15799
15800 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
15801
15802         * po/ca.po: Update from translation team.
15803
15804         * inet/getnetgrent_r.c: Hook up nscd.
15805         * nscd/Makefile (routines): Add nscd_netgroup.
15806         (nscd-modules): Add netgroupcache.
15807         (CFLAGS-netgroupcache.c): Define.
15808         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
15809         (cache_search): Add const to second parameter.
15810         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
15811         INNETGR.
15812         (dbs): Add netgrdb entry.
15813         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
15814         (verify_persistent_db): Handle netgrdb.
15815         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
15816         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
15817         GETFDNETGR.
15818         (netgroup_response_header): Define.
15819         (innetgroup_response_header): Define.
15820         (datahead): Add netgroup_response_header and innetgroup_response_header
15821         elements.
15822         * nscd/nscd.conf: Add entries for netgroup cache.
15823         * nscd/nscd.h (dbtype): Add netgrdb.
15824         (_PATH_NSCD_NETGROUP_DB): Define.
15825         (netgroup_iov_disabled): Declare.
15826         (xmalloc, xcalloc, xrealloc): Move declarations here.
15827         (cache_search): Adjust prototype.
15828         Add netgroup-related prototypes.
15829         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
15830         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
15831         (__nscd_innetgr): Declare.
15832         * nscd/selinux.c (perms): Use access_vector_t as element type and
15833         add netgroup-related initializers.
15834         * nscd/netgroupcache.c: New file.
15835         * nscd/nscd_netgroup.c: New file.
15836         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
15837         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
15838         For four parameters use innetgr.
15839         * nss/nss_files/files-init.c: Add definition and callback for netgr.
15840         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
15841         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
15842         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
15843
15844         * nscd/connections.c (register_traced_file): Don't register file
15845         for disabled databases.
15846
15847 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
15848
15849         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
15850
15851         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
15852         from tree and freeing node.
15853
15854 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
15855
15856         * nss/nsswitch.c (__nss_database_lookup): Handle
15857         nss_parse_service_list out of memory case.
15858
15859 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
15860
15861         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
15862         out of memory case.
15863
15864 2011-10-04  Andreas Schwab  <schwab@redhat.com>
15865
15866         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
15867         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
15868         pass it down.
15869         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
15870         elf_machine_rela, elf_machine_lazy_rel.
15871         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
15872         (ELF_DYNAMIC_DO_REL): Likewise.
15873         (ELF_DYNAMIC_DO_RELA): Likewise.
15874         (ELF_DYNAMIC_RELOCATE): Likewise.
15875         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
15876         to ELF_DYNAMIC_DO_REL.
15877         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
15878         (dl_main): In trace mode always set __RTLD_NOIFUNC.
15879         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
15880         elf_machine_rela.
15881         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
15882         skip_ifunc, don't call ifunc function if non-zero.
15883         (elf_machine_rela): Likewise.
15884         (elf_machine_lazy_rel): Likewise.
15885         (elf_machine_lazy_rela): Likewise.
15886         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
15887         (elf_machine_lazy_rel): Likewise.
15888         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
15889         Likewise.
15890         (elf_machine_lazy_rel): Likewise.
15891         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
15892         Likewise.
15893         (elf_machine_lazy_rel): Likewise.
15894         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
15895         (elf_machine_lazy_rel): Likewise.
15896         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
15897         (elf_machine_lazy_rel): Likewise.
15898         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
15899         (elf_machine_lazy_rel): Likewise.
15900         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
15901         (elf_machine_lazy_rel): Likewise.
15902         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
15903         (elf_machine_lazy_rel): Likewise.
15904         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
15905         (elf_machine_lazy_rel): Likewise.
15906
15907 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
15908
15909         * nss/nss_files/files-init.c (_nss_files_init): Use static
15910         initialization for all the *_traced_file variables.
15911
15912 2011-09-28  Andreas Schwab  <schwab@redhat.com>
15913
15914         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
15915
15916 2011-09-27  Roland McGrath  <roland@hack.frob.com>
15917
15918         [BZ #13226]
15919         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
15920
15921 2011-09-27  Andreas Schwab  <schwab@redhat.com>
15922
15923         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
15924         Reread the line before reparsing it.
15925
15926 2011-09-26  Andreas Schwab  <schwab@redhat.com>
15927
15928         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
15929
15930 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
15931             Maxim Kuvyrkov  <maxim@codesourcery.com>
15932             Joseph Myers  <joseph@codesourcery.com>
15933
15934         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
15935         if needed for __stack_chk_guard.
15936
15937 2011-09-19  Roland McGrath  <roland@hack.frob.com>
15938
15939         * sysdeps/posix/spawni.c (script_execute): Always define it.
15940         It will be optimized away if unused.
15941         (maybe_script_execute): New function.
15942         (__spawni): Call it.
15943
15944         * Makerules: Don't include tls.make.
15945         (config-tls): Always set to thread.
15946         * tls.make.c: File removed.
15947
15948 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
15949
15950         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
15951         * config.make.in (CPPFLAGS-config): New substituted variable.
15952
15953 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
15954
15955         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
15956
15957         [BZ #13192]
15958         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
15959         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
15960
15961 2011-09-15  Roland McGrath  <roland@hack.frob.com>
15962
15963         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
15964         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
15965         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
15966         (CALL_FAIL): Likewise.
15967         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
15968         (CALL_FAIL): Macro removed.
15969         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
15970
15971 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
15972
15973         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
15974         for __FINITE_MATH_ONLY__ == 1.
15975
15976 2011-09-15  Andreas Schwab  <schwab@redhat.com>
15977
15978         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
15979         __ieee754_sqrt instead of sqrt.
15980         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
15981         __ieee754_sqrtf instead of sqrtf.
15982         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
15983         __floorf instead of floorf.
15984         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
15985         __floorf, __truncf instead of floorf, truncf.
15986
15987 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
15988
15989         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
15990
15991         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
15992         __extern_always_inline.
15993         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
15994         32-bit.
15995
15996 2011-09-14  Andreas Schwab  <schwab@redhat.com>
15997
15998         * elf/rtld.c (dl_main): Also relocate in dependency order when
15999         doing symbol dependency testing.
16000
16001 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
16002
16003         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
16004         Always define `refsym'.
16005
16006 2011-09-13  Andreas Schwab  <schwab@redhat.com>
16007
16008         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
16009         (__FD_ELT): Renamed from __FDELT.
16010         * misc/bits/select2.h (__FD_ELT): Likewise.
16011         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
16012         __FD_MASK instead of __FDELT, __FDMASK.
16013         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
16014         Likewise.
16015         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
16016         Likewise.
16017
16018         * elf/Makefile (gen-ldd): Fix pattern.
16019
16020         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
16021         (init_tls): Likewise.
16022
16023 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
16024
16025         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
16026
16027 2011-09-12  Andreas Schwab  <schwab@redhat.com>
16028
16029         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
16030         `struct cmsghdr *' instead of `void *'.
16031         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
16032         Likewise.
16033
16034 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
16035
16036         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
16037         if non-absolute.
16038         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
16039         ldd_rewrite_script.
16040
16041 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
16042
16043         * configure.in: Remove --with-tls option.
16044         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
16045         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
16046         out in case it is missing.
16047         * sysdeps/ia64/elf/configure.in: Likewise.
16048         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
16049         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
16050         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
16051         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
16052         * sysdeps/sh/elf/configure.in: Likewise.
16053         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
16054         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
16055         * sysdeps/x86_64/elf/configure.in: Likewise.
16056         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
16057         * sysdeps/mach/hurd/tls.h: Likewise.
16058
16059         [BZ #13067]
16060         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
16061
16062         [BZ #13090]
16063         * configure.in: Fix use of AC_INIT.
16064
16065         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
16066
16067 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
16068
16069         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
16070         __set_errno.
16071         * malloc/hooks.c: Likewise.
16072
16073         [BZ #11929]
16074         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
16075         variables statically.
16076         (narenas): Initialize.
16077         (list_lock): Initialize.
16078         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
16079         initializtion of main_arena and list_lock.  Small cleanups.
16080         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
16081         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
16082         Add initializers to main_arena and mp_.
16083         (malloc_state): Remove pagesize member.  Change all users to use
16084         GLRO(dl_pagesize).
16085
16086         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
16087         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
16088         is always initialized.
16089
16090         * malloc/malloc.c: Removed unused configurations and dead code.
16091         * malloc/arena.c: Likewise.
16092         * malloc/hooks.c: Likewise.
16093         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
16094
16095         * include/tls.h: Removed.  USE___THREAD must always be defined.
16096         * bits/libc-tsd.h: Don't handle !USE___THREAD.
16097         * elf/dl-libc.c: Likewise.
16098         * elf/dl-tsd.c: Likewise.
16099         * include/errno.h: Likewise.
16100         * include/netdb.h: Likewise.
16101         * include/resolv.h: Likewise.
16102         * inet/herrno-loc.c: Likewise.
16103         * inet/herrno.c: Likewise.
16104         * malloc/arena.c: Likewise.
16105         * malloc/hooks.c: Likewise.
16106         * malloc/malloc.c: Likewise.
16107         * resolv/res-state.c: Likewise.
16108         * resolv/res_libc.c: Likewise.
16109         * sysdeps/i386/dl-machine.h: Likewise.
16110         * sysdeps/ia64/dl-machine.h: Likewise.
16111         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
16112         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
16113         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
16114         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
16115         * sysdeps/sh/dl-machine.h: Likewise.
16116         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
16117         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
16118         * sysdeps/unix/i386/sysdep.S: Likewise.
16119         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
16120         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
16121         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
16122         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
16123         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
16124         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
16125         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
16126         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
16127         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
16128         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
16129         * sysdeps/unix/x86_64/sysdep.S: Likewise.
16130         * sysdeps/x86_64/dl-machine.h: Likewise.
16131         * tls.make.c: Likewise.
16132
16133         * configure.in: Remove --with-__thread option.  Make tests for
16134         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
16135         tls_model attribute fail if no support is available.  Remove
16136         USE_IN_LIBIO.
16137         * Makeconfig: Adjust for dropped configure option.  All features are
16138         now mandatory.
16139         * Makerules: Likewise.
16140         * Versions.def: Likewise.
16141         * argp/argp-fmtstream.c: Likewise.
16142         * argp/argp-fmtstream.h: Likewise.
16143         * argp/argp-help.c: Likewise.
16144         * assert/assert.c: Likewise.
16145         * config.h.in: Likewise.
16146         * config.make.in: Likewise.
16147         * configure: Likewise.
16148         * configure.in: Likewise.
16149         * csu/Versions: Likewise.
16150         * csu/init.c: Likewise.
16151         * elf/tst-audit2.c: Likewise.
16152         * elf/tst-tls10.c: Likewise.
16153         * elf/tst-tls10.h: Likewise.
16154         * elf/tst-tls11.c: Likewise.
16155         * elf/tst-tls12.c: Likewise.
16156         * elf/tst-tls14.c: Likewise.
16157         * elf/tst-tlsmod11.c: Likewise.
16158         * elf/tst-tlsmod12.c: Likewise.
16159         * elf/tst-tlsmod13.c: Likewise.
16160         * elf/tst-tlsmod13a.c: Likewise.
16161         * elf/tst-tlsmod14a.c: Likewise.
16162         * elf/tst-tlsmod15b.c: Likewise.
16163         * elf/tst-tlsmod16a.c: Likewise.
16164         * elf/tst-tlsmod16b.c: Likewise.
16165         * elf/tst-tlsmod7.c: Likewise.
16166         * elf/tst-tlsmod8.c: Likewise.
16167         * elf/tst-tlsmod9.c: Likewise.
16168         * gmon/gmon.c: Likewise.
16169         * grp/fgetgrent_r.c: Likewise.
16170         * grp/putgrent.c: Likewise.
16171         * hurd/fopenport.c: Likewise.
16172         * include/libc-symbols.h: Likewise.
16173         * include/tls.h: Likewise.
16174         * intl/gettextP.h: Likewise.
16175         * intl/loadinfo.h: Likewise.
16176         * locale/global-locale.c: Likewise.
16177         * locale/localeinfo.h: Likewise.
16178         * mach/devstream.c: Likewise.
16179         * malloc/arena.c: Likewise.
16180         * malloc/set-freeres.c: Likewise.
16181         * misc/err.c: Likewise.
16182         * misc/getttyent.c: Likewise.
16183         * misc/mntent_r.c: Likewise.
16184         * posix/getopt.c: Likewise.
16185         * posix/wordexp.c: Likewise.
16186         * pwd/fgetpwent_r.c: Likewise.
16187         * resolv/Versions: Likewise.
16188         * resolv/res_hconf.c: Likewise.
16189         * shadow/fgetspent_r.c: Likewise.
16190         * shadow/putspent.c: Likewise.
16191         * stdio-common/printf_fphex.c: Likewise.
16192         * stdio-common/tmpfile.c: Likewise.
16193         * stdlib/abort.c: Likewise.
16194         * stdlib/fmtmsg.c: Likewise.
16195         * sunrpc/auth_unix.c: Likewise.
16196         * sunrpc/clnt_perr.c: Likewise.
16197         * sunrpc/clnt_tcp.c: Likewise.
16198         * sunrpc/clnt_udp.c: Likewise.
16199         * sunrpc/clnt_unix.c: Likewise.
16200         * sunrpc/openchild.c: Likewise.
16201         * sunrpc/svc_simple.c: Likewise.
16202         * sunrpc/svc_tcp.c: Likewise.
16203         * sunrpc/svc_udp.c: Likewise.
16204         * sunrpc/svc_unix.c: Likewise.
16205         * sunrpc/xdr.c: Likewise.
16206         * sunrpc/xdr_array.c: Likewise.
16207         * sunrpc/xdr_rec.c: Likewise.
16208         * sunrpc/xdr_ref.c: Likewise.
16209         * sunrpc/xdr_stdio.c: Likewise.
16210
16211 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
16212
16213         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
16214
16215 2011-07-03  Andreas Jaeger  <aj@suse.de>
16216
16217         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
16218         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
16219         regenerate with gen-libm-tests.pl.
16220
16221 2010-05-12  Petr Baudis  <pasky@suse.cz>
16222
16223         [BZ #11589]
16224         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
16225         around j0() zero points by switching to j1().
16226         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
16227         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
16228         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
16229         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
16230
16231 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
16232
16233         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
16234         instead of 0.
16235         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
16236         instead of 0.                              .
16237         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
16238         Patch in part by Pavel Roskin <proski@gnu.org>.
16239
16240         [BZ #13138]
16241         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
16242         realloc.
16243         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
16244         Free memory block if necessary.
16245
16246         [BZ #12847]
16247         * libio/genops.c (INTDEF): For string streams the _lock pointer can
16248         be NULL.  Don't lock in this case.
16249
16250 2011-09-09  Roland McGrath  <roland@hack.frob.com>
16251
16252         * elf/elf.h (ELFOSABI_GNU): New macro.
16253         (ELFOSABI_LINUX): Define to that.
16254
16255 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
16256
16257         * string/strncat.c (strncat): Undef the symbol in case it has been
16258         defined in bits/string.h.
16259
16260 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
16261
16262         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
16263
16264         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
16265         link map.
16266
16267 2011-08-17  Andreas Jaeger  <aj@suse.de>
16268
16269         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
16270
16271 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
16272             Ian Lance Taylor  <iant@google.com>
16273
16274         * math/libm-test.inc (lround_test): New testcase.
16275         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
16276
16277 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
16278
16279         * Makefile: Remove support for automatic cvs check-ins.
16280         * Makerules: Likewise.
16281         * config.make.in: Likewise.
16282         * configure.in: Likewise.
16283         * intl/Makefile: Likewise.
16284         * locale/Makefile: Likewise.
16285         * po/Makefile: Likewise.
16286         * posix/Makefile: Likewise.
16287         * sysdeps/gnu/Makefile: Likewise.
16288         * sysdeps/mach/hurd/Makefile: Likewise.
16289         * sysdeps/sparc/sparc32/Makefile: Likewise.
16290
16291         [BZ #13118]
16292         * posix/Makefile (bug-regex32-ENV): Define.
16293         Patch by John Stanley <jpsinthemix@verizon.net>.
16294
16295         * misc/Makefile (headers): Add bits/select2.h.
16296         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
16297         * misc/bits/select2.h: New file.
16298         * include/bits/select2.h: New file.
16299         * debug/Makefile (routines): Add fdelt_chk.
16300         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
16301         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
16302         FD_ISSET.
16303         * debug/fdelt_chk.c: New file.
16304
16305         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
16306         * wcsmbs/test-wmemcmp.c: Likewise.
16307         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
16308         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
16309
16310 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16311
16312         * string/Makefile (strop-tests): Add memcmp.
16313         * string/test-wmemcmp.c: New file.
16314         * string/test-memcmp.c: Add wmemcmp support.
16315
16316 2011-09-08  Roland McGrath  <roland@hack.frob.com>
16317
16318         [BZ #13153]
16319         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
16320         2011-07-19 change.
16321
16322         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
16323         garbage value in a __mach_port_mod_refs call in the cases of the
16324         task-self and thread-self ports.
16325
16326 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16327
16328         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
16329
16330 2011-09-08  Andreas Schwab  <schwab@redhat.com>
16331
16332         * elf/dl-load.c (lose): Check for non-null L.
16333
16334 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
16335
16336         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
16337
16338         * elf/dl-libc.c (dlerror_run): Pass back error code from
16339         dl_catch_error.
16340
16341         [BZ #13123]
16342         * elf/dl-load.c (lose): Free l_origin if it is valid.
16343
16344         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
16345         names.
16346         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
16347         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
16348         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
16349         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
16350         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
16351         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
16352
16353 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16354
16355         * sysdeps/powerpc/fpu/e_hypot.c: New file.
16356         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
16357         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
16358         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
16359         * sysdeps/powerpc/fpu/k_cosf.c: New file.
16360         * sysdeps/powerpc/fpu/k_sinf.c: New file.
16361         * sysdeps/powerpc/fpu/s_cosf.c: New file.
16362         * sysdeps/powerpc/fpu/s_sinf.c: New file.
16363         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
16364         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
16365
16366 2011-08-15  Alan Modra  <amodra@gmail.com>
16367
16368         [BZ #13092]
16369         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
16370         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
16371         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
16372         ppc_mcount to static-only-routines.
16373         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
16374         __mcount_internal.
16375         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
16376         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
16377
16378 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
16379
16380         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
16381         for finite and infinity parameters.
16382
16383 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
16384
16385         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
16386         and add nop instructions for throughput optimization.
16387         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
16388
16389 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
16390
16391         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
16392         aligned copy for power7 with vector-scalar instructions.
16393         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
16394
16395 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
16396
16397         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
16398         AVX check.
16399
16400 2011-09-07  Andreas Schwab  <schwab@redhat.com>
16401
16402         [BZ #13144]
16403         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
16404         last change.
16405
16406 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
16407
16408         * sysdeps/unix/sysv/linux/x86_64/init-first.c
16409         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
16410         syscall wrapper around clock_gettime in __vdso_clock_gettime.
16411         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
16412         clock_gettime.
16413
16414 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
16415
16416         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
16417         Forgot to demangle the pointer.
16418
16419         * sysdeps/i386/sysdep.h: Define atom_text_section.
16420         * sysdeps/x86_64/sysdep.h: Likewise.
16421         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
16422         section with atom_text_section.
16423         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
16424         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
16425         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
16426         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
16427         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
16428
16429         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
16430         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
16431         already be defined.  Change to take two parameters and don't assign
16432         result to variable.  Adjust all users.
16433         Define INTERNAL_GETTIME if not already defined.
16434         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
16435         call.
16436         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
16437         HAVE_CLOCK_GETTIME_VSYSCALL.
16438         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
16439
16440         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
16441         gettimeofday vsyscall, just use time.
16442
16443 2011-09-06  Andreas Schwab  <schwab@redhat.com>
16444
16445         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
16446         <errno.h>.
16447
16448 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
16449
16450         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
16451         syscall on x86-64.
16452         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
16453         syscall.
16454         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
16455         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
16456         syscall if possible.
16457
16458 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
16459
16460         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
16461         e_ident.  Don't pass to find_mapsXX.
16462         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
16463
16464 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16465
16466         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16467         strchr-sse2-no-bsf strrchr-sse2-no-bsf
16468         * sysdeps/x86_64/multiarch/strchr.S: Update.
16469         Check bit_slow_BSF bit.
16470         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
16471         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
16472         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
16473
16474 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
16475
16476         [BZ #13134]
16477         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
16478         before glibc 2.15.
16479         (tryshell): Define.
16480         (__spawni): Change last parameter to be flag.  Test
16481         SPAWN_XFLAGS_USE_PATH flag to use path or not.
16482         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
16483         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
16484         * posix/spawni.c: Likewise.
16485         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
16486         * posix/spawnp.c: Likewise.  Change normal version to use
16487         SPAWN_XFLAGS_USE_PATH.
16488         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
16489         SPAWN_XFLAGS_TRY_SHELL.
16490
16491         [BZ #13150]
16492         * posix/glob.h: Remove gcc 1.x support.
16493
16494         [BZ #13068]
16495         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
16496
16497 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16498
16499         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16500         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
16501         strrchr-sse2-bsf
16502         * sysdeps/i386/i686/multiarch/strchr.S: New file.
16503         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
16504         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
16505         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
16506         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
16507         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
16508
16509 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16510
16511         * sysdeps/x86_64/wcscmp.S: New file.
16512
16513         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
16514         wcscmp-c wcscmp-sse2
16515         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
16516         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
16517         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
16518         * wcsmbs/wcscmp.c: Allow renaming.
16519
16520 2011-09-05  David S. Miller  <davem@davemloft.net>
16521
16522         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
16523         stack slot, rather than the struct return pointer slot.
16524         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
16525         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
16526         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
16527         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
16528
16529 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
16530
16531         * po/ja.po: Update from translation team.
16532
16533         [BZ #13144]
16534         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
16535         kernel in 64-bit binaries.
16536
16537 2011-09-01  David S. Miller  <davem@davemloft.net>
16538
16539         * elf/elf.h (HWCAP_SPARC_*): Move to..
16540         * sysdeps/sparc/sysdep.h: this new file and add new values.
16541         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
16542         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
16543         _DL_HWCAP_COUNT to 24.
16544         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
16545         entries.
16546         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
16547         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
16548         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
16549         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
16550         instead of magic constants.
16551         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
16552
16553 2011-08-31  David S. Miller  <davem@davemloft.net>
16554
16555         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
16556         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
16557         Reimplement to do errno handling inline.
16558         (SYSCALL_ERROR_HANDLER): New macro.
16559         (__SYSCALL_STRING): Do not do errno handling in asm.
16560         (__CLONE_SYSCALL_STRING): Delete.
16561         (__INTERNAL_SYSCALL_STRING): Delete.
16562         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
16563         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
16564         (PSEUDO): Reimplement to do errno handling inline.
16565         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
16566         (SYSCALL_ERROR_HANDLER): New macro.
16567         (__SYSCALL_STRING): Do not do errno handling in asm.
16568         (__CLONE_SYSCALL_STRING): Delete.
16569         (__INTERNAL_SYSCALL_STRING): Delete.
16570         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
16571         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
16572         i386.
16573         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
16574         (inline_syscall*): Add 'err' argument.
16575         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
16576         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
16577         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
16578         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
16579
16580         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
16581         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
16582
16583 2011-08-30  Andreas Schwab  <schwab@redhat.com>
16584
16585         * elf/rtld.c (dl_main): Relocate objects in dependency order.
16586
16587 2011-08-29  Jiri Olsa <jolsa@redhat.com>
16588
16589         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
16590         directive.
16591
16592 2011-08-24  David S. Miller  <davem@davemloft.net>
16593
16594         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
16595
16596 2011-08-24  Andreas Schwab  <schwab@redhat.com>
16597
16598         * elf/Makefile: Add rules to build and run unload8 test.
16599         * elf/unload8.c: New file.
16600         * elf/unload8mod1.c: New file.
16601         * elf/unload8mod1x.c: New file.
16602         * elf/unload8mod2.c: New file.
16603         * elf/unload8mod3.c: New file.
16604
16605         * elf/dl-close.c (_dl_close_worker): Reset private search list if
16606         it wasn't used.
16607
16608 2011-08-23  David S. Miller  <davem@davemloft.net>
16609
16610         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
16611         subtract stack bias.
16612         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
16613         %sp not %fp in calculations.
16614         (_JMPBUF_UNWINDS_ADJ): Likewise.
16615
16616         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
16617         (aio_suspend): Call it to force an exception region around the
16618         AIO_MISC_WAIT() invocation.
16619
16620 2011-08-23  Andreas Schwab  <schwab@redhat.com>
16621
16622         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
16623         backslash.
16624
16625 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
16626
16627         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
16628         protection macro.
16629         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
16630         and <dl-machine.h>.
16631         (Elf64_FuncDesc): Remove.
16632
16633 2011-08-22  David S. Miller  <davem@davemloft.net>
16634
16635         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
16636         sigaltstack check, add missing cfi directives.
16637         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
16638         missing cfi directives, and sigaltstack handling.
16639
16640 2011-08-16  Andreas Schwab  <schwab@redhat.com>
16641
16642         [BZ #11724]
16643         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
16644         object is seen twice.
16645         * elf/dl-fini.c (_dl_sort_fini): Likewise.
16646
16647         * elf/Makefile (distribute): Add tst-initorder2.c.
16648         (tests): Add tst-initorder2.
16649         (modules-names): Add tst-initorder2a tst-initorder2b
16650         tst-initorder2c tst-initorder2d.  Add rules to build them.
16651         ($(objpfx)tst-initorder2.out): New rule.
16652         * elf/tst-initorder2.c: New file.
16653         * elf/tst-initorder2.exp: New file.
16654
16655 2011-08-22  Andreas Schwab  <schwab@redhat.com>
16656
16657         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
16658
16659         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
16660         dependencies back to end of function.
16661
16662         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
16663         $(elfobjdir)/ld.so.
16664
16665 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
16666
16667         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
16668         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
16669         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
16670         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
16671         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
16672         of __vdso_gettimeofday.
16673         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
16674         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
16675         attribute_hidden.
16676         (_libc_vdso_platform_setup): Remove initialization of
16677         __vdso_gettimeofday and __vdso_time.
16678
16679 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
16680
16681         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
16682         and fgetc_unlocked.
16683         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
16684         getc_unlocked.
16685
16686         * elf/dl-open.c (add_to_global): Report additions to the global scope
16687         for LD_DEBUG=scopes.
16688         (dl_open_worker): Also print scope of newly loaded dependencies.
16689         (_dl_show_scope): Indicate if there is no scope.
16690
16691         [BZ #13114]
16692         * stdio-common/Makefile (tests): Add bug24.
16693         * stdio-common/bug24.c: New file.
16694
16695 2011-08-19  Andreas Jaeger  <aj@suse.de>
16696
16697         [BZ #13114]
16698         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
16699         non-existant file when using close-on-exec mode.
16700
16701 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
16702
16703         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
16704         the very first instruction.
16705
16706         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
16707         the CFI state in the end.
16708         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
16709         inclusion of dl-trampoline.h.
16710         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
16711
16712 2011-08-19  Andreas Schwab  <schwab@redhat.com>
16713
16714         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
16715         expectations for long double.
16716
16717         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
16718         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
16719
16720 2011-08-14  David S. Miller  <davem@davemloft.net>
16721
16722         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
16723         artificual limit depends upon the system page size.
16724
16725 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
16726
16727         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
16728         * resolv/Makefile: Define CFLAGS-libresolv.
16729
16730 2011-08-17  Andreas Schwab  <schwab@redhat.com>
16731
16732         * nss/makedb.c (compute_tables): Make variables used in nested
16733         function static.
16734
16735 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
16736
16737         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
16738         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
16739         if buffer was too small.
16740
16741         * elf/pldd.c (main): Attach to all threads in the process.
16742         Rewrite /proc handling to use *at functions.
16743
16744 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
16745
16746         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
16747         specifies first scope to show.
16748         (dl_open_worker): Update callers.  Move printing scope of new
16749         object to before the relocation.
16750         * elf/rtld.c (dl_main): Update _dl_show_scope call.
16751         * sysdeps/generic/ldsodefs.h: Update declaration.
16752
16753         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
16754         string for the scope number.
16755
16756 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
16757
16758         * nscd/servicescache.c (cache_addserv): Make sure written is always
16759         initialized.
16760
16761 2011-08-14  Roland McGrath  <roland@hack.frob.com>
16762
16763         * sysdeps/i386/i486/bits/atomic.h
16764         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
16765         statement expression, so as to suppress "set but not used" warning.
16766         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
16767
16768         * string/strncat.c (STRNCAT): Use prototype definition.
16769
16770         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
16771         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
16772         -Iprograms here.
16773         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
16774         (localedef-modules): Add localedef.
16775         (locale-modules): Add locale.
16776
16777         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
16778         * elf/rtld.c (dl_main): Invert order of assignment in last change,
16779         to avoid a warning.
16780
16781 2011-08-14  David S. Miller  <davem@davemloft.net>
16782
16783         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
16784         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
16785
16786 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
16787
16788         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
16789         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
16790         * elf/rtld.c (dl_main): Set l_name of vDSO.
16791         Call _dl_show_scope when DL_DEBUG_SCOPES.
16792         (process_dl_debug): Recognize scopes flag and also set it for all.
16793         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
16794         Declare _dl_show_scope.
16795
16796         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
16797         (do_dlopen): Pass caller_dlopen to dl_open.
16798         (__libc_dlopen_mode): Initialize caller_dlopen.
16799
16800         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
16801         of libc.  Make tolower call locale-independent.  Optimize a bit by
16802         using isdigit instead of isalnum.
16803         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
16804
16805 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
16806
16807         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
16808         was a dependency or dynamically loaded.
16809
16810 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
16811
16812         * intl/l10nflist.c: Allow architecture-specific pop function.
16813         * sysdeps/x86_64/l10nflist.c: New file.
16814
16815         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
16816         classification.
16817
16818 2011-08-10  Andreas Schwab  <schwab@redhat.com>
16819
16820         * include/dirent.h: Add libc_hidden_proto for scandirat and
16821         scandirat64.  Don't declare __scandirat64.
16822         * dirent/scandirat.c: Add libc_hidden_def.
16823         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
16824         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
16825
16826 2011-08-10  David S. Miller  <davem@davemloft.net>
16827
16828         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
16829         enum.
16830         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
16831         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
16832         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
16833
16834 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
16835
16836         * Versions.def [libc]: Add GLIBC_2.15.
16837         * dirent/Makefile (routines): Add scandirat and scandirat64.
16838         * dirent/Versions [libc]: Export scandirat and scandirat64 for
16839         GLIBC_2.15.
16840         * dirent/dirent.h: Declare scandirat and scandirat64.
16841         * dirent/scandirat.c: New file.
16842         * dirent/scandirat64.c: New file.
16843         * sysdeps/wordsize-64/scandirat.c: New file.
16844         * sysdeps/wordsize-64/scandirat64.c: New file.
16845         * dirent/opendir.c: Define opendirat.
16846         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
16847         using scandirat.
16848         * dirent/scandir64.c: Adjust for scandir.c change.
16849         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
16850         __scandirat64, and __scandir_cancel_handler.
16851         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
16852         additional parameter and use openat instead of open (outside of ld.so).
16853         Add new __opendir as wrapper around __opendirat.
16854         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
16855         here without requiring old scandirat implementation.
16856
16857 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
16858
16859         * dirent/scandir.c (cancel_handler): Renamed to
16860         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
16861         defined.  Adjust users.
16862         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
16863         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
16864
16865 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
16866
16867         * string/test-string.h (IMPL): Use __STRING to expand name and then
16868         stringify it.
16869
16870         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
16871         of cleanups.
16872
16873 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16874
16875         * string/Makefile: Update.
16876         (strop-tests): Append strncat.
16877         * string/test-wcscmp.c: New file.
16878         New comprehensive test for wcscmp.
16879         * string/test-strcmp.c: Update.
16880         (WIDE): New define.
16881
16882 2011-07-22  Andreas Schwab  <schwab@redhat.com>
16883
16884         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
16885         line.
16886
16887 2011-07-26  Andreas Schwab  <schwab@redhat.com>
16888
16889         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
16890         encoding to ACE if AI_IDN.
16891
16892 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
16893
16894         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
16895         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
16896
16897 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16898
16899         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
16900         Fix overflow bug in strncat.
16901         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
16902
16903         * string/test-strncat.c: Update.
16904         Add new tests for checking overflow bugs.
16905
16906 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16907
16908         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16909         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
16910         * sysdeps/i386/i686/multiarch/strcat.S: New file.
16911         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
16912         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
16913         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
16914         * sysdeps/i386/i686/multiarch/strncat.S: New file.
16915         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
16916         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
16917
16918         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
16919         (USE_AS_STRCAT): Define.
16920         Add strcat and strncat support.
16921         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
16922
16923 2011-07-25  Andreas Schwab  <schwab@redhat.com>
16924
16925         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
16926         __n bigger than INT_MAX+1.
16927         (__strncmp_g): Likewise.
16928
16929 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
16930
16931         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
16932         * libio/stido.h: Likewise.
16933
16934         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
16935         (AF_NFC): Define.
16936         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
16937         (AF_NFC): Define.
16938
16939         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
16940         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
16941         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
16942         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
16943         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
16944
16945         [BZ #13021]
16946         * scripts/test-installation.pl: Don't expect libnss_test1 to be
16947         installed.
16948
16949         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
16950         typo.
16951         (_dl_x86_64_save_sse): Likewise.
16952
16953 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
16954
16955         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
16956         OSXSAVE.
16957         (_dl_x86_64_save_sse): Likewise.
16958
16959         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
16960
16961         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
16962
16963 2011-07-21  Andreas Schwab  <schwab@redhat.com>
16964
16965         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
16966         change.
16967         (_dl_x86_64_save_sse): Use correct AVX check.
16968
16969 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16970
16971         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
16972         bug in strncpy/strncat.
16973         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
16974
16975 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
16976
16977         * string/tester.c (test_strcat): Add tests for different alignments
16978         of source and destination.
16979         (test_strncat): Likewise.
16980
16981 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
16982
16983         [BZ #12852]
16984         * posix/glob.c (glob): Check passed in values before using them in
16985         expressions to avoid some overflows.
16986         (glob_in_dir): Likewise.
16987
16988         [BZ #13007]
16989         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
16990         check for AVX enablement so that we don't crash with old kernels and
16991         new hardware.
16992         * elf/tst-audit4.c: Add same checks here.
16993         * elf/tst-audit6.c: Likewise.
16994
16995         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
16996
16997 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
16998
16999         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
17000
17001 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
17002
17003         * po/cs.po: Update from translation team.
17004         * po/bg.po: Likewise.
17005
17006 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
17007
17008         * misc/sys/cdefs.h: Add support for const attribute.
17009         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
17010         to gnu_dev_{major,minor,makedev} functions.
17011
17012 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
17013
17014         * intl/dcigettext.c (get_output_charset): Add missing bracket.
17015
17016 2011-07-20  Andreas Schwab  <schwab@redhat.com>
17017
17018         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
17019         strlen results.
17020
17021 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17022
17023         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
17024         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
17025         register in order to avoid conflicts with the soft frame pointer
17026         being held in r11 when necessary.
17027         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
17028         (INTERNAL_VSYSCALL_NCS): Likewise.
17029
17030 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
17031
17032         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
17033         * elf/dl-fini.c (_dl_fini): Adjust caller.
17034         * elf/dl-close.c (_dl_close_worker): Likewise.
17035         * sysdeps/generic/ldsodefs.h: Adjust declaration.
17036
17037 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
17038
17039         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
17040         "aux_cache->nlibs < 0".
17041
17042         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
17043         in the reload-count case.
17044
17045 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
17046
17047         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
17048         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
17049         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
17050         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
17051         * sysdeps/x86_64/multiarch/strcat.S: New file.
17052         * sysdeps/x86_64/multiarch/strncat.S: New file.
17053         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
17054         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
17055         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
17056         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
17057         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
17058         (USE_AS_STRCAT): Define.
17059         Add strcat and strncat support.
17060         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
17061         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
17062         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
17063         * string/strncat.c: Update.
17064         (USE_AS_STRNCAT): Define.
17065         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17066         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
17067         and i7.
17068         * sysdeps/x86_64/multiarch/init-arch.h
17069         (bit_Prefer_PMINUB_for_stringop): New.
17070         (index_Prefer_PMINUB_for_stringop): Likewise.
17071         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
17072         bit_Prefer_PMINUB_for_stringop.
17073
17074 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
17075
17076         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
17077         buffer64.
17078         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
17079         of casting of buffer.
17080         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
17081         buffer32 and buffer64.
17082         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
17083         writes instead of casting of buffer.
17084         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
17085         buffer32.
17086         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
17087         casting of buffer.
17088
17089 2011-07-19  Andreas Schwab  <schwab@redhat.com>
17090
17091         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
17092
17093 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
17094
17095         * nscd/nscd.c (termination_handler): Don't do anything for a database
17096         if it has not yet been initialized.
17097
17098 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
17099
17100         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
17101
17102 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
17103
17104         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
17105
17106 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
17107
17108         * po/nl.po: Update from translation team.
17109         * po/sv.po: Likewise.
17110
17111 2011-07-16  Roland McGrath  <roland@hack.frob.com>
17112
17113         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
17114         now disallowed by GCC.
17115
17116         * configure.in (use-default-link): Default to yes if a test -shared
17117         link meets our qualifications.
17118         * configure: Regenerated.
17119
17120         * config.make.in (output-format): New variable.
17121         * configure.in: Check for ld --print-output-format support.
17122         * configure: Regenerated.
17123         * Makerules ($(common-objpfx)format.lds)
17124         [$(output-format) != unknown]: Just use $(output-format),
17125         instead of the linker-script munging.
17126
17127 2011-07-14  Roland McGrath  <roland@hack.frob.com>
17128
17129         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
17130         of $(common-objpfx)shlib.lds.
17131         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
17132
17133         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
17134         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
17135
17136         * configure.in (-z relro check): Adjust test code to add a large
17137         writable data section after it.
17138         * configure: Regenerated.
17139
17140 2011-07-11  Roland McGrath  <roland@hack.frob.com>
17141
17142         * configure.in (-z relro check): Fix test code to make the variable
17143         truly const.
17144         * configure: Regenerated.
17145
17146 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
17147
17148         * nscd/nscd.h (struct traced_file): Define.
17149         (struct database_dyn): Remove inotify_descr, reset_res, and filename
17150         elements.  Add traced_files.
17151         (inotify_fd): Declare.
17152         (register_traced_file): Declare.
17153         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
17154         (inotify_fd): Export.
17155         (resolv_conf_descr): Remove.
17156         (nscd_init): Move inotify descriptor creation to main.
17157         Don't register files for notification here.
17158         (register_traced_file): New function.
17159         (invalidate_cache): Don't use reset_res to determine whether to call
17160         res_init, go through the list of registered files.
17161         (main_loop_poll): The inotify descriptors are now stored in the
17162         structures for the traced files.
17163         (main_loop_epoll): Likewise
17164         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
17165         to __nss_disable_nscd.
17166         * nscd/cache.c (prune_cache): There is no single inotify descriptor
17167         for a database anymore.  Check the records for all the registered
17168         files instead.
17169         * nss/Makefile (libnss_files-routines): Add files-init.
17170         (libnss_db-routines): Add db-init.
17171         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
17172         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
17173         * nss/nss_db/db-init.c: New file.
17174         * nss/nss_files/files-init.c: New file.
17175         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
17176         __nss_lookup_function.
17177         (__nss_lookup_function): Call nss_load_library.
17178         (nss_load_all_libraries): New function.
17179         (__nss_disable_nscd): Take parameter with callback function for files
17180         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
17181         used for the cached services.
17182         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
17183         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
17184         options for features to all the files in nscd.
17185
17186         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
17187
17188 2011-07-10  Roland McGrath  <roland@hack.frob.com>
17189
17190         * csu/elf-init.c (__libc_csu_init): Comment typo.
17191
17192 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
17193
17194         * po/pl.po: Update from translation team.
17195         * po/ja.po: Likewise.
17196         * po/ru.po: Likewise.
17197         * po/ko.po: Likewise.
17198         * po/fr.po: Likewise.
17199
17200 2011-07-09  Roland McGrath  <roland@hack.frob.com>
17201
17202         * configure.in (.ctors/.dtors header and trailer check):
17203         Use an empirical test on a built program.
17204         * configure: Regenerated.
17205
17206         * configure.in (-z relro check): Use an empirical test on a built DSO.
17207         Detect, but do not require, on ia64.
17208         * configure: Regenerated.
17209
17210         * configure.in (READELF): Find it with AC_CHECK_TOOL.
17211         Update tests that use readelf to use $READELF instead.
17212         * configure: Regenerated.
17213
17214 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
17215
17216         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
17217         if the result is not used.
17218
17219 2011-07-05  Andreas Jaeger  <aj@suse.de>
17220
17221         [BZ#9696]
17222         * stdlib/tst-strtod.c: Add testcase.
17223
17224 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
17225
17226         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
17227         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
17228         The latter has a higher limit.  Take additional parameter to pass to
17229         the new function.
17230         (__pathconf): Pass file to __statfs_link_max.
17231         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
17232         __statfs_link_max.
17233         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
17234         __statfs_link_max.
17235
17236         [BZ #12868]
17237         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
17238         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
17239         Handle Lustre.
17240         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
17241         (__statfs_filesize_max): Likewise.
17242         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
17243
17244 2011-07-05  Andreas Jaeger  <aj@suse.de>
17245
17246         * resolv/res_comp.c (dn_skipname): Remove unused variable.
17247
17248 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
17249
17250         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
17251         `status' variable.
17252         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
17253         Likewise.
17254
17255 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
17256
17257         * Makefile (strop-tests): Add strncat.
17258         * string/test-strncat.c: New file.
17259
17260 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
17261
17262         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
17263
17264 2011-06-21  Andreas Jaeger  <aj@suse.de>
17265
17266         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
17267         Copy rule from iconvdata/Makefile.
17268
17269 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
17270
17271         [BZ #12922]
17272         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
17273         but no long options are defined, just return 'W'.
17274
17275 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
17276
17277         [BZ #9696]
17278         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
17279
17280 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
17281
17282         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
17283         netgroups to read.
17284         (innetgr): Likewise.
17285
17286 2011-07-05  Roland McGrath  <roland@hack.frob.com>
17287
17288         * config.make.in (install_root): Default to $(DESTDIR).
17289
17290 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
17291
17292         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
17293
17294 2011-07-02  Roland McGrath  <roland@hack.frob.com>
17295
17296         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
17297
17298         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
17299         containing directory rather than embedding absolute directory names.
17300
17301         * scripts/check-local-headers.sh: Rewritten using awk.
17302         Match by word, not by line.  Print error messages for matches.
17303         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
17304
17305         * Makerules [shlib-lds-flags empty]:
17306         ($(common-objpfx)libc_pic.opts): New target.
17307         ($(common-objpfx)libc_pic.os.clean): New target.
17308         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
17309
17310         * config.make.in (OBJCOPY): New variable.
17311         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
17312         * configure: Regenerated.
17313
17314         * config.make.in (use-default-link): New variable.
17315         * configure.in (use_default_link): Grok --with-default-link to set it.
17316         * configure: Regenerated.
17317         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
17318         (shlib-lds, shlib-lds-flags): Define to empty.
17319
17320         * Makerules (shlib-lds): New variable.
17321         (shlib-lds-flags): New variable.
17322         (build-shlib, build-moduile, build-module-asneeded): Use it.
17323         ($(common-objpfx)libc.so): Use $(shlib-lds).
17324         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
17325         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
17326
17327         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
17328         DT_FLAGS/DT_FLAGS_1 with zero flags.
17329
17330         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
17331         linker script munging.
17332
17333 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
17334
17335         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
17336         as 128-bit value.
17337         * crypt/sha512.c (sha512_process_block): Perform total addition using
17338         128-bit if possible.
17339         (__sha512_finish_ctx): Likewise.
17340         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
17341         as 64-bit value.
17342         * crypt/sha256.c (SWAP64): Define.
17343         (sha256_process_block): Perform total addition using 64-bit if
17344         possible.
17345         (__sha256_finish_ctx): Likewise.
17346
17347 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
17348
17349         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
17350         * nscd/initgrcache.c (addinitgroupsX): Likewise.
17351         * nscd/hstcache.c (cache_addhst): Likewise.
17352         * nscd/grpcache.c (cache_addgr): Likewise.
17353         * nscd/aicache.c (addhstaiX): Likewise
17354         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
17355
17356 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
17357
17358         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
17359         * nscd/initgrcache.c (addinitgroupsX): Likewise.
17360         * nscd/hstcache.c (cache_addhst): Likewise.
17361         * nscd/grpcache.c (cache_addgr): Likewise.
17362         * nscd/aicache.c (addhstaiX): Likewise
17363
17364 2011-07-01  Andreas Schwab  <schwab@redhat.com>
17365
17366         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
17367         domain only when needed.
17368
17369 2011-06-30  Andreas Schwab  <schwab@redhat.com>
17370
17371         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
17372         is always restored.
17373
17374 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
17375
17376         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
17377         are re-adding the entry.
17378         * nscd/servicescache.c (cache_addserv): Likewise.
17379
17380 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
17381
17382         * sysdeps/generic/dl-irel.h: fix protection against multiple
17383         inclusions.
17384         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
17385
17386 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
17387
17388         [BZ #12935]
17389         * malloc/memusage.sh: Fix quoting in message.
17390         * debug/xtrace.sh: Likewise.
17391
17392         * configure.in: Remove support for --experimental-malloc option, make
17393         it the default.
17394         * config.make.in: Likewise.
17395         * malloc/Makefile: Likewise.
17396
17397 2011-06-27  Andreas Schwab  <schwab@redhat.com>
17398
17399         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
17400         two-byte characters.
17401
17402 2011-06-27  Roland McGrath  <roland@hack.frob.com>
17403
17404         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
17405         AC_CACHE_CHECK invocation.
17406         * configure: Regenerated.
17407
17408         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
17409
17410 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
17411
17412         [BZ #12350]
17413         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
17414         bit from old_res_options.
17415
17416         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
17417
17418         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
17419         value type for setfct.
17420
17421 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
17422
17423         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
17424         __gettimeofday instead of gettimeofday.
17425
17426 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
17427
17428         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
17429
17430 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
17431
17432         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
17433
17434         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
17435         info.
17436
17437 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
17438
17439         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
17440         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
17441         strcpy-sse2-unaligned strncpy-sse2-unaligned
17442         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
17443         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
17444         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
17445         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
17446         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
17447         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
17448         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
17449         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
17450         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
17451         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
17452         (STRCPY): Support SSE2 and SSSE3 versions.
17453
17454 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
17455
17456         [BZ #12874]
17457         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
17458         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
17459         kernels which artificially limit size of requests.
17460
17461 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
17462
17463         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
17464         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
17465         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
17466         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
17467         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
17468         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
17469         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
17470         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
17471         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
17472         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
17473         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
17474         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
17475         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
17476         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
17477         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
17478         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17479         Enable unaligned load optimization for Intel Core i3, i5 and i7
17480         processors.
17481         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
17482         Define.
17483         (index_Fast_Unaligned_Load): Define.
17484         (HAS_FAST_UNALIGNED_LOAD): Define.
17485
17486 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
17487
17488         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
17489
17490 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
17491
17492         [BZ #12907]
17493         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
17494         until it is clear that the information is realy needed.
17495         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
17496
17497 2011-06-22  Andreas Schwab  <schwab@redhat.com>
17498
17499         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
17500
17501 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
17502
17503         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
17504         /sys/devices/system/cpu/online if it is usable.
17505
17506         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
17507         reading the information from the /proc filesystem to once a second.
17508
17509 2011-06-21  Andreas Jaeger  <aj@suse.de>
17510
17511         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
17512         NULL after inclusion of kernel headers.
17513
17514 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
17515
17516         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
17517         calls to internal_setent.
17518
17519         [BZ #12885]
17520         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
17521         addresses using gethostbyname4_r ignore IPv4 addresses.
17522
17523         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
17524         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
17525
17526         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
17527
17528 2011-06-20  David S. Miller  <davem@davemloft.net>
17529
17530         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
17531         inclusions.
17532         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
17533
17534         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
17535         (elf_irel): Use it.
17536         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
17537         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
17538         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
17539         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
17540         * sysdeps/x86_64/dl-irel.h: Likewise.
17541
17542         * elf/dl-runtime.c: Use elf_ifunc_invoke.
17543         * elf/dl-sym.c: Likewise.
17544
17545 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
17546
17547         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
17548         need to dereference resplen2.
17549
17550 2011-06-14  Andreas Schwab  <schwab@redhat.com>
17551
17552         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
17553
17554 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
17555
17556         * Makeconfig: Define vardbdir and inst_vardbdir.
17557         * nss/Makefile: Add rules to install db-Makefile.
17558
17559         * nss/nss_db/db-XXX.c: Cleanup.
17560
17561         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
17562         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
17563         GLIBC_PRIVATE.
17564         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
17565         * nss/makedb.c: Implement -g option to specify that value strings
17566         are generated and should not be added to table iterated over for
17567         get*ent calls.
17568         * nss/nss_db/db-initgroups.c: New file.
17569
17570         * nss/getent.c: Add support for initgroups lookups through getgrouplist
17571         interface.
17572
17573         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
17574         (internal_getgrouplist): Adjust to name change.
17575         Update use_initgroups_entry if this is not the first call.
17576         * nss/databases.def: Add initgroups entry.
17577
17578         * nss/makedb.c (compute_tables): Check result of multiple hash table
17579         sizes to minimize maximum chain length.
17580
17581 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
17582
17583         * Versions.def: Add entry for libnss_db.
17584         * shlib-versions: Likewise.
17585         * nss/Makefile: Add rules to build libnss_db.
17586         * nss/Versions: Add libnss_db information.  Organize libnss_files
17587         entries better.
17588         * nss/db-Makefile: Add gshadow support.  Change rules for the new
17589         makedb progra.  Some minor improvements to generate smaller files.
17590         * nss/nss_db/nss_db.h: Move NSS database header data structures to
17591         here from...
17592         * nss/makedb.c: ...here.
17593         Improve database format to be smaller and require less memory at
17594         runtime.
17595         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
17596         db anymore.
17597         * nss/nss_db/db-netgrp.c: Likewise.
17598         * nss/nss_db/db-open.c: Likewise.
17599         * nss/nss_files/flies-XXX.x: Adjust comments.
17600         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
17601         * nss/nss_files/files-grp.c: Likewise.
17602         * nss/nss_files/files-hosts.c: Likewise.
17603         * nss/nss_files/files-network.c: Likewise.
17604         * nss/nss_files/files-proto.c: Likewise.
17605         * nss/nss_files/files-pwd.c: Likewise.
17606         * nss/nss_files/files-rpc.c: Likewise.
17607         * nss/nss_files/files-service.c: Likewise.
17608         * nss/nss_files/files-sgrp.c: Likewise.
17609         * nss/nss_files/files-spwd.c: Likewise.
17610         * nss/nss_db/db-alias.c: Removed.
17611         * nss/nss_db/dummy-db.h: Removed.
17612
17613 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
17614
17615         * nss/makedb.c: Rewritten to not use database library.
17616         * nss/Makefile: Update to build new makedb program.
17617
17618 2011-06-14  Andreas Jaeger  <aj@suse.de>
17619
17620         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
17621         memset declaration.
17622
17623 2011-06-10  Andreas Schwab  <schwab@redhat.com>
17624
17625         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
17626         tmpbuf.
17627
17628 2011-06-10  Roland McGrath  <roland@hack.frob.com>
17629
17630         * Makerules (shlib.lds): Fail if the linker script comes out empty.
17631         * elf/Makefile ($(objpfx)ld.so): Likewise.
17632
17633         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
17634         Don't list ld.so twice in dependencies.
17635
17636         * posix/bug-regex31.c: Include <stdlib.h>.
17637
17638         * nscd/hstcache.c (cache_addhst): Remove unused variable.
17639
17640         * nis/nss_compat/compat-spwd.c
17641         (getspent_next_nss_netgr): Remove unused variable.
17642         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
17643
17644         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
17645         nonmembers" output to use the right array.
17646
17647         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
17648
17649         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
17650
17651         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
17652         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
17653         * catgets/gencat.c (read_input_file): Likewise.
17654         * locale/programs/locarchive.c (enlarge_archive): Likewise.
17655
17656         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
17657         variable definition inside #if's controlling its use.
17658
17659         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
17660
17661         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
17662
17663         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
17664
17665         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
17666         unreachable code.
17667
17668         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
17669
17670         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
17671         * configure: Regenerated.
17672
17673         * Makerules: Revert last change.
17674         * elf/Makefile: Likewise.
17675
17676 2011-06-09  Roland McGrath  <roland@hack.frob.com>
17677
17678         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
17679         * elf/Makefile ($(objpfx)librtld.os): Likewise.
17680         (reloc-link): Likewise.
17681
17682 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
17683
17684         * elf/Makefile: Add rules to build pldd.
17685         * elf/pldd.c: New file.
17686         * elf/pldd-xx.c: New file.
17687
17688 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
17689
17690         * version.h: Update for 2.15 development version.
17691
17692 2011-06-07  David S. Miller  <davem@davemloft.net>
17693
17694         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
17695         ifuncs.
17696         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
17697         elf_machine_lazy_rel): Likewise.
17698         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
17699         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
17700         elf_machine_lazy_rel): Likewise.
17701         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
17702         dl_hwcap via passed in argument.
17703         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
17704         Likewise.
17705
17706 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17707
17708         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
17709
17710 2011-06-06  Roland McGrath  <roland@hack.frob.com>
17711
17712         [BZ #12849]
17713         * manual/fdl-1.1.texi: New file, verbatim from:
17714         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
17715         * manual/lgpl-2.1.texi: New file, verbatim from:
17716         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
17717         * manual/Makefile (licenses): New variable, list those new file names.
17718         (texis): Use it.
17719         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
17720
17721         * manual/fdl.texi: File removed.
17722         * manual/lesser.texi: File removed.
17723         * manual/libc.texinfo (Copying, Documentation License):
17724         Use new @include file names, put @appendix directive before @include.
17725
17726 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
17727
17728         [BZ #12841]
17729         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
17730         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
17731         (mq_open): Add __NTH.
17732
17733 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
17734
17735         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17736         Assume Intel Core i3/i5/i7 processor if AVX is available.
17737
17738 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
17739
17740         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
17741         typo.
17742
17743 2011-05-31  Andreas Schwab  <schwab@redhat.com>
17744
17745         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
17746         memory.  Use alloca_account.  Fix memory leak when retrying.
17747
17748 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
17749
17750         * version.h (RELEASE): Bump for 2.14 release.
17751         * include/features.h (__GLIBC_MINOR__): Bump to 14.
17752
17753         * config.make.in (RANLIB): Remove entry.
17754
17755 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
17756
17757         * po/Makefile (po-sed-cmd): Add ksh to extensions.
17758         (libc.pot): Work around missing support for .ksh extension in xgettext.
17759
17760         [BZ #12684]
17761         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
17762         if both request failed.
17763         (send_dg): In case of server errors clear resplen or *resplen2.
17764
17765         [BZ #12454]
17766         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
17767         when there are multiple maps.
17768         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
17769         (_dl_fini): Remove test here.
17770
17771         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
17772
17773 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
17774
17775         [BZ #12350]
17776         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
17777         bit from old_res_options.
17778         (gaih_inet): Likewise.
17779
17780         [BZ #11099]
17781         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
17782         as signed.
17783
17784         * resolv/res_init.c (res_setoptions): Make the code more compact.
17785
17786         [BZ #11558]
17787         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
17788         set RES_USEVC.
17789
17790         [BZ #11634]
17791         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
17792
17793         * malloc/malloc.h: Mark malloc hook variables as deprecated.
17794
17795         [BZ #11781]
17796         * malloc/malloc.h: Declare malloc hook variables as volatile.
17797
17798         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
17799         in last patch.
17800
17801         [BZ #11799]
17802         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
17803         raise in the comment.
17804         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
17805         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
17806         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
17807
17808 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
17809
17810         [BZ #12811]
17811         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
17812         grow the buffers more if it already has to be sufficient.
17813         (build_wcs_upper_buffer): Likewise.
17814         * posix/regexec.c (check_matching): Likewise.
17815         (clean_state_log_if_needed): Likewise.
17816         (extend_buffers): Don't enlarge buffers beyond size of the input
17817         buffer.
17818         Patches mostly by Emil Wojak <emil@wojak.eu>.
17819         * posix/bug-regex32.c: New file.
17820         * posix/Makefile (tests): Add bug-regex32.
17821
17822         * locale/findlocale.c (_nl_find_locale): Return right away if
17823         _nl_explode_name failed.
17824         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
17825
17826         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
17827
17828         * debug/xtrace.sh: Unify messages.
17829         * malloc/memusage.sh: Likewise.
17830
17831         [BZ #12813]
17832         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
17833         time symbol from vDSO.  Substitute with vsyscall if not available.
17834         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
17835         __vdso_time.
17836
17837         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
17838         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
17839         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
17840         Add sendmmsg and internal_sendmmsg.
17841         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
17842         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
17843         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
17844
17845         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
17846         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
17847         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
17848
17849 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
17850
17851         [BZ #12813]
17852         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
17853         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
17854         available.
17855         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
17856         __vdso_getcpu.
17857
17858         [BZ #12814]
17859         * iconvdata/Makefile (tests): Add bug-iconv9.
17860         * iconvdata/bug-iconv9.c: New file.
17861
17862 2011-05-27  Andreas Schwab  <schwab@redhat.com>
17863
17864         [BZ #12814]
17865         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
17866
17867 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
17868
17869         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
17870         (struct user_regs_struct): Change intcs field back to cs.
17871
17872 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
17873
17874         * po/ja.po: Update from translation team.
17875
17876 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
17877
17878         [BZ #12795]
17879         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
17880         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
17881
17882 2011-05-20  Andreas Schwab  <schwab@redhat.com>
17883
17884         * stdlib/longlong.h: Update from GCC.
17885
17886 2011-05-23  Andreas Schwab  <schwab@redhat.com>
17887
17888         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
17889         parameter name.
17890         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
17891         Add parameter name.
17892         (__sysconf): Pass it down.
17893
17894 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
17895
17896         [BZ #12671]
17897         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
17898         some situations.
17899         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
17900         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
17901         add in in __libc_use_alloca calls.  Adjust callers.
17902         (glob): Use malloc in some situations.
17903
17904         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
17905         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
17906         pltexit.
17907
17908 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
17909
17910         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
17911         and CLOCK_BOOTTIME_ALARM.
17912
17913         [BZ #12782]
17914         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
17915         is returned.
17916
17917         * string/_strerror.c (__strerror_r): Print negative errors as signed
17918         numbers.
17919
17920         [BZ #12777]
17921         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
17922         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
17923         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
17924
17925         * configure.in: Fix typo in redirection and correct removal of test
17926         files in two cases.
17927
17928         [BZ #12788]
17929         * locale/setlocale.c (new_composite_name): Fix test to check for
17930         identical name of all categories.
17931
17932         [BZ #12792]
17933         * libio/filedoalloc.c (local_isatty): New function.
17934         (_IO_file_doallocate): Use local_isatty.
17935         * stdio-common/perror.c (perror): In case a new stream is used
17936         forward the stream error.
17937         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
17938         error flag.
17939
17940 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
17941
17942         [BZ #11869]
17943         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
17944         alloca.
17945         * include/alloca.h (extend_alloca_account): Define.
17946
17947         [BZ #11857]
17948         * posix/regex.h: Fix comments with documentation of user-accessible
17949         fields after compilation and describe correct free'ing of pattern
17950         after re_compile_pattern.
17951         Patch by Reuben Thomas <rrt@sc3d.org>.
17952
17953 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
17954
17955         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
17956         and -mno-altivec to prevent the compiler from using Altivec and/or
17957         VSX instructions when the corresponding registers are not available.
17958
17959 2011-05-19  Andreas Schwab  <schwab@redhat.com>
17960
17961         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
17962
17963 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
17964
17965         * libio/freopen.c (freopen): Use __dup2, not dup2.
17966         * libio/freopen64.c (freopen64): Likewise.
17967
17968 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
17969
17970         [BZ #12775]
17971         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
17972         * math/Makefile (tests): Add test-powl.
17973         (CFLAGS-test-powl.c): Define.
17974         * math/test-powl.c: New file.
17975
17976 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
17977
17978         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
17979
17980 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
17981
17982         [BZ #11837]
17983         * iconvdata/gb18030.c: Update to GB18020-2005.
17984
17985 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
17986
17987         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
17988         RE_SYNTAX_POSIX_AWK): Update to match recent development.
17989         Patch by Aharon Robbins <arnold@skeeve.com>.
17990
17991         [BZ #11892]
17992         * stdlib/putenv.c (putenv): Don't always create copy of the variable
17993         on the stack.
17994
17995         [BZ #11895]
17996         * misc/pselect.c (__pselect): Handle timeout value errors hidden
17997         through underflows.
17998
17999         [BZ #12766]
18000         * misc/error.c (error_at_line): Ensure file_name and old_file_name
18001         point to strings before performing equality test for error_one_per_line
18002         mode.
18003
18004         [BZ #11697]
18005         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
18006
18007         [BZ #11820]
18008         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
18009         (struct user_fpregs_struct): Avoid __uint*_t types.
18010
18011         [BZ #6420]
18012         * malloc/mtrace.c (tr_where): Add additional parameter to point to
18013         symbol info.  Use it instead of calling _dl_addr locally.
18014         (lock_and_info): New function.
18015         (tr_freehook): Call lock_and_info and pass symbol info as additional
18016         parameter to tr_where.
18017         (tr_mallochook): Likewise.
18018         (tr_reallochook): Likewise.
18019         (tr_memalignhook): Likewise.
18020
18021         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
18022         used and couldn't be at all thread-safe.
18023
18024 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
18025
18026         * libio/freopen.c (freopen): Don't close old file descriptor
18027         before the new one is opened.  Instead dup the new file descriptor
18028         to the old one after the new stream is created.
18029         * libio/freopen64.c (freopen64): Likewise.
18030         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
18031         * libio/fileops.c (_IO_new_file_close_it): Handle new
18032         _IO_FLAGS2_NOCLOSE flag.
18033         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
18034         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
18035         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
18036         _IO_FLAGS2_NOCLOSE flag.
18037         * include/unistd.h: Add hidden_proto for dup3.
18038         Define __have_dup3.
18039         * io/dup3.c: Define hidden symbol.
18040         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
18041
18042         [BZ #7101]
18043         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
18044         when an incomplete long option is used.
18045         * posix/tst-getopt_long1.c: New file.
18046         * posix/Makefile (tests): Add tst-getopt_long1.
18047
18048         [BZ #10138]
18049         * scripts/config.guess: Update from autoconf-2.68.
18050         * scripts/config.sub: Likewise.
18051
18052         [BZ #10157]
18053         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
18054         tests into ...
18055         (has_cpuclock): ...this.  New function.
18056         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
18057         macro here based on has_cpuclock code.
18058
18059         [BZ #10149]
18060         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
18061         First byte (not low byte) is now always NUL.
18062         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
18063
18064         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
18065         Use non-cancelable interfaces.
18066
18067         [BZ #9809]
18068         * locale/iso-639.def: Add entry for Sorani.
18069
18070         [BZ #11901]
18071         * include/stdlib.h: Move include protection to the right place.
18072         Define abort_msg_s.  Declare __abort_msg with it.
18073         * stdlib/abort.c (__abort_msg): Adjust type.
18074         * assert/assert.c (__assert_fail_base): New function.  Majority
18075         of code from __assert_fail.  Allocate memory for __abort_msg with
18076         mmap.
18077         (__assert_fail): Now call __assert_fail_base.
18078         * assert/assert-perr.c: Remove bulk of implementation.  Use
18079         __assert_fail_base.
18080         * include/assert.hL Declare __assert_fail_base.
18081         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
18082         mmap.
18083         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
18084
18085 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
18086
18087         [BZ #11952]
18088         [BZ #12453]
18089         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
18090         until all modules are registered in the DTV.
18091         * elf/Makefile: Add rules to build and run tst-tls19.
18092         * elf/tst-tls19.c: New file.
18093         * elf/tst-tls19mod1.c: New file.
18094         * elf/tst-tls19mod2.c: New file.
18095         * elf/tst-tls19mod3.c: New file.
18096         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
18097
18098         [BZ #12083]
18099         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
18100         correctly.
18101
18102         [BZ #12601]
18103         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
18104         two-byte sequence errors.
18105         * iconvdata/Makefile (tests): Add bug-iconv8.
18106         * iconvdata/bug-iconv8.c: New file.
18107
18108         [BZ #12626]
18109         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
18110         buf2 definition.
18111
18112         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
18113
18114         [BZ #12432]
18115         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
18116         (dummy_getcfa): New function.
18117         (init): Get _Unwind_GetCFA address, use dummy if not found.
18118         (backtrace_helper): In recursion check, also check whether CFA changes.
18119         (__backtrace): Completely initialize arg.
18120
18121         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
18122         storing incomplete byte sequence in state object.  Avoid testing for
18123         guaranteed too small input if we know there is enough data available.
18124
18125 2011-05-11  Andreas Schwab  <schwab@redhat.com>
18126
18127         * Makeconfig (+link-pie): Indent.
18128         * Rules (binaries-pie): Define if $(have-fpie) and
18129         $(build-shared).
18130         (binaries-shared): Also filter out $(binaries-pie).
18131         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
18132         * nscd/Makefile (others-pie): Add nscd.
18133         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
18134         ($(objpfx)nscd): Remove command override.
18135         * login/Makefile (others-pie): Add pt_chown.
18136         ($(objpfx)pt_chown): Remove command override.
18137         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
18138         remove command overrides.
18139
18140 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
18141
18142         * libio/tst_putwc.c: Fix error messages.
18143
18144         [BZ #12724]
18145         * libio/fileops.c (_IO_new_file_close_it): Always flush when
18146         currently writing and seek to current position when not.
18147         * libio/Makefile (tests): Add bug-fclose1.
18148         * libio/bug-fclose1.c: New file.
18149
18150 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
18151
18152         [BZ #12511]
18153         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
18154         don't set DF_1_NODELETE here.
18155         (do_lookup_x): When entering new entry test for copy relocation
18156         and if necessary set DF_1_NODELETE flag.
18157         * elf/tst-unique4.cc: New file.
18158         * elf/tst-unique4.h: New file.
18159         * elf/tst-unique4lib.cc: New file.
18160         * elf/Makefile: Add rules to build and run tst-unique4.
18161         Patch by Piotr Bury <pbury@goahead.com>.
18162
18163 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
18164
18165         [BZ #12052]
18166         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
18167
18168         [BZ #12625]
18169         * misc/mntent_r.c (addmntent): Flush the stream after the output
18170
18171         [BZ #12393]
18172         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
18173         (is_trusted_path_normalize): Skip initial colon.  Append slash
18174         to empty buffer.  Duplicate is_trusted_path code but allow
18175         constructed patch to be prefix.
18176         (is_dst): Allow $ORIGIN followed by /.
18177         (_dl_dst_substitute): Correct clearing of check_for_trusted.
18178         Correct testing of result of is_trusted_path_normalize
18179         (decompose_rpath): Fix warning.
18180
18181 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
18182
18183         [BZ #11257]
18184         * grp/initgroups.c (internal_getgrouplist): When we found the service
18185         list through the initgroups entry in nsswitch.conf do not always
18186         continue on a successful lookup.  Don't always use the
18187         __nss_group_database value if it is set.
18188         * nss/nsswitch.conf (initgroups): Change action for successful db
18189         lookup to continue for compatibility.
18190
18191 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
18192
18193         [BZ #11532]
18194         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
18195         and CP774 modules.
18196         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
18197         and CP774 modules.
18198         * iconvdata/tst-tables.sh: Likewise.
18199         * iconvdata/cp770.c: New file.
18200         * iconvdata/cp771.c: New file.
18201         * iconvdata/cp772.c: New file.
18202         * iconvdata/cp773.c: New file.
18203         * iconvdata/cp774.c: New file.
18204         * iconvdata/testdata/CP770: New file.
18205         * iconvdata/testdata/CP770..UTF8: New file.
18206         * iconvdata/testdata/CP771: New file.
18207         * iconvdata/testdata/CP771..UTF8: New file.
18208         * iconvdata/testdata/CP772: New file.
18209         * iconvdata/testdata/CP772..UTF8: New file.
18210         * iconvdata/testdata/CP773: New file.
18211         * iconvdata/testdata/CP773..UTF8: New file.
18212         * iconvdata/testdata/CP774: New file.
18213         * iconvdata/testdata/CP774..UTF8: New file.
18214
18215         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
18216         END CHARMAP line.
18217         * iconvdata/gen-8bit-gap.sh: Likewise.
18218         * iconvdata/gen-8bit.sh: Likewise.
18219
18220         * locale/iso-639.def: Add ary entry.
18221
18222         [BZ #11258]
18223         * locale/C-translit.h.in: Add U20A1 transliteration.
18224
18225         [BZ #12178]
18226         * locale/iso-639.def: Add wae entry.
18227         Patch by Kevin Bortis <bortis@translate-wae.ch>.
18228
18229         [BZ #12545]
18230         * locale/programs/localedef.c (construct_output_path): Use ssize_t
18231         for n.
18232
18233         [BZ #12711]
18234         * locale/C-translit.h.in: Add entry for U20B9.
18235         Patch by pravin.d.s@gmail.com.
18236
18237 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
18238
18239         [BZ #12713]
18240         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
18241         ENAMETOOLONG use generic getcwd.
18242         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
18243         in rtld.  Use *stat64.
18244         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
18245         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
18246         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
18247         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
18248         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
18249         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
18250         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
18251         __fstatat64 macros.
18252         * include/dirent.h: Add libc_hidden_proto for rewinddir.
18253         * dirent/rewinddir.c: Add libc_hidden_def.
18254         * sysdeps/mach/hurd/rewinddir.c: Likewise.
18255         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
18256
18257         * include/dirent.h (__alloc_dir): Add flags parameter.
18258         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
18259         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
18260         __alloc_dir.
18261         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
18262         from fdopendir if O_CLOEXEC is already set.
18263
18264 2011-03-15  Alan Modra  <amodra@gmail.com>
18265
18266         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
18267         l_tls_firstbyte_offset non-zero.  Save padding offset in
18268         l_tls_firstbyte_offset for later use.
18269         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
18270         freeing static tls block.
18271
18272 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
18273
18274         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
18275         where #ifdef was intended.  The intent is to prevent ARG_MAX from
18276         being defined by the kernel headers.
18277
18278 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
18279
18280         [BZ #12734]
18281         * resolv/resolv.h: Define RES_NOTLDQUERY.
18282         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
18283         no-tld-query and set RES_NOTLDQUERY.
18284         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
18285         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
18286         modern BIND to search name as TLD unless forbidden.
18287
18288 2011-05-07  Petr Baudis  <pasky@suse.cz>
18289             Ulrich Drepper  <drepper@gmail.com>
18290
18291         [BZ #12393]
18292         * elf/dl-load.c (fillin_rpath): Move trusted path check...
18293         (is_trusted_path): ...to here.
18294         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
18295         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
18296         using is_trusted_path_normalize() in setuid scripts.
18297
18298 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
18299
18300         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
18301         __BEGIN/__END_DECLS.
18302
18303 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
18304
18305         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
18306         NSS_STATUS_NOTFOUND if no record was found.
18307
18308 2011-05-05  Andreas Schwab  <schwab@redhat.com>
18309
18310         * sunrpc/Makefile (headers): Add rpc/netdb.h.
18311         (headers-not-in-tirpc): Remove rpc/netdb.h
18312         * resolv/netdb.h: Revert last change.
18313
18314 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
18315
18316         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
18317         circular dependency between libgcc.a and libc.a.
18318
18319 2011-05-05  Andreas Schwab  <schwab@redhat.com>
18320
18321         * resolv/netdb.h: Don't include <rpc/netdb.h>.
18322         * nis/Makefile: Don't install rpcsvc/*.
18323         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
18324         instead of <rpc/types.h>.
18325         (MAXHOSTNAMELEN): Define.
18326
18327 2011-05-03  Andreas Schwab  <schwab@redhat.com>
18328
18329         * elf/ldconfig.c (add_dir): Don't crash on empty path.
18330
18331 2011-04-28  Maciej Babinski  <mbabinski@google.com>
18332
18333         [BZ #12714]
18334         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
18335         gethostbyname4_r when IPv6 results are possible.
18336
18337 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
18338
18339         [BZ #12723]
18340         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
18341         _PC_PIPE_BUF handling.
18342
18343 2011-04-30  Bruno Haible  <bruno@clisp.org>
18344
18345         [BZ #12717]
18346         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
18347         * resolv/netdb.h (getnameinfo): Change type of flags parameter
18348         to 'int'.
18349         * inet/getnameinfo.c (getnameinfo): Likewise.
18350
18351 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
18352
18353         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
18354         to groups setting in database lookup.
18355         * nss/nsswitch.conf: Add initgroups entry.
18356
18357 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
18358
18359         [BZ #12685]
18360         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
18361         mode string.
18362         Patch by Eric Blake <eblake@redhat.com>.
18363
18364 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
18365
18366         * sunrpc/Makefile (need-export-routines): Add svc_run.
18367         (routines): Remove svc_run.
18368         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
18369         * sunrpc/clnt_perr.c (clnt_perrno): Export.
18370         * sunrpc/svc_run.c (svc_run): Likewise.
18371         * sunrpc/svc_udp.c (svcudp_create): Likewise.
18372
18373 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
18374
18375         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
18376         problem in reallocation in last patch.
18377
18378 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
18379
18380         * sunrpc/Makefile: Move inclusion of Rules.
18381
18382 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
18383
18384         * nss/nss_files/files-initgroups.c: New file.
18385         * nss/Makefile (libnss_files-routines): Add files-initgroups.
18386         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
18387         _nss_files_initgroups_dyn.
18388
18389 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
18390
18391         * elf/elf.h (R_ARM_IRELATIVE): Define.
18392
18393 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
18394
18395         * po/ru.po: Update from translation team.
18396
18397 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
18398
18399         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
18400         dependencies.
18401
18402 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
18403
18404         [BZ #12653]
18405         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
18406         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
18407         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
18408         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
18409         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
18410
18411 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
18412
18413         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
18414         differing bytes.
18415         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
18416         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
18417         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
18418
18419 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
18420
18421         [BZ #12420]
18422         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
18423         storing it.
18424         * stdlib/bug-getcontext.c: New file.
18425         * stdlib/Makefile: Add rules to build and run bug-getcontext.
18426
18427 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18428
18429         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
18430         instructions into .machine "z9-109".
18431         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
18432         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
18433
18434 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18435
18436         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
18437         between environment variables and auxiliary vector.
18438
18439 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
18440
18441         * Makefile: Add rules to build linkobj/libc.so.
18442         * include/libc-symbols.h: Define libc_hidden_nolink.
18443         * include/rpc/auth.h: Mark functions which are to be hidden.
18444         * include/rpc/auth_des.h: Likewise.
18445         * include/rpc/auth_unix.h: Likewise.
18446         * include/rpc/clnt.h: Likewise.
18447         * include/rpc/des_crypt.h: Likewise.
18448         * include/rpc/key_prot.h: Likewise.
18449         * include/rpc/pmap_clnt.h: Likewise.
18450         * include/rpc/pmap_prot.h: Likewise.
18451         * include/rpc/pmap_rmt.h: Likewise.
18452         * include/rpc/rpc_msg.h: Likewise.
18453         * include/rpc/svc.h: Likewise.
18454         * include/rpc/svc_auth.h: Likewise.
18455         * include/rpc/xdr.h: Likewise.
18456         * nis/Makefile: Link all DSOs against linkobj/libc.so.
18457         * nss/Makefile: Likewise.
18458         * sunrpc/Makefile: Don't install headers.  Build library with normal
18459         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
18460         * sunrpc/auth_des.c: Hide exported symbols by default, export some
18461         for the compat linking library.  Remove use of INTDEF/INTUSE.
18462         * sunrpc/auth_none.c: Likewise.
18463         * sunrpc/auth_unix.c: Likewise.
18464         * sunrpc/authdes_prot.c: Likewise.
18465         * sunrpc/authuxprot.c: Likewise.
18466         * sunrpc/clnt_gen.c: Likewise.
18467         * sunrpc/clnt_perr.c: Likewise.
18468         * sunrpc/clnt_raw.c: Likewise.
18469         * sunrpc/clnt_simp.c: Likewise.
18470         * sunrpc/clnt_tcp.c: Likewise.
18471         * sunrpc/clnt_udp.c: Likewise.
18472         * sunrpc/clnt_unix.c: Likewise.
18473         * sunrpc/des_crypt.c: Likewise.
18474         * sunrpc/des_soft.c: Likewise.
18475         * sunrpc/get_myaddr.c: Likewise.
18476         * sunrpc/key_call.c: Likewise.
18477         * sunrpc/key_prot.c: Likewise.
18478         * sunrpc/netname.c: Likewise.
18479         * sunrpc/pm_getmaps.c: Likewise.
18480         * sunrpc/pm_getport.c: Likewise.
18481         * sunrpc/pmap_clnt.c: Likewise.
18482         * sunrpc/pmap_prot.c: Likewise.
18483         * sunrpc/pmap_prot2.c: Likewise.
18484         * sunrpc/pmap_rmt.c: Likewise.
18485         * sunrpc/publickey.c: Likewise.
18486         * sunrpc/rpc_cmsg.c: Likewise.
18487         * sunrpc/rpc_common.c: Likewise.
18488         * sunrpc/rpc_dtable.c: Likewise.
18489         * sunrpc/rpc_prot.c: Likewise.
18490         * sunrpc/rpc_thread.c: Likewise.
18491         * sunrpc/rtime.c: Likewise.
18492         * sunrpc/svc.c: Likewise.
18493         * sunrpc/svc_auth.c: Likewise.
18494         * sunrpc/svc_authux.c: Likewise.
18495         * sunrpc/svc_raw.c: Likewise.
18496         * sunrpc/svc_run.c: Likewise.
18497         * sunrpc/svc_simple.c: Likewise.
18498         * sunrpc/svc_tcp.c: Likewise.
18499         * sunrpc/svc_udp.c: Likewise.
18500         * sunrpc/svc_unix.c: Likewise.
18501         * sunrpc/svcauth_des.c: Likewise.
18502         * sunrpc/xcrypt.c: Likewise.
18503         * sunrpc/xdr.c: Likewise.
18504         * sunrpc/xdr_array.c: Likewise.
18505         * sunrpc/xdr_float.c: Likewise.
18506         * sunrpc/xdr_intXX_t.c: Likewise.
18507         * sunrpc/xdr_mem.c: Likewise.
18508         * sunrpc/xdr_rec.c: Likewise.
18509         * sunrpc/xdr_ref.c: Likewise.
18510         * sunrpc/xdr_sizeof.c: Likewise.
18511         * sunrpc/xdr_stdio.c: Likewise.
18512
18513 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
18514
18515         [BZ #12650]
18516         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
18517         * sysdeps/ia64/dl-tls.h: Likewise.
18518         * sysdeps/powerpc/dl-tls.h: Likewise.
18519         * sysdeps/s390/dl-tls.h: Likewise.
18520         * sysdeps/sh/dl-tls.h: Likewise.
18521         * sysdeps/sparc/dl-tls.h: Likewise.
18522         * sysdeps/x86_64/dl-tls.h: Likewise.
18523         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
18524
18525 2011-03-14  Andreas Schwab  <schwab@redhat.com>
18526
18527         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
18528         rpath element also skip the following colon.
18529         (expand_dynamic_string_token): Add is_path parameter and pass
18530         down to DL_DST_REQUIRED and _dl_dst_substitute.
18531         (decompose_rpath): Call expand_dynamic_string_token with
18532         non-zero is_path.  Ignore empty rpaths.
18533         (_dl_map_object_from_fd): Call expand_dynamic_string_token
18534         with zero is_path.
18535
18536 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
18537
18538         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
18539         Make cancelable.
18540
18541 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
18542
18543         [BZ #12655]
18544         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
18545         Patch by Filipe David Manana <fdmanana@apache.org>.
18546
18547 2011-04-07  Andreas Schwab  <schwab@redhat.com>
18548
18549         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
18550         Maintain aligned stack.
18551         (CHECK_RSP): Remove unused macro.
18552
18553 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
18554
18555         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
18556         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
18557
18558 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
18559
18560         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
18561
18562         * include/features.h: Mention __USE_XOPEN2K8 in comment.
18563
18564 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
18565
18566         [BZ #12518]
18567         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
18568         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
18569         * sysdeps/x86_64/memmove.c: New file.
18570         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
18571         (memcpy): Renamed to ...
18572         (__new_memcpy): This.
18573         (memcpy): Provide GLIBC_2_14 memcpy.
18574         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
18575         (memcpy): Provide GLIBC_2_2_5 memcpy.
18576
18577 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
18578
18579         [BZ #12631]
18580         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
18581
18582 2011-03-30  Andreas Schwab  <schwab@redhat.com>
18583
18584         * misc/syncfs.c: New file.
18585         * misc/Makefile (routines): Add syncfs.
18586         * posix/unistd.h: Declare syncfs.
18587         * sysdeps/unix/syscalls.list: Add syncfs.
18588
18589 2011-04-01  Andreas Schwab  <schwab@redhat.com>
18590
18591         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
18592         open_by_handle_at.
18593         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
18594         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
18595         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
18596         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
18597         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
18598         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
18599         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
18600
18601 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
18602
18603         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
18604         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
18605         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
18606         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
18607         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
18608         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
18609         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
18610
18611         * io/Makefile: Compile fallocate.c, fallocate64.c, and
18612         sync_file_range.c with -fexceptions.
18613         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
18614         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
18615         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
18616         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
18617         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
18618         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
18619         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
18620         sync_file_range as cancellation point
18621         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
18622         now a wrapper around __call_sync_file_range with cancellation handling.
18623         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
18624         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
18625         function name to __call_sync_file_range.
18626         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
18627         Add call_sync_file_range.
18628
18629 2011-04-01  Andreas Schwab  <schwab@redhat.com>
18630
18631         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
18632         bits/timex.h.
18633
18634 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
18635
18636         * iconv/iconv.h: Fix typo in comment.
18637         * io/fcntl.h: Likewise.
18638         * libio/stdio.h: Likewise.
18639         * posix/spawn.h: Likewise.
18640         * posix/unistd.h: Likewise.
18641         * stdlib/stdlib.h: Likewise.
18642         * time/time.h: Likewise.
18643         * wcsmbs/wchar.h: Likewise.
18644
18645         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
18646         open_by_handle): Add.
18647         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
18648         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
18649         Augment a few comments.
18650         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
18651         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
18652         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
18653         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
18654         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
18655         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
18656         open_by_handle.
18657
18658         * io/fcntl.h (AT_EMPTY_PATH): Define.
18659
18660 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
18661
18662         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
18663         * sysdeps/unix/sysv/linux/bits/time.h: New file.
18664         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
18665         to...
18666         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
18667         * Versions.def: Add GLIBC_2.14.
18668         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
18669         Export.
18670
18671 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
18672
18673         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
18674         round counter.
18675         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
18676
18677 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
18678
18679         [BZ #12597]
18680         * string/test-strncmp.c (do_page_test): New function.
18681         (check2): Likewise.
18682         (test_main): Call check2.
18683         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
18684
18685 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
18686
18687         [BZ #12587]
18688         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
18689         Handle cache information in CPU leaf 4.
18690         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
18691
18692 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
18693
18694         [BZ #12583]
18695         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
18696         character representation.
18697         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
18698
18699 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
18700
18701         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
18702         END(__isnan) to END(__isnanf) to match function entry point/label
18703         EALIGN(__isnanf,...).
18704
18705 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
18706
18707         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
18708
18709 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
18710
18711         [BZ #12510]
18712         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
18713         copy from the symbol referenced in the relocation to initialize the
18714         used variable.
18715         Patch by Piotr Bury <pbury@goahead.com>.
18716         * elf/Makefile: Add rules to build and tst-unique3.
18717         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
18718         * elf/tst-unique3.cc: New file.
18719         * elf/tst-unique3.h: New file.
18720         * elf/tst-unique3lib.cc: New file.
18721         * elf/tst-unique3lib2.cc: New file.
18722
18723         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
18724
18725 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
18726
18727         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
18728         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
18729         to _start.
18730
18731 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
18732
18733         * elf/dl-load.c (_dl_map_object): If we are looking for the first
18734         to-be-loaded object along a path to loader is ld.so.
18735
18736 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
18737             Ulrich Drepper  <drepper@gmail.com>
18738
18739         * sysdeps/x86_64/memset.S: After aligning destination, code
18740         branches to different locations depending on the value of
18741         misalignment, when multiarch is enabled. Fix this.
18742
18743 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
18744
18745         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
18746         Set _x86_64_preferred_memory_instruction for AMD processsors.
18747         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18748         Set bit_Prefer_SSE_for_memop for AMD processors.
18749
18750 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
18751
18752         * libio/fmemopen.c (fmemopen): Optimize a bit.
18753
18754 2011-03-03  Andreas Schwab  <schwab@redhat.com>
18755
18756         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
18757
18758 2011-03-03  Roland McGrath  <roland@redhat.com>
18759
18760         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
18761
18762 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
18763
18764         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
18765         __bzero_ultra1 instead of __memset_ultra1.
18766
18767 2011-02-23  Andreas Schwab  <schwab@redhat.com>
18768             Ulrich Drepper  <drepper@gmail.com>
18769
18770         [BZ #12509]
18771         * include/link.h (struct link_map): Add l_orig_initfini.
18772         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
18773         returning unsuccessfully.
18774         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
18775         close of a file loaded at startup, restore the original l_initfini
18776         list.
18777         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
18778         list, store the pointer.
18779         * elf/Makefile ($(objpfx)noload-mem): New rule.
18780         (noload-ENV): Define.
18781         (tests): Add $(objpfx)noload-mem.
18782         * elf/noload.c: Include <memcheck.h>.
18783         (main): Call mtrace.  Close all opened handles.
18784
18785 2011-02-17  Andreas Schwab  <schwab@redhat.com>
18786
18787         [BZ #12454]
18788         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
18789         dependencies are missing.
18790
18791 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18792
18793         Fix __if_freereq crash: Unlike the generic version which uses free,
18794         Hurd needs munmap.
18795         * sysdeps/mach/hurd/ifreq.h: New file.
18796
18797 2011-01-27  Petr Baudis  <pasky@suse.cz>
18798             Ulrich Drepper  <drepper@gmail.com>
18799
18800         [BZ 12445]#
18801         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
18802         to extend_alloca().
18803         * stdio-common/bug23.c: New file.
18804         * stdio-common/Makefile (tests): Add bug23.
18805
18806 2010-09-28  Andreas Schwab  <schwab@redhat.com>
18807             Ulrich Drepper  <drepper@gmail.com>
18808
18809         [BZ #12489]
18810         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
18811         before performing relro protection.  At old place add assertion
18812         to make sure nothing changed.
18813
18814 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
18815             Glauber de Oliveira Costa  <glommer@gmail.com>
18816
18817         * elf/elf.h: Add new ARM TLS relocs.
18818
18819 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
18820
18821         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
18822         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
18823         cast from r3.
18824         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
18825         'tests' variable.
18826         * sysdeps/wordsize-64/tst-writev.c: New file.
18827
18828 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
18829
18830         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
18831         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
18832         insns in _dl_start to prevent a TOC reference before relocs are
18833         resolved.
18834
18835 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
18836
18837         [BZ #12469]
18838         * Makeconfig: Remove RANLIB definition.
18839         * Makerules: Don't use RANLIB.
18840         * aclocal.m4: Remove ranlib test.
18841         * configure.in: No need to check for ranlib.
18842         * elf/rtld-Rules: Don't use RANLIB.
18843
18844 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18845
18846         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
18847         protection macro.
18848         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
18849         inclusion protection macro.
18850
18851         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
18852         SIGRTMIN and SIGRTMAX and print information in that case only when
18853         SIGRTMIN is defined.
18854
18855 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
18856
18857         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
18858         arginfo fn returning -1.
18859
18860         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
18861         and thousands string is zero terminated.
18862
18863 2011-02-03  Andreas Schwab  <schwab@redhat.com>
18864
18865         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
18866         sysdeps/unix/sysv/linux/bits/socket.h.
18867
18868 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18869
18870         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
18871         (__CPU_COUNT): Remove old macros.
18872         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
18873         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
18874         (__CPU_ALLOC, __CPU_FREE): Add macros.
18875         (__sched_cpualloc, __sched_cpufree): Add declarations.
18876
18877 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
18878
18879         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
18880         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
18881         * nscd/aicache.c (addhstaiX): Return timeout of added value.
18882         (readdhstai): Return value of addhstaiX call.
18883         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
18884         (addgrbyX): Return value returned by cache_addgr.
18885         (readdgrbyname): Return value returned by addgrbyX.
18886         (readdgrbygid): Likewise.
18887         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
18888         (addpwbyX): Return value returned by cache_addpw.
18889         (readdpwbyname): Return value returned by addhstbyX.
18890         (readdpwbyuid): Likewise.
18891         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
18892         (addservbyX): Return value returned by cache_addserv.
18893         (readdservbyname): Return value returned by addservbyX:
18894         (readdservbyport): Likewise.
18895         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
18896         (addhstbyX): Return value returned by cache_addhst.
18897         (readdhstbyname): Return value returned by addhstbyX.
18898         (readdhstbyaddr): Likewise.
18899         (readdhstbynamev6): Likewise.
18900         (readdhstbyaddrv6): Likewise.
18901         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
18902         (readdinitgroups): Return value returned by addinitgroupsX.
18903         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
18904         (prune_cache): Keep track of timeout value of re-added entries.
18905         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
18906         * nscd/nscd.h: Adjust prototypes of readd* functions.
18907
18908 2011-02-04  Roland McGrath  <roland@redhat.com>
18909
18910         * nis/nis_server.c (nis_servstate): Use the right name for 0.
18911         (nis_stats): Likewise.
18912         * nis/nis_modify.c (nis_modify): Likewise.
18913         * nis/nis_remove.c (nis_remove): Likewise.
18914         * nis/nis_add.c (nis_add): Likewise.
18915
18916         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
18917
18918         * posix/fnmatch_loop.c: Add some consts.
18919
18920         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
18921
18922 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
18923
18924         [BZ #12460]
18925         * config.make.in (config-cflags-novzeroupper): Define.
18926         * configure.in: Substitute libc_cv_cc_novzeroupper.
18927         * elf/Makefile (AVX-CFLAGS): Define.
18928         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
18929         (CFLAGS-tst-auditmod4a.c): Likewise.
18930         (CFLAGS-tst-auditmod4b.c): Likewise.
18931         (CFLAGS-tst-auditmod6b.c): Likewise.
18932         (CFLAGS-tst-auditmod6c.c): Likewise.
18933         (CFLAGS-tst-auditmod7b.c): Likewise.
18934         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
18935
18936 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
18937
18938         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
18939         function to the callback.
18940         Patch partly by Jiri Olsa <jolsa@redhat.com>.
18941
18942 2011-02-02  Andreas Schwab  <schwab@redhat.com>
18943
18944         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
18945         of errno.
18946
18947 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
18948
18949         [BZ #11724]
18950         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
18951         of constructors.
18952         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
18953         of destructors.
18954         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
18955
18956         [BZ #11724]
18957         * elf/Makefile: Add rules to build and run new test.
18958         * elf/tst-initorder.c: New file.
18959         * elf/tst-initorder.exp: New file.
18960         * elf/tst-initordera1.c: New file.
18961         * elf/tst-initordera2.c: New file.
18962         * elf/tst-initordera3.c: New file.
18963         * elf/tst-initordera4.c: New file.
18964         * elf/tst-initorderb1.c: New file.
18965         * elf/tst-initorderb2.c: New file.
18966         * elf/tst-order-a1.c: New file.
18967         * elf/tst-order-a2.c: New file.
18968         * elf/tst-order-a3.c: New file.
18969         * elf/tst-order-a4.c: New file.
18970         * elf/tst-order-b1.c: New file.
18971         * elf/tst-order-b2.c: New file.
18972         * elf/tst-order-main.c: New file.
18973         New test case by George Gensure <werkt0@gmail.com>.
18974
18975 2010-10-01  Andreas Schwab  <schwab@redhat.com>
18976
18977         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
18978         decoding ACE if AI_CANONIDN.
18979
18980 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
18981
18982         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
18983
18984 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
18985
18986         * version.h (RELEASE): Bump for 2.13 release.
18987         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
18988
18989         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
18990
18991         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
18992         MADV_NOHUGEPAGE.
18993         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
18994         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
18995         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
18996         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
18997         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
18998         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
18999
19000         * posix/getconf.c: Update copyright year.
19001         * catgets/gencat.c: Likewise.
19002         * csu/version.c: Likewise.
19003         * debug/catchsegv.sh: Likewise.
19004         * debug/xtrace.sh: Likewise.
19005         * elf/ldconfig.c: Likewise.
19006         * elf/ldd.bash.in: Likewise.
19007         * elf/sprof.c (print_version): Likewise.
19008         * iconv/iconv_prog.c: Likewise.
19009         * iconv/iconvconfig.c: Likewise.
19010         * locale/programs/locale.c: Likewise.
19011         * locale/programs/localedef.c: Likewise.
19012         * malloc/memusage.sh: Likewise.
19013         * malloc/mtrace.pl: Likewise.
19014         * nscd/nscd.c (print_version): Likewise.
19015         * nss/getent.c: Likewise.
19016
19017         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
19018         PF_CAIF, and PF_ALG.
19019         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
19020
19021 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
19022
19023         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
19024         (modules-names): Use them.
19025         (ifunc-test-modules, ifunc-pie-tests): Define.
19026         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
19027         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
19028         (test-extras): Likewise.
19029         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
19030         $(compile-command.c).
19031         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
19032         (all-built-dso): Define.
19033         (check-textrel.out, check-execstack.out): Depend on it.
19034
19035         * configure.in: Don't override --enable-multi-arch.
19036
19037 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
19038
19039         [BZ #6812]
19040         * nscd/hstcache.c (tryagain): Define.
19041         (cache_addhst): Return tryagain not notfound for temporary errors.
19042         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
19043         failed.
19044
19045 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
19046
19047         [BZ #10563]
19048         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
19049         to make the syscall.
19050         * sysdeps/unix/sysv/linux/setgroups.c: New file.
19051
19052         [BZ #12378]
19053         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
19054         and fall back to matching as normal character if the string ends before
19055         the matching ']' is found.  This is what POSIX requires.
19056         * posix/testfnm.c: Adjust test result.
19057         * posix/globtest.sh: Adjust test result.  Add new test.
19058         * posix/tst-fnmatch.input: Likewise.
19059         * posix/tst-fnmatch2.c: Add new test.
19060
19061 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
19062
19063         * elf/Makefile (check-execstack): Revert last change.  Depend on
19064         check-execstack.h.
19065         (check-execstack.h): New target.
19066         (generated): Add check-execstack.h.
19067         * elf/check-execstack.c: Include "check-execstack.h".
19068         (main): Revert last change.
19069         (handle_file): Return zero if GNU_STACK is absent and
19070         DEFAULT_STACK_PERMS doesn't include PF_X.
19071
19072 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
19073
19074         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
19075         in child fails because the descriptor is already closed.
19076         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
19077         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
19078         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
19079
19080         [BZ #12397]
19081         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
19082         syscall.
19083
19084         [BZ #10484]
19085         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
19086         temporary buffer used to handle multi lookups locally.
19087         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
19088
19089 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
19090
19091         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
19092         loader is ld.so.
19093
19094 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
19095
19096         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
19097         alignment for SSE2.
19098
19099 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
19100
19101         [BZ #12394]
19102         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
19103         characters.  When rounding increased number of integer digits recompute
19104         number of groups.
19105         * stdio-common/tst-grouping.c: New file.
19106         * stdio-common/Makefile: Add rules to build and run tst-grouping.
19107
19108 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
19109
19110         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
19111         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
19112
19113         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
19114         void.
19115         * bits/select.h: Likewise.
19116
19117 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
19118
19119         * po/ja.po: Update from translation team.
19120
19121 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
19122
19123         [BZ #11155]
19124         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
19125         implementation just like for lxstat, fxstatat, et al.
19126
19127 2010-12-27  Jim Meyering  <meyering@redhat.com>
19128
19129         [BZ #12348]
19130         * posix/regexec.c (build_trtable): Return failure indication upon
19131         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
19132
19133 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
19134
19135         [BZ #12201]
19136         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
19137         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
19138         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
19139         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
19140
19141         [BZ #12207]
19142         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
19143
19144         [BZ #12204]
19145         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
19146         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
19147
19148 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
19149
19150         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
19151         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
19152         script has SORT_BY_INIT_PRIORITY.
19153         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
19154         NO_CTORS_DTORS_SECTIONS is defined.
19155         * elf/soinit.c: Likewise.
19156         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
19157         NO_CTORS_DTORS_SECTIONS is defined.
19158         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
19159         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
19160         * sysdeps/sh/init-first.c: Likewise.
19161         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
19162
19163 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
19164
19165         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
19166         always use the slow path.
19167
19168 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
19169
19170         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
19171         similar rule which adds the sysdep directories to the header search in
19172         order to pick up the correct platform stackinfo.h.
19173         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
19174         perform test if it is, otherwise return successfully without testing.
19175         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
19176         DEFAULT_STACK_PERMS define in stackinfo.h.
19177         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
19178         defined in stackinfo.h.
19179         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
19180         DEFAULT_STACK_PERMS defined in stackinfo.h.
19181         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
19182         * sysdeps/ia64/stackinfo.h: Likewise.
19183         * sysdeps/s390/stackinfo.h: Likewise.
19184         * sysdeps/sh/stackinfo.h: Likewise.
19185         * sysdeps/sparc/stackinfo.h: Likewise.
19186         * sysdeps/x86_64/stackinfo.h: Likewise.
19187         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
19188         PF_X for powerpc64.  Retain PF_X for powerpc32.
19189
19190 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
19191
19192         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
19193         accurately.
19194         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
19195         GETDENTS_64BIT_ALIGNED.
19196
19197 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
19198
19199         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
19200
19201 2010-12-10  Andreas Schwab  <schwab@redhat.com>
19202
19203         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
19204         _GNU_SOURCE.
19205
19206         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
19207         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
19208         Remove __restrict.
19209         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
19210         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
19211
19212 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
19213
19214         [BZ #11655]
19215         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
19216         are initialized.
19217
19218 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
19219
19220         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
19221
19222 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
19223
19224         * po/it.po: Update from translation team.
19225
19226 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
19227
19228         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
19229         unused codes.
19230
19231 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
19232
19233         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
19234
19235 2010-11-24  Andreas Schwab  <schwab@redhat.com>
19236
19237         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
19238         specially.
19239         (gaih_getanswer_slice): Likewise.
19240
19241 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
19242
19243         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
19244
19245 2010-05-31  Petr Baudis  <pasky@suse.cz>
19246
19247         [BZ #11149]
19248         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
19249         silently even in the chroot mode.
19250
19251 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
19252
19253         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
19254         last patch a bit.  Pretty printing
19255
19256 2010-05-31  Petr Baudis <pasky@suse.cz>
19257
19258         [BZ #10085]
19259         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
19260         initialization of skip_initgroups_dyn.
19261
19262 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
19263
19264         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
19265         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
19266
19267 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
19268
19269         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
19270
19271 2010-11-11  Andreas Schwab  <schwab@redhat.com>
19272
19273         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
19274         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
19275         (tst-fnmatch-ENV): Set MALLOC_TRACE.
19276         ($(objpfx)tst-fnmatch-mem): New rule.
19277         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
19278         * posix/tst-fnmatch.c (main): Call mtrace.
19279
19280 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
19281
19282         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19283         Support Intel processor model 6 and model 0x2c.
19284
19285 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
19286
19287         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
19288           signed comparison.
19289
19290 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
19291
19292         [BZ #12205]
19293         * string/test-strncasecmp.c (check_result): New function.
19294         (do_one_test): Use it.
19295         (check1): New function.
19296         (test_main): Use it.
19297         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
19298         Support strcasecmp and strncasecmp.
19299
19300 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
19301
19302         [BZ #12194]
19303         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
19304         * sysdeps/x86_64/bits/byteswap.h: Likewise.
19305
19306 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
19307
19308         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
19309         IFUNC support.
19310         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
19311         memset-x86-64.
19312         * sysdeps/x86_64/multiarch/bzero.S: New file.
19313         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
19314         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
19315         * sysdeps/x86_64/multiarch/memset.S: New file.
19316         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
19317         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19318         Set bit_Prefer_SSE_for_memop for Intel processors.
19319         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
19320         Define.
19321         (index_Prefer_SSE_for_memop): Define.
19322         (HAS_PREFER_SSE_FOR_MEMOP): Define.
19323
19324 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
19325
19326         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
19327         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
19328
19329 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
19330
19331         [BZ #12191]
19332         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
19333         (__x86_64_raw_data_cache_size_half): Likewise.
19334         (__x86_64_raw_shared_cache_size): Likewise.
19335         (__x86_64_raw_shared_cache_size_half): Likewise.
19336
19337         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
19338         (__x86_64_raw_data_cache_size_half): Likewise.
19339         (__x86_64_raw_shared_cache_size): Likewise.
19340         (__x86_64_raw_shared_cache_size_half): Likewise.
19341         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
19342         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
19343         and __x86_64_raw_shared_cache_size_half.  Round
19344         __x86_64_data_cache_size_half, __x86_64_data_cache_size
19345         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
19346         to multiple of 256 bytes.
19347
19348 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
19349
19350         [BZ #12167]
19351         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
19352         of inacessible symlinks.  Verify result of symlink before returning it.
19353         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
19354         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
19355
19356 2010-10-28  Erich Ritz  <erichritz@gmail.com>
19357
19358         * math/math.h (isinf): Fix typo in comment.
19359
19360 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
19361
19362         * po/da.po: Update from translation team.
19363
19364 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
19365
19366         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
19367         is added to the list.
19368
19369 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19370             Ulrich Drepper  <drepper@gmail.com>
19371
19372         * elf/dl-object.c (_dl_new_object): Don't append the new object to
19373         the global list here.  Move code to...
19374         (_dl_add_to_namespace_list): ...here.  New function.
19375         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
19376         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
19377         * elf/dl-load.c (lose): Don't remove the element from the list.
19378         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
19379         (_dl_map_object): Likewise.
19380
19381 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
19382
19383         [BZ #12159]
19384         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
19385         into all bytes of SSE register.
19386         Patch by Richard Li <richardpku@gmail.com>.
19387
19388 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
19389
19390         [BZ #12140]
19391         * malloc/malloc.c (_int_free): Fill correct number of bytes when
19392         perturbing.
19393
19394 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
19395
19396         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
19397         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
19398         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
19399         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
19400         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
19401         submachine.
19402         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
19403
19404 2010-10-22  Andreas Schwab  <schwab@redhat.com>
19405
19406         * include/dlfcn.h (__RTLD_SECURE): Define.
19407         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
19408         mode & __RTLD_SECURE instead.
19409         (open_path): Rename preloaded parameter to secure.
19410         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
19411         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
19412         * elf/dl-deps.c (openaux): Likewise.
19413         * elf/rtld.c (struct map_args): Remove is_preloaded.
19414         (map_doit): Don't use it.
19415         (dl_main): Likewise.
19416         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
19417         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
19418
19419 2010-09-09  Andreas Schwab  <schwab@redhat.com>
19420
19421         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
19422         (sysd-rules-targets): Remove duplicates.
19423         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
19424         rtld-%.$o dependency.
19425
19426 2010-10-18  Andreas Schwab  <schwab@redhat.com>
19427
19428         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
19429         _dl_map_object do it.
19430
19431 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
19432
19433         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
19434         fast fma builtins, define the macros in the C99 standard.
19435         (FP_FAST_FMAF): Likewise.
19436         (FP_FAST_FMAL): Likewise.
19437         * sysdeps/x86_64/bits/mathdef.h: Likewise.
19438
19439         * bits/mathdef.h: Update copyright year.
19440         * sysdeps/powerpc/bits/mathdef.h: Likewise.
19441
19442 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
19443
19444         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
19445         builtins, define the macros in the C99 standard.
19446         (FP_FAST_FMAF): Likewise.
19447         (FP_FAST_FMAL): Likewise.
19448         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
19449         multiply/add.
19450         (FP_FAST_FMAF): Likewise.
19451
19452 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
19453
19454         [BZ #3268]
19455         * math/libm-test.inc (fma_test): Some new testcases.
19456         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
19457         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
19458         y and infinite z.  Do multiplication by C already in long double.
19459         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
19460         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
19461         y and infinite z.  Do bitwise or of inexact bit into u.d.
19462         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
19463         * sysdeps/i386/fpu/s_fmaf.S: Removed.
19464         * sysdeps/i386/fpu/s_fma.S: Removed.
19465         * sysdeps/i386/fpu/s_fmal.S: Removed.
19466
19467 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
19468
19469         [BZ #3268]
19470         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
19471         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
19472         computation is not scheduled after fetestexcept.  Fix value
19473         of minimum denormal long double.
19474
19475 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
19476
19477         [BZ #3268]
19478         * math/libm-test.inc (fma_test): Add some more tests.
19479         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
19480         correctly.
19481
19482 2010-10-15  Andreas Schwab  <schwab@redhat.com>
19483
19484         * scripts/data/localplt-s390-linux-gnu.data: New file.
19485         * scripts/data/localplt-s390x-linux-gnu.data: New file.
19486
19487 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
19488
19489         [BZ #3268]
19490         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
19491         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
19492         instead of dbl-64.
19493         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
19494         inlines.
19495         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
19496         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
19497         if one of x and y is very large and the other is subnormal.
19498         * sysdeps/s390/fpu/s_fmaf.c: New file.
19499         * sysdeps/s390/fpu/s_fma.c: New file.
19500         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
19501         * sysdeps/powerpc/fpu/s_fma.S: New file.
19502         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
19503         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
19504         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
19505
19506 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
19507
19508         [BZ #3268]
19509         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
19510         fma tests.
19511         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
19512         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
19513         * sysdeps/i386/i686/multiarch/s_fma.c: Include
19514         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
19515         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
19516         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
19517         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
19518
19519 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
19520
19521         [BZ #12078]
19522         * posix/regcomp.c (parse_branch): One more memory leak plugged.
19523         * posix/bug-regex31.input: Add test case.
19524
19525 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
19526
19527         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
19528         * posix/bug-regex31.input: New file.
19529
19530         [BZ #12078]
19531         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
19532         (parse_sub_exp): Fix last change, use postorder.
19533
19534         * posix/bug-regex31.c: New file.
19535         * posix/Makefile: Add rules to build and run bug-regex31.
19536
19537         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
19538
19539         [BZ #12078]
19540         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
19541
19542         [BZ #12108]
19543         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
19544         to have entries in sys_siglist.
19545
19546         [BZ #12093]
19547         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
19548         be NULL.
19549
19550 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
19551
19552         [BZ #3268]
19553         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
19554         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
19555         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
19556         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
19557         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
19558         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
19559         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
19560         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
19561         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
19562         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
19563         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
19564         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
19565         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
19566         * math/ftestexcept.c (fetestexcept): Likewise.
19567         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
19568         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
19569         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
19570         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
19571         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
19572         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
19573         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
19574
19575 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
19576
19577         [BZ #12107]
19578         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
19579         newline.
19580
19581 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
19582
19583         * string/bug-strstr1.c: New file.
19584         * string/Makefile: Add rules to build and run bug-strstr1.
19585
19586 2010-10-05  Eric Blake  <eblake@redhat.com>
19587
19588         [BZ #12092]
19589         * string/str-two-way.h (two_way_long_needle): Always clear memory
19590         when skipping input due to the shift table.
19591
19592 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
19593
19594         [BZ #12005]
19595         * malloc/mcheck.c: Handle large requests.
19596
19597         [BZ #12077]
19598         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
19599         for strncmp and strncasecmp.
19600         * string/stratcliff.c: Add tests for strcmp and strncmp.
19601         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
19602
19603 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
19604
19605         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
19606         __set_fpscr.
19607
19608 2010-09-30  Andreas Jaeger  <aj@suse.de>
19609
19610         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
19611         (CGROUP_SUPER_MAGIC): Define.
19612         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
19613         Handle btrfs and cgroup file systems.
19614         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
19615         Likewise.
19616
19617 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
19618
19619         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
19620         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
19621
19622 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19623
19624         [BZ #12067]
19625         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
19626         trying to locate the ELF header.
19627
19628 2010-09-27  Andreas Schwab  <schwab@redhat.com>
19629
19630         [BZ #11611]
19631         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
19632         Mask out sign-bit copies when constructing f_fsid.
19633
19634 2010-09-24  Petr Baudis <pasky@suse.cz>
19635
19636         * debug/stack_chk_fail_local.c: Add missing licence exception.
19637         * debug/warning-nop.c: Likewise.
19638
19639 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
19640
19641         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
19642         implementing getdents64 using getdents syscall, set d_type if
19643         __ASSUME_GETDENTS32_D_TYPE.
19644
19645 2010-09-16  Andreas Schwab  <schwab@redhat.com>
19646
19647         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
19648         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
19649
19650 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
19651
19652         [BZ #12037]
19653         * posix/unistd.h: Undo change of feature selection for ftruncate from
19654         2010-01-11.
19655
19656 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
19657
19658         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
19659         detection.
19660
19661 2010-09-20  Andreas Schwab  <schwab@redhat.com>
19662
19663         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
19664         fanotify_mark.
19665         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
19666
19667 2010-09-14  Andreas Schwab  <schwab@redhat.com>
19668
19669         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
19670         variables after CHECK_SP call.
19671         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
19672
19673 2010-09-13  Andreas Schwab  <schwab@redhat.com>
19674             Ulrich Drepper  <drepper@redhat.com>
19675
19676         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
19677         re-relocationg ld.so.
19678         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
19679         _dl_init_paths call.
19680         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
19681         here anymore.
19682
19683 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
19684
19685         * resolv/res_init.c (__res_vinit): Count the default server we added.
19686
19687 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
19688             Ulrich Drepper  <drepper@redhat.com>
19689
19690         [BZ #11968]
19691         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
19692         (____longjmp_chk): Use %ebx for saving value across system call.
19693         Add unwind info.
19694
19695 2010-09-06  Andreas Schwab  <schwab@redhat.com>
19696
19697         * manual/Makefile: Don't mix pattern rules with normal rules.
19698
19699 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
19700
19701         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
19702         operation.
19703         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
19704         * libio/iofopncook.c (_IO_cookie_init): Likewise.
19705         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
19706         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
19707         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
19708         Likewise.
19709
19710 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
19711
19712         [BZ #11979]
19713         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
19714         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
19715
19716 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
19717
19718         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
19719         * sysdeps/x86_64/addmul_1.S: Likewise.
19720         * sysdeps/x86_64/lshift.S: Likewise.
19721         * sysdeps/x86_64/mul_1.S: Likewise.
19722         * sysdeps/x86_64/rshift.S: Likewise.
19723         * sysdeps/x86_64/sub_n.S: Likewise.
19724         * sysdeps/x86_64/submul_1.S: Likewise.
19725
19726 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19727
19728         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
19729         Define __sched_param instead of SCHED_* and sched_param when
19730         <bits/sched.h> is included with __need_schedparam defined.
19731         * bits/sched.h [__need_schedparam]
19732         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
19733         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
19734         (__defined_schedparam): Define to 1.
19735         (__sched_param): New structure, identical to sched_param.
19736         (__need_schedparam): Undefine.
19737
19738 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
19739
19740         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
19741         (epoll_create1): Declare.
19742
19743         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
19744
19745 2010-08-31  Andreas Schwab  <schwab@redhat.com>
19746
19747         [BZ #7066]
19748         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
19749         shifting retval into place.
19750
19751 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
19752
19753         * nis/rpcsvc/nis.h: Update copyright notice.
19754         * nis/rpcsvc/nis.x: Likewise.
19755         * nis/rpcsvc/nis_callback.h: Likewise.
19756         * nis/rpcsvc/nis_callback.x: Likewise.
19757         * nis/rpcsvc/nis_object.x: Likewise.
19758         * nis/rpcsvc/nis_tags.h: Likewise.
19759         * nis/rpcsvc/yp.h: Likewise.
19760         * nis/rpcsvc/yp.x: Likewise.
19761         * nis/rpcsvc/ypupd.h: Likewise.
19762         * nis/yp_xdr.c: Likewise.
19763         * nis/ypupdate_xdr.c: Likewise.
19764
19765         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
19766         mainly the body of pmap_getport.  Add parameters to specify timeouts.
19767         (pmap_getport): Use __libc_rpc_getport.
19768         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
19769         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
19770         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
19771
19772 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
19773
19774         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
19775         fanotify_mark.
19776
19777 2010-08-27  Roland McGrath  <roland@redhat.com>
19778
19779         * sysdeps/i386/i686/multiarch/Makefile
19780         (CFLAGS-varshift.c): New variable.
19781
19782 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
19783
19784         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
19785         * sysdeps/i386/i686/multiarch/varshift.c: New file.
19786
19787         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
19788
19789         * sysdeps/x86_64/strlen.S: Minimal code improvement.
19790
19791 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
19792
19793         * sysdeps/x86_64/strlen.S: Unroll the loop.
19794         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
19795         strlen-sse2 strlen-sse2-bsf.
19796         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
19797         __strlen_no_bsf if bit_Slow_BSF is set.
19798         (__strlen_sse42): Removed.
19799         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
19800         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
19801
19802 2010-08-25  Roland McGrath  <roland@redhat.com>
19803
19804         * sysdeps/x86_64/multiarch/varshift.S: File removed.
19805         * sysdeps/x86_64/multiarch/varshift.c: New file.
19806         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
19807         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
19808         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
19809         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
19810
19811 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
19812
19813         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
19814         strlen-sse2 strlen-sse2-bsf.
19815         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
19816         __strlen_sse2_bsf if bit_Slow_BSF is unset.
19817         (__strlen_sse2): Removed.
19818         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
19819         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
19820         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
19821         bit_Slow_BSF for Atom.
19822         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
19823         (index_Slow_BSF): Define.
19824         (HAS_SLOW_BSF): Define.
19825
19826 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
19827
19828         [BZ #10851]
19829         * resolv/res_init.c (__res_vinit): When no server address at all
19830         is given default to loopback.
19831
19832 2010-08-24  Roland McGrath  <roland@redhat.com>
19833
19834         * configure.in: Remove config-name.h generation.
19835         * configure: Regenerated.
19836         * config-name.in: File removed.
19837         * scripts/config-uname.sh: New file.
19838         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
19839         ($(objdir)config-name.h): New target.
19840
19841         * sunrpc/rpc_parse.h: Avoid nested comment.
19842
19843 2010-08-24  Richard Henderson  <rth@redhat.com>
19844             Ulrich Drepper  <drepper@redhat.com>
19845             H.J. Lu  <hongjiu.lu@intel.com>
19846
19847         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
19848         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
19849         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
19850         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
19851         _mm_alignr_epi8 with _mm_loadu_si128.
19852         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
19853         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
19854         (__m128i_shift_right): Removed.
19855         * sysdeps/i386/i686/multiarch/varshift.h: New file.
19856         * sysdeps/i386/i686/multiarch/varshift.S: New file.
19857         * sysdeps/x86_64/multiarch/varshift.h: New file.
19858         * sysdeps/x86_64/multiarch/varshift.S: New file.
19859
19860 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
19861
19862         * configure.in: Move assembler checks to before sysdep dir checking.
19863
19864 2010-08-20  Petr Baudis  <pasky@suse.cz>
19865
19866         * LICENSES: Sync the sunrpc license.
19867
19868 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
19869
19870         * sunrpc/auth_des.c: Update copyright notice once again.
19871         * sunrpc/auth_none.c: Likewise.
19872         * sunrpc/auth_unix.c: Likewise.
19873         * sunrpc/authdes_prot.c: Likewise.
19874         * sunrpc/authuxprot.c: Likewise.
19875         * sunrpc/bindrsvprt.c: Likewise.
19876         * sunrpc/clnt_gen.c: Likewise.
19877         * sunrpc/clnt_perr.c: Likewise.
19878         * sunrpc/clnt_raw.c: Likewise.
19879         * sunrpc/clnt_simp.c: Likewise.
19880         * sunrpc/clnt_tcp.c: Likewise.
19881         * sunrpc/clnt_udp.c: Likewise.
19882         * sunrpc/clnt_unix.c: Likewise.
19883         * sunrpc/des_crypt.c: Likewise.
19884         * sunrpc/des_soft.c: Likewise.
19885         * sunrpc/get_myaddr.c: Likewise.
19886         * sunrpc/getrpcport.c: Likewise.
19887         * sunrpc/key_call.c: Likewise.
19888         * sunrpc/key_prot.c: Likewise.
19889         * sunrpc/openchild.c: Likewise.
19890         * sunrpc/pm_getmaps.c: Likewise.
19891         * sunrpc/pm_getport.c: Likewise.
19892         * sunrpc/pmap_clnt.c: Likewise.
19893         * sunrpc/pmap_prot.c: Likewise.
19894         * sunrpc/pmap_prot2.c: Likewise.
19895         * sunrpc/pmap_rmt.c: Likewise.
19896         * sunrpc/rpc/auth.h: Likewise.
19897         * sunrpc/rpc/auth_unix.h: Likewise.
19898         * sunrpc/rpc/clnt.h: Likewise.
19899         * sunrpc/rpc/des_crypt.h: Likewise.
19900         * sunrpc/rpc/key_prot.h: Likewise.
19901         * sunrpc/rpc/netdb.h: Likewise.
19902         * sunrpc/rpc/pmap_clnt.h: Likewise.
19903         * sunrpc/rpc/pmap_prot.h: Likewise.
19904         * sunrpc/rpc/pmap_rmt.h: Likewise.
19905         * sunrpc/rpc/rpc.h: Likewise.
19906         * sunrpc/rpc/rpc_des.h: Likewise.
19907         * sunrpc/rpc/rpc_msg.h: Likewise.
19908         * sunrpc/rpc/svc.h: Likewise.
19909         * sunrpc/rpc/svc_auth.h: Likewise.
19910         * sunrpc/rpc/types.h: Likewise.
19911         * sunrpc/rpc/xdr.h: Likewise.
19912         * sunrpc/rpc_clntout.c: Likewise.
19913         * sunrpc/rpc_cmsg.c: Likewise.
19914         * sunrpc/rpc_common.c: Likewise.
19915         * sunrpc/rpc_cout.c: Likewise.
19916         * sunrpc/rpc_dtable.c: Likewise.
19917         * sunrpc/rpc_hout.c: Likewise.
19918         * sunrpc/rpc_main.c: Likewise.
19919         * sunrpc/rpc_parse.c: Likewise.
19920         * sunrpc/rpc_parse.h: Likewise.
19921         * sunrpc/rpc_prot.c: Likewise.
19922         * sunrpc/rpc_sample.c: Likewise.
19923         * sunrpc/rpc_scan.c: Likewise.
19924         * sunrpc/rpc_scan.h: Likewise.
19925         * sunrpc/rpc_svcout.c: Likewise.
19926         * sunrpc/rpc_tblout.c: Likewise.
19927         * sunrpc/rpc_util.c: Likewise.
19928         * sunrpc/rpc_util.h: Likewise.
19929         * sunrpc/rpcinfo.c: Likewise.
19930         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
19931         * sunrpc/rpcsvc/key_prot.x: Likewise.
19932         * sunrpc/rpcsvc/klm_prot.x: Likewise.
19933         * sunrpc/rpcsvc/mount.x: Likewise.
19934         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
19935         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
19936         * sunrpc/rpcsvc/rex.x: Likewise.
19937         * sunrpc/rpcsvc/rstat.x: Likewise.
19938         * sunrpc/rpcsvc/rusers.x: Likewise.
19939         * sunrpc/rpcsvc/sm_inter.x: Likewise.
19940         * sunrpc/rpcsvc/spray.x: Likewise.
19941         * sunrpc/rpcsvc/yppasswd.x: Likewise.
19942         * sunrpc/rtime.c: Likewise.
19943         * sunrpc/svc.c: Likewise.
19944         * sunrpc/svc_auth.c: Likewise.
19945         * sunrpc/svc_authux.c: Likewise.
19946         * sunrpc/svc_raw.c: Likewise.
19947         * sunrpc/svc_run.c: Likewise.
19948         * sunrpc/svc_simple.c: Likewise.
19949         * sunrpc/svc_tcp.c: Likewise.
19950         * sunrpc/svc_udp.c: Likewise.
19951         * sunrpc/svc_unix.c: Likewise.
19952         * sunrpc/svcauth_des.c: Likewise.
19953         * sunrpc/xcrypt.c: Likewise.
19954         * sunrpc/xdr.c: Likewise.
19955         * sunrpc/xdr_array.c: Likewise.
19956         * sunrpc/xdr_float.c: Likewise.
19957         * sunrpc/xdr_mem.c: Likewise.
19958         * sunrpc/xdr_rec.c: Likewise.
19959         * sunrpc/xdr_ref.c: Likewise.
19960         * sunrpc/xdr_sizeof.c: Likewise.
19961         * sunrpc/xdr_stdio.c: Likewise.
19962
19963         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
19964         handling.
19965
19966 2010-08-19  Andreas Schwab  <schwab@redhat.com>
19967
19968         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
19969
19970 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
19971
19972         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
19973         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
19974         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
19975         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
19976         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
19977         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
19978         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
19979         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
19980         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
19981         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
19982         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
19983         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
19984         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
19985         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
19986
19987 2010-07-26  Anton Blanchard  <anton@samba.org>
19988
19989         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
19990         * malloc/arena.c (heap_trim): Likewise.
19991
19992 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
19993
19994         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
19995         here.  Not...
19996         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
19997         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
19998
19999 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
20000
20001         * sysdeps/i386/elf/Makefile: New file.
20002
20003 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
20004
20005         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
20006         from fanotify_init.
20007         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
20008         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
20009
20010 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
20011
20012         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
20013         of strncasecmp_l.
20014         * sysdeps/multiarch/strcmp.S: Likewise.
20015
20016 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
20017
20018         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
20019         strncase_l-nonascii.
20020         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
20021         Add strncase_l-ssse3.
20022         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
20023         * sysdeps/x86_64/strcmp.S: Likewise.
20024         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
20025         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
20026         * sysdeps/x86_64/strncase.S: New file.
20027         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
20028         * sysdeps/x86_64/strncase_l.S: New file.
20029         * string/Makefile (strop-tests): Add strncasecmp.
20030         * string/test-strncasecmp.c: New file.
20031
20032         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
20033         warning.
20034
20035         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
20036         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
20037
20038 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
20039
20040         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
20041
20042 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
20043
20044         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
20045         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
20046         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
20047
20048 2010-05-01  Alan Modra  <amodra@gmail.com>
20049
20050         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
20051         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
20052         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
20053         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
20054         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
20055         tidying.  Don't tail-call __sigjmp_save for static lib.
20056         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
20057         save location.
20058         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
20059         (CALL_MCOUNT): Add eh info, and nop after bl.
20060         (TAIL_CALL_SYSCALL_ERROR): New macro.
20061         (PSEUDO_RET): Use it.
20062         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
20063         Correct save location of integer regs and cr.
20064         (_dl_profile_resolve): Correct cr save location.  Delete nops
20065         after bl when SHARED.  Reduce cfi size a little by better
20066         placement of cfi directives.
20067         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
20068         make a stack frame.  Instead use parm save area as a temp.
20069         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
20070         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
20071         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
20072         Don't make a stack frame for parent, use parm save area.
20073         Increase child stack frame to 112 bytes.  Don't save unused reg,
20074         and adjust reg usage.  Set up cfi on error recovery and
20075         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
20076         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
20077         (__makecontext): Add dummy nop after jump to exit.
20078         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
20079         Use correct parm save area and cr save, reduce stack frame.
20080         Correct cfi for possible PSEUDO_RET frame setup.
20081         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
20082         Branch to local label emitted by PSEUDO_RET rather than
20083         __syscall_error.
20084
20085 2010-08-12  Andreas Schwab  <schwab@redhat.com>
20086
20087         [BZ #11904]
20088         * locale/programs/locale.c (print_assignment): New function.
20089         (show_locale_vars): Use it.
20090
20091 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
20092
20093         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
20094         field.
20095         (struct statfs64): Likewise.
20096         (_STATFS_F_FLAGS): Define.
20097         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
20098         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
20099         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
20100         (ST_VALID): Define locally.
20101         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
20102         __statvfs_getflags, use the provided value.
20103         * sysdeps/unix/sysv/linux/kernel-features.h: Define
20104         __ASSUME_STATFS_F_FLAGS.
20105
20106         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
20107
20108         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
20109         Add sys/fanotify.h.
20110         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
20111         fanotify_mask for GLIBC_2.13.
20112         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
20113         fanotify_init and fanotify_mark.
20114         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
20115         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
20116
20117         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
20118         Add prlimit.
20119         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
20120         prlimit64 for GLIBC_2.13.
20121         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
20122         prlimit64.
20123         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
20124         syscall.
20125         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
20126         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
20127         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
20128         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
20129         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
20130         add prlimit alias.
20131         * sysdeps/unix/sysv/linux/prlimit.c: New file.
20132
20133         [BZ #11903]
20134         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
20135         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
20136
20137         * nss/Makefile: Add rules to build and run tst-nss-test1.
20138         * shlib-versions: Add entry for libnss_test1.
20139         * nss/nss_test1.c: New file.
20140         * nss/tst-nss-test1.c: New file.
20141
20142         * nss/nsswitch.c (__nss_database_custom): Define new variable.
20143         (__nss_configure_lookup): Set appropriate entry in
20144         __nss_configure_lookup to true.
20145         * nss/nsswitch.h: Define enum with indeces of databases in
20146         databases and __nss_database_custom arrays.  Declare
20147         __nss_database_custom.
20148         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
20149         to avoid using nscd when custom rules are installed.
20150         * nss/getXXbyYY_r.c: Likewise.
20151         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
20152
20153         * nss/nss_files/files-parse.c: Whitespace fixes.
20154
20155 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
20156
20157         [BZ #11883]
20158         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
20159         * posix/fnmatch_loop.c: Likewise.
20160
20161 2010-07-17  Andi Kleen  <ak@linux.intel.com>
20162
20163         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
20164         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
20165         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
20166         * Versions.def [GLIBC_2.13]: Add.
20167
20168 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
20169
20170         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
20171         Also fail if tpwd after pwuid call is NULL.
20172
20173 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20174
20175         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
20176         when converting to ms.
20177
20178 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20179
20180         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
20181         EOPNOTSUPP errors with ENOTTY.
20182         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
20183         EOPNOTSUPP errors with ENOTTY.
20184
20185 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
20186
20187         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
20188         Add strcasecmp_l-ssse3.
20189         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
20190         strcasecmp.
20191         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
20192         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
20193         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
20194
20195 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
20196
20197         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
20198
20199         * string/Makefile (strop-tests): Add strcasecmp.
20200         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
20201         strcasecmp_l-nonascii.
20202         (gen-as-const-headers): Add locale-defines.sym.
20203         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
20204         * sysdeps/x86_64/strcasecmp.S: New file.
20205         * sysdeps/x86_64/strcasecmp_l.S: New file.
20206         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
20207         * sysdeps/x86_64/locale-defines.sym: New file.
20208         * string/test-strcasecmp.c: New file.
20209
20210         * string/test-strcasestr.c: Test both ends of the range of characters.
20211         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
20212
20213 2010-07-29  Roland McGrath  <roland@redhat.com>
20214
20215         [BZ #11856]
20216         * manual/locale.texi (Yes-or-No Questions): Fix example code.
20217
20218 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
20219
20220         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
20221         for ld.so.
20222
20223 2010-07-27  Andreas Schwab  <schwab@redhat.com>
20224
20225         * manual/memory.texi (Malloc Tunable Parameters): Document
20226         M_PERTURB.
20227
20228 2010-07-26  Roland McGrath  <roland@redhat.com>
20229
20230         [BZ #11840]
20231         * configure.in (-fgnu89-inline check): Set and substitute
20232         gnu89_inline, not libc_cv_gnu89_inline.
20233         * configure: Regenerated.
20234         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
20235
20236 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
20237
20238         * string/test-strnlen.c: New file.
20239         * string/Makefile (strop-tests): Add strnlen.
20240         * string/tester.c (test_strnlen): Add a few more test cases.
20241         * string/tst-strlen.c: Better error reporting.
20242
20243         * sysdeps/x86_64/strnlen.S: New file.
20244
20245 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
20246
20247         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
20248         lower-latency instructions.
20249
20250 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
20251
20252         * string/test-strcasestr.c: New file.
20253         * string/test-strstr.c: New file.
20254         * string/Makefile (strop-tests): Add strstr and strcasestr.
20255         * string/str-two-way.h: Don't undefine MAX.
20256         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
20257
20258 2010-07-21  Andreas Schwab  <schwab@redhat.com>
20259
20260         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
20261         strcasestr-nonascii.
20262         (CFLAGS-strcasestr-nonascii.c): Define.
20263         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
20264         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
20265         Remove unused attribute.
20266
20267 2010-07-20  Roland McGrath  <roland@redhat.com>
20268
20269         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
20270         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
20271         ld.so.cache was broken.  With it, there is no way to disable dsocaps
20272         like LD_HWCAP_MASK can disable hwcaps.
20273
20274 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
20275
20276         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
20277
20278 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
20279
20280         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
20281         call in strcasestr.
20282         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
20283         __strcasestr_sse42_nonascii.
20284         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
20285         strcasestr-nonascii.c.
20286         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
20287
20288 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
20289
20290         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
20291         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
20292         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
20293         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
20294
20295 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
20296
20297         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
20298         fcntl.
20299
20300 2010-07-06  Andreas Schwab  <schwab@redhat.com>
20301
20302         [BZ #11577]
20303         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
20304         dl_signal_cerror.
20305
20306 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
20307
20308         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
20309         _PC_PIPE_BUF using F_GETPIPE_SZ.
20310
20311 2010-07-05  Roland McGrath  <roland@redhat.com>
20312
20313         * manual/arith.texi (Rounding Functions): Fix rint description
20314         implicit in round description.
20315
20316 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
20317
20318         * elf/Makefile: Fix linking for a few tests to make recent linker
20319         happy.
20320
20321 2010-06-30  Andreas Schwab  <schwab@redhat.com>
20322
20323         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
20324         $(common-objpfx)libc_nonshared.a.
20325
20326 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
20327
20328         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
20329         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
20330         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
20331         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
20332         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
20333         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
20334         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
20335         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
20336         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
20337         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
20338         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
20339         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
20340         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
20341         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
20342         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
20343         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
20344         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
20345         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
20346         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
20347         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
20348         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
20349         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
20350         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
20351         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
20352         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
20353         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
20354         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
20355         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
20356         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
20357         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
20358         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
20359         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
20360         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
20361         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
20362         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
20363         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
20364         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
20365         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
20366         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
20367         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
20368         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
20369         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
20370         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
20371         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
20372         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
20373         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
20374         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
20375         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
20376
20377 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
20378
20379         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
20380         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
20381         * string/memmove.c (memmove): Renamed to ...
20382         (MEMMOVE): ...this.  Default to memmove.
20383         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
20384         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
20385         (END_CHK): Define.
20386         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
20387         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
20388         mempcpy-ssse3-back memmove-ssse3-back.
20389         * sysdeps/x86_64/multiarch/bcopy.S: New file .
20390         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
20391         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
20392         * sysdeps/x86_64/multiarch/memcpy.S: New file.
20393         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
20394         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
20395         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
20396         * sysdeps/x86_64/multiarch/memmove.c: New file.
20397         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
20398         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
20399         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
20400         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
20401         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
20402         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
20403         Define.
20404         (index_Fast_Copy_Backward): Define.
20405         (HAS_ARCH_FEATURE): Define.
20406         (HAS_FAST_REP_STRING): Define.
20407         (HAS_FAST_COPY_BACKWARD): Define.
20408
20409 2010-06-21  Andreas Schwab  <schwab@redhat.com>
20410
20411         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
20412         Restore proper fallback handling.
20413
20414 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
20415
20416         [BZ #11701]
20417         * posix/group_member.c (__group_member): Correct checking loop.
20418
20419         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
20420         OOM in getpwuid_r correctly.  Return error number when the caller
20421         should return, otherwise -1.
20422         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
20423         call returning > 0 value.
20424         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
20425
20426 2010-06-07  Andreas Schwab  <schwab@redhat.com>
20427
20428         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
20429         libc_nonshared.a from targets in modules-names.
20430
20431 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
20432
20433         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
20434         requires it.
20435
20436 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
20437
20438         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
20439         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
20440         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
20441         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
20442
20443 2010-06-02  Andreas Schwab  <schwab@redhat.com>
20444
20445         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
20446
20447 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
20448
20449         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
20450         and F_GETPIPE_SZ.
20451         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
20452         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
20453         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
20454         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
20455         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
20456         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
20457
20458 2010-06-14  Roland McGrath  <roland@redhat.com>
20459
20460         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
20461
20462 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
20463
20464         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
20465         __REDIRECT followed by __THROW.
20466         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
20467         * posix/getopt.h (getopt): Likewise.
20468
20469 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
20470
20471         * hurd/lookup-at.c (__file_name_lookup_at): Accept
20472         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
20473         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
20474         in AT_FLAGS.
20475         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
20476         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
20477
20478 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
20479
20480         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
20481
20482 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
20483
20484         [BZ #11640]
20485         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20486         Properly check family and model.
20487
20488 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
20489
20490         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
20491
20492 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
20493
20494         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
20495
20496 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
20497
20498         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
20499         symbol reference.
20500
20501 2010-05-19  Andreas Schwab  <schwab@redhat.com>
20502
20503         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
20504         symbol reference.
20505
20506 2010-05-21  Andreas Schwab  <schwab@redhat.com>
20507
20508         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
20509         and internal_recvmmsg.
20510         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
20511         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
20512         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
20513         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
20514
20515         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
20516         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
20517         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
20518
20519 2010-05-20  Andreas Schwab  <schwab@redhat.com>
20520
20521         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
20522
20523 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
20524
20525         POWER7 optimizations.
20526         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
20527         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
20528
20529 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
20530
20531         * version.h: Update for 2.13 development version.
20532
20533 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
20534
20535         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
20536         exceptions.  Return 0.
20537
20538 2010-05-07  Roland McGrath  <roland@redhat.com>
20539
20540         * elf/ldconfig.c (main): Add a const.
20541
20542 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
20543
20544         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
20545         (args_options): Add no-idn option.
20546         (ahosts_keys_int): Add idn_flags to ai_flags.
20547         (parse_option): Handle 'i' option to clear idn_flags.
20548
20549         * malloc/malloc.c (_int_free): Possible race in the most recently
20550         added check.  Only act on the data if no current modification
20551         happened.
20552
20553 See ChangeLog.17 for earlier changes.