296bc423d1c5b16fd7caf31827eefdd35ec17612
[platform/upstream/glibc.git] / ChangeLog
1 2012-10-22  Andreas Jaeger  <aj@suse.de>
2
3         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
4         Define always.
5         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
6
7         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8         bits/fcntl-linux.h.
9
10         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
11         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
12
13         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
14         to __O_LARGEFILE.
15         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
16         to __O_LARGEFILE.
17
18 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
19             Joseph Myers  <joseph@codesourcery.com>
20
21         * config.make.in (NM): New variable.
22
23 2012-10-21  Andreas Jaeger  <aj@suse.de>
24
25         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
26         definitions and declarations that are provided by
27         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
28
29 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
30
31         [BZ #14683]
32         * elf/Makefile (tests-static): Add tst-leaks1-static.
33         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
34         ($(objpfx)tst-leaks1-static): New rule.
35         ($(objpfx)tst-leaks1-static-mem): Likewise.
36         (tst-leaks1-static-ENV): New macro.
37         * elf/dl-open.c (dl_open_worker): Check the main application
38         only if SHARED is defined.
39         * elf/tst-leaks1-static.c: New file.
40
41 2012-10-20  Andreas Jaeger  <aj@suse.de>
42
43         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
44         generic values for Linux.
45         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
46         and declarations that are provided by <bits/fcntl-linux.h> and
47         include <bits/fcntl-linux.h>.
48         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
49         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
50
51 2012-10-20  Roland McGrath  <roland@hack.frob.com>
52
53         * io/fcntl.h: Move include of <bits/types.h> to the top and
54         include it unconditionally.
55
56 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
57
58         * wcsmbs/Makefile (tests-ifunc): New variable.
59         (tests): Add $(tests-ifunc).
60         * wcsmbs/test-wcschr-ifunc.c: New file.
61         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
62         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
63         * wcsmbs/test-wcslen-ifunc.c: Likewise.
64         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
65         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
66
67         * string/Makefile (tests-ifunc): New variable.
68         (tests): Add $(tests-ifunc).
69         * string/test-memccpy.c (TEST_NAME): New macro.
70         * string/test-memchr.c (TEST_NAME): Likewise.
71         * string/test-memcmp.c (TEST_NAME): Likewise.
72         * string/test-memcpy.c (TEST_NAME): Likewise.
73         * string/test-memmem.c (TEST_NAME): Likewise.
74         * string/test-memmove.c (TEST_NAME): Likewise.
75         * string/test-memset.c (TEST_NAME): Likewise.
76         * string/test-rawmemchr.c (TEST_NAME): Likewise.
77         * string/test-stpcpy.c (TEST_NAME): Likewise.
78         * string/test-stpncpy.c (TEST_NAME): Likewise.
79         * string/test-strcasecmp.c (TEST_NAME): Likewise.
80         * string/test-strcasestr.c (TEST_NAME): Likewise.
81         * string/test-strcat.c (TEST_NAME): Likewise.
82         * string/test-strchr.c (TEST_NAME): Likewise.
83         * string/test-strcmp.c(TEST_NAME): Likewise.
84         * string/test-strcpy.c (TEST_NAME): Likewise.
85         * string/test-strcspn.c (TEST_NAME): Likewise.
86         * string/test-strlen.c (TEST_NAME): Likewise.
87         * string/test-strncasecmp.c (TEST_NAME): Likewise.
88         * string/test-strncmp.c (TEST_NAME): Likewise.
89         * string/test-strncpy.c (TEST_NAME): Likewise.
90         * string/test-strnlen.c (TEST_NAME): Likewise.
91         * string/test-strpbrk.c (TEST_NAME): Likewise.
92         * string/test-strrchr.c (TEST_NAME): Likewise.
93         * string/test-strspn.c (TEST_NAME): Likewise.
94         * string/test-strstr.c (TEST_NAME): Likewise.
95         * string/test-bcopy-ifunc.c: New file.
96         * string/test-bzero-ifunc.c: Likewise.
97         * string/test-memccpy-ifunc.c: Likewise.
98         * string/test-memchr-ifunc.c: Likewise.
99         * string/test-memcmp-ifunc.c: Likewise.
100         * string/test-memcpy-ifunc.c: Likewise.
101         * string/test-memmem-ifunc.c: Likewise.
102         * string/test-memmove-ifunc.c: Likewise.
103         * string/test-mempcpy-ifunc.c: Likewise.
104         * string/test-memset-ifunc.c: Likewise.
105         * string/test-rawmemchr-ifunc.c: Likewise.
106         * string/test-stpcpy-ifunc.c: Likewise.
107         * string/test-stpncpy-ifunc.c: Likewise.
108         * string/test-strcasecmp-ifunc.c: Likewise.
109         * string/test-strcasestr-ifunc.c: Likewise.
110         * string/test-strcat-ifunc.c: Likewise.
111         * string/test-strchr-ifunc.c: Likewise.
112         * string/test-strchrnul-ifunc.c: Likewise.
113         * string/test-strcmp-ifunc.c: Likewise.
114         * string/test-strcpy-ifunc.c: Likewise.
115         * string/test-strcspn-ifunc.c: Likewise.
116         * string/test-strlen-ifunc.c: Likewise.
117         * string/test-strncasecmp-ifunc.c: Likewise.
118         * string/test-strncat-ifunc.c: Likewise.
119         * string/test-strncmp-ifunc.c: Likewise.
120         * string/test-strncpy-ifunc.c: Likewise.
121         * string/test-strnlen-ifunc.c: Likewise.
122         * string/test-strpbrk-ifunc.c: Likewise.
123         * string/test-strrchr-ifunc.c: Likewise.
124         * string/test-strspn-ifunc.c: Likewise.
125         * string/test-strstr-ifunc.c: Likewise.
126
127         * debug/Makefile (tests-ifunc): New variable.
128         (tests): Add $(tests-ifunc).
129         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
130         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
131         * debug/test-stpcpy_chk-ifunc.c: New file.
132         * debug/test-strcpy_chk-ifunc.c: Likewise.
133
134 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
135
136         [BZ #13601]
137         * elf/dl-load.c (open_verify): Retry read if the entire ELF
138         header is not read in.
139
140 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
141
142         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
143         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
144         directly.  Pass built executable to script as
145         $(built-program-cmd).
146         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
147         $testprogram without using LD_LIBRARY_PATH and $ldso.
148
149         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
150         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
151         $(rtld-installed-name).
152         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
153         (rtld_installed_name): Likewise.
154         (library_path): Likewise.
155         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
156         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
157         $(run-program-prefix) to tst-tables.sh.
158         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
159         it to run tst-table-from and tst-table-to.
160         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
161         Pass it to tst-table.sh.
162         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
163         $(run-program-prefix) to tst-gettext.sh.
164         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
165         tst-translit.sh.
166         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
167         tst-gettext2.sh.
168         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
169         to run tst-gettext.
170         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
171         to run tst-gettext2.
172         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
173         to run tst-translit.
174         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
175         $(run-program-prefix) to tst-mtrace.sh.
176         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
177         to run tst-mtrace.
178         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
179         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
180         $(rtld-installed-name).
181         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
182         (rtld_installed_name): Likewise.
183         (run_program_prefix): New variable.  Use it to run wordexp-test.
184
185         * Makeconfig (ARCH): Remove all definitions.
186         (machine): Likewise.
187         [ARCH]: Remove conditional code.
188         [!objdir]: Give error.
189         [!objdir] (objpfx): Remove.
190         [!objdir] (common-objpfx): Likewise.
191         [!objdir] (common-objdir): Likewise.
192         * configure.in (config_makefile): Remove.  Hardcode Makefile in
193         AC_CONFIG_FILES call.
194         * configure: Regenerated.
195
196         [BZ #13888]
197         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
198         or TMPDIR.
199         (testout): Likewise.
200
201         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
202         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
203         $(rtld-installed-name).
204         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
205         (rtld_installed_name): Likwise.
206         (runit): Remove function.
207         (run_getconf): New variable,  Use it for running getconf binary.
208
209 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
210
211         [BZ #14716]
212         * string/test-memmem.c (check_result): New function.
213         (do_one_test): Use it.
214         (check1): New function.
215         (test_main): Use it.
216
217 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
218
219         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
220
221 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
222
223         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
224         (_G_LSEEK64): Likewise.
225         (_G_MMAP64): Likewise.
226         (_G_FSTAT64): Likewise.
227         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
228         (_G_LSEEK64): Likewise.
229         (_G_MMAP64): Likewise.
230         (_G_FSTAT64): Likewise.
231         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
232         unconditional.  Call __mmap64 directly.
233         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
234         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
235         __lseek64 directly.
236         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
237         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
238         __mmap64 directly.
239         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
240         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
241         __lseek64 directly.
242         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
243         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
244         __lseek64 directly.
245         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
246         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
247         __lseek64 directly.
248         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
249         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
250         __fxstat64 directly.
251         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
252         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
253         unconditional.
254         (freopen64) [!_G_OPEN64]: Remove conditional code.
255         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
256         unconditional.
257         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
258         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
259         unconditional.
260         (ftello64) [!_G_LSEEK64]: Remove conditional code.
261         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
262         unconditional.
263         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
264         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
265         unconditional.
266         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
267         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
268         unconditional.
269         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
270         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
271         unconditional.
272         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
273         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
274         unconditional.
275         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
276
277 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
278
279         [BZ #12140]
280         * manual/memory.texi (Malloc Tunable Parameters): Add note
281         about free list pointers overwriting some perturb bytes.
282         Wording suggested by Roland McGrath.
283
284 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
285
286         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
287         (lgamma_test): Likewise.
288         (tgamma_test): Likewise.
289
290 2012-10-16  Florian Weimer  <fweimer@redhat.com>
291
292         [BZ #14700]
293         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
294         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
295
296 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
297
298         * NEWS: Mention BZ #14716.
299         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
300         when removing AVAILABLE1_USES_J macro.
301
302 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
303
304         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
305         (__bswap_64): __uint64_t for unsigned 64-bit int.
306
307 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
308
309         * include/string.h (memmem): Declare libc hidden alias.
310         * string/memmem.c (memmem): Define libc hidden alias.
311         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
312         __read, __close instead of open, read, close.
313
314 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
315
316         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
317         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
318         global and hidden.
319         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
320         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
321         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
322         Likewise.
323         (__rawmemchr_sse2): Likewise.
324         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
325         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
326         (__strchr_sse2): Likewise.
327         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
328         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
329         (__strcasecmp_sse2): Likewise.
330         (__strncasecmp_sse2): Likewise.
331         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
332         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
333         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
334         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
335         (__strrchr_sse2): Likewise.
336         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
337         ifunc-impl-list.c.
338         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
339         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
340         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
341         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
342         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
343         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
344         * sysdeps/x86_64/multiarch/memset.S: Likewise.
345         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
346         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
347         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
348         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
349         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
350         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
351         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
352         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
353         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
354         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
355         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
356         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
357         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
358         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
359         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
360         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
361         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
362         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
363         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
364         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
365         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
366         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
367         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
368
369         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
370         global and hidden.
371         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
372         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
373         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
374         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
375         Likewise.
376         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
377         Likewise.
378         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
379         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
380         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
381         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
382         ifunc-impl-list.c.
383         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
384         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
385         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
386         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
387         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
388         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
389         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
390         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
391         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
392         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
393         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
394         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
395         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
396         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
397         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
398         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
399         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
400         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
401         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
402         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
403         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
404         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
405         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
406         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
407         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
408         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
409         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
410         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
411         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
412         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
413         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
414         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
415         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
416         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
417         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
418         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
419         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
420         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
421         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
422         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
423         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
424
425         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
426         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
427         * include/ifunc-impl-list.h: New file.
428         * misc/ifunc-impl-list.c: Likewise.
429         * misc/Makefile (routines): Add ifunc-impl-list.
430         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
431         * string/test-string.h: Include <ifunc-impl-list.h>.
432         [TEST_IFUNC && TEST_NAME] (func_list, func_count, impl_count,
433         impl_array): New variables.
434         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
435         are defined.
436         (test_init): Call __libc_ifunc_impl_list to initialize
437         func_list if TEST_IFUNC and TEST_NAME are defined.
438
439         * string/Makefile (strop-tests): Add bcopy and bzero.
440         * string/test-bcopy.c: New file.
441         * string/test-bzero.c: Likewise.
442         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
443         defined.
444         * string/test-memset.c: Support bzero test if TEST_BZERO is
445         defined.
446         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
447         __libc_memmove.
448         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
449         __libc_memset.
450         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
451         of memset.
452
453 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
454
455         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
456         * configure: Regenerated.
457
458         * Makeconfig (+link-static-before-libc): Don't include
459         $(link-static-libc).
460
461         * libio/libio.h (_IO_pos_t): Remove.
462
463 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
464
465         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
466         McGrath.
467
468 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
469
470         * crypt/crypt-entry.c: Include fips-private.h.
471         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
472         * crypt/md5c-test.c (main): Tolerate disabled MD5.
473         * sysdeps/unix/sysv/linux/fips-private.h: New file.
474         * sysdeps/generic/fips-private.h: New file, dummy fallback.
475
476 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
477
478         * crypt/crypt-private.h: Include stdbool.h.
479         (_ufc_setup_salt_r): Return bool.
480         * crypt/crypt-entry.c: Include errno.h.
481         (__crypt_r): Return NULL with EINVAL for bad salt.
482         * crypt/crypt_util.c (bad_for_salt): New.
483         (_ufc_setup_salt_r): Check that salt is long enough and within
484         the specified alphabet.
485         * crypt/badsalttest.c: New file.
486         * crypt/Makefile (tests): Add it.
487         ($(objpfx)badsalttest): New.
488
489 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
490
491         * NEWS: Add entry for BZ #14602.
492
493 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
494
495         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
496         type-generic.
497         * math/libm-test.inc: Update comment listing what functions and
498         macros are tested.
499         (isgreater_test): New function.
500         (isgreaterequal_test): Likewise.
501         (isless_test): Likewise.
502         (islessequal_test): Likewise.
503         (islessgreater_test): Likewise.
504         (isunordered_test): Likewise.
505         (main): Call the new functions.
506
507 2012-10-09  Roland McGrath  <roland@hack.frob.com>
508
509         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
510         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
511         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
512         * sysdeps/i386/configure: Regenerated.
513         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
514         * sysdeps/mach/configure: Regenerated.
515         * sysdeps/mach/hurd/configure: Regenerated.
516         * sysdeps/powerpc/configure: Regenerated.
517         * sysdeps/powerpc/powerpc32/configure: Regenerated.
518         * sysdeps/powerpc/powerpc64/configure: Regenerated.
519         * sysdeps/s390/s390-32/configure: Regenerated.
520         * sysdeps/s390/s390-64/configure: Regenerated.
521         * sysdeps/sh/configure: Regenerated.
522         * sysdeps/sparc/configure: Regenerated.
523         * sysdeps/unix/sysv/linux/configure: Regenerated.
524         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
525         * sysdeps/x86_64/configure: Regenerated.
526
527         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
528         defined.  Don't check if MAP is NULL.
529
530 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
531
532         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
533         (_G_stat64): Likewise.
534         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
535         (_G_stat64): Likewise.
536         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
537         instead of struct _G_stat64.
538         * libio/fileops.c (mmap_remap_check): Likewise.
539         (decide_maybe_mmap): Likewise.
540         (_IO_new_file_seekoff): Likewise.
541         (_IO_file_stat): Likewise.
542         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
543         _G_off64_t.
544         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
545         instead of struct _G_stat64.
546         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
547
548 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
549
550         [BZ #14602]
551         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
552         Replace with ...
553         (CHECK_EOL): New macro.
554         (two_way_short_needle): Check beginning of haystack for EOL.  Use
555         CHECK_EOL.
556         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
557         Replace with CHECK_EOL.
558         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
559         Replace with CHECK_EOL.
560
561 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
562
563         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
564         type-generic.
565         * math/libm-test.inc: Update comment listing what functions and
566         macros are tested.
567         (finite_test): New function.
568         (isinf_test): Likewise.
569         (isnan_test): Likewise.
570         (fpclassify_test): Test subnormal input.
571         (isfinite_test): Likewise.
572         (isnormal_test): Likewise.
573         (main): Call the new functions.
574
575 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
576
577         [BZ #14660]
578         * Makerules (%.dynsym): Force C locale when running
579         $(OBJDUMP) --dynamic-syms.
580
581 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
582
583         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
584         <stdint.h>.
585
586 2012-10-06  David S. Miller  <davem@davemloft.net>
587
588         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
589         upper 32-bits of the length value in %o2 since we use branch-on-register
590         tests which consider the entire 64-bit register.
591
592 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
593
594         * string/test-strstr.c (check2): Add a test for page boundary.
595
596 2012-10-05  David S. Miller  <davem@davemloft.net>
597
598         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
599         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
600         file.
601         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
602         sysdep_routines.
603         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
604         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
605         and bzero when HWCAP_SPARC_CRYPTO is present.
606
607 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
608
609         [BZ #14602]
610         * string/test-strstr.c (check2): New function.
611         (test_main): Call check2.
612
613         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
614         and bug-strchr1.
615         * string/bug-strcasestr1.c (do_test): Moved to ...
616         * string/test-strcasestr.c (check1): Here.  New function.
617         (do_one_test): Break out result checking code into ...
618         (check_result): This.  New function.
619         (do_one_test): Call check_result.
620         (test_main): Call check1.
621         * string/bug-strchr1.c (do_test): Moved to ...
622         * string/test-strchr.c (check1): Here.  New function.
623         (do_one_test): Break out result checking code into ...
624         (check_result): This.  New function.
625         (do_one_test): Call check_result.
626         (test_main): Call check1.
627         * string/bug-strstr1.c (main): Moved to ...
628         * string/test-strchr.c (check1): Here.  New function.
629         (do_one_test): Break out result checking code into ...
630         (check_result): This.  New function.
631         (do_one_test): Call check_result.
632         (test_main): Call check1.
633         * string/bug-strcasestr1.c: Removed.
634         * string/bug-strchr1.c: Likewise.
635         * string/bug-strstr1.c: Likewise.
636
637         * elf/Makefile (dl-routines): Add hwcaps.
638         * elf/dl-support.c (_dl_important_hwcaps): Removed.
639         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
640         (_dl_important_hwcaps): Moved to ...
641         * elf/dl-hwcaps.c: Here.  New file.
642         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
643
644         [BZ #14557]
645         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
646         if IS_IN_rtld isn't defined.
647
648         * elf/dl-support.c (_dl_sysinfo_map): New.
649         Include "get-dynamic-info.h" and "setup-vdso.h".
650         (_dl_non_dynamic_init): Call setup_vdso.
651         * elf/dynamic-link.h: Don't include <assert.h>.
652         (elf_get_dynamic_info): Moved to ...
653         * elf/get-dynamic-info.h: Here.  New file.
654         * elf/dynamic-link.h: Include "get-dynamic-info.h".
655         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
656         * elf/setup-vdso.h: Here.  New file.
657         * elf/rtld.c: Include "setup-vdso.h".
658         (dl_main): Call setup_vdso.
659
660 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
661
662         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
663         creal in comment listing functions tested.  List finite, isinf,
664         isnan, isless, islessequal, isgreater, isgreaterequal,
665         islessgreater, isunordered, lgamma_r and pow10 as functions and
666         macros not tested.  Mention which functions not tested are aliases
667         for other functions.  Fix typo.  Note that signs of NaNs are not
668         tested.
669
670         * scripts/config.guess: Update from config.git.
671         * scripts/config.sub: Likewise.
672
673 2012-10-04  Roland McGrath  <roland@hack.frob.com>
674
675         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
676         * misc/madvise.c (madvise): Renamed to __madvise.
677         Make madvise a weak alias.
678         * include/sys/mman.h: Declare __madvise.
679         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
680         * sysdeps/unix/syscalls.list
681         (madvise): Make __madvise the strong name, and madvise a weak alias.
682         * sysdeps/unix/sysv/linux/syscalls.list
683         (madvise, mmap): Remove redundant entries.
684         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
685         * malloc/malloc.c (mtrim): Likewise.
686         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
687
688 2012-10-03  Roland McGrath  <roland@hack.frob.com>
689
690         * sysdeps/mach/hurd/dl-cache.c: File removed.
691         * config.h.in (USE_LDCONFIG): New #undef.
692         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
693         * configure: Regenerated.
694         * elf/Makefile (dl-routines): Add dl-cache only under
695         [$(use-ldconfig) = yes].
696         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
697         cache on [USE_LDCONFIG].
698         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
699         [USE_LDCONFIG].
700         * elf/rtld.c (dl_main): Likewise.
701
702 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
703
704         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
705         _SC_LEVEL4_CACHE_LINESIZE.
706
707 2012-10-03  Roland McGrath  <roland@hack.frob.com>
708
709         * sysdeps/unix/bsd/confstr.h: File removed.
710
711 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
712
713         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
714         sys/sdt-config.h.
715
716 2012-10-02  Roland McGrath  <roland@hack.frob.com>
717
718         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
719         Make 'mapoff' field ElfW(Off) rather than off_t.
720
721 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
722
723         * nscd/Makefile: Remove nscd-cflags and all its users.
724         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
725         (CFLAGS-nonlib): Add compiler flags for nscd modules.
726
727         [BZ #10631]
728         * malloc.c (malloc_printerr): Clarify error message.
729
730 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
731
732         [BZ #14648]
733         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
734         Set bit_FMA_Usable if FMA is supported.
735         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
736         macro.
737         (bit_FMA4_Usable): Updated.
738         (index_FMA_Usable): New macro.
739         (CPUID_FMA): Likewise
740         (HAS_FMA): Defined with bit_FMA_Usable.
741
742 2012-10-01  Roland McGrath  <roland@hack.frob.com>
743
744         * bits/types.h (__swblk_t): Type removed.
745         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
746         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
747         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
748         (__SWBLK_T_TYPE): Likewise.
749         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
750         (__SWBLK_T_TYPE): Likewise.
751         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
752         (__SWBLK_T_TYPE): Likewise.
753         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
754         (__SWBLK_T_TYPE): Likewise.
755
756 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
757             Honza Horak <hhorak@redhat.com>
758
759         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
760         (xdr_mapname): Use YPMAXMAP as maxsize.
761         (xdr_peername): Use YPMAXPEER as maxsize.
762         (xdr_keydat): Use YPAXRECORD as maxsize.
763         (xdr_valdat): Use YPMAXRECORD as maxsize.
764
765 2012-10-01  Roland McGrath  <roland@hack.frob.com>
766
767         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
768
769         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
770         * csu/init-first.c: ... here.
771         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
772         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
773         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
774         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
775         * sysdeps/i386/init-first.c: File removed.
776         * sysdeps/sh/init-first.c: File removed.
777
778 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
779
780         [BZ #14645]
781         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
782         if x * y might underflow to zero and z is zero.
783         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
784         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
785         * math/libm-test.inc (min_subnorm_value): New variable.
786         (fma_test): Add more tests.
787         (fma_test_towardzero): Likewise.
788         (fma_test_downward): Likewise
789         (fma_test_upward): Likewise.
790         (initialize): Set min_subnorm_value.
791
792 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
793
794         [BZ #14638]
795         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
796         0 + 0.
797         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
798         mode for addition resulting in exact zero.
799         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
800         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
801         exact 0 + 0.
802         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
803         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
804         * math/libm-test.inc (fma_test): Add more tests.
805         (fma_test_towardzero): New function.
806         (fma_test_downward): Likewise.
807         (fma_test_upward): Likewise.
808         (main): Call the new functions.
809
810 2012-09-28  David S. Miller  <davem@davemloft.net>
811
812         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
813
814 2012-09-28  Roland McGrath  <roland@hack.frob.com>
815
816         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
817         instead of SIGALRM.
818
819         * sysdeps/gnu/_G_config.h: Moved to ...
820         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
821         * sysdeps/mach/hurd/_G_config.h: Moved to ...
822         * sysdeps/generic/_G_config.h: ... here.
823
824         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
825
826         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
827
828         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
829         Conditionalize target on [libnss_test1.so-version].
830
831         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
832
833         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
834         (elfobjdir): Move out of conditionals.
835
836         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
837         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
838         (__nss_lookup_function): Conditionalize label remove_from_tree on
839         [!DO_STATIC_NSS || SHARED], matching its only use.
840
841 2012-09-28  David S. Miller  <davem@davemloft.net>
842
843         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
844         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
845         file.
846         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
847         sysdep_routines.
848         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
849         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
850         when HWCAP_SPARC_CRYPTO is present.
851
852 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
853
854         * io/tst-mknodat.c: Create a FIFO instead of a socket.
855
856 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
857
858         [BZ #6530]
859         * stdio-common/vfprintf.c (process_string_arg): Revert
860         2000-07-22 change.
861
862 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
863
864         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
865         for testcase.
866         * stdio-common/tst-sprintf.c: Include <locale.h>
867         (main): Test sprintf's handling of incomplete multibyte
868         characters.
869
870 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
871
872         * elf/dl-runtime.c (VERSYMIDX): Removed.
873         * elf/dl-version.c (VERSYMIDX): Likewise.
874         * elf/do-rel.h (VERSYMIDX): Likewise.
875         (VALIDX): Likewise.
876         * elf/dynamic-link.h (VERSYMIDX): Likewise.
877         * elf/rtld.c (VALIDX): Likewise.
878         (ADDRIDX): Likewise.
879         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
880         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
881         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
882         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
883         (VALIDX): Likewise.
884         (ADDRIDX): Likewise.
885
886 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
887
888         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
889
890 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
891
892         [BZ #11438]
893         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
894         to global scope.
895         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
896         addresses are in the same scope as 192.0.2/24.
897         * posix/gai.conf: Document new scope table defaults.
898
899 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
900
901         [BZ #5298]
902         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
903         for ftell.  Compute offsets from write pointers instead.
904         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
905
906 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
907
908         [BZ #14543]
909         * libio/Makefile (tests): New test case tst-fseek.
910         * libio/tst-fseek.c: New test case to verify that fseek/ftell
911         combination works in wide mode.
912         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
913         state when the external buffer state changes.
914
915 2012-09-27  David S. Miller  <davem@davemloft.net>
916
917         [BZ #14376]
918         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
919         pass reloc->r_addend in as the 'high' argument to
920         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
921
922         * sysdeps/sparc/fpu/libm-test-ulps: Update.
923
924 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
925
926         * rt/tst-aio2.c: Include <pthread.h>.
927         * rt/tst-aio3.c: Likewise.
928
929 2012-09-27  Steve Ellcey  <sellcey@mips.com>
930
931         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
932
933 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
934
935         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
936         contents on [SHARED].
937
938 2012-09-26  Marek Polacek  <polacek@redhat.com>
939
940         [BZ #14530]
941         [BZ #13741]
942         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
943         for C++ and GCC <4.3 as well as for non GCC compilers.
944
945 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
946
947         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
948
949 2012-09-25  Roland McGrath  <roland@hack.frob.com>
950
951         * Makefile.in (all, install): Declare with .PHONY.
952         Reported by Michael Hope <michael.hope@linaro.org>.
953
954 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
955
956         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
957         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
958         system header.
959         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
960         Likewise.
961         (sydep_routines): Add the new and the internal functions.
962         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
963         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
964         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
965         (GLIBC_2.17): Add the new function.
966         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
967         (GLIBC_2.17): Likewise.
968         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
969         (GLIBC_2.17): Likewise.
970         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
971         (GLIBC_2.17): Likewise.
972         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
973
974 2012-09-25  Alan Modra  <amodra@gmail.com>
975
976         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
977         Add release barrier before setting once_control to say
978         initialisation is done.  Add hints on lwarx.  Use macro in
979         place of isync.
980         (clear_once_control): Add release barrier.
981
982 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
983
984         [BZ #13629]
985         * math/s_clog.c (__clog): Handle more values close to |z| = 1
986         specially.
987         * math/s_clog10.c (__clog10): Likewise.
988         * math/s_clog10f.c (__clog10f): Likewise.
989         * math/s_clog10l.c (__clog10l): Likewise.
990         * math/s_clogf.c (__clogf): Likewise.
991         * math/s_clogl.c (__clogl): Likewise.
992         * math/Makefile (libm-calls): Add x2y2m1.
993         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
994         (__x2y2m1): Likewise.
995         (__x2y2m1l): Likewise.
996         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
997         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
998         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
999         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
1000         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
1001         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
1002         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
1003         * sysdeps/i386/fpu/libm-test-ulps: Update.
1004         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1005
1006         [BZ #14621]
1007         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
1008         int as type of variable DEPTH.
1009         (glob): Use size_t instead of int as type of variables NEWCOUNT
1010         and OLD_PATHC.
1011
1012 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1013
1014         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
1015         Add s_sincosf-sse2.
1016         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
1017         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
1018         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
1019         macros for using routine as __sincosf_ia32.
1020         Use macro for function declaration and weak_alias.
1021         * sysdeps/i386/fpu/libm-test-ulps: Update.
1022
1023         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
1024         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1025
1026         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
1027         subnormal argument.
1028         * math/s_cexpf.c (__cexpf): Likewise.
1029         * math/s_csinf.c (__csinf): Likewise.
1030         * math/s_csinhf.c (__csinhf): Likewise.
1031         * math/s_ctanf.c (__ctanf): Likewise.
1032         * math/s_ctanhf.c (__ctanhf): Likewise.
1033         * math/s_ccosh.c (__ccoshf): Likewise.
1034         * math/s_cexp.c (__cexpl): Likewise.
1035         * math/s_csin.c (__csin): Likewise.
1036         * math/s_csinh.c (__csinh): Likewise.
1037         * math/s_ctan.c (__ctan): Likewise.
1038         * math/s_ctanh.c (ctanh): Likewise.
1039         * math/s_ccoshl.c (__ccoshl): Likewise.
1040         * math/s_cexpl.c (__cexpl): Likewise.
1041         * math/s_csinl.c (__csinl): Likewise.
1042         * math/s_csinhl.c (__csinhl): Likewise.
1043         * math/s_ctanl.c (__ctanl): Likewise.
1044         * math/s_ctanhl.c (__ctanhl): Likewise.
1045
1046 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
1047
1048         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
1049         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
1050         (_IO_off_t): Define to __off_t, not _G_off_t.
1051         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
1052         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
1053         (_IO_wint_t): Define to wint_t, not _G_wint_t.
1054         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
1055         type of __dummy and __dummy2 fields.
1056         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
1057         (_G_ssize_t): Likewise.
1058         (_G_off_t): Likewise.
1059         (_G_pid_t): Likewise.
1060         (_G_uid_t): Likewise.
1061         (_G_wchar_t): Likewise.
1062         (_G_wint_t): Likewise.
1063         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
1064         (_G_ssize_t): Likewise.
1065         (_G_off_t): Likewise.
1066         (_G_pid_t): Likewise.
1067         (_G_uid_t): Likewise.
1068         (_G_wchar_t): Likewise.
1069         (_G_wint_t): Likewise.
1070         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
1071         (_G_ssize_t): Likewise.
1072         (_G_off_t): Likewise.
1073         (_G_pid_t): Likewise.
1074         (_G_uid_t): Likewise.
1075         (_G_wchar_t): Likewise.
1076         (_G_wint_t): Likewise.
1077
1078 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
1079
1080         * malloc/arena.c: Include malloc-sysdep.h.
1081         (shrink_heap): Use check_may_shrink_heap to decide if madvise
1082         is sufficient to shrink the heap or an unmap is needed.
1083         * sysdeps/generic/malloc-sysdep.h: New file.  Define
1084         new function check_may_shrink_heap.
1085         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
1086         new function check_may_shrink_heap.
1087
1088 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
1089
1090         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
1091         comments.
1092
1093 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
1094
1095         * catgets/test-gencat.sh: Add "set -e".
1096         * elf/tst-pathopt.sh: Likewise.
1097         * grp/tst_fgetgrent.sh: Likewise.
1098         * iconvdata/run-iconv-test.sh: Likewise.
1099         * intl/tst-gettext.sh: Likewise.
1100         * intl/tst-gettext2.sh: Likewise.
1101         * intl/tst-gettext4.sh: Likewise.
1102         * intl/tst-gettext6.sh: Likewise.
1103         * intl/tst-translit.sh: Likewise.
1104         * io/ftwtest-sh: Likewise.
1105         * libio/test-freopen.sh: Likewise.
1106         * malloc/tst-mtrace.sh: Likewise.
1107         * posix/globtest.sh: Likewise.
1108         * posix/tst-getconf.sh: Likewise.
1109         * posix/wordexp-tst.sh: Likewise.
1110         * stdio-common/tst-printf.sh: Likewise.
1111         * stdio-common/tst-unbputc.sh: Likewise.
1112         * stdlib/tst-fmtmsg.sh: Likewise.
1113         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
1114         * catgets/Makefile: Do not specify -e option when running
1115         testsuite shell scripts.
1116         * elf/Makefile: Likewise.
1117         * grp/Makefile: Likewise.
1118         * iconvdata/Makefile: Likewise.
1119         * intl/Makefile: Likewise.
1120         * io/Makefile: Likewise.
1121         * libio/Makefile: Likewise.
1122         * malloc/Makefile: Likewise.
1123         * posix/Makefile: Likewise.
1124         * stdio-common/Makefile: Likewise.
1125         * stdlib/Makefile: Likewise.
1126         * sysdeps/x86_64/Makefile: Likewise.
1127
1128         * io/ftwtest-sh: Add copyright header.
1129         * posix/globtest.sh: Likewise.
1130         * posix/tst-getconf.sh: Likewise.
1131         * posix/wordexp-tst.sh: Likewise.
1132         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
1133
1134 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
1135
1136         [BZ #13679]
1137         * Makeconfig (+link): Defined as $(+link-static) if
1138         $(build-shared) isn't yes.
1139         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
1140         isn't yes.
1141         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
1142
1143         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
1144
1145         [BZ #14562]
1146         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
1147         new chunk size with MALLOC_ALIGN_MASK.
1148
1149 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
1150
1151         [BZ #5044]
1152         * stdio-common/printf_fphex.c: Include <stdbool.h> and
1153         <rounding-mode.h>.
1154         (__printf_fphex): Determine rounding using get_rounding_mode and
1155         round_away.
1156         * stdio-common/tst-printf-round.c (struct hex_test): New
1157         structure.
1158         (hex_tests): New variable.
1159         (test_hex_in_one_mode): New function.
1160         (do_test): Also run tests for hex float output.
1161
1162 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
1163
1164         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
1165         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
1166         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
1167         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
1168         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
1169         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
1170         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
1171         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
1172
1173 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
1174
1175         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
1176         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
1177         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
1178         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
1179
1180 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
1181
1182         [BZ #14579]
1183         * elf/rtld.c (dl_main): Limit the check for self loading to normal
1184         mode only.
1185         * elf/tst-rtld-load-self.sh: New test.
1186         * elf/Makefile: Run it.
1187
1188 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
1189
1190         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
1191         (tst-writev-ENV): Remove.
1192         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
1193
1194 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
1195
1196         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
1197
1198 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
1199
1200         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
1201         unconditional.
1202         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
1203         Likewise.
1204         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
1205         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
1206         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
1207         Likewise.
1208
1209 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
1210
1211         [BZ #14587]
1212         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
1213         * config.make.in (have-cpp-asm-debuginfo): Removed.
1214         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
1215         * configure: Regenerated.
1216
1217 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
1218
1219         [BZ #5044]
1220         * stdio-common/printf_fp.c: Include <stdbool.h> and
1221         <rounding-mode.h>.
1222         (___printf_fp): Determine rounding using get_rounding_mode and
1223         round_away.
1224         * stdio-common/tst-printf-round.c: New file.
1225         * stdio-common/Makefile (tests): Add tst-printf-round.
1226         (link-libm): New variable.
1227         ($(objpfx)tst-printf-round): Depend in $(link-libm).
1228
1229 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
1230
1231         [BZ #14576]
1232         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
1233         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
1234         Likewise.
1235         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
1236         Likewise.
1237
1238 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
1239
1240         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
1241         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
1242         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
1243         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
1244
1245 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
1246
1247         [BZ #14518]
1248         * include/rounding-mode.h: New file.
1249         * sysdeps/generic/get-rounding-mode.h: Likewise.
1250         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
1251         * stdlib/strtod_l.c: Include <rounding-mode.h>.
1252         (MAX_VALUE): New macro.
1253         (MIN_VALUE): Likewise.
1254         (overflow_value): New function.
1255         (underflow_value): Likewise.
1256         (round_and_return): Use overflow_value and underflow_value to
1257         determine return values in overflow and underflow cases.  Use
1258         round_away to determine rounding depending on rounding mode.
1259         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
1260         determine return values in overflow and underflow cases.
1261         * stdlib/tst-strtod-round.c: Include <fenv.h>.
1262         (struct test_results): New structure.
1263         (struct test): Use struct test_results to store expected results
1264         for all rounding modes.
1265         (TEST): Include expected results for all rounding modes.
1266         (test_in_one_mode): New function.
1267         (do_test): Use test_in_one_mode to compute and check results.
1268         Check results for all rounding modes.
1269         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
1270         $(link-libm).
1271
1272 2012-12-09  Allan McRae  <allan@archlinux.org>
1273
1274         * sysdeps/i386/fpu/libm-test-ulps: Update
1275
1276 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
1277
1278         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
1279         (_G_int32_t): Likewise.
1280         (_G_uint16_t): Likewise.
1281         (_G_uint32_t): Likewise.
1282         (_G_HAVE_BOOL): Likewise.
1283         (_G_HAVE_ATEXIT): Likewise.
1284         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
1285         (_G_HAVE_IO_FILE_OPEN): Likewise.
1286         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
1287         (_G_int32_t): Likewise.
1288         (_G_uint16_t): Likewise.
1289         (_G_uint32_t): Likewise.
1290         (_G_HAVE_BOOL): Likewise.
1291         (_G_HAVE_ATEXIT): Likewise.
1292         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
1293         (_G_HAVE_IO_FILE_OPEN): Likewise.
1294         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
1295         (_G_int32_t): Likewise.
1296         (_G_uint16_t): Likewise.
1297         (_G_uint32_t): Likewise.
1298         (_G_HAVE_BOOL): Likewise.
1299         (_G_HAVE_ATEXIT): Likewise.
1300         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
1301         (_G_HAVE_IO_FILE_OPEN): Likewise.
1302
1303 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
1304
1305         * csu/libc-tls.c: Update copyright years.
1306
1307 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
1308
1309         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
1310         [!_G_USING_THUNKS]: Remove conditional code.
1311         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
1312         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
1313
1314         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
1315         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
1316         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
1317         (_G_VTABLE_LABEL_PREFIX): Likewise.
1318         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
1319         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
1320         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
1321         (_G_VTABLE_LABEL_PREFIX): Likewise.
1322         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
1323         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
1324         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
1325         (_G_VTABLE_LABEL_PREFIX): Likewise.
1326         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
1327
1328 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
1329
1330         * libio/Makefile: Include ../Makeconfig before tests.
1331         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
1332         only if $(build-shared) is yes.
1333
1334         * iconv/gconv_db.c: Update copyright years.
1335
1336 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1337
1338         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
1339         unwind info if defined PIC. Fix special cases description.
1340         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
1341
1342         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
1343         DP_HI_MASK entry.
1344         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
1345
1346 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
1347
1348         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
1349
1350         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
1351         is NULL.
1352
1353         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
1354         (LDLIBS-tst-chk4): This.
1355         (LDFLAGS-tst-chk5): Renamed to ...
1356         (LDLIBS-tst-chk5): This.
1357         (LDFLAGS-tst-chk6): Renamed to ...
1358         (LDLIBS-tst-chk6): This.
1359         (LDFLAGS-tst-lfschk4): Renamed to ...
1360         (LDLIBS-tst-lfschk4): This.
1361         (LDFLAGS-tst-lfschk5): Renamed to ...
1362         (LDLIBS-tst-lfschk5): This.
1363         (LDFLAGS-tst-lfschk6): Renamed to ...
1364         (LDLIBS-tst-lfschk6): This.
1365
1366         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
1367         on $(common-objpfx)soversions.mk.
1368
1369 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
1370
1371         [BZ #10014]
1372         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
1373         example host name.
1374
1375 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
1376
1377         * malloc/arena.c (arena_get_retry): New function that gets
1378         another arena for the caller to try its request on.
1379         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
1380         current arena cannot fulfill the request.
1381         (__libc_memalign): Likewise.
1382         (__libc_memalign): Likewise.
1383         (__libc_pvalloc): Likewise.
1384         (__libc_calloc): Likewise.
1385
1386 2012-09-05  John Tobey  <john.tobey@gmail.com>
1387
1388         [BZ #13542]
1389         * manual/arith.texi (Operations on Complex): Fix description
1390         of carg branch cut.
1391
1392 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
1393
1394         [BZ #10014]
1395         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
1396         host name.
1397
1398         [BZ #10038]
1399         * manual/memory.texi (Memory): Make order of menu items match
1400         order of sections.
1401
1402 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1403
1404         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
1405         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
1406         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
1407
1408 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1409
1410         * csu/libc-tls.c (static_dtv): Renamed to ...
1411         (_dl_static_dtv): This.  Make it global.
1412         (_dl_initial_dtv): Removed.
1413         (__libc_setup_tls): Updated.
1414         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
1415         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
1416         DL_INITIAL_DTV.
1417
1418 2012-09-06  Petr Machata  <pmachata@redhat.com>
1419
1420         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
1421         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
1422         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
1423         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
1424
1425 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1426
1427         [BZ #14545]
1428         * csu/libc-tls.c (_dl_initial_dtv): New variable.
1429         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
1430         freeing dtv[-1].
1431
1432 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1433
1434         [BZ #14544]
1435         * Makeconfig (link-static-before-libc): Replace $(+prector)
1436         with $(+prectorT).
1437         (link-static-after-libc): Replace $(+postctor) with
1438         $(+postctorT).
1439         (link-bounded): Replace $(+prector)/$(+postctor) with
1440         $(+prectorT)/$(+postctorT).
1441         (+prectorT): New macro.
1442         (+postctorT): Likewise.
1443
1444 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
1445
1446         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
1447         (round_str): Handle values above the maximum for IBM long double
1448         as inexact.
1449         * stdlib/tst-strtod-round.c (tests): Regenerated.
1450
1451 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1452
1453         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
1454         assembler flag.
1455         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
1456         zarch_nohighgprs around the zarch optimized routines.
1457         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
1458         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
1459         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
1460         for zarch.
1461
1462 2012-09-05  David S. Miller  <davem@davemloft.net>
1463
1464         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1465
1466         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
1467         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
1468         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
1469         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
1470         entries.
1471
1472 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1473
1474         * malloc/arena.c: Fold copyright years.
1475         * malloc/mcheck.c, malloc/memusage.c: Likewise.
1476
1477 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1478
1479         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
1480
1481 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1482
1483         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
1484
1485 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1486
1487         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
1488         change internal state upon failure.
1489
1490 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1491
1492         * malloc/mcheck.c (mcheck_check_all): Fix typo.
1493         * malloc/memusage.c (mmap): Likewise.
1494         (mmap64, mremap): Likewise.  Adjust name in comment.
1495
1496 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
1497
1498         * libio/fileops.c: Fix typos in comments.
1499         * libio/oldfileops.c: Likewise.
1500         * libio/wfileops.c: Likewise.
1501
1502 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
1503
1504         [BZ #1349]
1505         * malloc/Makefile (tests): Add tst-malloc-usable test case.
1506         (tst-malloc-usable-ENV): Set environment for test case.
1507         * malloc/hooks.c (malloc_check_get_size): New function to get
1508         requested size.
1509         * malloc/malloc.c (musable): Use malloc_check_get_size.
1510         * malloc/tst-malloc-usable.c: New test case.
1511
1512 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
1513
1514         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
1515
1516 2012-09-05  Allan McRae  <allan@archlinux.org>
1517
1518         [BZ #13966]
1519         * configure.in (CXX_SYSINCLUDES): Use compiler output to
1520         determine header location.
1521         * configure: Regenerated.
1522
1523 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
1524
1525         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
1526         float format.
1527         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
1528         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
1529         format.
1530         (test): Regenerate.
1531
1532 2012-09-04  David S. Miller  <davem@davemloft.net>
1533
1534         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
1535         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
1536         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
1537
1538 2012-09-04  Florian Weimer  <fweimer@redhat.com>
1539
1540         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
1541         failures.
1542
1543         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
1544
1545 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
1546
1547         [BZ #9914]
1548         * libio/iogetdelim.c: Include <limits.h>.
1549         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
1550         + len + 1 would overflow.
1551
1552 2012-09-03  Andreas Jaeger  <aj@suse.de>
1553
1554         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1555         * sysdeps/i386/fpu/libm-test-ulps: Update.
1556
1557 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1558
1559         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
1560         Add s_sinf-sse2, s_conf-sse2.
1561
1562         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
1563         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
1564         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
1565         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
1566
1567         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
1568         for using routine as __sinf_ia32.
1569         Use macro for function declaration and weak_alias.
1570         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
1571         for using routine as __cosf_ia32.
1572         Use macro for function declaration and weak_alias.
1573
1574         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
1575         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
1576
1577         * sysdeps/x86_64/fpu/s_sinf.S: New file.
1578         * sysdeps/x86_64/fpu/s_cosf.S: New file.
1579         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1580
1581         * math/libm-test.inc (cos_test): Add more test cases.
1582         (sin_test): Likewise.
1583         (sincos_test): Likewise.
1584
1585 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1586
1587         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
1588         (IFUNC_RESOLVE): Make pointers to the specialized implementations
1589         hidden.
1590         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
1591
1592 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
1593
1594         [BZ #14538]
1595         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
1596         first element of the GOT.
1597         (elf_machine_load_address): Return the difference between
1598         the runtime address of _DYNAMIC and elf_machine_dynamic ().
1599
1600 2012-09-01  Allan McRae  <allan@archlinux.org>
1601
1602         [BZ #13412]
1603         * configure.in (AWK): Require gawk version 3.0 or later.
1604         * configure: Regenerated.
1605
1606 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
1607
1608         * sysdeps/unix/sysv/linux/kernel-features.h
1609         (__ASSUME_POSIX_CPU_TIMERS): Remove.
1610         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
1611         [__NR_clock_getres]: Make code unconditional.
1612         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
1613         (clock_getcpuclockid): Remove code left unreachable by removal of
1614         conditionals.
1615         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
1616         code unconditional.
1617         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
1618         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
1619         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
1620         Make code unconditional.
1621         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
1622         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
1623         * sysdeps/unix/sysv/linux/clock_settime.c
1624         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
1625         conditional code.
1626         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
1627         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
1628
1629 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
1630
1631         [BZ #14476]
1632         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
1633         scripts/test-installation.pl.
1634
1635         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
1636         and $ld_so_version if it is set.
1637
1638 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
1639
1640         [BZ #14516]
1641         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
1642         failure if reading from procfs failed.
1643         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
1644
1645 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
1646
1647         * sysdeps/unix/sysv/linux/kernel-features.h
1648         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
1649         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
1650         Remove conditional code.
1651         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1652         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
1653         Remove conditional code.
1654         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1655         * sysdeps/unix/sysv/linux/i386/fxstat.c
1656         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
1657         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1658         * sysdeps/unix/sysv/linux/i386/fxstatat.c
1659         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
1660         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1661         * sysdeps/unix/sysv/linux/i386/lxstat.c
1662         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
1663         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1664         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
1665         Remove conditional code.
1666         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1667         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
1668         Remove conditional code.
1669         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1670         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
1671         <kernel-features.h>.
1672         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
1673         Remove.
1674         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
1675         Remove conditional code.
1676         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1677         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
1678         Remove conditional.
1679
1680 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
1681
1682         [BZ #5400]
1683         * NEWS: Add fixed bug number.
1684
1685 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
1686
1687         [BZ #14519]
1688         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
1689         underflowing exponent in case of negative sign.
1690         * stdlib/tst-strtod-round-data: Add more tests.
1691         * stdlib/tst-strtod-round.c (tests): Regenerated.
1692
1693         [BZ #3479]
1694         * stdlib/strtod_l.c (NDIG): Remove.
1695         (HEXNDIG): Likewise.
1696         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
1697         smallest representable value.
1698         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
1699         lie within an exact representation of 1/2 ulp of the result.
1700         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
1701         unconditionally.
1702         (TENS_P9_IDX): Define unconditionally.
1703         (TENS_P9_SIZE): Likewise.
1704         (TENS_P10_IDX): Likewise.
1705         (TENS_P10_SIZE): Likewise.
1706         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
1707         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
1708         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
1709         entries for 10^2^13 and 10^2^14.
1710         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
1711         (TENS_P13_IDX): Define.
1712         (TENS_P13_SIZE): Likewise.
1713         (TENS_P14_IDX): Likewise.
1714         (TENS_P14_SIZE): Likewise.
1715         (_fpioconst_pow10): Change array size to
1716         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
1717         unconditional.
1718         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
1719         1024]: Add entries for 10^2^13 and 10^2^14.
1720         [LAST_POW10 > _LAST_POW10]: Remove #error.
1721         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
1722         (_fpioconst_pow10): Change array size to
1723         FPIOCONST_POW10_ARRAY_SIZE.
1724         * stdlib/gen-fpioconst.c: New file.
1725         * stdlib/gen-tst-strtod-round.c: Likewise.
1726         * stdlib/tst-strtod-round-data: Likewise.
1727         * stdlib/tst-strtod-round.c: Likewise.
1728         * stdlib/Makefile (tests): Add tst-strtod-round.
1729
1730         [BZ #14459]
1731         * stdlib/strtod_l.c: Include <stdint.h>.
1732         (NDEBUG): Do not define.
1733         (round_and_return): Change EXPONENT parameter to type intmax_t.
1734         Rearrange calculations to avoid internal overflow possibilities.
1735         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
1736         Rearrange calculations to avoid internal overflow possibilities.
1737         Assert that number fits inside MPNSIZE limbs.
1738         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
1739         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
1740         calculations and add assertions to avoid internal overflow
1741         possibilities.  Add casts to avoid signed/unsigned operations.
1742         * stdlib/tst-strtod-overflow.c: New file.
1743         * stdlib/Makefile (tests): Add tst-strtod-overflow.
1744
1745 2012-08-25  Marek Polacek  <polacek@redhat.com>
1746
1747         * time/time.h: Fix some typos in comments.
1748
1749 2012-08-23  Roland McGrath  <roland@hack.frob.com>
1750
1751         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
1752         * posix/tst-rfc3484-2.c: Likewise.
1753         * posix/tst-rfc3484-3.c: Likewise.
1754
1755 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
1756
1757         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
1758         (EF_ARM_ABI_FLOAT_HARD): Likewise.
1759
1760 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
1761
1762         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
1763         #include of fxstatat64.c.
1764
1765 2012-08-22  Roland McGrath  <roland@hack.frob.com>
1766
1767         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
1768         * shadow/getspent_r.c: Likewise.
1769         * shadow/getspnam.c: Likewise.
1770         * shadow/getspnam_r.c: Likewise.
1771         * gshadow/getsgent.c: Likewise.
1772         * gshadow/getsgent_r.c: Likewise.
1773         * gshadow/getsgnam.c: Likewise.
1774         * gshadow/getsgnam_r.c: Likewise.
1775         * inet/getnetbyad.c: Likewise.
1776         * inet/getnetbyad_r.c: Likewise.
1777         * inet/getnetbynm.c: Likewise.
1778         * inet/getnetbynm_r.c: Likewise.
1779         * inet/getnetent.c: Likewise.
1780         * inet/getnetent_r.c: Likewise.
1781         * inet/getproto.c: Likewise.
1782         * inet/getproto_r.c: Likewise.
1783         * inet/getprtent.c: Likewise.
1784         * inet/getprtent_r.c: Likewise.
1785         * inet/getprtname.c: Likewise.
1786         * inet/getprtname_r.c: Likewise.
1787         * inet/getrpcbyname.c: Likewise.
1788         * inet/getrpcbyname_r.c: Likewise.
1789         * inet/getrpcbynumber.c: Likewise.
1790         * inet/getrpcbynumber_r.c: Likewise.
1791         * inet/getrpcent.c: Likewise.
1792         * inet/getrpcent_r.c: Likewise.
1793         * inet/getaliasent.c: Likewise.
1794         * inet/getaliasent_r.c: Likewise.
1795         * inet/getaliasname.c: Likewise.
1796         * inet/getaliasname_r.c: Likewise.
1797         * nscd/getgrgid_r.c: Likewise.
1798         * nscd/getgrnam_r.c: Likewise.
1799         * nscd/gethstbyad_r.c: Likewise.
1800         * nscd/gethstbynm3_r.c: Likewise.
1801         * nscd/getpwnam_r.c: Likewise.
1802         * nscd/getpwuid_r.c: Likewise.
1803         * nscd/getsrvbynm_r.c: Likewise.
1804         * nscd/getsrvbypt_r.c: Likewise.
1805         * nscd/gai.c: Likewise.
1806
1807         * configure.in (build_nscd): New substituted variable, set
1808         by --disable-build-nscd and defaults to $use_nscd.
1809         * configure: Regenerated.
1810         * config.make.in (build-nscd): New substituted variable.
1811         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
1812         Change conditional to require [$(build-nscd) = yes] as well.
1813         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
1814
1815         [BZ# 13696]
1816         * configure.in (use_nscd): New substituted variable, set by
1817         --disable-nscd.  If enabled, define USE_NSCD.
1818         * configure: Regenerated.
1819         * config.h.in: Add USE_NSCD.
1820         * config.make.in (use-nscd): New substituted variable.
1821         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
1822         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
1823         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
1824         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
1825         (CFLAGS-getgrnam_r.c): Likewise.
1826         (CFLAGS-initgroups.c): Likewise.
1827         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
1828         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
1829         Variables removed.
1830         * inet/getnetgrent_r.c
1831         (nscd_setnetgrent): New function, broken out of ...
1832         (setnetgrent): ... here.  Call it.
1833         (innetgr): Conditionalize nscd bits on [USE_NSCD].
1834         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
1835         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
1836         * nscd/Makefile (routines, aux): Move definitions after include of
1837         Makeconfig.  Conditionalize on [$(use-nscd) != no].
1838         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
1839         Conditionalize on [USE_NSCD].
1840         (is_nscd, nscd_init_cb): Likewise.
1841         (nss_load_library): Conditionalize init callback on [USE_NSCD].
1842         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
1843         * nss/nss_db/db-init.c: Likewise.
1844         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
1845         [USE_NSCD].
1846         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
1847         (make_request): Use it.
1848         (cache_valid_p): New function.
1849         (__check_pf): Use it.
1850         * NEWS: Add item for --disable-nscd.
1851
1852 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
1853
1854         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
1855         to support sed >= 4.2.1-20-ga9bf076.
1856         * configure: Regenerated.
1857
1858 2012-08-22  Roland McGrath  <roland@hack.frob.com>
1859
1860         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
1861         Conditionalize whole body on [IREL].
1862
1863 2012-08-22  Jeff Law <law@redhat.com>
1864
1865         [BZ #14505]
1866         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
1867         if the family is PF_UNSPEC.
1868
1869 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
1870
1871         * Makerules (lib-version): Rename from V.
1872         (install-lib-nosubdir): Change V to lib-version.
1873
1874 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
1875
1876         [BZ #14252]
1877         * powerpc32/power6/wcschr.c: New file.
1878         * powerpc32/power6/wcscpy.c: New file.
1879         * powerpc32/power6/wcsrchr.c: New file.
1880         * powerpc64/power6/wcschr.c: New file.
1881         * powerpc64/power6/wcscpy.c: New file.
1882         * powerpc64/power6/wcsrchr.c: New file.
1883
1884 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
1885
1886         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
1887         (two_way_short_needle): Use it.
1888         * string/strstr.c (AVAILABLE1_USES_J): Define.
1889         * string/strcasestr.c: Likewise.
1890
1891         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
1892         array references.
1893         * string/strcasestr.c (TOLOWER): Make side-effect safe.
1894
1895         [BZ #11607]
1896         * NEWS: Add an entry.
1897         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
1898         define their defaults.
1899         (two_way_short_needle): Detect end-of-string on-the-fly.
1900         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
1901         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
1902         * string/bug-strcasestr1.c: New test.
1903         * string/Makefile: Run it.
1904
1905 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
1906
1907         [BZ #11607]
1908         * string/str-two-way.h (two_way_short_needle): Optimize matching of
1909         the first character.
1910
1911 2012-08-21  Roland McGrath  <roland@hack.frob.com>
1912
1913         * csu/elf-init.c (__libc_csu_irel): Function removed.
1914         * csu/libc-start.c (apply_irel): New function.
1915         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
1916
1917 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
1918
1919         * sysdeps/unix/sysv/linux/kernel-features.h
1920         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
1921         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
1922         <kernel-features.h>.
1923         [__NR_fadvise64_64]: Make code unconditional.
1924         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
1925         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
1926         !__NR_fadvise64_64)]: Likewise.
1927         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
1928         !__NR_fadvise64_64))]: Likewise.
1929         [__NR_fadvise64]: Make code unconditional.
1930         [!__NR_fadvise64]: Remove conditional code.
1931         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
1932         <kernel-features.h>.
1933         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
1934         unconditional.
1935         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
1936         conditional code.
1937         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
1938         not include <kernel-features.h>.
1939         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
1940         unconditional.
1941         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
1942         conditional code.
1943         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
1944         include <kernel-features.h>.
1945         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
1946         unconditional.
1947         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
1948         conditional code.
1949
1950 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
1951
1952         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
1953         slight instruction rearrangements per scrollpipe analysis.
1954         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
1955
1956 2012-08-20  Roland McGrath  <roland@hack.frob.com>
1957
1958         * manual/syslog.texi (syslog; vsyslog, closelog):
1959         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
1960         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
1961
1962         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
1963         DSOCAPS to match condition on defining it.
1964
1965 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
1966
1967         * sysdeps/unix/sysv/linux/kernel-features.h
1968         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
1969         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
1970         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
1971         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
1972         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
1973         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
1974         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
1975         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
1976         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
1977         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
1978
1979         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
1980         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
1981
1982         * sysdeps/unix/sysv/linux/kernel-features.h
1983         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
1984         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
1985         unconditional.
1986         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1987         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
1988         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
1989         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1990         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
1991         Make code unconditional.
1992         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1993         (__mmap64) [!__NR_mmap2]: Likewise.
1994         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
1995         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
1996         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1997         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
1998         [__NR_mmap2]: Make code unconditional.
1999         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
2000         (__mmap64) [!__NR_mmap2]: Likewise.
2001
2002 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2003
2004         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
2005
2006 2012-08-18  Andreas Jaeger  <aj@suse.de>
2007
2008         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
2009
2010 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
2011
2012         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
2013         * include/unistd.h (__have_sock_cloexec): Likewise.
2014         (__have_pipe2): Likewise.
2015         (__have_dup3): Likewise.
2016
2017 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
2018
2019         [BZ #9685]
2020         * include/unistd.h (__have_pipe2): Change define into an extern int.
2021         (__have_dup3): Likewise.
2022         * socket/have_sock_cloexec.c: Include fcntl.h.
2023         (__have_pipe2): New variable.
2024         (__have_dup3): Likewise.
2025
2026 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
2027
2028         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
2029
2030 2012-08-17  Marek Polacek  <polacek@redhat.com>
2031
2032         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
2033         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
2034
2035 2012-08-17  Roland McGrath  <roland@hack.frob.com>
2036
2037         * configure.in: Add AC_SUBST for sysheaders.
2038         * configure: Regenerated.
2039         * config.make.in (sysheaders): New substituted variable.
2040
2041         * sysdeps/unix/mkfifo.c: Moved ...
2042         * sysdeps/posix/mkfifo.c: ... here.
2043         * sysdeps/unix/mkfifoat.c: Moved ...
2044         * sysdeps/posix/mkfifoat.c: ... here.
2045
2046         * sysdeps/unix/utime.c: Moved ...
2047         * sysdeps/posix/utime.c: ... here.
2048
2049         * sysdeps/unix/time.c: Moved ...
2050         * sysdeps/posix/time.c: ... here.
2051         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
2052         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
2053
2054         * sysdeps/unix/nice.c: Moved ...
2055         * sysdeps/posix/nice.c: ... here.
2056
2057         * sysdeps/unix/alarm.c: Moved ...
2058         * sysdeps/posix/alarm.c: ... here.
2059
2060         * intl/Makefile ($(codeset_mo)): Depend on the input file.
2061
2062 2012-08-17  Jeff Law <law@redhat.com>
2063
2064         * intl/Makefile (codeset_mo): New variable.
2065         ($(codeset_mo)): New target.
2066         (tst-codeset.out): Depend on that.  Remove explicit rule.
2067         (tst-gettext3.out, tst-gettext5.out): Likewise.
2068         (LOCPATH-ENV, tst-codeset-ENV): New variables.
2069         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
2070         * intl/tst-codeset.sh: Remove.
2071         * intl/tst-gettext3.sh: Likewise.
2072         * intl/tst-gettext5.sh: Likewise.
2073
2074 2012-08-17  Roland McGrath  <roland@hack.frob.com>
2075
2076         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
2077         * sysdeps/unix/syscalls.list: ... here.
2078
2079         * sysdeps/posix/getaddrinfo.c
2080         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
2081         (gaiconf_init, gaiconf_reload): Use them.
2082         [!_STATBUF_ST_NSEC]
2083         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
2084         Define using time_t rather than struct timespec.
2085
2086         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
2087         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
2088         Macros removed.
2089         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
2090         [!NO_THREADS].
2091         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
2092         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
2093         Likewise.
2094
2095         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
2096         __libc_cleanup_push argument.
2097
2098         * bits/param.h: New file.
2099         * misc/sys/param.h: New file.
2100         * include/sys/param.h: New file.
2101         * misc/Makefile (headers): Add bits/param.h.
2102         * sysdeps/generic/sys/param.h: File removed.
2103         * sysdeps/unix/sysv/linux/bits/param.h: New file.
2104         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
2105         * sysdeps/mach/hurd/bits/param.h: New file.
2106         * sysdeps/mach/hurd/sys/param.h: New file.
2107
2108         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
2109         last change.
2110
2111         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
2112         [_IO_MTSAFE_IO].
2113         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
2114         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
2115         New macros.
2116
2117         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
2118         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
2119         rather than -D_IO_MTSAFE_IO conditionally.
2120         * stdio-common/Makefile (CPPFLAGS): Likewise.
2121         * wcsmbs/Makefile (CPPFLAGS): Likewise.
2122         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
2123         Use $(libio-mtsafe).
2124         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
2125         of -D_IO_MTSAFE_IO.
2126         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
2127         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
2128         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
2129         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
2130         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
2131         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
2132         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
2133         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
2134         (CFLAGS-fread_u_chk.c): Likewise.
2135         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
2136         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
2137         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
2138         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
2139         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
2140         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
2141         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
2142         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
2143         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
2144
2145         * libio/Makefile: Test [$(libc-reentrant) = yes]
2146         instead of [$(filter %REENTRANT, $(defines)) nonempty].
2147
2148         * Makeconfig
2149         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
2150         * sysdeps/pthread/configure: File removed.
2151         * sysdeps/pthread/Makeconfig: New file.
2152         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
2153         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
2154
2155 2012-08-16  Gary Benson  <gbenson@redhat.com>
2156
2157         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
2158         unmapping the first object in a namespace.
2159
2160 2012-08-16  Roland McGrath  <roland@hack.frob.com>
2161
2162         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
2163         (__internal_setnetgrent): ... this.  Add internal_function to
2164         definition.  Add libc_hidden_def.
2165         (setnetgrent): Update caller.
2166         (internal_endnetgrent): Renamed to ...
2167         (__internal_endnetgrent): ... this.  Add internal_function to
2168         definition.  Add libc_hidden_def.
2169         (endnetgrent): Update caller.
2170         (internal_getnetgrent_r): Renamed to ...
2171         (__internal_getnetgrent_r): ... this.  Add internal_function to
2172         definition.  Add libc_hidden_def.
2173         (__getnetgrent_r): Update caller.
2174         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
2175
2176 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
2177
2178         * stdlib/longlong.h: Update from GCC.
2179
2180 2012-08-16  Roland McGrath  <roland@hack.frob.com>
2181
2182         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
2183         on _QL, which is set by umul_ppmm but never used.
2184         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
2185         variables, which are set by GMP macros but never used.
2186         * stdio-common/_itowa.c (_itowa): Likewise.
2187         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
2188         * stdlib/mod_1.c (mpn_mod_1): Likewise.
2189
2190 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
2191
2192         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
2193         struct La_sh_regs is not constant.
2194         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
2195         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
2196         and struct La_sparc64_regs are not constant.
2197
2198 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
2199
2200         * sysdeps/unix/sysv/linux/kernel-features.h
2201         (__ASSUME_POSIX_TIMERS): Remove.
2202         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
2203         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2204         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
2205         Make code unconditional.
2206         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2207         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
2208         Make code unconditional.
2209         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2210         * sysdeps/unix/sysv/linux/clock_nanosleep.c
2211         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
2212         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2213         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
2214         Make code unconditional.
2215         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2216         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
2217         (__libc_missing_posix_timers): Remove.
2218
2219 2012-08-15  Roland McGrath  <roland@hack.frob.com>
2220
2221         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
2222         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
2223
2224         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
2225
2226         * elf/dl-sym.c: Include <stdlib.h>.
2227
2228         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
2229         constants, which avoids warnings in 32-bit builds.
2230
2231         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
2232         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
2233
2234         * misc/lseek.c: File moved to ...
2235         * io/lseek.c: ... here.
2236
2237         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
2238
2239         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
2240         shifting LEN more than 31 bits at once.
2241
2242 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
2243
2244         [BZ #14195]
2245         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
2246         segmentation fault for a case of two empty input strings.
2247         * string/test-strncasecmp.c (check1): Renamed to...
2248         (bz12205): ...this.
2249         (bz14195): Add new testcase for two empty input strings and N > 0.
2250         (test_main): Call new testcase, adapt for renamed function.
2251
2252 2012-08-15  Andreas Jaeger  <aj@suse.de>
2253
2254         [BZ #14090]
2255         * crypt/md5test2.c: New test, based on test supplied by Serge
2256         Belyshev <belyshev@depni.sinp.msu.ru>.
2257         * crypt/Makefile (xtests): Add md5test-giant..
2258         * crypt/Makefile ($(objpfx)md5test-giant): Add.
2259
2260 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
2261
2262         [BZ #14090]
2263         * crypt/md5.c (md5_process_block): Don't assume the buffer
2264         length is less than 2**32.
2265         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
2266         length is less than 2**64.
2267
2268 2012-08-15  Roland McGrath  <roland@hack.frob.com>
2269
2270         * string/str-two-way.h: Include <sys/param.h>.
2271         (MAX): Macro removed.
2272
2273         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
2274         Move #define and #undef of memmove to just before and after
2275         including <string.h>.
2276
2277         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
2278         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
2279         and after including <string.h>.  Move declarations of
2280         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
2281         to before #include "string/memmove.c".
2282
2283         * include/dirent.h: Declare __getdirentries.
2284
2285         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
2286         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
2287
2288 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
2289
2290         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
2291         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
2292         * sysdeps/i386/configure: Regenerated.
2293         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
2294         STABS_CURRENT_FILE, and STABS_FUN.
2295         (END): Remove call to STABS_FUN_END.
2296         (STABS_CURRENT_FILE1): Delete.
2297         (STABS_CURRENT_FILE): Likewise.
2298         (STABS_FUN): Likewise.
2299         (STABS_FUN_END): Likewise.
2300         (STABS_FUN2): Likewise.
2301         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
2302         * sysdeps/x86_64/configure: Regenerated.
2303
2304 2012-08-14  Roland McGrath  <roland@hack.frob.com>
2305
2306         * elf/dl-open.c: Include <atomic.h>.
2307         * elf/dl-lookup.c: Likewise.
2308
2309 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
2310
2311         * sysdeps/unix/sysv/linux/kernel-features.h
2312         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
2313         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
2314         unconditionally.
2315         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
2316         unconditionally.
2317         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
2318         condition on __ASSUME_CLONE_THREAD_FLAGS.
2319
2320 2012-08-14  Andreas Jaeger  <aj@suse.de>
2321
2322         * sysdeps/i386/fpu/libm-test-ulps: Update.
2323
2324 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
2325
2326         * include/atomic.h (atomic_exchange_and_add): Split into ...
2327         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
2328         New atomic macros.
2329
2330 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
2331
2332         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2333
2334 2012-08-13  Jeff Law <law@redhat.com>
2335
2336         * manual/stdio.texi (snprintf): Clarify handling of the trailing
2337         null byte in the output string.
2338
2339 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
2340
2341         * sysdeps/unix/sysv/linux/kernel-features.h
2342         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
2343         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
2344         (__ASSUME_ARG_MAX_STACK_BASED): Define.
2345         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
2346         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
2347         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
2348         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
2349
2350 2012-08-09  Jeff Law <law@redhat.com>
2351
2352         [BZ #13939]
2353         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
2354         When avoid_arena is set, don't retry in the that arena.  Pick the
2355         next one, whatever it might be.
2356         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
2357         (arena_lock): Pass in new parameter to arena_get2.
2358         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
2359         arena_get2.
2360         (__libc_malloc): Unify retrying after main arena failure with
2361         __libc_memalign version.
2362         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
2363
2364 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
2365
2366         [BZ #14166]
2367         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
2368         to __redirect_strstr.
2369         (__strstr_sse42): Use typeof __redirect_strstr.
2370         (__strstr_ia32): Likewise.
2371         (__libc_strstr): New prototype.
2372         (strstr): Renamed to ...
2373         (__libc_strstr): This.
2374         (strstr): New strong alias of __libc_strstr.
2375         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
2376         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
2377         __redirect_time.
2378         Include <time.h>.
2379         (__libc_time): New prototype.
2380         (time_ifunc): Replace time with __libc_time.
2381         (time): New strong alias and hidden definition of __libc_time.
2382         (__GI_time): Remove strong alias.
2383         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
2384         Include <stddef.h>.
2385         (memmove): Redefined to __redirect_memmove.
2386         (__memmove_sse2): Use typeof __redirect_memmove.
2387         (__memmove_ssse3): Likewise.
2388         (__memmove_ssse3_back): Likewise.
2389         (__libc_memmove): New prototype.
2390         (memmove): Renamed to ...
2391         (__libc_memmove): This.
2392         (memmove): New strong alias of __libc_memmove.
2393
2394 2012-08-08  Mark Salter  <msalter@redhat.com>
2395
2396         * elf/elf.h
2397         (R_MN10300_TLS_GD): Define.
2398         (R_MN10300_TLS_LD): Likewise.
2399         (R_MN10300_TLS_LDO): Likewise.
2400         (R_MN10300_TLS_GOTIE): Likewise.
2401         (R_MN10300_TLS_IE): Likewise.
2402         (R_MN10300_TLS_LE): Likewise.
2403         (R_MN10300_TLS_DTPMOD): Likewise.
2404         (R_MN10300_TLS_DTPOFF): Likewise.
2405         (R_MN10300_TLS_TPOFF): Likewise.
2406         (R_MN10300_SYM_DIFF): Likewise.
2407         (R_MN10300_ALIGN): Likewise.
2408         (R_MN10300_NUM): Update.
2409
2410 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
2411
2412         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
2413         Remove.
2414
2415 2012-08-08  Roland McGrath  <roland@hack.frob.com>
2416
2417         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
2418
2419         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
2420         sysdeps/unix -> sysdeps/posix move.
2421         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
2422
2423 2012-08-07      Allan McRae     <allan@archlinux.org>
2424
2425         [BZ #14303]
2426         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
2427         (SUNOS_CPP): Likewise.
2428         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
2429         not found.
2430         (open_input): Call CPP using execvp.
2431
2432 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
2433
2434         * sysdeps/unix/sysv/linux/kernel-features.h
2435         (__ASSUME_PROT_GROWSUPDOWN): Remove.
2436         (__ASSUME_NO_CLONE_DETACHED): Likewise.
2437         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
2438         (__ASSUME_WAITID_SYSCALL): Likewise.
2439         * sysdeps/unix/sysv/linux/dl-execstack.c
2440         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
2441         code unconditional.
2442         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
2443         conditional code.
2444         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
2445         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
2446         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
2447         code.
2448         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
2449         unconditional.
2450         [__ASSUME_WAITID_SYSCALL]: Likewise.
2451         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
2452
2453 2012-08-07  Roland McGrath  <roland@hack.frob.com>
2454
2455         * sysdeps/unix/closedir.c: Renamed to ...
2456         * sysdeps/posix/closedir.c: ... here.
2457         * sysdeps/unix/dirfd.c: Renamed to ...
2458         * sysdeps/posix/dirfd.c: ... here.
2459         * sysdeps/unix/dirstream.h: Renamed to ...
2460         * sysdeps/posix/dirstream.h: ... here.
2461         * sysdeps/unix/fdopendir.c: Renamed to ...
2462         * sysdeps/posix/fdopendir.c: ... here.
2463         * sysdeps/unix/opendir.c: Renamed to ...
2464         * sysdeps/posix/opendir.c: ... here.
2465         * sysdeps/unix/readdir.c: Renamed to ...
2466         * sysdeps/posix/readdir.c: ... here.
2467         * sysdeps/unix/readdir_r.c: Renamed to ...
2468         * sysdeps/posix/readdir_r.c: ... here.
2469         * sysdeps/unix/rewinddir.c: Renamed to ...
2470         * sysdeps/posix/rewinddir.c: ... here.
2471         * sysdeps/unix/seekdir.c: Renamed to ...
2472         * sysdeps/posix/seekdir.c: ... here.
2473         * sysdeps/unix/telldir.c: Renamed to ...
2474         * sysdeps/posix/telldir.c: ... here.
2475         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
2476         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
2477         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
2478         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
2479
2480         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
2481         * bits/fcntl.h: ... here.
2482
2483         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
2484         not 0.
2485         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
2486         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
2487         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
2488         (struct flock): Move l_start, l_len to the beginning.
2489         Use __pid_t for l_pid.
2490         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
2491         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
2492         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
2493         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
2494         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
2495         [__USE_LARGEFILE64] (struct flock64): New type.
2496         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
2497
2498         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
2499         * bits/dirent.h: ... here.
2500
2501         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
2502         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
2503
2504 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
2505
2506         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
2507         Change from 2.6.0 to 2.6.16.
2508         * sysdeps/unix/sysv/linux/configure: Regenerated.
2509         * sysdeps/unix/sysv/linux/kernel-features.h
2510         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
2511         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
2512         version.
2513         (__ASSUME_UTIMES): Likewise.
2514         (__ASSUME_CLONE_STOPPED): Remove.
2515         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
2516         architectures, not kernel version.
2517         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
2518         (__ASSUME_NO_CLONE_DETACHED): Likewise.
2519         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
2520         (__ASSUME_WAITID_SYSCALL): Likewise.
2521         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
2522         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
2523         * README: State 2.6.16 as minimum Linux kernel version.  Do not
2524         refer to older versions.
2525
2526 2012-08-06  Roland McGrath  <roland@hack.frob.com>
2527
2528         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
2529         Define alphasort64 as an alias.
2530         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
2531         Define versionsort64 as an alias.
2532         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
2533         Define scandir64 as an alias.
2534         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
2535         Define scandirat64 as an alias.
2536         * dirent/alphasort64.c (alphasort64):
2537         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
2538         * dirent/versionsort64.c: Likewise.
2539         * dirent/scandir64.c: Likewise.
2540         * dirent/scandirat64.c: Likewise.
2541         * sysdeps/wordsize-64/alphasort.c: File removed.
2542         * sysdeps/wordsize-64/alphasort64.c: File removed.
2543         * sysdeps/wordsize-64/scandir.c: File removed.
2544         * sysdeps/wordsize-64/scandir64.c: File removed.
2545         * sysdeps/wordsize-64/scandirat.c: File removed.
2546         * sysdeps/wordsize-64/scandirat64.c: File removed.
2547         * sysdeps/wordsize-64/versionsort.c: File removed.
2548         * sysdeps/wordsize-64/versionsort64.c: File removed.
2549         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
2550         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
2551         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
2552         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
2553         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
2554         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
2555         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
2556         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
2557
2558         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
2559         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
2560         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
2561         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
2562         [defined __arch64__ || defined __sparcv9]
2563         (__INO_T_MATCHES_INO64_T): New macro.
2564         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
2565         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
2566         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
2567         * sysdeps/unix/sysv/linux/bits/dirent.h
2568         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
2569         (_DIRENT_MATCHES_DIRENT64): New macro.
2570
2571         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
2572         Define lockf64 as an alias.
2573         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
2574         Define fseeko64 as an alias.
2575         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
2576         Define ftello64 as an alias.
2577         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
2578         Define _IO_fgetpos64 and fgetpos64 as aliases.
2579         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
2580         Define _IO_fsetpos64 and fsetpos64 as aliases.
2581         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
2582         Conditionalize body on this.
2583         * libio/fseeko64.c: Likewise.
2584         * libio/ftello64.c: Likewise.
2585         * libio/iofgetpos64.c: Likewise.
2586         * libio/iofsetpos64.c: Likewise.
2587         * sysdeps/wordsize-64/lockf.c: File removed.
2588         * sysdeps/wordsize-64/lockf64.c: File removed.
2589         * sysdeps/wordsize-64/fseeko.c: File removed.
2590         * sysdeps/wordsize-64/fseeko64.c: File removed.
2591         * sysdeps/wordsize-64/ftello.c: File removed.
2592         * sysdeps/wordsize-64/ftello64.c: File removed.
2593         * sysdeps/wordsize-64/iofgetpos.c: File removed.
2594         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
2595         * sysdeps/wordsize-64/iofsetpos.c: File removed.
2596         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
2597         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
2598         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
2599         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
2600         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
2601         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
2602         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
2603         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
2604         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
2605         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
2606         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
2607
2608         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
2609         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
2610         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
2611         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
2612         [defined __arch64__ || defined __sparcv9]
2613         (__OFF_T_MATCHES_OFF64_T): New macro.
2614         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
2615         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
2616         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
2617         (__OFF_T_MATCHES_OFF64_T): New macro.
2618
2619 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
2620
2621         * stdlib/secure-getenv.c (__secure_getenv): Replace
2622         GLIBC_2_16 with GLIBC_2_17.
2623
2624 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
2625
2626         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
2627         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
2628
2629 2012-08-03  David S. Miller  <davem@davemloft.net>
2630
2631         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2632
2633 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
2634
2635         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
2636         Remove.
2637         (__ASSUME_CORRECT_SI_PID): Likewise.
2638         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
2639         (__ASSUME_TMPFS_NAME): Likewise.
2640         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
2641         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
2642         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
2643         (HAVE_AUX_SECURE): Make definition unconditional.
2644         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
2645         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
2646
2647 2012-08-03  Roland McGrath  <roland@hack.frob.com>
2648
2649         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
2650         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
2651         * sysdeps/mach/hurd/eloop-threshold.h: New file.
2652         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
2653         __eloop_threshold instead of SYMLOOP_MAX.
2654
2655         * sysdeps/generic/eloop-threshold.h: New file.
2656         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
2657         of MAXSYMLINKS.
2658         * elf/chroot_canon.c (chroot_canon): Likewise.
2659
2660 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
2661
2662         [BZ #13717]
2663         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
2664         Change to 2.6.0 everywhere.
2665         * sysdeps/unix/sysv/linux/configure: Regenerated.
2666         * sysdeps/unix/sysv/linux/kernel-features.h
2667         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
2668         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
2669         kernel versions.
2670         (__ASSUME_POSIX_TIMERS): Define unconditionally.
2671         (__ASSUME_FUTEX_REQUEUE): Remove.
2672         (__ASSUME_STATFS64): Define unconditionally.
2673         (__ASSUME_AT_SECURE): Likewise.
2674         (__ASSUME_CORRECT_SI_PID): Likewise.
2675         (__ASSUME_TGKILL): Define without depending on kernel version for
2676         i386.
2677         (__ASSUME_UTIMES): Likewise.
2678         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
2679         kernel version.
2680         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
2681         (__ASSUME_TMPFS_NAME): Likewise.
2682         * README: Update reference to Linux kernel versions.
2683
2684 2012-08-02  Marek Polacek  <polacek@redhat.com>
2685
2686         [BZ# 14150]
2687         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
2688         libc_cv_asm_type_prefix with %.
2689         * configure: Regenerated.
2690         * include/libc-symbols.h: Remove comment about
2691         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
2692         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
2693         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
2694         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
2695         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
2696         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
2697         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
2698         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
2699         * elf/tst-unique2mod1.c: Likewise.
2700         * elf/tst-unique1mod2.c: Likewise.
2701         * elf/tst-unique1mod1.c: Likewise.
2702         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
2703         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
2704         Replace ASM_TYPE_DIRECTIVE with .type.
2705         * sysdeps/s390/s390-64/sysdep.h: Likewise.
2706         * sysdeps/i386/sysdep.h: Likewise.
2707         * sysdeps/x86_64/sysdep.h: Likewise.
2708         * sysdeps/sh/sysdep.h: Likewise.
2709         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
2710         Do not define ASM_TYPE_DIRECTIVE.
2711         * sysdeps/powerpc/sysdep.h: Likewise.
2712         * sysdeps/powerpc/powerpc32/sysdep.h:
2713         Replace ASM_TYPE_DIRECTIVE with .type.
2714         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
2715         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
2716         * sysdeps/i386/fpu/e_powf.S: Likewise.
2717         * sysdeps/i386/fpu/e_expl.S: Likewise.
2718         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
2719         * sysdeps/i386/fpu/e_acosh.S: Likewise.
2720         * sysdeps/i386/fpu/e_pow.S: Likewise.
2721         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
2722         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
2723         * sysdeps/i386/fpu/s_expm1.S: Likewise.
2724         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
2725         * sysdeps/i386/fpu/e_log2.S: Likewise.
2726         * sysdeps/i386/fpu/e_log2l.S: Likewise.
2727         * sysdeps/i386/fpu/e_scalb.S: Likewise.
2728         * sysdeps/i386/fpu/e_powl.S: Likewise.
2729         * sysdeps/i386/fpu/e_log10f.S: Likewise.
2730         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
2731         * sysdeps/i386/fpu/e_logl.S: Likewise.
2732         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
2733         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
2734         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
2735         * sysdeps/i386/fpu/e_log2f.S: Likewise.
2736         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
2737         * sysdeps/i386/fpu/e_log.S: Likewise.
2738         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
2739         * sysdeps/i386/fpu/e_logf.S: Likewise.
2740         * sysdeps/i386/fpu/e_log10l.S: Likewise.
2741         * sysdeps/i386/fpu/e_atanh.S: Likewise.
2742         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
2743         * sysdeps/i386/fpu/e_log10.S: Likewise.
2744         * sysdeps/i386/fpu/s_frexp.S: Likewise.
2745         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
2746         * sysdeps/i386/fpu/s_asinh.S: Likewise.
2747         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
2748         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
2749         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
2750         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
2751         * sysdeps/i386/i686/strtok.S: Likewise.
2752         * sysdeps/i386/i386-mcount.S: Likewise.
2753         * sysdeps/i386/strtok.S: Likewise.
2754         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
2755         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
2756         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
2757         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
2758         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
2759         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
2760         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
2761         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
2762         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
2763         * sysdeps/x86_64/_mcount.S: Likewise.
2764         * sysdeps/x86_64/strtok.S: Likewise.
2765         * sysdeps/sh/_mcount.S: Likewise.
2766
2767 2012-08-01  Roland McGrath  <roland@hack.frob.com>
2768
2769         * libio/iofopen.c: Include <fcntl.h>.
2770         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
2771         (_IO_fopen64, fopen64): Define as aliases.
2772         * libio/iofopen64.c: Include <fcntl.h>.
2773         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
2774         Conditionalize body on this.
2775         * sysdeps/wordsize-64/iofopen.c: File removed.
2776         * sysdeps/wordsize-64/iofopen64.c: File removed.
2777
2778 2012-08-01  Marek Polacek  <polacek@redhat.com>
2779
2780         * libc/Makeconfig: Use elf in place of binfmt-subdir.
2781         Use dlfcn directly instead of a variable.
2782         (binfmt-subdir): Do not define.
2783         (dlfcn): Likewise.
2784
2785 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
2786
2787         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
2788         Remove all definitions.
2789         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
2790         <kernel-features.h>.
2791         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
2792         (miss_F_GETOWN_EX): Remove all definitions.
2793         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
2794         macro definition.
2795         [!__ASSUME_FCNTL64]: Remove conditional code.
2796         [__ASSUME_FCNTL64]: Make code unconditional.
2797         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
2798         <kernel-features.h>.
2799         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
2800         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
2801         (lockf64) [__NR_fcntl64]: Make code unconditional.
2802         (lockf64) [__ASSUME_FCNTL64]: Likewise.
2803
2804         * sysdeps/unix/sysv/linux/kernel-features.h
2805         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
2806         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
2807         Make code unconditional.
2808         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
2809         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
2810         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
2811         [__NR_vfork]: Make code unconditional.
2812         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
2813         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
2814         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
2815         [__NR_vfork]: Make code unconditional.
2816         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
2817         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
2818
2819 2012-08-01  Roland McGrath  <roland@hack.frob.com>
2820
2821         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
2822         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
2823
2824         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
2825         Define mkstemp64 as an alias.
2826         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
2827         Define mkstemps64 as an alias.
2828         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
2829         Define mkostemp64 as an alias.
2830         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
2831         Define mkostemps64 as an alias.
2832         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
2833         Conditionalize body on this.
2834         * misc/mkostemp64.c: Likewise.
2835         * misc/mkostemps64.c: Likewise.
2836         * misc/mkstemps64.c: Likewise.
2837         * sysdeps/wordsize-64/mkstemp64.c: File removed.
2838         * sysdeps/wordsize-64/mkostemp64.c: File removed.
2839         * sysdeps/wordsize-64/mkostemp.c: File removed.
2840         * sysdeps/wordsize-64/mkstemp.c: File removed.
2841         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
2842         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
2843         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
2844         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
2845
2846         [BZ #14138]
2847         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
2848         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
2849         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
2850         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
2851
2852         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
2853         compat_symbol macros from <shlib-compat.h> rather than the underlying
2854         default_symbol_version and symbol_version macros, so that DEFAULT
2855         lines in shlib-versions are respected.
2856         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
2857
2858 2012-08-01  Florian Weimer  <fweimer@redhat.com>
2859
2860         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
2861         Declare with warn_unused_result.
2862         (setgid, setregid, setegid, setresgid): Likewise.
2863         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
2864         Likewise.
2865         * WUR-REPORT: Remove set*id functions.
2866
2867 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
2868
2869         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
2870
2871 2012-07-31  Roland McGrath  <roland@hack.frob.com>
2872
2873         * include/sys/socket.h (__libc_accept, __libc_accept4):
2874         Add attribute_hidden.
2875         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
2876
2877         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
2878         use of PTR_MANGLE.
2879         * inet/getnetgrent_r.c (setup): Likewise.
2880
2881         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
2882
2883 2012-07-31  David S. Miller  <davem@davemloft.net>
2884
2885         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2886
2887 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
2888
2889         [BZ #13629]
2890         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
2891         value between 1.0 and 2.0 and smaller part has absolute value less
2892         than 1.0.
2893         * math/s_clog10.c (__clog10): Likewise.
2894         * math/s_clog10f.c (__clog10f): Likewise.
2895         * math/s_clog10l.c (__clog10l): Likewise.
2896         * math/s_clogf.c (__clogf): Likewise.
2897         * math/s_clogl.c (__clogl): Likewise.
2898         * math/libm-test.inc (clog_test): Add more tests.
2899         (clog10_test): Likewise.
2900         * sysdeps/i386/fpu/libm-test-ulps: Update.
2901         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2902
2903 2012-07-31  Florian Weimer  <fweimer@redhat.com>
2904
2905         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
2906         Exit with zero in case no suitable GID is found, and write a
2907         message to standard error.
2908
2909 2012-07-30  Roland McGrath  <roland@hack.frob.com>
2910
2911         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
2912         rather than to 1.
2913         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
2914         (MAXPATHLEN): Removed.
2915         (NOGROUP, NODEV): New macros.
2916         (setbit, clrbit, isset, isclr): New macros.
2917         (howmany, roundup, powerof2): New macros.
2918         (DEV_BSIZE): New macro.
2919
2920         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
2921         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
2922
2923         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
2924         definition on [!__NO_LONG_DOUBLE_MATH].
2925
2926         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
2927         PTR_MANGLE and PTR_DEMANGLE.
2928
2929         * socket/accept4.c (accept4): Rename to __libc_accept4.
2930         Define accept4 as a weak alias.
2931
2932         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
2933         on [_DIRENT_HAVE_D_TYPE].
2934         * io/ftw.c (ftw_dir): Likewise.
2935
2936         * io/xmknod.c (__xmknod): Don't check PATH for being null.
2937
2938         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
2939
2940         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
2941         Use the BSD numbers rather than the arbitrary ones we had.
2942         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
2943         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
2944         (SIGXCPU, SIGXFSZ): New macros.
2945         (_NSIG): Now 32.
2946
2947         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
2948         initializer on [_LIBC_REENTRANT].
2949
2950         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
2951         definitions inside [_POSIX_MAPPED_FILES].
2952
2953         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
2954
2955         * dirent/opendir.c: Include <fcntl.h>.
2956
2957         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
2958         (__libc_getspecific): Likewise.
2959         (__libc_key_create): Likewise.
2960
2961         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
2962         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
2963         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
2964         (tmpfile64): Define as alias.
2965         * sysdeps/wordsize-64/tmpfile.c: File removed.
2966         * sysdeps/wordsize-64/tmpfile64.c: File removed.
2967         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
2968         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
2969
2970         * stdio-common/vfscanf.c: Include <stdbool.h>.
2971         * nss/makedb.c: Likewise.
2972         * stdio-common/_i18n_number.h: Likewise.
2973         * argp/argp-help.c: Likewise.
2974         * posix/wordexp.c: Likewise.
2975         * sysdeps/posix/spawni.c: Likewise.
2976         * nss/nss_files/files-initgroups.c: Likewise.
2977         * stdio-common/reg-modifier.c: Include <stdlib.h>.
2978         * nss/nss_files/files-initgroups.c: Likewise.
2979         * nss/nss_db/db-netgrp.c: Likewise.
2980         * nss/nss_db/db-initgroups.c: Likewise.
2981         * io/fchmodat.c: Include <sys/stat.h>.
2982
2983         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
2984         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
2985
2986         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
2987         [HAVE_MMAP].
2988
2989         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
2990         Add multiple inclusion protection.
2991
2992 2012-07-27  David S. Miller  <davem@davemloft.net>
2993
2994         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2995
2996 2012-07-27  Gary Benson  <gbenson@redhat.com>
2997
2998         [BZ #14298]
2999         * elf/rtld.c: Include <stap-probe.h>.
3000         (dl_main): Added static probes "init_start" and "init_complete".
3001         * elf/dl-load.c: Include <stap-probe.h>.
3002         (lose): Take new parameter "nsid".
3003         Added static probe "map_failed".
3004         (_dl_map_object_from_fd): Pass namespace id to lose.
3005         Added static probe "map_start".
3006         (open_verify): Pass namespace id to lose.
3007         * elf/dl-open.c: Include <stap-probe.h>.
3008         (dl_open_worker) Added static probes "map_complete", "reloc_start"
3009         and "reloc_complete".
3010         * elf/dl-close.c: Include <stap-probe.h>.
3011         (_dl_close_worker): Added static probes "unmap_start" and
3012         "unmap_complete".
3013         * elf/rtld-debugger-interface.txt: New file documenting the above.
3014
3015 2012-07-26  Roland McGrath  <roland@hack.frob.com>
3016
3017         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
3018         rather than a string variable.
3019         * sunrpc/rpc_main.c (h_output): Likewise.
3020         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
3021
3022 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
3023
3024         * inet/check_native.c: New file.
3025
3026 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
3027
3028         [BZ #13629]
3029         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
3030         if larger part has absolute value 1.0.
3031         * math/s_clog10.c (__clog10): Likewise.
3032         * math/s_clog10f.c (__clog10f): Likewise.
3033         * math/s_clog10l.c (__clog10l): Likewise.
3034         * math/s_clogf.c (__clogf): Likewise.
3035         * math/s_clogl.c (__clogl): Likewise.
3036         * math/libm-test.inc (clog_test): Add more tests.
3037         (clog10_test): Likewise.
3038         * sysdeps/i386/fpu/libm-test-ulps: Update.
3039         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3040
3041         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
3042         (pltexit): Likewise.
3043         (La_regs): Likewise.
3044         (La_retval): Likewise.
3045         (int_retval): Likewise.
3046         Update #error for removed macros to refer only to definitions in
3047         tst-audit.h.
3048         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
3049         macro.
3050         (pltexit): Likewise.
3051         (La_regs): Likewise.
3052         (La_retval): Likewise.
3053         (int_retval): Likewise.
3054         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
3055         macro.
3056         (pltexit): Likewise.
3057         (La_regs): Likewise.
3058         (La_retval): Likewise.
3059         (int_retval): Likewise.
3060         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
3061         macro.
3062         (pltexit): Likewise.
3063         (La_regs): Likewise.
3064         (La_retval): Likewise.
3065         (int_retval): Likewise.
3066         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
3067         macro.
3068         (pltexit): Likewise.
3069         (La_regs): Likewise.
3070         (La_retval): Likewise.
3071         (int_retval): Likewise.
3072         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
3073         macro.
3074         (pltexit): Likewise.
3075         (La_regs): Likewise.
3076         (La_retval): Likewise.
3077         (int_retval): Likewise.
3078         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
3079         macro.
3080         (pltexit): Likewise.
3081         (La_regs): Likewise.
3082         (La_retval): Likewise.
3083         (int_retval): Likewise.
3084         * sysdeps/generic/tst-audit.h: Update comment to refer only to
3085         macro definitions in tst-audit.h.
3086         * sysdeps/i386/tst-audit.h: New file.
3087         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
3088         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
3089         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
3090         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
3091         * sysdeps/sh/tst-audit.h: Likewise.
3092         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
3093         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
3094         * sysdeps/x86_64/tst-audit.h: Likewise.
3095
3096 2012-07-26  Andreas Jaeger  <aj@suse.de>
3097
3098         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
3099         ptrace.
3100
3101         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
3102         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
3103         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
3104         PTRACE_O_MASK.
3105         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
3106         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
3107         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
3108
3109         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
3110         value.
3111
3112         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
3113         _sigsys.
3114         (si_call_addr, si_syscall, si_arch): Define new macro.
3115         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
3116         _sigsys.
3117         (si_call_addr, si_syscall, si_arch): Define new marcro.
3118         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
3119         _sigsys.
3120         (si_call_addr, si_syscall, si_arch): Define new macro.
3121         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
3122         _sigsys.
3123         (si_call_addr, si_syscall, si_arch): Define new macro.
3124
3125 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
3126
3127         [BZ #13717]
3128         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
3129         Change to 2.4.21 where previously 2.4.1.
3130         * sysdeps/unix/sysv/linux/configure: Regenerated.
3131         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
3132         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
3133         Linux kernel version.
3134         (__ASSUME_STD_AUXV): Remove.
3135         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
3136         kernel version.
3137         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
3138         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
3139         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
3140         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
3141         (__ASSUME_NETLINK_SUPPORT): Likewise.
3142         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
3143         (__no_netlink_support): Remove conditional definition.
3144         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
3145         Remove.
3146         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
3147         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
3148         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
3149         (if_nameindex_ioctl): Remove.
3150         (if_nameindex_netlink): Do not handle __no_netlink_support.
3151         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
3152         code.
3153         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
3154         Remove conditional code.
3155         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
3156         code.
3157         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
3158         unconditional.
3159         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
3160         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
3161         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
3162         Remove.
3163         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
3164         [!__ASSUME_STD_AUXV]: Remove conditional code.
3165         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
3166         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
3167         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
3168         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
3169         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
3170         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
3171         code.
3172         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
3173         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
3174         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
3175         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
3176         conditional code.
3177         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
3178         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
3179         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
3180         code.
3181         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
3182         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
3183         conditional code.
3184         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
3185         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
3186         code unconditional.
3187         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3188         conditional code.
3189         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
3190         unconditional.
3191         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3192         conditional code.
3193         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
3194         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
3195         unconditional.
3196         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3197         conditional code.
3198         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
3199         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
3200         code unconditional.
3201         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3202         conditional code.
3203         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
3204         unconditional.
3205         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3206         conditional code.
3207         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
3208         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
3209         code unconditional.
3210         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3211         conditional code.
3212         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
3213         unconditional.
3214         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3215         conditional code.
3216
3217 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
3218
3219         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
3220         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
3221         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
3222         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
3223         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
3224         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
3225         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
3226         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
3227         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
3228         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
3229         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
3230         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
3231         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
3232         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
3233         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
3234         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
3235         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
3236         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
3237         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
3238         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
3239         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
3240         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
3241         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
3242
3243 2012-07-25  Florian Weimer  <fweimer@redhat.com>
3244
3245         * Versions.def: Add GLIBC_2.17.
3246         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
3247         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
3248         Introduce __libc_secure_getenv.
3249         * stdlib/Versions (2.17): Add secure_getenv
3250         (GLIBC_PRIVATE): Add __libc_secure_getenv.
3251         * stdlib/secure-getenv.c: Rename __secure_getenv to
3252         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
3253         symbol __secure_getenv for GLIBC_2.0.
3254         * stdlib/tst-secure-getenv.c: New.
3255         * stdlib/Makefile (tests): Add testcase.
3256         * manual/startup.texi (Environment Access): Document
3257         secure_getenv.
3258         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
3259         __libc_secure_getenv.
3260         * inet/ruserpass.c (ruserpass): Likewise.
3261         * malloc/mtrace.c (mtrace): Likewise.
3262         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
3263         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
3264         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
3265         * sysdeps/posix/tempname.c: Likewise.  Evaluate
3266         HAVE_SECURE_GETENV.
3267         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
3268         __secure_getenv to __libc_secure_getenv.
3269         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
3270         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
3271         Likewise.
3272         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
3273         Likewise.
3274         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
3275         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
3276         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
3277         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
3278         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
3279         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
3280         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
3281
3282 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
3283
3284         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
3285         (struct La_i86_retval): Likewise.
3286         (struct La_x86_64_regs): Likewise.
3287         (struct La_x86_64_retval): Likewise.
3288         (struct La_x32_regs): Likewise.
3289         (struct La_x32_retval): Likewise.
3290         (struct La_ppc32_regs): Likewise.
3291         (struct La_ppc32_retval): Likewise.
3292         (struct La_ppc64_regs): Likewise.
3293         (struct La_ppc64_retval): Likewise.
3294         (struct La_sh_regs): Likewise.
3295         (struct La_sh_retval): Likewise.
3296         (struct La_s390_32_regs): Likewise.
3297         (struct La_s390_32_retval): Likewise.
3298         (struct La_s390_64_regs): Likewise.
3299         (struct La_s390_64_retval): Likewise.
3300         (struct La_sparc32_regs): Likewise.
3301         (struct La_sparc32_retval): Likewise.
3302         (struct La_sparc64_regs): Likewise.
3303         (struct La_sparc64_retval): Likewise.
3304         (struct audit_ifaces): Remove architecture-specific pltenter and
3305         pltexit members.
3306         * sysdeps/i386/ldsodefs.h: New file.
3307         * sysdeps/powerpc/ldsodefs.h: Likewise.
3308         * sysdeps/s390/ldsodefs.h: Likewise.
3309         * sysdeps/sh/ldsodefs.h: Likewise.
3310         * sysdeps/sparc/ldsodefs.h: Likewise.
3311         * sysdeps/x86_64/ldsodefs.h: Likewise.
3312
3313 2012-07-25  Marek Polacek  <polacek@redhat.com>
3314
3315         [BZ #6808]
3316         * math/libm-test.inc (yn_test): Add another test.
3317         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
3318         to ERANGE when the result is +-Inf.
3319         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
3320         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
3321         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
3322         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
3323
3324 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
3325
3326         * conform/data/time.h-data (NULL): Use macro-constant.  Require
3327         equal to 0.
3328         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
3329         clock_t.
3330         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
3331
3332 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
3333
3334         * configure.in <sysdeps resolving>: Correct printing
3335         Implies_before.
3336         * configure: Regenerate.
3337
3338 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
3339
3340         * math/w_ilogb.c: Include <limits.h>.
3341         * math/w_ilogbl.c: Likewise.
3342
3343 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
3344
3345         * manual/lang.texi (__va_copy): Document primarily as ISO C99
3346         va_copy.  Document allowing for unavailable va_copy only as
3347         pre-C99 compatibility.
3348         * manual/string.texi (Copying and Concatenation): Use va_copy
3349         instead of __va_copy in concat example.
3350
3351 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
3352
3353         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
3354         (__sendto): Use create_address_port.  Initialize APORT and deallocate
3355         it if not null.
3356
3357         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
3358         with O_NOLINK passed to __file_name_lookup.
3359
3360         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
3361         with O_NOLINK passed to __file_name_lookup.
3362
3363         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
3364         negative N or less than NGIDS.
3365
3366         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
3367         type to string_t.  Set ERANGE as errno and return it if NAME is not big
3368         enough.  Use memcpy instead of strncpy.
3369
3370 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
3371
3372         * elf/Makefile (check-data): Remove.
3373         (localplt.data): New vpath directive.
3374         ($(objpfx)check-localplt.out): Use localplt.data from vpath
3375         instead of $(check-data).
3376         * scripts/data/localplt-generic.data: Move to ...
3377         * sysdeps/generic/localplt.data: ... here.
3378         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
3379         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
3380         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
3381         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
3382         ... here.
3383         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
3384         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
3385         ... here.
3386         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
3387         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
3388         ... here.
3389         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
3390         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
3391         ... here.
3392         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
3393         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
3394         ... here.
3395         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
3396         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
3397         ... here.
3398
3399 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3400
3401         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
3402         PPC32 and PPC64 files.
3403         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
3404         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
3405
3406 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3407
3408         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
3409         __makecontext_ret to ...
3410         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
3411         ... here and call exit if uc_link is NULL.  New file.
3412         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
3413         __makecontext_ret.S.
3414         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
3415         __makecontext_ret to ...
3416         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
3417         ... here and call exit if uc_link is NULL.  New file.
3418         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
3419         __makecontext_ret.S.
3420
3421 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3422
3423         * elf/elf.h (R_390_IRELATIVE): New definition.
3424         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
3425         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
3426         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
3427         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
3428         (elf_machine_lazy_rel): Likewise.
3429         * sysdeps/s390/dl-irel.h: New file.
3430         * sysdeps/s390/s390-64/memcpy.S: New asm code.
3431         * sysdeps/s390/s390-64/memset.S: New asm code.
3432         * sysdeps/s390/s390-64/memcmp.S: New asm code.
3433         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
3434         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
3435         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
3436         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
3437         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
3438         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
3439         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
3440         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
3441         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
3442         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
3443         * sysdeps/s390/s390-32/memcpy.S: New asm code.
3444         * sysdeps/s390/s390-32/memset.S: New asm code.
3445         * sysdeps/s390/s390-32/memcmp.S: New asm code.
3446
3447 2012-07-17  Marek Polacek  <polacek@redhat.com>
3448
3449         [BZ #14349]
3450         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
3451         * sysdeps/s390/s390-64/configure.in: Likewise.
3452         * sysdeps/sparc/configure.in: Likewise.
3453         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
3454         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
3455         * sysdeps/i386/configure.in: Likewise.
3456         * sysdeps/x86_64/configure.in: Likewise.
3457         * sysdeps/sh/configure.in: Likewise.
3458         * sysdeps/s390/s390-32/configure: Regenerated.
3459         * sysdeps/s390/s390-64/configure: Likewise.
3460         * sysdeps/x86_64/configure: Likewise.
3461         * sysdeps/sh/configure: Likewise.
3462         * sysdeps/powerpc/powerpc64/configure: Likewise.
3463         * sysdeps/powerpc/powerpc32/configure: Likewise.
3464         * sysdeps/sparc/configure: Likwise.
3465         * sysdeps/i386/configure: Likewise.
3466
3467         * elf/dl-open.c: Comment fixes.
3468
3469 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
3470
3471         * Makefile [CXX] (check-data): Remove.
3472         [CXX] (c++-types.data): New vpath directive.
3473         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
3474         vpath.  Do not allow for C++ type data being missing.
3475         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
3476         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
3477         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
3478         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
3479         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
3480         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
3481         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
3482         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
3483         ... here.
3484         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
3485         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
3486         ... here.
3487         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
3488         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
3489         ... here.
3490         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
3491         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
3492         ... here.
3493         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
3494         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
3495         ... here.
3496         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
3497         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
3498         ... here.
3499         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
3500         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
3501         ... here.
3502         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
3503         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
3504
3505         * elf/tls-macros.h (TLS_LE): Move architecture-specific
3506         definitions to architecture-specific files.
3507         (TLS_IE): Likewise.
3508         (TLS_LD): Likewise.
3509         (TLS_GD): Likewise.
3510         * sysdeps/i386/tls-macros.h: New file.
3511         * sysdeps/powerpc/tls-macros.h: Likewise.
3512         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
3513         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
3514         * sysdeps/sh/tls-macros.h: Likewise.
3515         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
3516         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
3517         * sysdeps/x86_64/tls-macros.h: Likewise.
3518
3519 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
3520
3521         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
3522         zero value for regular exit case.
3523
3524         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
3525         (__start_context): Preserve zero value for regular exit case.
3526
3527 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
3528             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3529
3530         * manual/setjmp.texi (setcontext): Clarify normal process
3531         termination when uc_link is the null pointer.
3532         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
3533         exit call.
3534
3535 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
3536
3537         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
3538         preprocessor.  Test for each exception mask separately.
3539
3540 2012-07-16  Andreas Jaeger  <aj@suse.de>
3541
3542         * po/ru.po: Update from translation team.
3543
3544 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
3545
3546         * conform/data/string.h-data (NULL): Use macro-constant.  Require
3547         equal to 0.
3548         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
3549         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
3550         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
3551         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
3552         [ISO || ISO99 || ISO11] (*_t): Do not allow.
3553
3554 2012-07-13  Andreas Jaeger  <aj@suse.de>
3555
3556         * po/fr.po: Update from translation team.
3557
3558 2012-07-12  Marek Polacek  <polacek@redhat.com>
3559
3560         [BZ #14173]
3561         * math/libm-test.inc (yn_test): Add test for BZ #14173.
3562         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
3563         loop condition.
3564
3565 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
3566
3567         [BZ #13717]
3568         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
3569         Change to 2.4.1 where previously 2.4.0.
3570         * sysdeps/unix/sysv/linux/configure: Regenerated.
3571         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
3572         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
3573         version.
3574         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
3575         (__ASSUME_AT_CLKTCK): Remove.
3576         (__ASSUME_AT_PAGESIZE): Likewise.
3577         (__ASSUME_AT_XID): Likewise.
3578         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
3579         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
3580         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
3581         unconditionally.
3582         (HAVE_AUX_PAGESIZE): Likewise.
3583         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
3584         [__ASSUME_AT_CLKTCK]: Make code unconditional.
3585         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
3586
3587 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
3588
3589         [BZ #14307]
3590         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
3591         the temporary buffer used to invoke __gethostbyname2_r,
3592         __gethostbyaddr_r and gethostbyname4_r to make room for struct
3593         host_data / struct gaih_addrtuple.
3594         * resolv/nss_dns/dns-host.c (global scope): Move definition of
3595         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
3596         header file nss/nsswitch.h.
3597         * nss/nsswitch.h (global scope): Add definition of implementation
3598         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
3599         resolv/nss_dns/dns-host.c).
3600
3601 2012-07-11  Andreas Jaeger  <aj@suse.de>
3602
3603         * po/fr.po: Update from translation team.
3604
3605         * po/sv.po: Update from translation team
3606         * po/fr.po: Another update from translation team.
3607
3608 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3609
3610         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
3611         for subnormals or multiply small sinh result by itself.
3612         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
3613         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3614
3615 2012-07-11  David S. Miller  <davem@davemloft.net>
3616
3617         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3618
3619 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
3620
3621         [BZ #14347]
3622         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
3623         (INTERNAL_MARK): Shift it here.
3624
3625 2012-07-10  Marek Polacek  <polacek@redhat.com>
3626
3627         [BZ #14151]
3628         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
3629         libc_cv_asm_global_directive with .globl.
3630         * configure: Regenerated.
3631         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
3632         with .globl.
3633         * sysdeps/i386/configure: Regenerated.
3634         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
3635         with .globl.
3636         * sysdeps/x86_64/configure: Regenerated.
3637         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
3638         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
3639         * elf/tst-unique2mod2.c: Likewise.
3640         * elf/tst-unique2mod1.c: Likewise.
3641         * elf/tst-unique1mod2.c: Likewise.
3642         * elf/tst-unique1mod1.c: Likewise.
3643         * sysdeps/s390/s390-32/sysdep.h: Likewise.
3644         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
3645         * sysdeps/s390/s390-64/sysdep.h: Likewise.
3646         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
3647         * sysdeps/mach/sysdep.h: Likewise.
3648         * sysdeps/i386/sysdep.h: Likewise.
3649         * sysdeps/i386/i386-mcount.S: Likewise.
3650         * sysdeps/x86_64/_mcount.S: Likewise.
3651         * sysdeps/x86_64/sysdep.h: Likewise.
3652         * sysdeps/sh/_mcount.S: Likewise.
3653         * sysdeps/sh/sysdep.h: Likewise.
3654         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
3655         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
3656         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
3657         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
3658         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
3659         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
3660         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
3661         * locale/localeinfo.h: Likewise.
3662         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
3663         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
3664
3665 2012-07-09  Roland McGrath  <roland@hack.frob.com>
3666
3667         [BZ #14336]
3668         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
3669         system".
3670         * manual/message.texi (The Uniforum approach): Likewise.
3671         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
3672         (glibc iconv Implementation): Likewise.
3673
3674 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
3675
3676         [BZ #14337]
3677         * math/s_clog.c (__clog): Avoid scaling a value down where that
3678         could result in underflow.
3679         * math/s_clog10.c (__clog10): Likewise.
3680         * math/s_clog10f.c (__clog10f): Likewise.
3681         * math/s_clog10l.c (__clog10l): Likewise.
3682         * math/s_clogf.c (__clogf): Likewise.
3683         * math/s_clogl.c (__clogl): Likewise.
3684         * math/libm-test.inc (clog_test): Add more tests.
3685         (clog10_test): Likewise.
3686         * sysdeps/i386/fpu/libm-test-ulps: Update.
3687         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3688
3689 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
3690
3691         [BZ #14283]
3692         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
3693         by 7 not 8 to examine high bit of fractional part.
3694
3695         [BZ #14042]
3696         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
3697         for call to __mcount_internal.
3698         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
3699         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
3700         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
3701
3702 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
3703
3704         [BZ #14154]
3705         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
3706         approximation for values within 0x1p-13f of an odd multiple of
3707         pi/4.
3708         * math/libm-test.inc (tan_test): Do not allow spurious underflow
3709         exception.  Add more tests.
3710         * sysdeps/i386/fpu/libm-test-ulps: Update.
3711
3712         [BZ #6778]
3713         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
3714         inputs and return -1 for them.  Do not check for +Inf in case not
3715         reachable for +Inf.
3716         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
3717         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
3718         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
3719         and return -1 for them.  Do not check for +Inf in case not
3720         reachable for +Inf.
3721         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
3722         define.
3723         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
3724         and return -1 for them.  Do not check for +Inf in case not
3725         reachable for +Inf.
3726         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
3727         spurious underflow.
3728         * sysdeps/i386/fpu/libm-test-ulps: Update.
3729         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3730
3731 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
3732
3733         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
3734
3735 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
3736
3737         [BZ #14157]
3738         [BZ #14331]
3739         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
3740         could result in spurious underflow.  Scale down values above
3741         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
3742         * math/s_csqrtf.c (__csqrtf): Likewise.
3743         * math/s_csqrtl.c (__csqrtl): Likewise.
3744         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
3745         spurious underflow.
3746         * sysdeps/i386/fpu/libm-test-ulps: Update.
3747         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3748
3749 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
3750
3751         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
3752         xopen-msg.sed.
3753         * catgets/xopen-msg.awk: New file.
3754         * catgets/xopen-msg.sed: Removed.
3755
3756         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
3757         po2text.sed.
3758         * intl/po2test.awk: New file.
3759         * intl/po2test.sed: Removed.
3760
3761 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
3762
3763         [BZ #14328]
3764         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
3765         or multiply small sinh result by itself.
3766         * math/s_ctanf.c (__ctanf): Likewise.
3767         * math/s_ctanh.c (__ctanh): Likewise.
3768         * math/s_ctanhf.c (__ctanhf): Likewise.
3769         * math/s_ctanhl.c (__ctanhl): Likewise.
3770         * math/s_ctanl.c (__ctanl): Likewise.
3771         * math/libm-test.inc (ctan_test_tonearest): New function.
3772         (ctan_test_towardzero): Likewise.
3773         (ctan_test_downward): Likewise.
3774         (ctan_test_upward): Likewise.
3775         (ctanh_test_tonearest): Likewise.
3776         (ctanh_test_towardzero): Likewise.
3777         (ctanh_test_downward): Likewise.
3778         (ctanh_test_upward): Likewise.
3779         (main): Call these new functions.
3780         * sysdeps/i386/fpu/libm-test-ulps: Update.
3781         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3782
3783 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
3784
3785         * .gitignore: Delete /ports entry.
3786
3787 2012-07-03  Andreas Jaeger  <aj@suse.de>
3788
3789         * po/bg.po: Update from translation team.
3790         * po/cs.po: Likewise.
3791         * po/de.po: Likewise.
3792         * po/hr.po: Likewise.
3793         * po/nl.pl: Likewise.
3794         * po/pl.po: Likewise.
3795         * po/vi.po: Likewise.
3796
3797 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
3798
3799         * Makeconfig [!+link] (+link-before-libc): New variable.
3800         [!+link] (+link-after-libc): Likewise.
3801         [!+link] (+link-tests): Likewise.
3802         [!+link] (+link): Define in terms of $(+link-before-libc) and
3803         $(+link-after-libc).
3804         [!+link-static] (+link-static-before-libc): New variable.
3805         [!+link-static] (+link-static-after-libc): Likewise.
3806         [!+link-static] (+link-static-tests): Likewise.
3807         [!+link-static] (+link-static): Define in terms of
3808         $(+link-static-before-libc) and $(+link-static-after-libc).
3809         [build-shared] (link-libc-before-gnulib): New variable.
3810         [build-shared] (link-libc-tests): Likewise.
3811         [build-shared] (link-libc): Define in terms of
3812         $(link-libc-before-gnulib).
3813         [!build-shared] (link-libc-tests): New variable.
3814         (link-libc-static-tests): New variable.
3815         [!gnulib] (gnulib-arch): New variable.
3816         [!gnulib] (gnulib-tests): Likewise.
3817         [!gnulib] (static-gnulib-arch): Likewise.
3818         [!gnulib] (static-gnulib-tests): Likewise.
3819         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
3820         Define with "=" instead of ":=".
3821         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
3822         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
3823         * Rules (binaries-all-notests): New variable.
3824         (binaries-all-tests): Likewise.
3825         (binaries-static-notests): Likewise.
3826         (binaries-static-tests): Likewise.
3827         (binaries-all): Define using $(binaries-all-notests) and
3828         $(binaries-all-tests).
3829         (binaries-static): Define using $(binaries-static-notests) and
3830         $(binaries-static-tests).
3831         (binaries-shared-tests): New variable.
3832         (binaries-shared-notests): Likewise.
3833         (binaries-shared): Remove variable.
3834         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
3835         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
3836         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
3837         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
3838         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
3839         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
3840         * elf/Makefile (sln-modules): New variable.
3841         (extra-objs): Add $(sln-modules:=.o).
3842         (ldconfig-modules): Add static-stubs.
3843         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
3844         * elf/static-stubs.c: New file.
3845
3846         [BZ #14283]
3847         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
3848         by 7 not 8 to examine high bit of fractional part.  Use volatile
3849         variables when splitting into final array of floats if
3850         __FLT_EVAL_METHOD__ != 0.
3851         * math/libm-test.inc (cos_test): Add another test.
3852         (sin_test): Likewise.
3853         * sysdeps/i386/fpu/libm-test-ulps: Update.
3854
3855         [BZ #14273]
3856         * math/libm-test.inc (cosh_test): Add more tests.
3857
3858         * version.h (RELEASE): Set to "development".
3859         (VERSION): Set to "2.16.90".
3860
3861 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
3862
3863         * NEWS: Update copyright. Remove last-updated date.
3864         Mention math library bug fixes and timezone data changes.
3865         * README: Mention GNU/Hurd, x32, and HPPA support status.
3866
3867 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
3868
3869         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
3870
3871 2012-06-27  Andreas Jaeger  <aj@suse.de>
3872
3873         * manual/contrib.texi (Contributors): Add Samuel Thibault.
3874
3875 2012-06-25  Andreas Jaeger  <aj@suse.de>
3876
3877         * sysdeps/s390/fpu/libm-test-ulps: Update.
3878
3879 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
3880             Thomas Schwinge  <thomas@codesourcery.com>
3881
3882         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
3883         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
3884         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
3885         fanotify_mark.
3886
3887 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
3888
3889         * sysdeps/mach/start.c: Remove file.
3890         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
3891         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
3892         * sysdeps/sh/init-first.c: Likewise.
3893
3894         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
3895         registers for frame unwinding purposes, add CFI directives.
3896         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
3897         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
3898         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
3899         Likewise.
3900
3901         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
3902         __fortify_fail returning.
3903         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
3904
3905         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
3906         sysdeps/sh/____longjmp_chk.S.
3907         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
3908         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
3909         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
3910         (gen-as-const-headers): Append sigaltstack-offsets.sym.
3911
3912         * sysdeps/sh/abort-instr.h: New file.
3913         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
3914         process in case exit returns.
3915
3916         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
3917         initialize the GOT register before use.
3918
3919         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
3920         calculation of ARGC > 4.
3921
3922         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
3923         meaningful names to some local labels.
3924
3925 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
3926             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3927
3928         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
3929         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
3930         (__arch_compare_and_exchange_val_16_acq): Likewise.
3931         (__arch_compare_and_exchange_val_32_acq): Likewise.
3932         (atomic_exchange_and_add): Fix gUSA sequence.
3933         (atomic_add): Likewise.
3934         (atomic_add_negative): Likewise.
3935         (atomic_add_zero): Likewise.
3936         (atomic_bit_test_set): Likewise.
3937
3938 2012-06-22  Andreas Schwab  <schwab@redhat.com>
3939
3940         [BZ #13579]
3941         * include/link.h (struct link_map): Add l_free_initfini.
3942         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
3943         l_initfini.
3944         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
3945         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
3946         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
3947         set.
3948
3949 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
3950
3951         * configure.in: Use AC_LANG_SOURCE.
3952         * configure: Regenerate.
3953
3954 2012-06-22  Roland McGrath  <roland@hack.frob.com>
3955
3956         * configure.in (libc_cv_localstatedir): New substituted variable.
3957         * configure: Regenerated.
3958         * config.make.in (localstatedir): New variable, substituted from
3959         libc_cv_localstatedir.
3960         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
3961         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
3962         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
3963         * sysdeps/gnu/configure: Regenerated.
3964
3965 2012-06-21  Jeff Law  <law@redhat.com>
3966
3967         [BZ #14277]
3968         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
3969         free.  Simplify list management for _LIBC case.
3970
3971 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
3972
3973         [BZ #14273]
3974         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
3975         Clear sign bit of 64-bit integer value before comparing against
3976         overflow value.
3977
3978         * sysdeps/mach/configure: Regenerated.
3979
3980 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
3981
3982         [BZ #14278]
3983         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
3984
3985 2012-06-21  Jeff Law  <law@redhat.com>
3986
3987         [BZ #13882]
3988         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
3989         uint16_t for elements in the "seen" array to avoid char overflows.
3990         * elf/dl-fini.c (_dl_sort_fini): Likewise.
3991         * elf/dl-open.c (dl_open_worker): Likewise.
3992
3993 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
3994
3995         * scripts/list-sources.sh: Scan PORTS for translations.
3996         * po/libc.pot: Regenerated.
3997
3998 2012-06-21  Andreas Jaeger  <aj@suse.de>
3999
4000         [BZ #12194]
4001         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
4002         warning.
4003         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
4004         * bits/byteswap-16.h (__bswap_16): Likewise.
4005         * bits/byteswap.h (__bswap_constant_16): Likewise.
4006
4007 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
4008
4009         [BZ #14117]
4010         * sysdeps/i386/fpu_control.h: Removed.
4011         * sysdeps/x86_64/fpu_control.h: Moved to ...
4012         * sysdeps/x86/fpu_control.h: Here.
4013
4014         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
4015         (_FPU_SETCW): Likewise.
4016
4017 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
4018
4019         [BZ #14117]
4020         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
4021         * sysdeps/x86/fpu/bits/mathinline.h: This.
4022         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
4023
4024         [BZ #14050]
4025         [BZ #14117]
4026         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
4027         functions if __x86_64__ is defined.
4028
4029 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
4030
4031         * string/endian.h: Add !__ASSEMBLER__ condition for including
4032         conversion interfaces.
4033
4034 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
4035
4036         [BZ #14241]
4037         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
4038         of ABS(x) in calculating zero to negative powers other than odd
4039         integers.
4040         * math/libm-test.inc (pow_test): Add more tests.
4041
4042 2012-06-15  Andreas Jaeger  <aj@suse.de>
4043
4044         * manual/contrib.texi (Contributors): Update entry of Liubov
4045         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
4046         Machado Filho.
4047
4048 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
4049
4050         * string/string.h: Add __wur to GNU version of strerror_r.
4051
4052 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
4053
4054         [BZ #14229]
4055         * string/Makefile (tests): Add tst-strtok_r.
4056         * string/tst-strtok_r.c: New file.
4057         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
4058         RAX_LP/RDX_LP on SAVE_PTR.
4059
4060 2012-06-14  Roland McGrath  <roland@hack.frob.com>
4061
4062         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
4063
4064 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
4065
4066         * libm_test.inc (csqrt_test): Allow more spurious underflow
4067         exceptions.
4068         (j0_test): Likewise.
4069         (j1_test): Likewise.
4070         (y0_test): Likewise.
4071         (y1_test): Likewise.
4072
4073 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
4074
4075         * po/Makefile (libc.pot): Use UTF-8 charset.
4076
4077 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
4078
4079         [BZ #14210]
4080         Suppress sign-conversion warning from FD_SET.
4081         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
4082         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
4083         not unsigned long int.
4084         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
4085
4086 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
4087
4088         [BZ #14050]
4089         [BZ #14117]
4090         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
4091         __extern_always_inline instead of __extern_inline.
4092         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
4093         (__signbit): Likewise.
4094         (__signbitl): Support C++ namespace.
4095         (lrintf): New inline function.
4096         (lrint): Likewise.
4097         (llrintf): Likewise.
4098         (llrint): Likewise.
4099         (fmaxf): Likewise.
4100         (fmax): Likewise.
4101         (fminf): Likewise.
4102         (fmin): Likewise.
4103         (rint): Likewise.
4104         (rintf): Likewise.
4105         (ceil): Likewise.
4106         (ceilf): Likewise.
4107         (floor): Likewise.
4108         (floorf): Likewise.
4109         (nearbyint): Likewise.
4110         (nearbyintf): Likewise.
4111
4112 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
4113
4114         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
4115         non-default versions.
4116
4117 2012-06-11  Roland McGrath  <roland@hack.frob.com>
4118
4119         [BZ #14218]
4120         * manual/argp.texi (Argp): Reword argp_parse description slightly.
4121
4122 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
4123
4124         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
4125         (FE_UPWARD, FE_DOWNWARD): Don't define.
4126         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
4127         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
4128
4129         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
4130         reading it.
4131         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
4132         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
4133
4134 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4135
4136         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
4137         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
4138         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
4139         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
4140
4141 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
4142
4143         [BZ #14117]
4144         * sysdeps/i386/fpu/bits/fenv.h: Removed.
4145         * sysdeps/i386/fpu/Implies: New file.
4146         * sysdeps/x86_64/fpu/Implies: Likewise.
4147         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
4148         * sysdeps/x86/fpu/bits/fenv.h: This.
4149
4150         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
4151         __SSE_MATH__.
4152
4153 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
4154
4155         [BZ #14134]
4156         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
4157         character 0xffff that matches the last element of the
4158         conversion table.
4159
4160 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4161
4162         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
4163         fmodl commit.
4164
4165 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4166
4167         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
4168         values higher than 25.6283.
4169
4170 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4171
4172         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
4173         subnormal exponent extraction and add some __builtin_expect.
4174         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
4175         Fix for subnormal mantissa calculation.
4176
4177 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
4178
4179         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
4180         cpu2 is -1 and errno is not ENOSYS.
4181
4182 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
4183
4184         [BZ #14117]
4185         * sysdeps/i386/i486/bits/string.h: Renamed to ...
4186         * sysdeps/x86/bits/string.h: This.
4187         * sysdeps/x86_64/bits/string.h: Removed.
4188
4189         * sysdeps/i386/i486/bits/string.h: Define inline functions only
4190         if not compiling for x86-64, but compiling for >= i486.
4191
4192         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
4193         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
4194
4195         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
4196         New macro from Linux kernel 3.4.0.
4197         (FP_XSTATE_MAGIC2): Likewise.
4198         (FP_XSTATE_MAGIC2_SIZE): Likewise.
4199         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
4200         (struct _fpx_sw_bytes): New struct.
4201         (struct _xsave_hdr): Likewise.
4202         (struct _ymmh_state): Likewise.
4203         (struct _xstate): Likewise.
4204
4205         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
4206         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
4207         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
4208         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
4209         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
4210         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
4211
4212         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
4213         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
4214         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
4215         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
4216         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
4217         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
4218
4219 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
4220
4221         [BZ #13743]
4222         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
4223         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
4224         (sysdep_headers): Include sys/platform/ppc.h.
4225         * sysdeps/powerpc/test-gettimebase.c: Test for
4226         __ppc_get_timebase() to catch future ISA opcode/insn changes.
4227         * manual/Makefile (appendices): Include platform.texi.
4228         * manual/contrib.texi (Contributors): Update @node pointers.
4229         * manual/maint.texi (Maintenance): Likewise.
4230         (Platform): New node.
4231         * manual/platform.texi: New file.  Document the new features.
4232
4233 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
4234             Jakub Jelinek  <jakub@redhat.com>
4235
4236         [BZ #14188]
4237         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
4238         where __builtin_expect is unavailable.
4239
4240 2012-06-03  David S. Miller  <davem@davemloft.net>
4241
4242         * stdlib/longlong.h: Updated from GCC.
4243
4244 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
4245
4246         [BZ #14042]
4247         * sysdeps/powerpc/powerpc32/mcount.c: New file.
4248         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
4249         __mcount_internal.
4250         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
4251         (GLIBC_2.16): Likewise.
4252
4253 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
4254
4255         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
4256
4257 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
4258
4259         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
4260         (default-abi): New variable.
4261         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
4262         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
4263         variable.
4264         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
4265         Likewise.
4266         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
4267         Likewise.
4268         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
4269         Likewise.
4270
4271         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
4272         definition.  Document in comment.
4273
4274 2012-06-01  David S. Miller  <davem@davemloft.net>
4275
4276         * stdlib/longlong.h: Updated from GCC.
4277
4278 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
4279
4280         [BZ #14117]
4281         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
4282         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
4283         sys/debugreg.h sys/io.h here.
4284         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
4285         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
4286         sys/io.h.
4287         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
4288         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
4289         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
4290         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
4291         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
4292         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
4293
4294         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
4295         Define only if __x86_64__ is defined.
4296
4297 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
4298
4299         [BZ #14048]
4300         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
4301         Use int64_t for variable i.
4302         * math/libm-test.inc (fmod_test): Add more tests.
4303
4304         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
4305         z computation is not scheduled after fetestexcept.
4306         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
4307         Use math_force_eval instead of asm to ensure calculation scheduled
4308         before exception test.
4309         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
4310         Ensure a1 + u.d computation is not scheduled after fetestexcept.
4311
4312 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
4313
4314         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
4315         computation is not scheduled after fetestexcept.
4316
4317 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
4318
4319         [BZ #14117]
4320         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
4321         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
4322
4323 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4324
4325         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
4326         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
4327
4328 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
4329
4330         [BZ #14117]
4331         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
4332         <bits/wordsize.h>.
4333         (__WCHAR_MIN): Support __WORDSIZE == 64.
4334         (__WCHAR_MAX): Likewise.
4335
4336         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
4337         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
4338
4339         [BZ #14183]
4340         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
4341         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
4342
4343         [BZ #14117]
4344         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
4345         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
4346
4347         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
4348         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
4349
4350         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
4351         Defined to 1 if __x86_64__ isn't defined.
4352         (_STAT_VER_LINUX_OLD): New.
4353         (st_atime): Remove duplicate.
4354         (st_mtime): Likewise.
4355         (st_ctime): Likewise.
4356
4357 2012-05-31  David S. Miller  <davem@davemloft.net>
4358
4359         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
4360         entries.
4361
4362 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
4363
4364         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
4365         gen-libm-test.pl.
4366
4367         [BZ #14132]
4368         * elf/dl-reloc.c: Include <_itoa.h>.
4369         (_dl_reloc_bad_type): Remove use of INTUSE.
4370         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
4371         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
4372         * stdio-common/psiginfo.c (psiginfo): Likewise.
4373         * stdio-common/psignal.c (psignal): Likewise.
4374         * string/strsignal.c (strsignal): Likewise.
4375         * include/signal.h (_sys_siglist): Declare hidden proto.
4376         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
4377         INTVARDEF with libc_hidden_data_def.
4378         * stdio-common/itoa-udigits.c: Likewise.
4379         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
4380         (_itoa_lower_digits_internal): Remove declaration.
4381         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
4382         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
4383         (_sys_sigabbrev_internal): Remove aliases.
4384         (_sys_siglist): Define hidden alias.
4385
4386 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
4387
4388         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4389         bits/sysctl.h.
4390
4391 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
4392
4393         [BZ #14117]
4394         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
4395         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
4396
4397         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
4398         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
4399         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
4400         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
4401         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
4402         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
4403
4404         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
4405         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
4406         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
4407
4408         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
4409         with __addr.
4410         (insw): Likewise.
4411         (insl): Likewise.
4412         (outsb): Likewise.
4413         (outsw): Likewise.
4414         (outsl): Likewise.
4415
4416         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
4417         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
4418         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
4419
4420         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
4421         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
4422         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
4423         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
4424         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
4425         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
4426
4427         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
4428         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
4429
4430         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
4431         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
4432
4433         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
4434         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
4435         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
4436
4437         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
4438         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
4439         to ...
4440         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
4441
4442         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
4443         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
4444         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
4445
4446         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
4447         for x86-64.
4448         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
4449
4450 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
4451
4452         * math/math.h (M_El): Use two more decimal places.
4453         (M_LOG2El): Likewise.
4454         (M_LOG10El): Likewise.
4455         (M_LN2l): Likewise.
4456         (M_LN10l): Likewise.
4457         (M_PIl): Likewise.
4458         (M_PI_2l): Likewise.
4459         (M_PI_4l): Likewise.
4460         (M_1_PIl): Likewise.
4461         (M_2_PIl): Likewise.
4462         (M_2_SQRTPIl): Likewise.
4463         (M_SQRT2l): Likewise.
4464         (M_SQRT1_2l): Likewise.
4465
4466 2012-05-31  David S. Miller  <davem@davemloft.net>
4467
4468         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
4469         values between float registers.
4470         * sysdeps/sparc/sparc64/memset.S: Likewise.
4471         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
4472
4473 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
4474
4475         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
4476         -D_FORTIFY_SOURCE=1.
4477         (CPPFLAGS-tst-longjmp_chk.c): Define.
4478         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
4479         (CPPFLAGS-tst-longjmp_chk2.c): Define.
4480         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
4481         CFLAGS-tst-wchar-h.c.
4482
4483 2012-05-31  Marek Polacek  <polacek@redhat.com>
4484
4485         [BZ #14132]
4486         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
4487         __endmntent_internal): Remove declaration.
4488         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
4489         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
4490         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
4491
4492 2012-05-30  David S. Miller  <davem@davemloft.net>
4493
4494         * sysdeps/sparc/sparc32/soft-fp/q_util.c
4495         (___Q_simulate_exceptions): Use real FP ops rather than writing
4496         into the %fsr.
4497         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
4498         Likewise.
4499
4500 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
4501
4502         [BZ #14117]
4503         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
4504         * sysdeps/x86/bits/xtitypes.h: This.
4505
4506         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
4507         * sysdeps/x86/bits/wordsize.h: This.
4508
4509         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
4510         * sysdeps/x86/bits/huge_vall.h: This.
4511
4512         * sysdeps/i386/bits/select.h: Removed.
4513         * sysdeps/x86_64/bits/select.h: Renamed to ...
4514         * sysdeps/x86/bits/select.h: This.
4515
4516         * sysdeps/i386/bits/setjmp.h: Removed.
4517         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
4518         * sysdeps/x86/bits/setjmp.h: This.
4519
4520         * sysdeps/i386/bits/mathdef.h: Removed.
4521         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
4522         * sysdeps/x86/bits/mathdef.h: This.
4523
4524 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
4525
4526         [BZ #14132]
4527         * include/sys/socket.h (__connect_internal)
4528         (__libc_sa_len_internal): Remove declaration.
4529         (__connect, __libc_sa_len): Declare hidden_proto.
4530         (SA_LEN): Remove use of INTUSE.
4531         * socket/connect.c: Add libc_hidden_def.
4532         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
4533         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
4534         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
4535         alias.
4536         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
4537         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
4538         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
4539         of adding _internal alias.
4540
4541 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
4542
4543         [BZ #14117]
4544         * sysdeps/i386/bits/link.h: Removed.
4545         * sysdeps/i386/bits/linkmap.h: Likewise.
4546         * sysdeps/x86_64/bits/link.h: Renamed to ...
4547         * sysdeps/x86/bits/link.h: This.
4548         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
4549         * sysdeps/x86/bits/linkmap.h: This.
4550
4551         * sysdeps/i386/bits/endian.h: Removed.
4552         * sysdeps/x86_64/bits/endian.h: Renamed to ...
4553         * sysdeps/x86/bits/endian.h: This.
4554
4555         * sysdeps/i386/bits/byteswap.h: Removed.
4556         * sysdeps/i386/bits/byteswap-16.h: Likewise.
4557         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
4558         * sysdeps/x86/bits/byteswap.h: This.
4559         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
4560         * sysdeps/x86/bits/byteswap-16.h: This.
4561         * sysdeps/i386/Implies: Add x86.
4562         * sysdeps/x86_64/Implies: Likewise.
4563
4564 2012-05-30  David S. Miller  <davem@davemloft.net>
4565
4566         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
4567         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
4568         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
4569         (FP_TRAPPING_EXCEPTIONS): Define.
4570         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
4571         (FP_TRAPPING_EXCEPTIONS): Define.
4572         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
4573         subnormals only when inexact has been signalled or underflow
4574         exceptions are enabled.
4575         (_FP_PACK_CANONICAL): Likewise.
4576
4577 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
4578
4579         [BZ #14183]
4580         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
4581         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
4582
4583 2012-05-30  Richard Henderson  <rth@twiddle.net>
4584
4585         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
4586         with #ifndef NOT_IN_libc.
4587
4588         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
4589         marked to avoid plt entry.
4590
4591 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
4592
4593         [BZ #14112]
4594         * Makeconfig (default-abi): New macro.
4595         (abi-includes): Likewise.
4596         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
4597         $(abi-$(default-abi)-lib-soname) for soname if defined.
4598         ($(common-objpfx)gnu/lib-names.stmp): Generate from
4599         abi-variants.
4600         * Makefile (installed-stubs): Likewise.
4601         * include/stubs-biarch.h: Removed.
4602         * scripts/lib-names.awk: Only handle one library at a time.
4603         * scripts/soversions.awk: Remove WORDSIZE support.
4604         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
4605         entries.
4606         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
4607         Removed.
4608         (syscall-list-default-condition): Likewise.
4609         (syscall-list-default-condition): Likewise.
4610         (syscall-list-includes): Likewise.
4611         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
4612         syscall-list-* with abi-*.  Handle undefined abi-variants.
4613         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
4614         * sysdeps/unix/sysv/linux/i386/Implies: New file.
4615         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
4616         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
4617         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
4618         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
4619         Removed.
4620         (syscall-list-32-options): Likewise.
4621         (syscall-list-32-condition): Likewise.
4622         (syscall-list-64-options): Likewise.
4623         (syscall-list-64-condition): Likewise.
4624         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
4625         macro.
4626         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
4627         Renamed to ...
4628         (abi-*): This.
4629         (abi-64-ld-soname): New macro.
4630         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
4631         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
4632         Renamed to ...
4633         (abi-*): This.
4634         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
4635         * sysdeps/x86_64/x32/shlib-versions: Likewise.
4636
4637 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
4638
4639         * sysdeps/unix/sysv/linux/kernel-features.h
4640         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
4641         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
4642         include <kernel-features.h>.
4643         [!__NR_ftruncate64]: Remove conditional code.
4644         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4645         [__NR_ftruncate64]: Make code unconditional.
4646         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4647         * sysdeps/unix/sysv/linux/truncate64.c: Do not
4648         include <kernel-features.h>.
4649         [!__NR_ftruncate64]: Remove conditional code.
4650         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4651         [__NR_ftruncate64]: Make code unconditional.
4652         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4653         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
4654         include <kernel-features.h>.
4655         [!__NR_ftruncate64]: Remove conditional code.
4656         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4657         [__NR_ftruncate64]: Make code unconditional.
4658         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4659         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
4660         include <kernel-features.h>.
4661         [!__NR_ftruncate64]: Remove conditional code.
4662         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4663         [__NR_ftruncate64]: Make code unconditional.
4664         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4665
4666         * configure.in (libc_cv_fpie): Weaken to a compile test using
4667         LIBC_TRY_CC_OPTION.
4668         * configure: Regenerated.
4669
4670 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4671
4672         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
4673         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
4674         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
4675         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
4676         Refreshed.
4677         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
4678         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
4679         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
4680         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
4681         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
4682         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
4683         Refreshed.
4684
4685 2012-05-27  David S. Miller  <davem@davemloft.net>
4686
4687         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
4688         (___Q_zero): New.
4689         (__Q_simulate_exceptions): Return void.  Change to simulate
4690         exceptions by writing into the %fsr.
4691         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
4692         (__Qp_handle_exceptions): Likewise.
4693         (numbers): Delete.
4694         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
4695         __Qp_handle_exceptions.
4696         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
4697         __Qp_handle_exceptions.
4698         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
4699         as unused and give dummy FP_RND_NEAREST initializer.
4700         (FP_INHIBIT_RESULTS): Define.
4701         (___Q_simulate_exceptions): Update declaration.
4702         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
4703         formatting.
4704         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
4705         as unused and give dummy FP_RND_NEAREST initializer.
4706         (__Qp_handle_exceptions): Update declaration.
4707         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
4708         formatting.
4709
4710 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
4711
4712         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
4713         the temporary FPU control word.
4714         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
4715         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
4716         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
4717         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
4718         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
4719         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
4720         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
4721         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
4722         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
4723         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
4724         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
4725
4726 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4727
4728         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
4729         fields.
4730
4731 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
4732
4733         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
4734         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
4735         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
4736         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
4737         Likewise.
4738         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
4739         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
4740         Likewise.
4741
4742 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
4743
4744         * po/h.po: Update from translation team.
4745
4746 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
4747
4748         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
4749
4750         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
4751         handling of denormals.
4752         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
4753         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
4754         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
4755         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
4756         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
4757         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
4758         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
4759         Likewise.
4760
4761 2012-05-26  Marek Polacek  <polacek@redhat.com>
4762
4763         [BZ #14152]
4764         * math/libm-test.inc (fma_test): Don't always expect underflow
4765         exception.
4766
4767 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
4768
4769         [BZ #12416]
4770         * elf/tst-execstack.c: Include stackinfo.h.
4771         (do_test): Adjust test case to ensure that pthread_getattr_np
4772         behaviour remains the same after marking stack executable.
4773
4774 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
4775
4776         * sysdeps/unix/sysv/linux/kernel-features.h
4777         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
4778         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
4779         kernel-features.h.
4780         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
4781         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
4782         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
4783         kernel-features.h.
4784         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
4785         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
4786
4787 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
4788
4789         * configure.in: Define the default includes to being none.
4790         * configure: Regenerated.
4791
4792 2012-05-25  Roland McGrath  <roland@hack.frob.com>
4793
4794         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
4795         * sysdeps/x86_64/setjmp.S: Likewise.
4796         * sysdeps/i386/bsd-setjmp.S: Likewise.
4797         * sysdeps/i386/bsd-_setjmp.S: Likewise.
4798         * sysdeps/i386/setjmp.S: Likewise.
4799         * sysdeps/i386/__longjmp.S: Likewise.
4800         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
4801         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
4802
4803         * include/stap-probe.h: New file.
4804         * configure.in: Handle --enable-systemtap.
4805         * configure: Regenerated.
4806         * config.h.in (USE_STAP_PROBE): New #undef.
4807         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
4808         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
4809         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
4810
4811 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
4812
4813         [BZ #13717]
4814         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
4815         to 2.4.0 where earlier.
4816         * sysdeps/unix/sysv/linux/configure: Regenerated.
4817         * sysdeps/unix/sysv/linux/i386/chown.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/fchown.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/fchownat.c (fchownat)
4826         [__ASSUME_32BITUIDS]: Make code unconditional.
4827         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
4828         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
4829         <kernel-features.h>.
4830         [__ASSUME_32BITUIDS]: Make code unconditional.
4831         [!__ASSUME_32BITUIDS]: Remove conditional code.
4832         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
4833         <kernel-features.h>.
4834         [__ASSUME_32BITUIDS]: Make code unconditional.
4835         [!__ASSUME_32BITUIDS]: Remove conditional code.
4836         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
4837         <kernel-features.h>.
4838         [__ASSUME_32BITUIDS]: Make code unconditional.
4839         [!__ASSUME_32BITUIDS]: Remove conditional code.
4840         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
4841         <kernel-features.h>.
4842         [__ASSUME_32BITUIDS]: Make code unconditional.
4843         [!__ASSUME_32BITUIDS]: Remove conditional code.
4844         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
4845         <kernel-features.h>.
4846         [__ASSUME_32BITUIDS]: Make code unconditional.
4847         [!__ASSUME_32BITUIDS]: Remove conditional code.
4848         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
4849         <kernel-features.h>.
4850         [__ASSUME_32BITUIDS]: Make code unconditional.
4851         [!__ASSUME_32BITUIDS]: Remove conditional code.
4852         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
4853         <kernel-features.h>.
4854         [__ASSUME_32BITUIDS]: Make code unconditional.
4855         [!__ASSUME_32BITUIDS]: Remove conditional code.
4856         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
4857         <kernel-features.h>.
4858         [__ASSUME_32BITUIDS]: Make code unconditional.
4859         [!__ASSUME_32BITUIDS]: Remove conditional code.
4860         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
4861         <kernel-features.h>.
4862         [__ASSUME_32BITUIDS]: Make code unconditional.
4863         [!__ASSUME_32BITUIDS]: Remove conditional code.
4864         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
4865         <kernel-features.h>.
4866         [__ASSUME_32BITUIDS]: Make code unconditional.
4867         [!__ASSUME_32BITUIDS]: Remove conditional code.
4868         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
4869         <kernel-features.h>.
4870         [__NR_setresgid] (__setresgid): Do not declare.
4871         [__ASSUME_32BITUIDS]: Make code unconditional.
4872         [!__ASSUME_32BITUIDS]: Remove conditional code.
4873         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
4874         <kernel-features.h>.
4875         [__NR_setresuid] (__setresuid): Do not declare.
4876         [__ASSUME_32BITUIDS]: Make code unconditional.
4877         [!__ASSUME_32BITUIDS]: Remove conditional code.
4878         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
4879         <kernel-features.h>.
4880         [__ASSUME_32BITUIDS]: Make code unconditional.
4881         [!__ASSUME_32BITUIDS]: Remove conditional code.
4882         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
4883         <kernel-features.h>.
4884         [__ASSUME_32BITUIDS]: Make code unconditional.
4885         [!__ASSUME_32BITUIDS]: Remove conditional code.
4886         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
4887         <kernel-features.h>.
4888         [__ASSUME_32BITUIDS]: Make code unconditional.
4889         [!__ASSUME_32BITUIDS]: Remove conditional code.
4890         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
4891         <kernel-features.h>.
4892         [__ASSUME_32BITUIDS]: Make code unconditional.
4893         [!__ASSUME_32BITUIDS]: Remove conditional code.
4894         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
4895         <kernel-features.h>.
4896         [__ASSUME_32BITUIDS]: Make code unconditional.
4897         [!__ASSUME_32BITUIDS]: Remove conditional code.
4898         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
4899         <kernel-features.h>.
4900         [__ASSUME_32BITUIDS]: Make code unconditional.
4901         [!__ASSUME_32BITUIDS]: Remove conditional code.
4902         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
4903         <kernel-features.h>.
4904         [__ASSUME_32BITUIDS]: Make code unconditional.
4905         [!__ASSUME_32BITUIDS]: Remove conditional code.
4906         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
4907         <kernel-features.h>.
4908         [__ASSUME_32BITUIDS]: Make code unconditional.
4909         [!__ASSUME_32BITUIDS]: Remove conditional code.
4910         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
4911         <kernel-features.h>.
4912         [__ASSUME_32BITUIDS]: Make code unconditional.
4913         [!__ASSUME_32BITUIDS]: Remove conditional code.
4914         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
4915         <kernel-features.h>.
4916         [__ASSUME_32BITUIDS]: Make code unconditional.
4917         [!__ASSUME_32BITUIDS]: Remove conditional code.
4918         * sysdeps/unix/sysv/linux/kernel-features.h
4919         (__ASSUME_SETRESUID_SYSCALL): Remove.
4920         (__ASSUME_SETRESGID_SYSCALL): Likewise.
4921         (__ASSUME_32BITUIDS): Likewise.
4922         (__ASSUME_LDT_WORKS): Likewise.
4923         (__ASSUME_O_DIRECTORY): Likewise.
4924         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
4925         architecture but not kernel version.
4926         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
4927         (__ASSUME_MMAP2_SYSCALL): Likewise.
4928         (__ASSUME_STAT64_SYSCALL): Likewise.
4929         (__ASSUME_IPC64): Likewise.
4930         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
4931         <kernel-features.h>.
4932         [__ASSUME_32BITUIDS]: Make code unconditional.
4933         [!__ASSUME_32BITUIDS]: Remove conditional code.
4934         * sysdeps/unix/sysv/linux/opendir.c: Do not include
4935         <kernel-features.h>.
4936         [__ASSUME_O_DIRECTORY]: Make code unconditional.
4937         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
4938         132096]: Remove conditional code.
4939         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
4940         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
4941         <kernel-features.h>.
4942         [__ASSUME_32BITUIDS]: Make code unconditional.
4943         [!__ASSUME_32BITUIDS]: Remove conditional code.
4944         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
4945         <kernel-features.h>.
4946         [__ASSUME_32BITUIDS]: Make code unconditional.
4947         [!__ASSUME_32BITUIDS]: Remove conditional code.
4948         * sysdeps/unix/sysv/linux/setegid.c: Do not include
4949         <kernel-features.h>.
4950         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
4951         unconditional.
4952         (__setresgid): Do not declare.
4953         [__ASSUME_32BITUIDS]: Make code unconditional.
4954         [!__ASSUME_32BITUIDS]: Remove conditional code.
4955         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
4956         <kernel-features.h>.
4957         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
4958         unconditional.
4959         (__setresuid): Do not declare.
4960         [__ASSUME_32BITUIDS]: Make code unconditional.
4961         [!__ASSUME_32BITUIDS]: Remove conditional code.
4962         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
4963         <kernel-features.h>.
4964         [__ASSUME_32BITUIDS]: Make code unconditional.
4965         [!__ASSUME_32BITUIDS]: Remove conditional code.
4966         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
4967         <kernel-features.h>.
4968         [__ASSUME_32BITUIDS]: Make code unconditional.
4969         [!__ASSUME_32BITUIDS]: Remove conditional code.
4970
4971 2012-05-25  Richard Henderson  <rth@twiddle.net>
4972
4973         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
4974         dl_hwcap to ifunc resolver.
4975         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
4976         elf_ifunc_invoke.
4977         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
4978         dl_hwcap to ifunc resolver.
4979         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
4980
4981 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
4982
4983         [BZ #14153]
4984         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
4985         for |x| <= 2**-26, not 2**-57.
4986         * math/libm-test.inc (acos_test): Do not allow spurious underflow
4987         exception.
4988
4989 2012-05-24  Jeff Law  <law@redhat.com>
4990
4991         * stdio-common/Makefile (tests): Add bug25.
4992         * stdio-common/bug25.c: New test.
4993
4994 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
4995
4996         [BZ #13576]
4997         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
4998         multiple of MALLOC_ALIGNMENT in size.
4999         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
5000
5001 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
5002
5003         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
5004         Require >= 256.
5005         (FILENAME_MAX): Use macro-int-constant.
5006         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
5007         (_IOFBF): Use macro-int-constant.
5008         (_IOLBF): Likewise.
5009         (_IONBF): Likewise.
5010         (SEEK_CUR): Likewise.
5011         (SEEK_END): Likewise.
5012         (SEEK_SET): Likewise.
5013         (TMP_MAX): Likewise.
5014         (EOF): Use macro-int-constant.  Require < 0.
5015         (NULL): Use macro-constant.  Require == 0.
5016         (stdin): Require type to be FILE *.
5017         (stdout): Likewise.
5018         (stderr): Likewise.
5019         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
5020         macro-int-constant.
5021         (EXIT_SUCCESS): Likewise.
5022         (NULL): Use macro-constant.  Require == 0.
5023         (RAND_MAX): Use macro-int-constant.
5024         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
5025         [C99-based standards] (strtof): Require function.
5026         [C99-based standards] (strtold): Likewise.
5027         [C99-based standards] (strtoll): Likewise.
5028         [C99-based standards] (strtoull): Likewise.
5029         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
5030         [ISO || ISO99 || ISO11] (limits.h): Likewise.
5031         [ISO || ISO99 || ISO11] (math.h): Likewise.
5032         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
5033         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
5034         [ISO || ISO99 || ISO11] (*_t): Do not allow.
5035
5036 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
5037
5038         [BZ #14132]
5039         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
5040         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
5041         * intl/dgettext.c (DCGETTEXT): Likewise.
5042         * intl/gettext.c (DCGETTEXT): Likewise.
5043         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
5044         * posix/regex_internal.h (gettext): Likewise.
5045         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
5046         Remove declaration.
5047         * include/argz.h (__argz_count_internal)
5048         (__argz_stringify_internal): Remove declaration.
5049         (__argz_count, __argz_stringify): Declare hidden proto.
5050         * intl/dcgettext.c: Remove use of INTDEF.
5051         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
5052         * string/argz-stringify.c: Likewise.
5053         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
5054         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
5055         Declare hidden proto.
5056         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
5057         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
5058         Declare hidden proto.
5059         * include/stdio.h (__asprintf_internal): Don't declare.
5060         (__asprintf): Don't define as macro.  Declare hidden proto.
5061         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
5062         (__fsetlocking): Declare hidden proto.
5063         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
5064         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
5065         hidden proto.
5066         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
5067         (_IO_setlinebuf): Remove use of INTUSE.
5068         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
5069         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
5070         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
5071         Remove declaration.
5072         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
5073         (_IO_do_flush): Remove use of INTUSE.
5074         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
5075         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
5076         (_IO_adjust_column, _IO_least_wmarker)
5077         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
5078         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
5079         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
5080         (_IO_default_doallocate, _IO_wdefault_doallocate)
5081         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
5082         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
5083         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
5084         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
5085         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
5086         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
5087         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
5088         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
5089         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
5090         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
5091         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
5092         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
5093         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
5094         proto.
5095         (_IO_flush_all_internal, _IO_adjust_column_internal)
5096         (_IO_default_uflow_internal, _IO_default_finish_internal)
5097         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
5098         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
5099         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
5100         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
5101         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
5102         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
5103         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
5104         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
5105         (_IO_file_close_internal, _IO_file_close_it_internal)
5106         (_IO_file_underflow_internal, _IO_file_overflow_internal)
5107         (_IO_file_init_internal, _IO_file_attach_internal)
5108         (_IO_file_fopen_internal, _IO_file_read_internal)
5109         (_IO_file_sync_internal, _IO_file_seek_internal)
5110         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
5111         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
5112         (_IO_str_underflow_internal, _IO_str_overflow_internal)
5113         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
5114         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
5115         (_IO_list_all_internal, _IO_link_in_internal)
5116         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
5117         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
5118         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
5119         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
5120         (_IO_do_write_internal, _IO_padn_internal)
5121         (_IO_getline_info_internal, _IO_getline_internal)
5122         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
5123         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
5124         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
5125         (_IO_vfscanf_internal, _IO_vfprintf_internal)
5126         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
5127         (_IO_init_internal, _IO_un_link_internal): Don't declare.
5128         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
5129         with libc_hidden_ver, remove use of INTUSE.
5130         * libio/genops.c: Likewise.
5131         * libio/freopen.c: Likewise.
5132         * libio/freopen64.c: Likewise.
5133         * libio/iofclose.c: Likewise.
5134         * libio/iofdopen.c: Likewise.
5135         * libio/iofflush.c: Likewise.
5136         * libio/iofflush_u.c: Likewise.
5137         * libio/iofgets.c: Likewise.
5138         * libio/iofgets_u.c: Likewise.
5139         * libio/iofopen.c: Likewise.
5140         * libio/iofopncook.c: Likewise.
5141         * libio/iofread.c: Likewise.
5142         * libio/iofread_u.c: Likewise.
5143         * libio/ioftell.c: Likewise.
5144         * libio/iofwrite.c: Likewise.
5145         * libio/iogetline.c: Likewise.
5146         * libio/iogets.c: Likewise.
5147         * libio/iogetwline.c: Likewise.
5148         * libio/iopadn.c: Likewise.
5149         * libio/iopopen.c: Likewise.
5150         * libio/ioseekoff.c: Likewise.
5151         * libio/ioseekpos.c: Likewise.
5152         * libio/iosetbuffer.c: Likewise.
5153         * libio/iosetvbuf.c: Likewise.
5154         * libio/ioungetc.c: Likewise.
5155         * libio/ioungetwc.c: Likewise.
5156         * libio/iovdprintf.c: Likewise.
5157         * libio/iovsprintf.c: Likewise.
5158         * libio/iovsscanf.c: Likewise.
5159         * libio/memstream.c: Likewise.
5160         * libio/obprintf.c: Likewise.
5161         * libio/oldfileops.c: Likewise.
5162         * libio/oldiofclose.c: Likewise.
5163         * libio/oldiofdopen.c: Likewise.
5164         * libio/oldiofopen.c: Likewise.
5165         * libio/oldiopopen.c: Likewise.
5166         * libio/oldstdfiles.c: Likewise.
5167         * libio/putc.c: Likewise.
5168         * libio/setbuf.c: Likewise.
5169         * libio/setlinebuf.c: Likewise.
5170         * libio/stdfiles.c: Likewise.
5171         * libio/strops.c: Likewise.
5172         * libio/vasprintf.c: Likewise.
5173         * libio/vscanf.c: Likewise.
5174         * libio/vsnprintf.c: Likewise.
5175         * libio/vswprintf.c: Likewise.
5176         * libio/wfiledoalloc.c: Likewise.
5177         * libio/wfileops.c: Likewise.
5178         * libio/wgenops.c: Likewise.
5179         * libio/wmemstream.c: Likewise.
5180         * libio/wstrops.c: Likewise.
5181         * libio/__fpurge.c: Likewise.
5182         * libio/__fsetlocking.c: Likewise.
5183         * assert/assert.c: Likewise.
5184         * debug/fgets_chk.c: Likewise.
5185         * debug/fgets_u_chk.c: Likewise.
5186         * debug/fread_chk.c: Likewise.
5187         * debug/fread_u_chk.c: Likewise.
5188         * debug/gets_chk.c: Likewise.
5189         * debug/obprintf_chk.c: Likewise.
5190         * debug/vasprintf_chk.c: Likewise.
5191         * debug/vdprintf_chk.c: Likewise.
5192         * debug/vsnprintf_chk.c: Likewise.
5193         * debug/vsprintf_chk.c: Likewise.
5194         * malloc/mtrace.c: Likewise.
5195         * misc/error.c: Likewise.
5196         * misc/syslog.c: Likewise.
5197         * stdio-common/asprintf.c: Likewise.
5198         * stdio-common/fxprintf.c: Likewise.
5199         * stdio-common/getw.c: Likewise.
5200         * stdio-common/isoc99_fscanf.c: Likewise.
5201         * stdio-common/isoc99_scanf.c: Likewise.
5202         * stdio-common/isoc99_vfscanf.c: Likewise.
5203         * stdio-common/isoc99_vscanf.c: Likewise.
5204         * stdio-common/isoc99_vsscanf.c: Likewise.
5205         * stdio-common/printf-prs.c: Likewise.
5206         * stdio-common/printf_fp.c: Likewise.
5207         * stdio-common/printf_fphex.c: Likewise.
5208         * stdio-common/printf_size.c: Likewise.
5209         * stdio-common/putw.c: Likewise.
5210         * stdio-common/scanf.c: Likewise.
5211         * stdio-common/sprintf.c: Likewise.
5212         * stdio-common/tmpfile.c: Likewise.
5213         * stdio-common/vfprintf.c: Likewise.
5214         * stdio-common/vfscanf.c: Likewise.
5215         * stdlib/strfmon_l.c: Likewise.
5216         * sunrpc/openchild.c: Likewise.
5217         * sunrpc/xdr_stdio.c: Likewise.
5218         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
5219         * sysdeps/mach/hurd/tmpfile.c: Likewise.
5220
5221 2012-05-24  Roland McGrath  <roland@hack.frob.com>
5222
5223         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
5224
5225         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
5226         in the third column, to generate for the shared library an IFUNC
5227         that uses _dl_vdso_vsym.
5228         * Makerules (COMPILE.c, compile-stdin.c): New variables.
5229         * Makeconfig (object-suffixes-noshared): New variable.
5230
5231         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
5232         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
5233         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
5234         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
5235
5236         [BZ #14132]
5237         * include/sys/time.h (__gettimeofday): Remove macro.
5238         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
5239         * time/gettimeofday.c (__gettimeofday): Remove #undef.
5240         Remove INTDEF.
5241         (__gettimeofday): Add libc_hidden_def.
5242         (gettimeofday): Add libc_hidden_weak.
5243         * sysdeps/mach/gettimeofday.c: Likewise.
5244         * sysdeps/posix/gettimeofday.c: Likewise.
5245         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
5246         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
5247         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
5248         (__gettimeofday_internal): Remove strong_alias.
5249         (__gettimeofday): Add libc_hidden_def.
5250         (gettimeofday): Add libc_hidden_weak.
5251         * sysdeps/unix/syscalls.list (gettimeofday):
5252         Remove __gettimeofday_internal alias.
5253
5254 2012-05-24  Daniel Jacobowitz  <drow@false.org>
5255             H.J. Lu  <hongjiu.lu@intel.com>
5256
5257         [BZ #12495]
5258         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
5259         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
5260         (largebin_index_32_big): New.
5261         (largebin_index): Use it for 16-byte alignment.
5262         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
5263         correction with front_misalign.
5264
5265 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
5266
5267         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
5268         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
5269         Likewise.
5270         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
5271         Likewise.
5272         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
5273         Likewise.
5274         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
5275         Likewise.
5276         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
5277         Likewise.
5278         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
5279         Likewise.
5280         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
5281         Likewise.
5282         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
5283         Likewise.
5284         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
5285         Likewise.
5286         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
5287         Likewise.
5288         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
5289         Likewise.
5290         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
5291         Likewise.
5292
5293         * scripts/data/c++-types-x32-linux-gnu.data: New file.
5294         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
5295
5296 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
5297
5298         [BZ #10846]
5299         [BZ #14036]
5300         * math/libm-test.inc (exp_test): Add test from bug 14036.
5301         (pow_test): Add test from bug 10846.
5302
5303         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
5304         and other flags.
5305         (special_function): Do not include flags in test name.
5306         (parse_args): Likewise.
5307         * sysdeps/i386/fpu/libm-test-ulps: Update.
5308         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
5309         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
5310         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
5311         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5312
5313         * math/gen-libm-test.pl (%beautify): Add entries for underflow
5314         exceptions.
5315         * math/libm-test.inc ("Philosophy"): Update comment about
5316         exception testing.
5317         (UNDERFLOW_EXCEPTION): New macro.
5318         (UNDERFLOW_EXCEPTION_OK): Likewise.
5319         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
5320         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
5321         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
5322         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
5323         (INVALID_EXCEPTION_OK): Update value.
5324         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
5325         (OVERFLOW_EXCEPTION_OK): Likewise.
5326         (IGNORE_ZERO_INF_SIGN): Likewise.
5327         (test_exceptions): Handle underflow exceptions.
5328         (acos_test): Update for underflow exception expectations.
5329         (cexp_test): Likewise.
5330         (clog_test): Likewise.
5331         (clog10_test): Likewise.
5332         (csqrt_test): Likewise.
5333         (ctan_test): Likewise.
5334         (ctanh_test): Likewise.
5335         (exp_test): Likewise.
5336         (exp10_test): Likewise.
5337         (exp2_test): Likewise.
5338         (expm1_test): Likewise.
5339         (fma_test): Likewise.
5340         (j0_test): Likewise.
5341         (jn_test): Likewise.
5342         (nexttoward_test): Likewise.
5343         (pow_test): Likewise.
5344         (scalbn_test): Likewise.
5345         (scalbln_test): Likewise.
5346         (tan_test): Likewise.
5347         (y1_test): Likewise.
5348         * sysdeps/i386/fpu/libm-test-ulps: Update.
5349         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5350
5351 2012-05-23  David S. Miller  <davem@davemloft.net>
5352
5353         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
5354         (__libc_sigaction): Remove unused local variables.
5355
5356 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
5357
5358         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
5359
5360 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
5361
5362         mktime: avoid signed integer overflow
5363         * time/mktime.c (__mktime_internal): Do not mishandle the case
5364         where diff == INT_MIN.
5365
5366         mktime: simplify computation of average
5367         * time/mktime.c (ranged_convert): Use new time_t_avg function
5368         instead of rolling our own (probably-slower) code.
5369
5370         mktime: do not assume signed right shift propagates sign bit
5371         * time/mktime.c (isdst_differ): New static function.
5372         (__mktime_internal): No need to normalize tm_isdst now.
5373         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
5374         tm_isdst values.
5375
5376         mktime: merge another wrapv change from gnulib
5377         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
5378         from some compilers.
5379
5380         mktime: remove incorrect attempt at unusual arithmetics
5381         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
5382         The code didn't really work on such machines anyway.
5383         (TYPE_MINIMUM): Assume two's complement.
5384         (twos_complement_arithmetic): Verify that long_int and time_t
5385         are two's complement (or unsigned, in the latter case).
5386
5387         mktime: check signed shifts on long_int and time_t, too
5388         * time/mktime.c (SHR): Check that shifts work as desired
5389         on the types long_int and time_t too, as SHR is used on
5390         such types.
5391
5392         mktime: do not assume 'long' is wide enough
5393         * time/mktime.c (verify): Move decl up.
5394         (long_int): New type.
5395         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
5396         to remove assumption in the code that 'long' is wide enough to
5397         store year values.  This assumption is not true on x32 and on
5398         some non-glibc platforms.
5399
5400         mktime: merge wrapv change from gnulib
5401         * time/mktime.c (WRAPV): New macro.
5402         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
5403         (guess_time_tm, __mktime_internal): Do not assume that signed
5404         integer overflow wraps around; modern compilers generate code
5405         where this assumption is no longer valid.
5406
5407 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
5408
5409         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
5410         Replace "jmp L(pseudo_end)" with "ret".
5411         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
5412         Likewise.
5413
5414 2012-05-23  Andreas Jaeger  <aj@suse.de>
5415
5416         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
5417         * sysdeps/unix/sysv/linux/poll.c: Remove file.
5418
5419 2012-05-23  Andreas Jaeger  <aj@suse.de>
5420             Maximilian Attems  <max@stro.at>
5421
5422         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
5423         New macros.
5424
5425 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
5426
5427         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
5428         code so that pseudo_end is just ret and the stack pointer is
5429         correct also for static library in error case.
5430
5431 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
5432
5433         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
5434         move to syscalls.list.
5435         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
5436         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
5437         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
5438         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
5439
5440         * manual/install.texi (Running make install): Do not mention Linux
5441         kernel version for which pt_chown is not needed.
5442         (Linux): Do not mention problems with nscd with 2.0 kernels.
5443         * INSTALL: Regenerated.
5444
5445 2012-05-23  Andreas Jaeger  <aj@suse.de>
5446
5447         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
5448         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
5449         macro.
5450         * sysdeps/unix/sysv/linux/s390/bits/mman.h
5451         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5452         * sysdeps/unix/sysv/linux/sh/bits/mman.h
5453         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5454         * sysdeps/unix/sysv/linux/i386/bits/mman.h
5455         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5456         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
5457         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5458         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
5459         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5460         * sysdeps/unix/sysv/linux/bits/in.h
5461         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
5462
5463 2012-05-22  Roland McGrath  <roland@hack.frob.com>
5464
5465         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
5466         (PREPARE_VERSION): Just use assert instead, it will be elided
5467         under [NDEBUG] anyway.
5468
5469 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
5470
5471         * sysdeps/unix/sysv/linux/Makefile: Include
5472         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
5473         (sysdep_routines): Remove sysctl.
5474         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
5475         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
5476         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
5477         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
5478         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
5479
5480 2012-05-22  Andreas Jaeger  <aj@suse.de>
5481
5482         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
5483         that pseudo_end is just ret and the stack pointer is correct also
5484         for static library in error case.
5485
5486 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
5487
5488         [BZ #14122]
5489         * nss/nsswitch.c (defconfig_entries): New variable.
5490         (__nss_database_lookup): Don't leak defconfig entries.
5491         (nss_parse_service_list): Don't leak on error paths.
5492         (free_database_entries): New function.
5493         (free_defconfig): New function.
5494         (free_mem): Move common code to free_database_entries.
5495
5496 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
5497
5498         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
5499         Add arch_prctl.
5500         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
5501
5502         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
5503         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
5504         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
5505         New macro.
5506         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
5507         (INTERNAL_SYSCALL_TYPES): Likewise.
5508         (LOAD_ARGS_TYPES_[1-6]): Likewise.
5509         (LOAD_REGS_TYPES_[1-6]): Likewise.
5510         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
5511         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
5512
5513 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5514
5515         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
5516         copysignl for GLIBC_2_0.
5517         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
5518         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
5519         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
5520         logbl for GLIBC_2_0.
5521         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
5522         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
5523
5524 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
5525
5526         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
5527         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
5528
5529         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
5530         Use "neg %eax".
5531
5532         * time/mktime.c: Update copyright years.
5533
5534 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
5535
5536         mktime: merge comment-quoting-style change from gnulib
5537         * time/mktime.c: Quote 'like this' in comments.
5538         The GNU coding standards suggest that we no longer quote `like this',
5539         as "`" and "'" are typically rendered asymmetrically nowadays.
5540         The typical gnulib style is to quote 'like this' when quoting
5541         code, and "like this" when quoting English.
5542
5543         * time/mktime.c (compile-command): Add "-I.".
5544
5545         mktime: merge mktime-internal.h change from gnulib
5546         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
5547
5548         mktime: merge time_r change from gnulib
5549         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
5550
5551         mktime: merge DEBUG change from gnulib
5552         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
5553         case system <time.h> has a #define.
5554
5555         mktime: merge <sys/types.h> change from gnulib
5556         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
5557         since <time.t> is now guaranteed to define time_t.
5558
5559         mktime: merge HAVE_CONFIG_H change from gnulib
5560         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
5561
5562 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
5563
5564         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
5565         Use "neg %eax".
5566
5567         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
5568         __rlim_t cast.
5569         (struct rusage): Use anonymous union to pad each field to
5570         __syscall_slong_t.
5571
5572 2012-05-21  David S. Miller  <davem@davemloft.net>
5573
5574         * Makefules (o-iterator): Remove .s cases.
5575         (compile-command.s): Delete.
5576         (COMPILE.s): Delete.
5577         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
5578
5579 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
5580
5581         * configure.in (libc_cv_predef_stack_protector): Only consider
5582         "foobar" and "__stack_chk_fail" lines in libc_undefs.
5583         * configure: Regenerated.
5584
5585 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
5586
5587         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
5588         New macro.  Use R*LP on int and pointer.
5589         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
5590         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
5591         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
5592         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
5593
5594         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
5595         [__WORDSIZE_TIME64_COMPAT32] instead of
5596         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
5597         (struct utmp): Likewise.
5598         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
5599         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
5600         Renamed to ...
5601         (__WORDSIZE_TIME64_COMPAT32): This.
5602         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
5603         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
5604         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
5605         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
5606         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
5607         (__WORDSIZE_TIME64_COMPAT32): New macro.
5608
5609 2012-05-21  Andreas Jaeger  <aj@suse.de>
5610
5611         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
5612         only if [SHARED]. Add prototype for __wcschr_ia32.
5613
5614 2012-05-21  Roland McGrath  <roland@hack.frob.com>
5615
5616         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
5617         of %rbp unmolested in the jmp_buf while mangling the low bits.
5618         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
5619         unmolested high bits of %rbp while demangling the low bits.
5620         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
5621
5622 2012-05-21  Andreas Jaeger  <aj@suse.de>
5623
5624         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
5625         * sunrpc/svc_simple.c: Use it for registerrpc.
5626         * sunrpc/xcrypt.c: Use it for passwd2des.
5627
5628         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
5629
5630 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
5631
5632         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
5633         Don't define if [__SYSCALL_WORDSIZE != 32].
5634         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
5635         New macro.
5636
5637 2012-05-21  Bruno Haible  <bruno@clisp.org>
5638             Andreas Jaeger  <aj@suse.de>
5639
5640         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
5641         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
5642         inptr and inend for must_buffer_ch.
5643         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
5644         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
5645         * stdio-common/Makefile (tests): Remove bug15.
5646         (bug15-ENV): Remove macro.
5647         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
5648         anymore.
5649
5650 2012-05-19  Andreas Jaeger  <aj@suse.de>
5651             Roland McGrath  <roland@hack.frob.com>
5652
5653         * manual/contrib.texi: Completely rewritten. It contains now an
5654         alphabetical list of contributors and their contributions.
5655
5656 2012-05-21  Richard Henderson  <rth@twiddle.net>
5657
5658         * misc/getauxval.c (__getauxval): Use unsigned long int.
5659         * misc/sys/auxv.h: Include <sys/cdefs.h>.
5660         (getauxval): Use unsigned long int.
5661
5662 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
5663
5664         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
5665
5666 2012-05-21  Roland McGrath  <roland@hack.frob.com>
5667
5668         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
5669         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
5670         __alignof__ (long double).
5671
5672 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5673
5674         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5675
5676 2012-05-20  Richard Henderson  <rth@twiddle.net>
5677
5678         * misc/getauxval.c: New file.
5679         * misc/sys/auxv.h: New file.
5680         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
5681         (routines): Add getauxval.
5682         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
5683         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
5684         * elf/dl-sysdep.c (_dl_auxv): Remove.
5685         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
5686         * elf/dl-support.c (_dl_auxv): New variable.
5687         (_dl_aux_init): Initialize it.
5688         * manual/startup.texi (Auxiliary Vector): New node.
5689         * sysdeps/generic/bits/hwcap.h: New file.
5690         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
5691         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
5692         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
5693         * sysdeps/sparc/sysdep.h: ... here.  Include it.
5694         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
5695         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
5696         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
5697         Update.
5698         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
5699         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
5700         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
5701         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
5702         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
5703         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
5704         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
5705         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
5706
5707 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5708
5709         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5710
5711 2012-05-19  David S. Miller  <davem@davemloft.net>
5712
5713         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5714
5715 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
5716
5717         [BZ #14123]
5718         * math/s_ccosh.c: Include <float.h>
5719         (__ccosh): Avoid internal overflow calculating sinh and cosh
5720         values before multiplying by sin and cos values.
5721         * math/s_ccoshf.c: Likewise.
5722         * math/s_ccoshl.c: Likewise.
5723         * math/s_csin.c: Likewise.
5724         * math/s_csinf.c: Likewise.
5725         * math/s_csinl.c: Likewise.
5726         * math/s_csinh.c: Likewise.
5727         * math/s_csinhf.c: Likewise.
5728         * math/s_csinhl.c: Likewise.
5729         * math/libm-test.inc (ccos_test): Add more tests.
5730         (ccosh_test): Likewise.
5731         (csin_test): Likewise.
5732         (csinh_test): Likewise.
5733         * sysdeps/i386/fpu/libm-test-ulps: Update.
5734         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5735
5736 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
5737
5738         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
5739         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
5740
5741         * sysdeps/x86_64/x32/_itoa.h: Add comment.
5742
5743 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
5744
5745         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
5746         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
5747         * sysdeps/powerpc/soft-fp/Versions: Likewise.
5748         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
5749         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
5750         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
5751         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
5752         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
5753         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
5754         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
5755         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
5756         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
5757         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
5758         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
5759         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
5760         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
5761         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
5762         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
5763         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
5764         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
5765         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
5766         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
5767         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
5768         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
5769         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
5770         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
5771         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
5772         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
5773         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
5774         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
5775         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
5776
5777 2012-05-18  Andreas Jaeger  <aj@suse.de>
5778
5779         * csu/.gitignore: Delete.
5780
5781 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
5782
5783         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
5784         (timex): Use __syscall_slong_t.
5785
5786 2012-05-18  Andreas Jaeger  <aj@suse.de>
5787             Carlos O'Donell  <carlos_odonell@mentor.com>
5788
5789         * manual/install.texi (Configuring and compiling): Update
5790         description about files modified in the source directory.
5791         * INSTALL: Regenerated.
5792
5793 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
5794
5795         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
5796         value.  Use "or" to set return value to -1.
5797         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
5798         negate return value.
5799
5800 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5801
5802         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
5803         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
5804         failure if the compiler has Graphite support disabled.
5805         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
5806         Likewise.
5807         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
5808         CFLAGS-memmove.c): Likewise.
5809         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
5810         Likewise.
5811
5812 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
5813
5814         * sysdeps/x86_64/x32/_itoa.h: New file.
5815
5816         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
5817         getdents system call only if kernel and user dirents have the
5818         same d_ino and d_off.
5819
5820         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
5821         LLONG_MAX != LONG_MAX.
5822         (_itoa_word): Use _ITOA_WORD_TYPE on value.
5823         (_fitoa_word): Likewise.
5824
5825         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
5826         years.
5827         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
5828         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
5829         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
5830
5831         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
5832         include <bits/wordsize.h>.  Check __x86_64__ instead of
5833         __WORDSIZE.
5834         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
5835         if __x86_64__ is defined.  Use anonymous union on fpstate.
5836
5837         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
5838         anonymous union.
5839
5840 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
5841
5842         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
5843         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
5844         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
5845         Refer to _rtld_local_ro instead of _rtld_global_ro.
5846         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
5847         Likewise.
5848         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
5849         Likewise.
5850         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
5851         Likewise.
5852         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
5853         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
5854         of _rtld_global, and rtld_progname instead of _dl_argv[0].
5855
5856         * sysdeps/powerpc/powerpc32/dl-machine.c
5857         (__elf_machine_runtime_setup) [PROF]: Don't reference
5858         _dl_prof_resolve.
5859
5860 2012-05-18  Andreas Jaeger  <aj@suse.de>
5861
5862         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
5863         function only available for GCCs before 3.4 since GCC 3.4
5864         introduced a builtin.
5865         (lrint): Likewise.
5866         (llrintf): Likewise.
5867         (llrint): Likewise.
5868         (fmaxf): Likewise.
5869         (fmax): Likewise.
5870         (fminf): Likewise.
5871         (fmin): Likewise.
5872         (rint): Likewise.
5873         (rintf): Likewise.
5874         (nearbyint): Likewise.
5875         (nearbyintf): Likewise.
5876         (ceil): Likewise.
5877         (ceilf): Likewise.
5878         (floor): Likewise.
5879         (floorf): Likewise.
5880
5881 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
5882
5883         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
5884         on both fields and cast pointer to __syscall_ulong_t.
5885
5886         * bits/types.h (__fsword_t): New type.
5887         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
5888         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
5889         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
5890         (__FSWORD_T_TYPE): Likewise.
5891         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
5892         (__FSWORD_T_TYPE): Likewise.
5893         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
5894         (__FSWORD_T_TYPE): Likewise.
5895         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
5896         (__FSWORD_T_TYPE): Likewise.
5897         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
5898         __SWORD_TYPE with __fsword_t.
5899         (statfs64): Likewise.
5900
5901 2012-05-17  David S. Miller  <davem@davemloft.net>
5902
5903         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
5904
5905 2012-05-17  Andreas Jaeger  <aj@suse.de>
5906
5907         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
5908         warning.
5909
5910 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
5911
5912         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
5913
5914 2012-05-17  Andreas Jaeger  <aj@suse.de>
5915
5916         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
5917         when it is used.
5918
5919 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
5920
5921         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
5922
5923 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
5924
5925         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
5926         * sysdeps/x86_64/tst-mallocalign1.c: New file.
5927
5928 2012-05-17  Andreas Jaeger  <aj@suse.de>
5929             Carlos O'Donell  <carlos_odonell@mentor.com>
5930
5931         [BZ #14059]
5932         * sysdeps/x86_64/multiarch/init-arch.h
5933         (bit_YMM_Usable): Rename to...
5934         (bit_AVX_Usable): ... this.
5935         (bit_FMA4_Usable): New macro.
5936         (bit_XMM_state): New macro.
5937         (bit_YMM_state): New macro.
5938         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
5939         [__ASSEMBLER__] (index_AVX_Usable): ... this.
5940         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
5941         (CPUID_OSXSAVE): New macro.
5942         (CPUID_AVX): New macro.
5943         (CPUID_FMA4): New macro.
5944         (index_YMM_Usable): Rename to...
5945         (index_AVX_Usable): ... this.
5946         (HAS_AVX): Use HAS_ARCH_FEATURE.
5947         (HAS_FMA4): Likewise.
5948         (HAS_YMM_USABLE): Remove.
5949         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
5950         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
5951         are present.
5952         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
5953         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
5954         * sysdeps/x86_64/multiarch/Makefile: Likewise.
5955         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
5956         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
5957
5958 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
5959
5960         * math/libm-test.c: Support platforms without multiple rounding modes.
5961         * math/bug-nextafter.c: Support platforms without FP exceptions.
5962         * math/bug-nexttoward.c: Likewise.
5963         * math/test-fenv.c: Likewise.
5964         * math/test-misc.c: Likewise.
5965         * stdlib/bug-getcontext.c: Likewise.
5966
5967 2012-05-17  Andreas Jaeger  <aj@suse.de>
5968
5969         * manual/examples/search.c (critter_cmp): Change signature to
5970         avoid warnings.
5971         * manual/string.texi (Collation Functions): Likewise.
5972
5973 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5974
5975         * bits/types.h: Fold copyright years.
5976         * bits/typesizes.h: Likewise.
5977         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
5978         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
5979         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
5980         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
5981         * time/time.h: Likewise.
5982
5983 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
5984
5985         [BZ #208]
5986         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
5987         in instead of returning them.  Return void.
5988         (__libc_mallinfo): Accumulate over all arenas.
5989         (__malloc_stats): Adjust for change in int_mallinfo interface.
5990
5991 2012-05-16  Roland McGrath  <roland@hack.frob.com>
5992
5993         [BZ #10375]
5994         * configure.in (NM): Add AC_CHECK_TOOL for it.
5995         (libc_extra_cflags): New substituted variable.
5996         Check for -fstack-protector being used implicitly.
5997         * configure: Regenerated.
5998         * config.make.in (config-extra-cflags): New variable,
5999         gets @libc_extra_cflags@.
6000         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
6001
6002         [BZ #10375]
6003         * configure.in: Check for _FORTIFY_SOURCE being predefined.
6004         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
6005         * configure: Regenerated.
6006         * config.make.in (CPPUNDEFS): New substituted variable.
6007         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
6008         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
6009         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
6010
6011 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6012
6013         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
6014         (mq_attr): Use __syscall_slong_t.
6015
6016 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6017
6018         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
6019         Check __x86_64__ instead of __WORDSIZE.
6020         (_STAT_VER_LINUX): Likewise.
6021         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
6022         __syscall_ulong_t and __syscall_slong_t.
6023         (stat64): Likewise.
6024
6025 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6026
6027         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
6028
6029 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6030
6031         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
6032
6033 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6034
6035         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
6036         __syscall_ulong_t.
6037
6038         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
6039         include <bits/wordsize.h>.  Check __x86_64__ instead of
6040         __WORDSIZE.
6041         (greg_t): Use "__extension__ long long int" if __x86_64__ is
6042         defined.
6043         (mcontext_t): Replace "unsigned long" with "unsigned long long".
6044
6045         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
6046         include <bits/wordsize.h>.  Check __x86_64__ instead of
6047         __WORDSIZE.
6048         (user_regs_struct): Use "__extension__ unsigned long long"
6049         instead of "unsigned long" if __x86_64__ is defined.
6050         (user): Likewise.  Pad after pointer field if __ILP32__ is
6051         defined.
6052
6053 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
6054
6055         * configure.in (makeinfo): Require version 4.5 or later.  Allow
6056         versions 5 to 9.
6057         * configure: Regenerated.
6058         * manual/install.texi (texinfo): Increase version requirement to
6059         4.5 or later.
6060         * INSTALL: Regenerated.
6061
6062         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
6063
6064 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6065
6066         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
6067
6068         * sysdeps/x86_64/x32/ffs.c: New file.
6069
6070         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
6071         __syscall_ulong_t.
6072         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
6073         defined.  Use __syscall_ulong_t.
6074         (shminfo): Use __syscall_ulong_t.
6075         (shm_info): Likewise.
6076
6077         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
6078         __syscall_ulong_t.
6079
6080         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
6081         <bits/wordsize.h>.
6082         (msgqnum_t): Use __syscall_ulong_t.
6083         (msglen_t): Likewise.
6084         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
6085         __syscall_ulong_t.
6086
6087         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
6088         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
6089
6090         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
6091
6092         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
6093         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
6094
6095         * sysvipc/sys/msg.h (msgbuf): Replace long int with
6096         __syscall_slong_t.
6097
6098         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
6099         include <bits/wordsize.h>.  Check __x86_64__ instead of
6100         __WORDSIZE.
6101
6102         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
6103         "unsigned long long int" if __x86_64__ is defined.
6104         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
6105
6106         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
6107         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
6108         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
6109
6110         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
6111         <stdint.h>.
6112         (GET_PC): Cast to uintptr_t first.
6113         (GET_FRAME): Likewise.
6114         (GET_STACK): Likewise.
6115
6116         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
6117         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
6118         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
6119         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
6120         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
6121         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
6122         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
6123         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
6124         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
6125         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
6126         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
6127         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
6128         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
6129         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
6130         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
6131         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
6132         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
6133         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
6134         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
6135         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
6136         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
6137         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
6138         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
6139         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
6140         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
6141         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
6142         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
6143         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
6144         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
6145
6146 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
6147
6148         * Makerules (+depfiles): Also collect depfiles from .oS in
6149         $(extra-objs).
6150         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
6151         .oS, $(libnldbl-routines)).
6152
6153         * Makerules (native-compile-mkdep-flags): Define.
6154         * sunrpc/Makefile (extra-objs): Add $(addprefix
6155         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
6156         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
6157         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
6158         calling $(make-target-directory).
6159
6160 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6161
6162         * bits/types.h (__snseconds_t): Removed.
6163         * time/time.h (struct timespec): Replace __snseconds_t with
6164         __syscall_slong_t.
6165         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
6166         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
6167         Likewise.
6168         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
6169         (__SNSECONDS_T_TYPE): Likewise.
6170         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
6171         (__SNSECONDS_T_TYPE): Likewise.
6172         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
6173         (__SNSECONDS_T_TYPE): Likewise.
6174
6175 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6176
6177         * sysdeps/mach/hurd/bits/typesizes.h
6178         (__SYSCALL_SLONG_TYPE): New macro.
6179         (__SYSCALL_ULONG_TYPE): Likewise.
6180
6181 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6182
6183         * bits/types.h (__syscall_slong_t): New type.
6184         (__syscall_ulong_t): Likewise.
6185
6186         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
6187         (__SYSCALL_ULONG_TYPE): Likewise.
6188         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
6189         (__SYSCALL_SLONG_TYPE): Likewise.
6190         (__SYSCALL_ULONG_TYPE): Likewise.
6191         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
6192         (__SYSCALL_SLONG_TYPE): Likewise.
6193         (__SYSCALL_ULONG_TYPE): Likewise.
6194         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
6195         (__SYSCALL_SLONG_TYPE): Likewise.
6196         (__SYSCALL_ULONG_TYPE): Likewise.
6197
6198 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6199
6200         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
6201         Add sigaltstack-offsets.sym.
6202         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
6203         <sigaltstack-offsets.h>.
6204         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
6205         longjmp_msg pointer.
6206         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
6207         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
6208         signal stack.
6209         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
6210
6211 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
6212
6213         * elf/stackguard-macros.h: Remove file.
6214         * sysdeps/generic/stackguard-macros.h: New file.
6215         * sysdeps/i386/stackguard-macros.h: Likewise.
6216         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
6217         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
6218         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
6219         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
6220         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
6221         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
6222         * sysdeps/x86_64/stackguard-macros.h: Likewise.
6223         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
6224         <elf/stackguard-macros.h>.
6225
6226         [BZ #14109]
6227         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
6228         __aligned__ in attribute.
6229         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
6230         (gregset_t): Likewise.
6231
6232 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6233
6234         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
6235         * sysdeps/x86_64/64/Implies-after: Here.  New file.
6236         * sysdeps/x86_64/x32/Implies-after: New file.
6237
6238 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6239
6240         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
6241         and access return value for _dl_profile_fixup.  Use R10_LP to
6242         load frame size.
6243
6244 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6245
6246         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
6247
6248 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6249
6250         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
6251         * sysdeps/x86_64/x32/sysdep.h: New file.
6252
6253 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6254
6255         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
6256         * sysdeps/x86_64/setjmp.S: Likewise.
6257
6258 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6259
6260         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
6261         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
6262         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
6263         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
6264         remove unused global constant.
6265
6266 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
6267
6268         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
6269         include of <not-cancel.h>.
6270
6271 2012-05-15  Roland McGrath  <roland@hack.frob.com>
6272
6273         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
6274
6275 2012-05-15  Jeff Law  <law@redhat.com>
6276             Andreas Jaeger  <aj@suse.de>
6277
6278         [BZ #13594]
6279         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
6280         out from...
6281         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
6282         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
6283         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
6284         code changing __hst_map_handle.map.
6285
6286 2012-05-15  Roland McGrath  <roland@hack.frob.com>
6287
6288         * configure.in (sysnames): Look for Implies-before and Implies-after
6289         files.
6290         * configure: Regenerated.
6291
6292 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6293
6294         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
6295         8-byte data alignment with LP_SIZE alignment.
6296
6297 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6298
6299         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
6300         into R10_LP.
6301
6302 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6303
6304         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
6305
6306 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6307
6308         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
6309         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
6310         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
6311         Likewise.
6312         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
6313
6314 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6315
6316         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
6317         (stackinfo_sub_sp): Likewise.
6318
6319 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6320
6321         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
6322         RAX_LP.
6323
6324 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6325
6326         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
6327         into R*_LP.
6328
6329 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6330
6331         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
6332         sizes into R*_LP.
6333
6334 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6335
6336         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
6337
6338 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6339
6340         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
6341         into R11_LP and load __x86_64_shared_cache_size_half into
6342         R8_LP.
6343
6344 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6345
6346         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
6347         R8_LP.
6348
6349 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6350
6351         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
6352         logb for POWER7.
6353         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
6354         logbf for POWER7.
6355         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
6356         logbl for POWER7.
6357         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
6358         powerpc32/power7/fpu/s_logb.c via #include.
6359         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
6360         powerpc32/power7/fpu/s_logbf.c via #include.
6361         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
6362         powerpc32/power7/fpu/s_logbl.c via #include.
6363
6364 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
6365
6366         * README.libm: Remove file.
6367
6368 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6369
6370         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
6371         count for x32.  Use R*_LP and omit operand-size suffix.
6372
6373 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6374
6375         * shlib-versions: Move x86_64-.*-linux.* entries to ...
6376         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
6377         * sysdeps/x86_64/x32/shlib-versions: New file.
6378
6379 2012-05-14  Roland McGrath  <roland@hack.frob.com>
6380
6381         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
6382         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
6383         Use _dl_fatal_printf instead.
6384
6385 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
6386
6387         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
6388         set if not set by the user.  Do not allow for being unset.
6389         * sysdeps/unix/sysv/linux/configure: Regenerated.
6390
6391 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6392
6393         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
6394         the `q' suffix from lea and replace .quad with ASM_ADDR.
6395
6396 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6397
6398         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
6399         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
6400         instead of $17.
6401         (PTR_DEMANGLE): Likewise.
6402
6403 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6404
6405         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
6406         (LP_OP): Likewise.
6407         (ASM_ADDR): Likewise.
6408         (RAX_LP): Likewise.
6409         (RBP_LP): Likewise.
6410         (RBX_LP): Likewise.
6411         (RCX_LP): Likewise.
6412         (RDI_LP): Likewise.
6413         (RSI_LP): Likewise.
6414         (RSP_LP): Likewise.
6415         (R8_LP): Likewise.
6416         (R9_LP): Likewise.
6417         (R10_LP): Likewise.
6418         (R10_LP): Likewise.
6419         (R11_LP): Likewise.
6420         (R12_LP): Likewise.
6421         (R13_LP): Likewise.
6422         (R14_LP): Likewise.
6423         (R15_LP): Likewise.
6424
6425 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6426
6427         * sysdeps/x86_64/x32/dl-machine.h: New file.
6428
6429 2012-05-14  Andreas Jaeger  <aj@suse.de>
6430
6431         * manual/Makefile (subdir): Remove export of subdir.
6432         (all): Remove target.
6433         (.PHONY): Remove all from list.
6434         (mkinstalldirs): Remove.
6435         (.PHONY): Remove installdirs from list.
6436         ($(inst_infodir)/libc.info): Use make-target-directory.
6437         (installdirs): Remove.
6438         (subdir_%): Remove.
6439         (glibc-targets): Remove.
6440         (lib): Remove.
6441         (stubs): Remove.
6442         ($(objpfx)stubs ../po/manual.pot): Remove.
6443         ($(objpfx)stamp%): Remove.
6444         (make-target-directory): Remove.
6445         (subdir_install): Remove.
6446         (routines): Remove.
6447         (aux): Remove.
6448         (sources): Remove.
6449         (objects): Remove.
6450         (headers): Remove.
6451
6452         [BZ #13750]
6453         * manual/.gitignore: Remove, it's not needed anymore.
6454         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
6455         all files in it.
6456         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
6457         directory.
6458         (texis): Renamed to $(objpfx)texis.
6459         (texis-path): New, contains path to generated files.
6460         (chapters.%): Use texis-path for complete path, add extra argument
6461         libc-texinfo.sh.
6462         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
6463         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
6464         (summary,texi, stamp-summary): Use complete path of
6465         files. Generate files in build dir.
6466         (dir-add.texi): Build in build dir.
6467         (libm-err.texi,stamp-libm-err): Likewise.
6468         (version.texi, stamp-version): Likewise.
6469         (.%c.texi): Likewise.
6470         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
6471         (mostlyclean): Remove target.
6472         (realclean): Remove target.
6473         (generated): Add new variable with contents from mostlyclean and
6474         realclean, remove entries duplicated in common-mostlyclean, add
6475         stamp-libm-err and stamp-version.
6476         (generated-dirs): Add libc directory.
6477         ($(inst_infodir)/libc.info): Install files from build dir.
6478
6479         * manual/install.texi (Configuring and compiling): Adjust since
6480         the info files are not part of the tar ball anymore.
6481
6482 2012-05-14  Andreas Jaeger  <aj@suse.de>
6483
6484         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
6485         variable.
6486
6487 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
6488
6489         [BZ #13717]
6490         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
6491         to 2.2.0 where earlier.
6492         * sysdeps/unix/sysv/linux/configure: Regenerated.
6493         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
6494         Remove conditional code.
6495         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
6496         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
6497         Remove conditional code.
6498         [!__NR_lchown]: Likewise.
6499         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
6500         [__NR_lchown]: Likewise.
6501         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
6502         comment referencing __ASSUME_LCHOWN_SYSCALL.
6503         * sysdeps/unix/sysv/linux/i386/sigaction.c
6504         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
6505         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
6506         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
6507         Remove conditional code.
6508         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
6509         (__protocol_available): Remove #if 0 code.
6510         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
6511         conditional code.
6512         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
6513         * sysdeps/unix/sysv/linux/kernel-features.h
6514         (__ASSUME_GETCWD_SYSCALL): Don't define.
6515         (__ASSUME_REALTIME_SIGNALS): Likewise.
6516         (__ASSUME_PREAD_SYSCALL): Likewise.
6517         (__ASSUME_PWRITE_SYSCALL): Likewise.
6518         (__ASSUME_POLL_SYSCALL): Likewise.
6519         (__ASSUME_LCHOWN_SYSCALL): Likewise.
6520         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
6521         non-SPARC.
6522         (__ASSUME_SIOCGIFNAME): Don't define.
6523         (__ASSUME_MSG_NOSIGNAL): Likewise.
6524         (__ASSUME_SENDFILE): Define unconditionally.
6525         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
6526         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
6527         conditional code.
6528         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
6529         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
6530         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
6531         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
6532         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
6533         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
6534         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
6535         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
6536         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
6537         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6538         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
6539         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
6540         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6541         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
6542         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
6543         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6544         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
6545         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
6546         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6547         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
6548         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
6549         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6550         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
6551         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
6552         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6553         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
6554         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
6555         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6556         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
6557         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
6558         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6559         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
6560         Remove conditional code.
6561         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6562         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
6563         Remove conditional code.
6564         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6565         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
6566         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
6567         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
6568         Remove conditional code.
6569         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6570         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
6571         Remove conditional code.
6572         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6573         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
6574         Remove conditional code.
6575         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6576         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
6577         Remove conditional code.
6578         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6579         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
6580         Remove conditional code.
6581         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6582         * sysdeps/unix/sysv/linux/sh/pwrite64.c
6583         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
6584         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6585         * sysdeps/unix/sysv/linux/sigaction.c
6586         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
6587         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
6588         * sysdeps/unix/sysv/linux/sigpending.c
6589         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
6590         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
6591         * sysdeps/unix/sysv/linux/sigprocmask.c
6592         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
6593         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
6594         * sysdeps/unix/sysv/linux/sigsuspend.c
6595         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
6596         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
6597         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
6598         (__libc_missing_rt_sigs): Remove.
6599         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
6600         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
6601         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
6602         Remove conditional code.
6603         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
6604         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
6605         return 1.
6606         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
6607         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
6608         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
6609         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
6610
6611 2012-05-14  Andreas Jaeger  <aj@suse.de>
6612
6613         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
6614         it's not used in glibc.
6615         (__coshm1): Likewise.
6616         (__acosh1p): Likewise.
6617         (__sgn): Likewise.
6618
6619         * manual/string.texi (Copying and Concatenation): Add missing
6620         variable in concat example.
6621         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
6622
6623 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6624
6625         [BZ #14103]
6626         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
6627         __builtin_clzl with __builtin_clzll.
6628
6629 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6630
6631         [BZ #14104]
6632         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
6633         libc_freeres_ptr.
6634
6635 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6636
6637         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
6638         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
6639         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
6640         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
6641
6642 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
6643
6644         * NEWS: Update ia64 info.
6645
6646 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
6647
6648         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
6649         used as bcopy.
6650
6651 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
6652
6653         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
6654         * sysdeps/unix/syscalls.list (dup3): Likewise.
6655         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
6656         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
6657
6658 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
6659
6660         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
6661         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
6662
6663 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
6664
6665         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
6666         thread pointer.
6667         (TLS_IE): Use mov/add instead of movq/addq to load thread
6668         pointer.
6669         (TLS_GD_PREFIX): New.
6670         (TLS_GD): Use it.
6671
6672 2012-05-11  David S. Miller  <davem@davemloft.net>
6673
6674         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
6675         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
6676         (_FPU_SETCW): Likewise.
6677
6678 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
6679
6680         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
6681         is 32-byte aligned.
6682
6683 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
6684
6685         [BZ #11837]
6686         * iconvdata/gb18030.c: Update tables.
6687         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
6688         characters specially.
6689         (BODY for TO_LOOP): Add encoding of missing ranges.
6690
6691 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
6692
6693         [BZ #13673]
6694         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
6695         * sysdeps/mach/hurd/dup3.c: Likewise.
6696         * sysdeps/mach/hurd/readlinkat.c: Likewise.
6697         * sysdeps/powerpc/memmove.c:: Likewise.
6698
6699 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
6700
6701         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
6702         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
6703
6704 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
6705
6706         * elf/elf.h (R_X86_64_RELATIVE64): New.
6707         (R_X86_64_NUM): Updated.
6708         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
6709         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
6710         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
6711         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
6712         tst-quad1pie tst-quad2pie
6713         (modules-names): Add tst-quadmod1 tst-quadmod2.
6714         ($(objpfx)tst-quad1): New dependency.
6715         ($(objpfx)tst-quad2): Likewise.
6716         ($(objpfx)tst-quad1pie): Likewise.
6717         ($(objpfx)tst-quad2pie): Likewise.
6718         * sysdeps/x86_64/tst-quad1.c: New file.
6719         * sysdeps/x86_64/tst-quad1pie.c: New file.
6720         * sysdeps/x86_64/tst-quad2.c: Likewise.
6721         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
6722         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
6723         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
6724         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
6725         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
6726
6727 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6728
6729         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
6730         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
6731         * streams/stropts.h (t_scalar_t): Define type.
6732
6733         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
6734         (_PATH_PRESERVE): Set to "/var/lib".
6735         (_PATH_RWHODIR): Set to "/var/spool/rwho".
6736
6737         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
6738         instead of int.
6739
6740         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
6741         if __dir_mkfile succeeded.
6742
6743         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
6744         checking for _hurd_dtablesize.  Unlock it right after having
6745         finished _hurd_dtable allocation.
6746
6747 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6748
6749         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
6750         * sysdeps/mach/hurd/configure: Regenerated.
6751         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
6752         special-casing to...
6753         * sysdeps/gnu/configure.in: ... this new file.
6754         * sysdeps/unix/sysv/linux/configure: Regenerated.
6755         * sysdeps/gnu/configure: New generated file.
6756
6757         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
6758         for Linux: use nsec instead of usec, as well as:
6759         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
6760         members of type struct timespec.
6761         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
6762         New macros.
6763         (struct stat64): Likewise.
6764         (_STATBUF_ST_NSEC): New macro.
6765         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
6766
6767         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
6768         __strtoul_internal rather than strtoul.
6769
6770 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
6771
6772         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
6773         and reject them.
6774
6775 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6776
6777         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
6778         which preserves existing values.
6779         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
6780
6781 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
6782
6783         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
6784         TIMEOUT values.  Return EINVAL for NFDS values either negative or
6785         greater than FD_SETSIZE.
6786
6787 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6788
6789         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
6790         allocated, call __vm_protect to finish enabling the existing space, and
6791         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
6792         allocate the remainder.
6793
6794 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
6795
6796         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
6797         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
6798
6799 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6800
6801         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
6802         sysdeps/mach/hurd/readlink.c.
6803
6804         * posix/tst-sysconf.c (posix_options): Only use
6805         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
6806         _POSIX_SYNCHRONIZED_IO when they are defined
6807         * sysdeps/mach/hurd/bits/posix_opt.h:
6808         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
6809         (_XOPEN_REALTIME): Undefine macro.
6810         (_XOPEN_REALTIME_THREADS): Undefine macro.
6811         (_XOPEN_SHM): Undefine macro.
6812         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
6813         macro to -1.
6814         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
6815         macro to -1.
6816         (_POSIX_ASYNC_IO): Undefine macro.
6817         (_POSIX_PRIORITIZED_IO): Undefine macro.
6818         (_POSIX_SPIN_LOCKS): Define macro to -1.
6819
6820         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
6821         SA_NODEFER, SA_RESETHAND.
6822         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
6823         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
6824         F_DUPFD_CLOEXEC.
6825
6826 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6827
6828         * elf/Makefile (pldd-modules): Define unconditionally.
6829
6830 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6831
6832         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
6833
6834 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6835
6836         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
6837         Return ENOENT when name is empty.
6838         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
6839
6840 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6841
6842         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
6843
6844         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
6845
6846 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6847
6848         Fix mlock in all cases except non-readable pages.
6849         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
6850         instead of VM_PROT_ALL as parameter to __vm_wire function.
6851
6852         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
6853         (__mkdir): When path is `/', just fail with EEXIST.
6854         * sysdeps/mach/hurd/mkdirat.c: Likewise.
6855
6856 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6857
6858         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
6859         <sys/uio.h> (for writev).
6860         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
6861         and <sys/param.h> (for MIN).
6862
6863 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
6864
6865         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
6866         REQUESTED_TIME.  Properly set the remaining time and return EINTR
6867         if interrupted.
6868
6869 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6870
6871         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
6872         Depend on against $(link-rpcuserlibs).
6873
6874 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6875
6876         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
6877         (__libc_stack_end): Do not use attribute_relro.
6878         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
6879         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
6880         to libthread-provided value.
6881         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
6882         attribute_relro.
6883
6884 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6885
6886         [BZ #3748]
6887         * bits/libc-lock.h (__libc_once_get): New macro.
6888         * sysdeps/mach/bits/libc-lock.h: Likewise.
6889         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
6890         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
6891         instead of using implementation details.
6892
6893         * libio/fileops.c: Unconditionally include <kernel-features.h>.
6894         * libio/freopen.c: Likewise.
6895         * libio/freopen64.c: Likewise.
6896         * misc/syslog.c: Likewise.
6897         * nscd/connections.c: Likewise.
6898         * nscd/netgroupcache.c: Likewise.
6899         * sysdeps/posix/getcwd.c: Likewise.
6900
6901 2012-05-10  Roland McGrath  <roland@hack.frob.com>
6902
6903         * math/w_ilogbf.c: Add #include <limits.h>.
6904
6905 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6906
6907         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
6908         path instead of returning without unlocking.
6909
6910         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
6911         immediate-write ioctls.
6912         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
6913
6914 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6915
6916         * sysdeps/mach/hurd/i386/init-first.c (init): Use
6917         __builtin_frame_address instead of making assumptions about the
6918         location of the return address relative to DATA.  Force early load of
6919         the return address.
6920         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
6921         __builtin_frame_address.
6922
6923         dup3 for GNU Hurd.
6924         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
6925         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
6926         implement dup3 and do some further code clean-ups.
6927         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
6928         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
6929
6930 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6931
6932         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
6933
6934         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
6935         HURD_CRITICAL_END around holding _hurd_dtable_lock.
6936         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
6937         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
6938         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
6939         d->port.lock.
6940
6941         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
6942         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
6943         when handler == SIG_ERR, not when handler != SIG_ERR.
6944
6945 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6946
6947         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
6948         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
6949         definitions.
6950
6951         accept4 for GNU Hurd.
6952         * include/sys/socket.h (__libc_accept4): New prototype.
6953         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
6954         to implement __libc_accept4.
6955         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
6956         __libc_accept4.
6957         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
6958
6959         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
6960         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
6961         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
6962         signal-defines.sym.
6963
6964 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6965
6966         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
6967
6968 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6969
6970         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
6971         assertion on O_CLOEXEC flag.
6972         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
6973         * hurd/intern-fd.c: Likewise.
6974         * hurd/port2fd.c: Likewise.
6975
6976 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6977
6978         [BZ #3906]
6979         * bits/in.h (IPV6_PKTINFO): Define new macro.
6980         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
6981
6982 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6983
6984         [BZ #13954]
6985         [BZ #13955]
6986         [BZ #13956]
6987         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
6988         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
6989         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
6990         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
6991         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
6992         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
6993         * math/libm-test.inc (logb_test) : Additional logb tests.
6994
6995 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
6996             Andreas Jaeger  <aj@suse.de>
6997
6998         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
6999         * configure: Regenerated.
7000         * config.h.in (LINK_OBSOLETE_RPC): New macro.
7001         * config.make.in (link-obsolete-rpc): New substituted variable.
7002         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
7003         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
7004         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
7005         (shared-only-routines): Don't set it under [link-obsolete-rpc],
7006         so that libc.a contains the symbols.
7007         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
7008         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
7009         * sunrpc/auth_none.c: Likewise.
7010         * sunrpc/auth_unix.c: Likewise.
7011         * sunrpc/authdes_prot.c: Likewise.
7012         * sunrpc/authuxprot.c: Likewise.
7013         * sunrpc/clnt_gen.c: Likewise.
7014         * sunrpc/clnt_perr.c: Likewise.
7015         * sunrpc/clnt_raw.c: Likewise.
7016         * sunrpc/clnt_simp.c: Likewise.
7017         * sunrpc/clnt_tcp.c: Likewise.
7018         * sunrpc/clnt_udp.c: Likewise.
7019         * sunrpc/clnt_unix.c: Likewise.
7020         * sunrpc/des_crypt.c: Likewise.
7021         * sunrpc/des_soft.c: Likewise.
7022         * sunrpc/get_myaddr.c: Likewise.
7023         * sunrpc/key_call.c: Likewise.
7024         * sunrpc/key_prot.c: Likewise.
7025         * sunrpc/netname.c: Likewise.
7026         * sunrpc/pm_getmaps.c: Likewise.
7027         * sunrpc/pm_getport.c: Likewise.
7028         * sunrpc/pmap_clnt.c: Likewise.
7029         * sunrpc/pmap_prot.c: Likewise.
7030         * sunrpc/pmap_prot2.c: Likewise.
7031         * sunrpc/pmap_rmt.c: Likewise.
7032         * sunrpc/publickey.c: Likewise.
7033         * sunrpc/rpc_cmsg.c: Likewise.
7034         * sunrpc/rpc_common.c: Likewise.
7035         * sunrpc/rpc_dtable.c: Likewise.
7036         * sunrpc/rpc_prot.c: Likewise.
7037         * sunrpc/rpc_thread.c: Likewise.
7038         * sunrpc/rtime.c: Likewise.
7039         * sunrpc/svc.c: Likewise.
7040         * sunrpc/svc_auth.c: Likewise.
7041         * sunrpc/svc_raw.c: Likewise.
7042         * sunrpc/svc_run.c: Likewise.
7043         * sunrpc/svc_tcp.c: Likewise.
7044         * sunrpc/svc_udp.c: Likewise.
7045         * sunrpc/svc_unix.c: Likewise.
7046         * sunrpc/svcauth_des.c: Likewise.
7047         * sunrpc/xcrypt.c: Likewise.
7048         * sunrpc/xdr.c: Likewise.
7049         * sunrpc/xdr_array.c: Likewise.
7050         * sunrpc/xdr_float.c: Likewise.
7051         * sunrpc/xdr_intXX_t.c: Likewise.
7052         * sunrpc/xdr_mem.c: Likewise.
7053         * sunrpc/xdr_rec.c: Likewise.
7054         * sunrpc/xdr_ref.c: Likewise.
7055         * sunrpc/xdr_sizeof.c: Likewise.
7056         * sunrpc/xdr_stdio.c: Likewise.
7057
7058 2012-05-10  Roland McGrath  <roland@hack.frob.com>
7059
7060         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
7061         change.  Update copyright years.
7062
7063 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
7064
7065         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
7066
7067 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
7068             Joseph Myers  <joseph@codesourcery.com>
7069             Paul Pluzhnikov  <ppluzhnikov@google.com>
7070
7071         [BZ #14012]
7072         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
7073         requiring rpcgen.
7074         [cross-compiling] (extra-libs): Likewise.
7075         [cross-compiling] (extra-libs-others): Likewise.
7076         [cross-compiling] (librpcsvc-routines): Likewise.
7077         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
7078         [cross-compiling] (omit-deps): Likewise.
7079         (sunrpc-CPPFLAGS): New variable.
7080         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
7081         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
7082         (cross-rpcgen-objs): New variable.
7083         (extra-objs): Append $(cross-rpcgen-objs).
7084         ($(cross-rpcgen-objs)): New rule.
7085         ($(objpfx)cross-rpcgen): Likewise.
7086         (rpcgen-cmd): Define to use $(built-program-file).  Expand
7087         comment.
7088         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
7089         ($(objpfx)x%.stmp): Likewise.
7090         * sunrpc/proto.h [IS_IN_build] (_): Define.
7091         [IS_IN_build] (_libc_intl_domainname): Likewise.
7092
7093 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
7094
7095         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
7096         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
7097         and R_X86_64_TPOFF64.
7098
7099 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
7100
7101         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
7102         sysdeps/unix/sysv/syscalls.list.
7103         (stime): Likewise.
7104         (utime): Likewise.
7105         * sysdeps/unix/sysv/syscalls.list: Remove file.
7106
7107 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
7108
7109         [BZ #3440]
7110         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
7111         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
7112         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
7113         (__LC_IDENTIFICATION): Make these macros useful in #if
7114         expressions, as required by C99.
7115
7116 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
7117
7118         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
7119         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
7120         after this.
7121
7122 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
7123
7124         * stdlib/longlong.h: Updated from GCC.
7125
7126 2012-05-09  Andreas Jaeger  <aj@suse.de>
7127
7128         * nscd/nscd.c (run_modes): Make named enum, reorder so that
7129         default is first entry.
7130         (run_mode): Set type.
7131         (main): Remove informal message about syslog.
7132         (options): Fix typo.
7133
7134         [BZ #14053]
7135         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
7136         to asm.
7137         (lrint): Likewise.
7138         (llrintf): Likewise.
7139         (llrint): Likewise.
7140         (rint): Likewise.
7141         (rintf): Likewise.
7142         (nearbyint): Likewise.
7143         (nearbyintf): Likewise.
7144
7145 2012-05-09  Andreas Jaeger  <aj@suse.de>
7146             Pedro Alves  <palves@redhat.com>
7147
7148         * nscd/nscd.c (run_mode): Use enum.
7149         (main): Cleanup coding style issue.
7150
7151 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
7152             Andreas Jaeger  <aj@suse.de>
7153
7154         * nscd/nscd.c (go_background): Replaced with...
7155         (run_mode): ... this.
7156         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
7157         (options): Add -F --foreground.
7158         (main): Implement it.
7159         (parse_opt): Parse it.
7160
7161 2012-05-09  Andreas Jaeger  <aj@suse.de>
7162
7163         [BZ #14083]
7164         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
7165         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
7166         -Wconversion warning.
7167         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
7168         Likewise.
7169
7170 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
7171
7172         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
7173         == 0.
7174         (LC_ALL): Use macro-int-constant.
7175         (LC_COLLATE): Likewise.
7176         (LC_CTYPE): Likewise.
7177         (LC_MESSAGES): Likewise.
7178         (LC_MONETARY): Likewise.
7179         (LC_NUMERIC): Likewise.
7180         (LC_TIME): Likewise.
7181         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
7182         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
7183         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7184         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
7185         Specify type.
7186         [C99-based standards] (float_t): Expect type.
7187         [C99-based standards] (double_t): Expect type.
7188         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
7189         type.
7190         [C99-based standards] (HUGE_VALL): Likewise.
7191         [C99-based standards] (INFINITY): Likewise.
7192         [C99-based standards] (NAN): Likewise.
7193         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
7194         [C99-based standards] (FP_NAN): Likewise.
7195         [C99-based standards] (FP_NORMAL): Likewise.
7196         [C99-based standards] (FP_SUBNORMAL): Likewise.
7197         [C99-based standards] (FP_ZERO): Likewise.
7198         [C99-based standards] (FP_FAST_FMA): Use
7199         optional-macro-int-constant.  Specify type.  Require == 1.
7200         [C99-based standards] (FP_FAST_FMAF): Likewise.
7201         [C99-based standards] (FP_FAST_FMAL): Likewise.
7202         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
7203         [C99-based standards] (FP_ILOGBNAN): Likewise.
7204         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
7205         Specify type.
7206         [C99-based standards] (MATH_ERREXCEPT): Likewise.
7207         [C99-based standards] (math_errhandling): Specify type.
7208         [ISO99 || ISO11] (signgam): Do not allow.
7209         [non-C99-based standards] (copysignf): Do not allow.
7210         [non-C99-based standards] (exp2f): Likewise.
7211         [non-C99-based standards] (log2f): Likewise.
7212         [non-C99-based standards] (modff): Allow.
7213         [non-C99-based standards] (erff): Do not allow.
7214         [non-C99-based standards] (erfcf): Likewise.
7215         [non-C99-based standards] (gammaf): Likewise.
7216         [non-C99-based standards] (hypotf): Likewise.
7217         [non-C99-based standards] (j0f): Likewise.
7218         [non-C99-based standards] (j1f): Likewise.
7219         [non-C99-based standards] (jnf): Likewise.
7220         [non-C99-based standards] (lgammaf): Likewise.
7221         [non-C99-based standards] (tgammaf): Likewise.
7222         [non-C99-based standards] (y0f): Likewise.
7223         [non-C99-based standards] (y1f): Likewise.
7224         [non-C99-based standards] (ynf): Likewise.
7225         [non-C99-based standards] (isnanf): Likewise.
7226         [non-C99-based standards] (acoshf): Likewise.
7227         [non-C99-based standards] (asinhf): Likewise.
7228         [non-C99-based standards] (atanhf): Likewise.
7229         [non-C99-based standards] (cbrtf): Likewise.
7230         [non-C99-based standards] (expm1f): Likewise.
7231         [non-C99-based standards] (ilogbf): Likewise.
7232         [non-C99-based standards] (log1pf): Likewise.
7233         [non-C99-based standards] (logbf): Likewise.
7234         [non-C99-based standards] (nextafterf): Likewise.
7235         [non-C99-based standards] (remainderf): Likewise.
7236         [non-C99-based standards] (rintf): Likewise.
7237         [non-C99-based standards] (scalbf): Likewise.
7238         [non-C99-based standards] (copysignl): Likewise.
7239         [non-C99-based standards] (exp2l): Likewise.
7240         [non-C99-based standards] (log2l): Likewise.
7241         [non-C99-based standards] (modfl): Allow.
7242         [non-C99-based standards] (erfl): Do not allow.
7243         [non-C99-based standards] (erfcl): Likewise.
7244         [non-C99-based standards] (gammal): Likewise.
7245         [non-C99-based standards] (hypotl): Likewise.
7246         [non-C99-based standards] (j0l): Likewise.
7247         [non-C99-based standards] (j1l): Likewise.
7248         [non-C99-based standards] (jnl): Likewise.
7249         [non-C99-based standards] (lgammal): Likewise.
7250         [non-C99-based standards] (tgammal): Likewise.
7251         [non-C99-based standards] (y0l): Likewise.
7252         [non-C99-based standards] (y1l): Likewise.
7253         [non-C99-based standards] (ynl): Likewise.
7254         [non-C99-based standards] (isnanl): Likewise.
7255         [non-C99-based standards] (acoshl): Likewise.
7256         [non-C99-based standards] (asinhl): Likewise.
7257         [non-C99-based standards] (atanhl): Likewise.
7258         [non-C99-based standards] (cbrtl): Likewise.
7259         [non-C99-based standards] (expm1l): Likewise.
7260         [non-C99-based standards] (ilogbl): Likewise.
7261         [non-C99-based standards] (log1pl): Likewise.
7262         [non-C99-based standards] (logbl): Likewise.
7263         [non-C99-based standards] (nextafterl): Likewise.
7264         [non-C99-based standards] (remainderl): Likewise.
7265         [non-C99-based standards] (rintl): Likewise.
7266         [non-C99-based standards] (scalbl): Likewise.
7267         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7268         [non-C99-based standards] (FP_*): Do not allow.
7269         [C99-based standards] (FP_*): Change to
7270         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
7271         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
7272         allow.
7273         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
7274         (SIG_ERR): Likewise.
7275         [X/Open-based standards] (SIG_HOLD): Likewise.
7276         (SIG_IGN): Likewise.
7277         (SIGABRT): Use macro-int-constant.  Specify type.  Require
7278         positive value.
7279         (SIGFPE): Likewise.
7280         (SIGILL): Likewise.
7281         (SIGINT): Likewise.
7282         (SIGSEGV): Likewise.
7283         (SIGTER): Likewise.
7284         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
7285         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
7286         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
7287         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
7288         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
7289         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
7290         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
7291         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
7292         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
7293         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
7294         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
7295         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
7296         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
7297         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
7298         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
7299         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
7300         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
7301         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
7302         [X/Open-based standards] (SIGTRAP): Likewise.
7303         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
7304         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
7305         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
7306         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
7307         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
7308         allow.
7309
7310 2012-05-08  Ian Wienand  <ianw@vmware.com>
7311
7312         [BZ #14080]
7313         * time/tzset.c (__tzset_parse_tz): Update default rules for
7314         daylight time changes in the Energy Policy Act of 2005.
7315
7316 2012-05-09  Andreas Jaeger  <aj@suse.de>
7317
7318         [BZ #13983]
7319         * elf/ldconfig.c (parse_conf): Change string to make clear that
7320         ldconfig only issued a warning if ld.so.conf does not exist.
7321
7322 2012-05-08  David S. Miller  <davem@davemloft.net>
7323
7324         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
7325         movxtod instead of popping the value on the stack.
7326
7327         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7328
7329 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
7330
7331         * config.h.in: Add HAVE_ARM_PCS_VFP.
7332
7333 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
7334
7335         [BZ #13979]
7336         * include/features.h: Warn if user requests __FORTIFY_SOURCE
7337         checking but the checks are disabled for any reason.
7338
7339 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
7340
7341         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
7342         and ELF64_R_TYPE with ELFW(R_TYPE).
7343
7344 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
7345
7346         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
7347         (ulimit): Likewise.
7348
7349         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
7350         (settimeofday): Likewise.
7351
7352 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
7353
7354         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
7355         a struct th_u2 inside the union, and move tu_block/tu_code into
7356         a new th_u3 union of tu_block/tu_code inside of that.  Move
7357         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
7358         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
7359         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
7360         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
7361         (th_stuff): Change to th_u1.tu_stuff.
7362         (th_data): Define.
7363         (th_msg): Change to th_u1.th_u2.tu_data.
7364
7365 2012-05-07  David S. Miller  <davem@davemloft.net>
7366
7367         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7368
7369         [BZ #14074]
7370         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
7371         (SETUP_PIC_REG): Use it.
7372         (SETUP_PIC_REG_LEAF): Use it.
7373
7374 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
7375
7376         [BZ #13885]
7377         [BZ #13923]
7378         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7379         USE_AS_EXPM1L.
7380         (EXPL_FINITE): Likewise.
7381         (FLDLOG): Likewise.
7382         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
7383         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
7384         e_expl.S.
7385         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7386         USE_AS_EXPM1L.
7387         (EXPL_FINITE): Likewise.
7388         (FLDLOG): Likewise.
7389         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
7390         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
7391         e_expl.S.
7392         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
7393         test of -max_value argument for long double.
7394         * sysdeps/i386/fpu/libm-test-ulps: Update.
7395         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7396
7397 2012-05-06  David S. Miller  <davem@davemloft.net>
7398
7399         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
7400         quad soft-float symbols whose references which are compiler
7401         generated.
7402         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
7403
7404 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
7405
7406         [BZ #13884]
7407         [BZ #13914]
7408         * sysdeps/i386/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         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
7418         e_expl.S.
7419         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
7420         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
7421         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
7422         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
7423         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7424         USE_AS_EXP10L.
7425         (EXPL_FINITE): Likewise.
7426         (FLDLOG): Likewise.
7427         (c0): Likewise.
7428         (c1): Likewise.
7429         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
7430         Adjust comments for base varying.
7431         (__expl_finite): Change alias to EXPL_FINITE.
7432         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
7433         tests for bugs.
7434         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7435
7436         [BZ #14064]
7437         * math/libm-test.inc (check_float_internal): Correct ulp
7438         calculation for subnormal expected results.
7439
7440 2012-05-06  Andreas Jaeger  <aj@suse.de>
7441
7442         * Makeconfig (+math-flags): New, set to -frounding-math.
7443         (+cflags): Add +math-flags so that all of glibc gets compiled with
7444         it.
7445
7446         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
7447
7448 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
7449
7450         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
7451         Disable one test.
7452
7453         [BZ #13787]
7454         [BZ #13922]
7455         [BZ #14036]
7456         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
7457         (__ieee754_expl): Allow for and saturate large arguments.
7458         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
7459         (u_threshold): Likewise.
7460         (__exp): Call __ieee754_exp before checking for overflow and
7461         underflow.
7462         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
7463         (u_threshold): Likewise.
7464         (__expf): Call __ieee754_expf before checking for overflow and
7465         underflow.
7466         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
7467         (u_threshold): Likewise.
7468         (__expl): Call __ieee754_expl before checking for overflow and
7469         underflow.
7470         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
7471         (__ieee754_expl): Allow for and saturate large arguments.
7472         * math/libm-test.inc (exp_test): Add another test.  Do not allow
7473         missing overflow exception on overflow.
7474         (expm1_test): Do not allow missing overflow exception on overflow.
7475
7476         * sysdeps/i386/fpu/e_expl.c: Move to ...
7477         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
7478         rather than using inline asm.
7479         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
7480         * sysdeps/x86_64/fpu/e_expl.S: Copy from
7481         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
7482
7483         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
7484         (nice): Likewise.
7485         (poll): Likewise.
7486         (signal): Likewise.
7487         (time): Likewise.
7488         (times): Likewise.
7489
7490 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
7491
7492         * sysdeps/unix/syscalls.list (adjtime): Add entry from
7493         sysdeps/unix/common/syscalls.list.
7494         (fchmod): Likewise.
7495         (fchown): Likewise.
7496         (ftruncate): Likewise.
7497         (getrusage): Likewise.
7498         (gettimeofday): Likewise.
7499         (setpgid): Likewise.
7500         (setregid): Likewise.
7501         (setreuid): Likewise.
7502         (sigaction): Likewise.
7503         (truncate): Likewise.
7504         (vhangup): Likewise.
7505         * sysdeps/unix/common/syscalls.list: Remove file.
7506         * sysdeps/unix/bsd/Implies: Don't include unix/common.
7507         * sysdeps/unix/sysv/linux/Implies: Likewise.
7508
7509 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
7510
7511         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
7512         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
7513         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
7514         Moved to ...
7515         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
7516         Here.
7517         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
7518         to ...
7519         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
7520         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
7521         to ...
7522         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
7523         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
7524         to ...
7525         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
7526         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
7527         to ...
7528         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
7529         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
7530         to ...
7531         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
7532         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
7533         to ...
7534         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
7535         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
7536         to ...
7537         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
7538         Here.
7539         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
7540         to ...
7541         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
7542         Here.
7543         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
7544         to ...
7545         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
7546         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
7547         Moved to ...
7548         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
7549         Here.
7550         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
7551         to ...
7552         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
7553
7554 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
7555
7556         * sysdeps/unix/common/bits/dirent.h: Remove file.
7557         * sysdeps/unix/common/bits/fcntl.h: Likewise.
7558
7559         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
7560         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
7561         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
7562         * sysdeps/unix/bsd/isatty.c: Likewise.
7563         * sysdeps/unix/bsd/tcdrain.c: Likewise.
7564         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
7565         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
7566
7567 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7568
7569         [BZ #13563]
7570         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
7571         long double comparison inaccuracies.
7572         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
7573         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7574
7575 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
7576
7577         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
7578         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
7579
7580 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
7581
7582         [BZ #14049]
7583         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
7584         nonzero digits before rounding a hex value.
7585         * stdlib/tst-strtod.c (tests): Add another test.
7586
7587 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7588
7589         * sysdeps/s390/fpu/libm-test-ulps: Update.
7590
7591 2012-05-03  Andreas Jaeger  <aj@suse.de>
7592
7593         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
7594         does not get optimized out.
7595         (malloc_opt_barrier): New.
7596
7597 2012-05-03  Andreas Jaeger  <aj@suse.de>
7598             Roland McGrath  <roland@hack.frob.com>
7599
7600         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
7601         intermediate file deletion.
7602         (generated): Add .symlist files.
7603
7604 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
7605
7606         [BZ #13775]
7607         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
7608         Redirect under this condition.
7609         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
7610         [__USE_GNU] (__dprintf_chk): Not under this condition.
7611         [__USE_GNU] (__vdprintf_chk): Likewise.
7612         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
7613         under this condition.
7614         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
7615         [__USE_XOPEN2K8] (dprintf): Define under this condition.
7616         [__USE_XOPEN2K8] (vdprintf): Likewise.
7617         [__USE_GNU] (__dprintf_chk): Not under this condition.
7618         [__USE_GNU] (__vdprintf_chk): Likewise.
7619         [__USE_GNU] (dprintf): Likewise.
7620         [__USE_GNU] (vdprintf): Likewise.
7621
7622 2012-05-03  Roland McGrath  <roland@hack.frob.com>
7623
7624         * elf/Makefile (common-generated): Set this instead of generated for
7625         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
7626         $(all-built-dso)-derived lists.
7627
7628 2012-05-03  Andreas Jaeger  <aj@suse.de>
7629
7630         * sysdeps/i386/fpu/libm-test-ulps: Update.
7631
7632         * FAQ: Removed.
7633         * FAQ.in: Likewise.
7634         * scripts/gen-FAQ.pl: Likewise.
7635         * manual/install.texi (Installation): Point to online location of
7636         FAQ.
7637         * Makefile (files-for-dist): Remove FAQ.
7638         (FAQ): Remove.
7639
7640 2012-05-02  Allan McRae  <allan@archlinux.org>
7641
7642         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
7643         (LDFLAGS-reldepmod5.so): Likewise.
7644         (LDFLAGS-reldep6mod1.so): Likewise.
7645         (LDFLAGS-reldep6mod4.so): Likewise.
7646         (LDFLAGS-reldep8mod3.so): Likewise.
7647         (LDFLAGS-unload4mod1.so): Likewise.
7648         (LDFLAGS-unload4mod2.so): Likewise.
7649         (LDFLAGS-tst-initorder): Likewise.
7650         (LDFLAGS-tst-initordera2.so): Likewise.
7651         (LDFLAGS-tst-initordera3.so): Likewise.
7652         (LDFLAGS-tst-initordera4.so): Likewise.
7653         (LDFLAGS-tst-initorderb2.so): Likewise.
7654         (LDFLAGS-noload): Likewise.
7655         (LDFLAGS-next): Likewise.
7656         (LDFLAGS-order2mod1.so): Likewise.
7657         (LDFLAGS-order2mod2.so): Likewise.
7658         (LDFLAGS-tst-initorder2): Likewise.
7659         (LDFLAGS-tst-initorder2a.so): Likewise.
7660         (LDFLAGS-tst-initorder2b.so): Likewise.
7661         (LDFLAGS-tst-initorder2c.so): Likewise.
7662         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
7663
7664 2012-05-02  David S. Miller  <davem@davemloft.net>
7665
7666         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7667
7668 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
7669
7670         [BZ #14055]
7671         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
7672
7673 2012-05-02  Andreas Jaeger  <aj@suse.de>
7674
7675         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
7676         since we manipulate rounding mode.
7677         (CPPFLAGS-test-idouble.c): Likewise.
7678         (CPPFLAGS-test-ifloat.c): Likewise.
7679         (CFLAGS-test-ldouble.c): Likewise.
7680         (CFLAGS-test-double.c): Likewise.
7681         (CFLAGS-test-float.c): Likewise.
7682         (CFLAGS-test-misc.c): Likewise.
7683         (CFLAGS-test-test-fenv.c): Likewise.
7684
7685 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7686
7687         [BZ #2550]
7688         [BZ #2570]
7689         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
7690         comparisons to determine direction to adjust input.
7691
7692 2012-05-01  Roland McGrath  <roland@hack.frob.com>
7693
7694         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
7695         output to the target.
7696
7697         * scripts/localplt.awk: New file.
7698         * elf/Makefile ($(objpfx)check-localplt): Target removed.
7699         (check-localplt-CFLAGS): Variable removed.
7700         ($(all-built-dso:=.jmprel)): New static pattern rule.
7701         (generated): Add those targets.
7702         (localplt-built-dso): New variable.
7703         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
7704
7705         * elf/check-localplt.c: File removed.
7706
7707         * scripts/check-execstack.awk: New file.
7708         * elf/Makefile ($(objpfx)check-execstack): Target removed.
7709         (check-execstack-CFLAGS): Variable removed.
7710         ($(objpfx)check-execstack.h): Target removed.
7711         ($(objpfx)execstack-default): New target.
7712         (generated): Add that instead of check-execstack.h.
7713         ($(all-built-dso:=.phdr)): New static pattern rule.
7714         (generated): Add those targets.
7715         * elf/check-execstack.c: File removed.
7716
7717         * scripts/check-textrel.awk: New file.
7718         * elf/Makefile ($(objpfx)check-textrel): Target removed.
7719         (check-textrel-CFLAGS): Variable removed.
7720         (all-built-dso): Use := to define.o
7721         ($(all-built-dso:=.dyn)): New static pattern rule.
7722         (generated): Add those targets.
7723         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
7724         * config.make.in (READELF): New substituted variable.
7725         * elf/check-textrel.c: File removed.
7726
7727 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
7728
7729         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
7730         allow.
7731         * conform/data/ctype.h-data [C99-based standards] (isblank):
7732         Expect function.
7733         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
7734         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
7735         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7736         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
7737         Specify type.  Require positive value.
7738         (EILSEQ): Likewise.
7739         (ERANGE): Likewise.
7740         [ISO || POSIX] (EILSEQ): Do not expect.
7741         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
7742         Specify type.  Require positive value.
7743         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
7744         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
7745         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
7746         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
7747         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
7748         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
7749         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
7750         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
7751         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
7752         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
7753         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
7754         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
7755         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
7756         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
7757         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
7758         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
7759         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
7760         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
7761         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
7762         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
7763         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
7764         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
7765         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
7766         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
7767         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
7768         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
7769         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
7770         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
7771         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
7772         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
7773         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
7774         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
7775         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
7776         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
7777         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
7778         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
7779         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
7780         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
7781         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
7782         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
7783         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
7784         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
7785         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
7786         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
7787         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
7788         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
7789         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
7790         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
7791         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
7792         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
7793         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
7794         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
7795         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
7796         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
7797         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
7798         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
7799         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
7800         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
7801         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
7802         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
7803         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
7804         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
7805         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
7806         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
7807         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
7808         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
7809         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
7810         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
7811         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
7812         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
7813         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
7814         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
7815         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
7816         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
7817         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
7818         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
7819         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
7820         Require >= 2.
7821         (FLT_ROUNDS): Expect as macro, not constant.
7822         (FLT_MANT_DIG): Use macro-int-constant.
7823         (DBL_MANT_DIG): Likewise.
7824         (LDBL_MANT_DIG): Likewise.
7825         (FLT_DIG): Likewise.
7826         (DBL_DIG): Likewise.
7827         (LDBL_DIG): Likewise.
7828         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
7829         (DBL_MIN_EXP): Likewise.
7830         (LDBL_MIN_EXP): Likewise.
7831         (FLT_MAX_EXP): Use macro-int-constant.
7832         (DBL_MAX_EXP): Likewise.
7833         (LDBL_MAX_EXP): Likewise.
7834         (FLT_MAX_10_EXP): Likewise.
7835         (DBL_MAX_10_EXP): Likewise.
7836         (LDBL_MAX_10_EXP): Likewise.
7837         (FLT_MAX): Use macro-constant.
7838         (DBL_MAX): Likewise.
7839         (LDBL_MAX): Likewise.
7840         (FLT_EPSILON): Use macro-constant.  Give upper bound.
7841         (DBL_EPSILON): Likewise.
7842         (LDBL_EPSILON): Likewise.
7843         (FLT_MIN): Likewise.
7844         (DBL_MIN): Likewise.
7845         (LDBL_MIN): Likewise.
7846         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
7847         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
7848         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
7849         [ISO11] (FLT_HAS_SUBNORM): Likewise.
7850         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
7851         [ISO11] (DBL_DECIMAL_DIG): Likewise.
7852         [ISO11] (FLT_DECIMAL_DIG): Likewise.
7853         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
7854         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
7855         [ISO11] (FLT_TRUE_MIN): Likewise.
7856         [ISO11] (LDBL_TRUE_MIN): Likewise.
7857         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7858         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
7859         (SCHAR_MIN): Use macro-int-constant.  Specify type.
7860         (SCHAR_MAX): Likewise.
7861         (UCHAR_MAX): Likewise.
7862         (CHAR_MIN): Likewise.
7863         (CHAR_MAX): Likewise.
7864         (MB_LEN_MAX): Use macro-int-constant.
7865         (SHRT_MIN): Use macro-int-constant.  Specify type.
7866         (SHRT_MAX): Likewise.
7867         (USHRT_MAX): Likewise.
7868         (INT_MAX): Likewise.
7869         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
7870         bound negative.
7871         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
7872         bound with "U".
7873         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
7874         bound with "L".
7875         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
7876         bound negative.  Suffix upper bound with "L".
7877         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
7878         bound with "UL".
7879         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
7880         Specify type.
7881         [C99-based standards] (LLONG_MAX): Likewise.
7882         [C99-based standards] (ULLONG_MAX): Likewise.
7883         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
7884         == 0.
7885         [ISO11] (max_align_t): Require type.
7886         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7887
7888         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
7889         from $CFLAGS, without defining away __attribute__ calls.
7890         (checknamespace): Use $CFLAGS_namespace.
7891
7892         * conform/conformtest.pl (@keywords): Only include C99 keywords
7893         for standards based on C99 or C11.
7894
7895         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
7896         Disable tests.
7897         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
7898         UNIX98]: Likewise.
7899
7900         * conform/conformtest.pl: Handle "macro-int-constant" and test for
7901         usability of symbols in #if.
7902
7903         * conform/conformtest.pl: If macro or constant types start
7904         "promoted:", expect the symbol to be of the following type
7905         promoted by the integer promotions.
7906
7907         * conform/conformtest.pl: Parse all "constant" and "macro" lines
7908         in one place.  Also handle "macro-constant".
7909
7910         * conform/conformtest.pl: Only accept expected macro values with
7911         "==".  Parse all "macro" lines in one place.
7912         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
7913
7914         * conform/conformtest.pl: Handle braced types on "constant" lines
7915         instead of handling "typed-constant".
7916         * conform/data/signal.h-data: Use "constant" instead of
7917         "typed-constant".
7918
7919         * conform/conformtest.pl: Handle "optional-" at start of lines in
7920         one place rather than duplicating several cases.  Handle each
7921         format of "macro" line with initial "optional-".
7922
7923         * conform/conformtest.pl: Only accept expected constant or
7924         optional-constant values with "==".  Parse all "constant" lines in
7925         one place.  Parse all "optional-constant" lines in one place.
7926         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
7927         * conform/data/fmtmsg.h-data: Likewise.
7928         * conform/data/netinet/in.h-data: Likewise.
7929         * conform/data/tar.h-data: Likewise.
7930         * conform/data/limits.h-data: Use "==" form on "constant" and
7931         "optional-constant" lines.
7932
7933         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
7934         Use -std=c99 for XOPEN2K.
7935         (@knownproblems): Remove.
7936         (newtoken): Don't check %isknown.
7937
7938         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
7939         Do not expect macro.
7940         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
7941         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
7942         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
7943         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
7944         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
7945         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
7946         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
7947         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
7948         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
7949         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
7950         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
7951         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
7952         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
7953         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
7954         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
7955         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
7956         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
7957         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
7958         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
7959         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
7960         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
7961         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
7962         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
7963         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
7964         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
7965         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
7966         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
7967         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
7968         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
7969         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
7970         [XPG3] (acosh): Likewise.
7971         [XPG3] (asinh): Likewise.
7972         [XPG3] (atanh): Likewise.
7973         [XPG3] (cbrt): Likewise.
7974         [XPG3] (expm1): Likewise.
7975         [XPG3] (ilogb): Likewise.
7976         [XPG3] (log1p): Likewise.
7977         [XPG3] (logb): Likewise.
7978         [XPG3] (nextafter): Likewise.
7979         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
7980         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
7981         [XPG3] (remainder): Likewise.
7982         [XPG3] (rint): Likewise.
7983         [XPG3 || XPG4 || UNIX98] (round): Likewise.
7984         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
7985         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
7986         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
7987         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
7988         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
7989         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
7990         [UNIX98 || XOPEN2K] (scalb): Expect.
7991         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
7992         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
7993         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
7994         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
7995         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
7996         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
7997         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
7998         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
7999         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
8000         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
8001         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
8002         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
8003         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
8004         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
8005         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
8006         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
8007         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
8008         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
8009         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
8010         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
8011         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
8012         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
8013         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
8014         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
8015         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
8016         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
8017         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
8018         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
8019         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
8020         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
8021         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
8022         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
8023         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
8024         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
8025         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
8026         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
8027         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
8028         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
8029         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
8030         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
8031         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
8032         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
8033         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
8034         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
8035         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
8036         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
8037         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
8038         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
8039         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
8040         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
8041         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
8042         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
8043         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
8044         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
8045         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
8046         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
8047         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
8048         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
8049         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
8050         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
8051         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
8052         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
8053         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
8054         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
8055         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
8056         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
8057         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
8058         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
8059         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
8060         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
8061         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
8062         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
8063         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
8064         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
8065         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
8066         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
8067         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
8068         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
8069         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
8070         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
8071         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
8072         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
8073         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
8074         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
8075         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
8076         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
8077         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
8078         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
8079         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
8080         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
8081         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
8082         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
8083         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
8084         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
8085         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
8086         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
8087         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
8088         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
8089         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
8090         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
8091         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
8092         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
8093         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
8094         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
8095         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
8096         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
8097         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
8098         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
8099         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
8100         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
8101         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
8102         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
8103         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
8104         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
8105         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
8106         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
8107         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
8108         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
8109         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
8110         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
8111         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
8112         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
8113         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
8114         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
8115         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
8116         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
8117         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
8118         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
8119         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
8120         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
8121         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
8122         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
8123         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
8124         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
8125         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
8126         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
8127         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
8128
8129         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
8130         _XOPEN_SOURCE_EXTENDED for XPG4.
8131
8132         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
8133
8134         * Makeconfig (localtime): Remove variable.
8135         (inst_localtime-file): Likewise.
8136
8137 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
8138
8139         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
8140         Update.
8141         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
8142         Update.
8143         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
8144         Update.
8145         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
8146         Update.
8147         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
8148         Update.
8149         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
8150         Update.
8151         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
8152         Update.
8153         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
8154         Update.
8155         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
8156         Update.
8157
8158 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
8159
8160         [BZ #2550]
8161         [BZ #2570]
8162         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
8163         comparisons to determine direction to adjust input.
8164         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
8165         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
8166         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
8167         Likewise.
8168         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
8169         Likewise.
8170         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
8171         Likewise.
8172         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
8173         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
8174         Likewise.
8175         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
8176         Likewise.
8177         * math/libm-test.inc (nexttoward_test): Add more tests.
8178
8179 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
8180
8181         [BZ #14040]
8182         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
8183         in version GLIBC_2.1, not GLIBC_2.0.
8184         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
8185         Likewise.
8186
8187 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
8188
8189         [BZ #13942]
8190         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
8191         (1 - x) * (1 + x).
8192         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
8193         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
8194         * math/libm-test.inc (acos_test): Add more tests.
8195         (asin_test): Likewise.
8196         * sysdeps/i386/fpu/libm-test-ulps: Update.
8197         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8198
8199         [BZ #14034]
8200         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
8201         of square root.
8202         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
8203         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
8204         * math/libm-test.inc (acos_test_tonearest): New function.
8205         (acos_test_towardzero): Likewise.
8206         (acos_test_downward): Likewise.
8207         (acos_test_upward): Likewise.
8208         (asin_test_tonearest): Likewise.
8209         (asin_test_towardzero): Likewise.
8210         (asin_test_downward): Likewise.
8211         (asin_test_upward): Likewise.
8212         (main): Call the new functions.
8213         * sysdeps/i386/fpu/libm-test-ulps: Update.
8214         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8215
8216         [BZ #13884]
8217         [BZ #13924]
8218         * math/e_exp10.c: Include <float.h>.
8219         (__ieee754_exp10): Handle underflow here rather than multiplying
8220         large negative argument by M_LN10.
8221         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
8222         of __ieee754_expf.
8223         * math/e_exp10l.c: Include <float.h>.
8224         (__ieee754_exp10l): Handle underflow here rather than multiplying
8225         large negative argument by M_LN10l.
8226         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
8227         spurious overflow exception on underflow.
8228
8229 2012-04-29  Marek Polacek  <polacek@redhat.com>
8230
8231         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
8232         (__fortify_function): New macro.
8233         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
8234         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
8235         __extern_always_inline.
8236         * libio/bits/stdio2.h: Likewise.
8237         * libio/bits/stdio.h: Likewise.
8238         * string/string.h: Likewise.
8239         * string/bits/string3.h: Likewise.
8240         * include/stdio.h: Likewise.
8241         * stdlib/bits/stdlib.h: Likewise.
8242         * stdlib/stdlib.h: Likewise.
8243         * rt/bits/mqueue2.h: Likewise.
8244         * rt/mqueue.h: Likewise.
8245         * posix/bits/unistd.h: Likewise.
8246         * posix/unistd.h: Likewise.
8247         * io/bits/poll2.h: Likewise.
8248         * io/bits/fcntl2.h: Likewise.
8249         * io/fcntl.h: Likewise.
8250         * io/sys/poll.h: Likewise.
8251         * misc/bits/syslog.h: Likewise.
8252         * misc/bits/syslog-ldbl.h: Likewise.
8253         * misc/sys/syslog.h: Likewise.
8254         * socket/bits/socket2.h: Likewise.
8255         * socket/sys/socket.h: Likewise.
8256         * debug/tst-chk1.c: Likewise.
8257         * wcsmbs/bits/wchar2.h: Likewise.
8258         * wcsmbs/bits/wchar-ldbl.h: Likewise.
8259         * wcsmbs/wchar.h: Likewise.
8260
8261 2012-04-29  Andreas Jaeger  <aj@suse.de>
8262
8263         * Makerules (tests): Remove enable-check-abi protection.
8264         (check-abi-warn): Remove.
8265         (check-abi-%): Remove check-abi-warn usage.
8266
8267         * configure.in: Remove check-abi configure option.
8268         * configure: Regenerated.
8269         * config.make.in (enable-check-abi): Remove.
8270
8271 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
8272
8273         [BZ #14033]
8274         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
8275         double functions to double *_finite functions.
8276
8277         [BZ #13941]
8278         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
8279         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
8280         LDBL_MIN_EXP.
8281         * stdio-common/Makefile (tests): Add tst-sprintf3.
8282         * stdio-common/tst-sprintf3.c: New file.
8283
8284         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
8285         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
8286
8287 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
8288
8289         * conform/conformtest.pl: Remove duplicate typed-constant
8290         handling.
8291
8292 2012-04-28  David S. Miller  <davem@davemloft.net>
8293
8294         * Makerules (%.abilist): Add vpath on sysdep_dirs.
8295         (check-abi-%): Remove AWK script prerequisite and explicit
8296         abilist directory.
8297         (check-abi): Rewrite to just diff the symlist with the abilist.
8298         (config-tls, config-abi-config): Delete, no longer used.
8299         (update-abi-%): Remove AWK script and explicit abilist directory.
8300         (update-abi): Rewrite to simply compare and conditionally copy the
8301         symlist and the sysdep abilist file.  Remove update-abi-config
8302         checks.
8303         * abilist/ld.abilist: Remove.
8304         * abilist/libBrokenLocale.abilist: Remove.
8305         * abilist/libanl.abilist: Remove.
8306         * abilist/libcrypt.abilist: Remove.
8307         * abilist/libdl.abilist: Remove.
8308         * abilist/librt.abilist: Remove.
8309         * abilist/libthread_db.abilist: Remove.
8310         * abilist/libutil.abilist: Remove.
8311         * scripts/extract-abilist.awk: Remove.
8312         * scripts/merge-abilist.awk: Remove.
8313         * sysdeps/generic/libcidn.abilist: New file.
8314         * sysdeps/generic/libnss_compat.abilist: New file.
8315         * sysdeps/generic/libnss_db.abilist: New file.
8316         * sysdeps/generic/libnss_dns.abilist: New file.
8317         * sysdeps/generic/libnss_files.abilist: New file.
8318         * sysdeps/generic/libnss_hesiod.abilist: New file.
8319         * sysdeps/generic/libnss_nis.abilist: New file.
8320         * sysdeps/generic/libnss_nisplus.abilist: New file.
8321         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
8322         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
8323         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
8324         file.
8325         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
8326         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
8327         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
8328         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
8329         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
8330         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
8331         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
8332         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
8333         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
8334         file.
8335         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
8336         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
8337         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
8338         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
8339         file.
8340         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
8341         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
8342         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
8343         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
8344         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
8345         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
8346         file.
8347         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
8348         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
8349         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
8350         file.
8351         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
8352         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
8353         New file.
8354         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
8355         New file.
8356         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
8357         New file.
8358         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
8359         New file.
8360         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
8361         New file.
8362         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
8363         New file.
8364         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
8365         New file.
8366         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
8367         New file.
8368         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
8369         New file.
8370         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
8371         New file.
8372         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
8373         New file.
8374         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
8375         New file.
8376         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
8377         New file.
8378         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
8379         file.
8380         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
8381         New file.
8382         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
8383         New file.
8384         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
8385         file.
8386         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
8387         New file.
8388         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
8389         New file.
8390         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
8391         file.
8392         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
8393         New file.
8394         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
8395         New file.
8396         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
8397         New file.
8398         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
8399         New file.
8400         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
8401         New file.
8402         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
8403         New file.
8404         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
8405         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
8406         file.
8407         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
8408         New file.
8409         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
8410         file.
8411         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
8412         file.
8413         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
8414         file.
8415         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
8416         file.
8417         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
8418         file.
8419         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
8420         New file.
8421         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
8422         file.
8423         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
8424         file.
8425         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
8426         New file.
8427         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
8428         file.
8429         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
8430         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
8431         file.
8432         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
8433         New file.
8434         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
8435         file.
8436         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
8437         file.
8438         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
8439         file.
8440         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
8441         file.
8442         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
8443         file.
8444         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
8445         New file.
8446         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
8447         file.
8448         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
8449         file.
8450         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
8451         New file.
8452         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
8453         file.
8454         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
8455         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
8456         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
8457         file.
8458         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
8459         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
8460         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
8461         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
8462         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
8463         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
8464         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
8465         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
8466         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
8467         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
8468         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
8469         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
8470         file.
8471         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
8472         New file.
8473         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
8474         file.
8475         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
8476         file.
8477         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
8478         file.
8479         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
8480         file.
8481         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
8482         file.
8483         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
8484         New file.
8485         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
8486         New file.
8487         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
8488         file.
8489         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
8490         New file.
8491         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
8492         file.
8493         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
8494         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
8495         file.
8496         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
8497         New file.
8498         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
8499         file.
8500         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
8501         file.
8502         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
8503         file.
8504         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
8505         file.
8506         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
8507         file.
8508         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
8509         New file.
8510         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
8511         New file.
8512         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
8513         file.
8514         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
8515         New file.
8516         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
8517         file.
8518
8519 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
8520
8521         * conform/conformtest.pl: Fix typo in handling typed-constant from
8522         allow-header.
8523
8524 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
8525
8526         * README: Cut down references to pre-2.6 Linux kernels and
8527         Linuxthreads.  Update lists of configurations in libc and ports
8528         and sort alphabetically.  Say "or newer" with Linux kernel version
8529         requirements.
8530
8531         * config.h.in [IS_IN_build]: Allow compiling without optimization.
8532
8533 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
8534
8535         [BZ #887]
8536         * math/libm-test.inc (logb_test_downward): New test to expose
8537         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
8538         rounding mode.
8539
8540 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
8541
8542         [BZ #14027]
8543         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
8544         to be done.
8545         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
8546         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
8547
8548 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
8549
8550         * sysdeps/unix/i386/brk.S: Remove file.
8551         * sysdeps/unix/i386/dl-brk.S: Likewise.
8552         * sysdeps/unix/i386/pipe.S: Likewise.
8553         * sysdeps/unix/i386/sigreturn.S: Likewise.
8554         * sysdeps/unix/i386/syscall.S: Likewise.
8555         * sysdeps/unix/i386/vfork.S: Likewise.
8556         * sysdeps/unix/i386/wait.S: Likewise.
8557
8558         * sysdeps/unix/common/tcsendbrk.c: Move to ...
8559         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
8560
8561         * configure.in (arm*-none*): Do not allow without
8562         --enable-hacker-mode.
8563         (netbsd*): Remove case setting base_os.
8564         (386bsd*): Likewise.
8565         (freebsd*): Likewise.
8566         (bsdi*): Likewise.
8567         (osf*): Likewise.
8568         (sunos*): Likewise.
8569         (ultrix*): Likewise.
8570         (newsos*): Likewise.
8571         (dynix*): Likewise.
8572         (*bsd*): Likewise.
8573         (sysv*): Likewise.
8574         (isc*): Likewise.
8575         (esix*): Likewise.
8576         (sco*): Likewise.
8577         (minix*): Likewise.
8578         (irix4*): Likewise.
8579         (irix6*): Likewise.
8580         (solaris[2-9]*): Likewise.
8581         (none): Likewise.
8582         * configure: Regenerated.
8583
8584 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8585
8586         [BZ #11521]
8587         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
8588         overflow or cancellation in calculating denominator.
8589         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
8590         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
8591         down expression to avoid unexpected rounding in newer GCCs.
8592         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
8593
8594 2012-04-26  David S. Miller  <davem@davemloft.net>
8595
8596         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
8597         long-double compat symbols.
8598         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
8599         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
8600         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
8601         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
8602         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
8603         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
8604         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
8605         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
8606         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
8607         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
8608         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
8609         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
8610         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
8611
8612 2012-04-25  David S. Miller  <davem@davemloft.net>
8613
8614         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
8615         HWCAP_* values only after the memory barriers have been defined.
8616         (atomic_full_barrier): Define.
8617         (atomic_read_barrier): Define.
8618         (atomic_write_barrier): Define.
8619
8620 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
8621
8622         * shlib-versions: Add libgcc_s version information.
8623         * sysdeps/generic/libgcc_s.h: Remove.
8624         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
8625         libgcc_s.h.
8626         * sysdeps/gnu/unwind-resume.c: Likewise.
8627         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
8628
8629 2012-04-25  David S. Miller  <davem@davemloft.net>
8630
8631         * sysdeps/unix/sparc/brk.S: Delete.
8632         * sysdeps/unix/sparc/dl-brk.S: Delete.
8633         * sysdeps/unix/sparc/pipe.S: Delete.
8634         * sysdeps/unix/sparc/sysdep.S: Delete.
8635         * sysdeps/unix/sparc/sysdep.h: Delete.
8636         * sysdeps/unix/sparc/vfork.S: Delete.
8637         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
8638         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
8639         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
8640         ret_ERRVAL, r0, r1, MOVE): Define.
8641         (JUMPTARGET): Remove.
8642         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
8643         sysdeps/unix/sparc/sysdep.h
8644         (ENTRY, END): Remove.
8645         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
8646
8647 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
8648
8649         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
8650         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
8651         -DIS_IN_build.
8652
8653         * timezone/README: Update upstream location and email address for
8654         tzcode and tzdata.
8655         * timezone/zdump.c: Update from tzcode 2012b.
8656         * timezone/zic.c: Likewise.
8657
8658         * configure.in (libc_cv_as_needed): Remove test.
8659         * configure: Regenerated.
8660         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
8661         conditional definition.
8662         [$(have-as-needed) != yes] (no-as-needed): Likewise.
8663         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
8664         * config.make.in (have-as-needed): Remove variable.
8665
8666 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
8667             Paul Pluzhnikov  <ppluzhnikov@google.com>
8668
8669         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
8670         strings correctly.
8671
8672 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
8673
8674         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
8675         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
8676         * sysdeps/sh/strlen.S: Likewise.
8677
8678 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
8679
8680         * sysdeps/unix/fork.S: Remove file.
8681         * sysdeps/unix/i386/fork.S: Likewise.
8682         * sysdeps/unix/sparc/fork.S: Likewise.
8683
8684         * sysdeps/unix/system.c: Remove file.
8685         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
8686
8687         * sysdeps/unix/getegid.S: Remove file.
8688         * sysdeps/unix/geteuid.S: Likewise.
8689
8690 2012-04-24  Roland McGrath  <roland@hack.frob.com>
8691
8692         * scripts/check-localplt.awk: New file.
8693         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
8694         of diff.
8695         * scripts/data/localplt-generic.data: Add a comment.
8696
8697         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
8698         NODE when __dir_mkfile failed.
8699         * sysdeps/mach/hurd/symlinkat.c: Likewise.
8700         Reported by Ludovic Courtès <ludo@gnu.org>.
8701
8702 2012-04-24  Andreas Jaeger  <aj@suse.de>
8703
8704         * Makerules (common-clean): Also remove gen-as-const-headers
8705         files.
8706
8707 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
8708
8709         * Makerules (native-compile): Do not change working directory for
8710         build.  Use $(OUTPUT_OPTION) in command.
8711         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
8712
8713 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8714
8715         [BZ #13886]
8716         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
8717         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
8718         * math/libm-test.inc (floor_test): Add more tests.
8719         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
8720
8721 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
8722
8723         * sysdeps/unix/getdents.c: Remove file.
8724         * sysdeps/unix/sysv/getdents.c: Likewise.
8725         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
8726
8727         * sysdeps/unix/syscalls.list (madvise): Add syscall from
8728         sysdeps/unix/mman/syscalls.list.
8729         (mmap): Likewise.
8730         (mprotect): Likewise.
8731         (msync): Likewise.
8732         (munmap): Likewise.
8733         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
8734         * sysdeps/unix/mman/syscalls.list: Remove.
8735         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
8736
8737         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
8738         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
8739         * configure: Regenerated.
8740         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
8741         $(libgcc_s_suffix).
8742         * config.make.in (libgcc_s_suffix): Remove variable.
8743
8744 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
8745
8746         * sysdeps/unix/sysv/gethostname.c: Move to ...
8747         * sysdeps/posix/gethostname.c: ... here.
8748
8749         * sysdeps/unix/execve.S: Remove file.
8750
8751         * sysdeps/unix/_exit.S: Remove file.
8752
8753 2012-04-23  Andreas Jaeger  <aj@suse.de>
8754
8755         [BZ #13739]
8756         * manual/Makefile: Remove make dist support, there's no
8757         need for a stand-alone documentation tar ball.
8758         (TEXI2DVI): Define always, it's not in Makeconfig.
8759         (dist): Removed.
8760         (tar-it): Removed.
8761         (edition): Removed.
8762         (glibc-doc-$(edition).tar): Removed
8763         (%.Z): Removed.
8764         (%.gz): Removed.
8765         (%.uu): Removed.
8766         (ETAGS): Remove, it's in Makeconfig.
8767         (move-if-change): Remove, it's in Makeconfig.
8768
8769 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
8770
8771         [BZ #13970]
8772         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
8773         (strtod, strtof, strtold, strtol, strtoul, strtoq)
8774         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
8775         (strtod_l, strtof_l, strtold_l): Remove __wur.
8776         It is not necessarily an error to ignore strtol's return value.
8777         One can reliably look at the stored endptr to decide whether
8778         the number had valid syntax.
8779
8780 2012-04-21  Andreas Jaeger  <aj@suse.de>
8781
8782         [BZ #13739]
8783         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
8784
8785 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
8786
8787         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
8788         * sysdeps/unix/sysv/Versions: Remove file.
8789
8790 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
8791
8792         [BZ #13927]
8793         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8794
8795 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
8796
8797         [BZ #7064]
8798         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
8799         version from __vm86.
8800
8801 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
8802
8803         * sysdeps/unix/common/lxstat.c: Remove file.
8804         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
8805
8806         * sysdeps/unix/sysv/Makefile: Remove file.
8807
8808         * sysdeps/unix/sysv/direct.h: Remove file.
8809
8810         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
8811         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
8812         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
8813         * sysdeps/unix/sysv/bits/signum.h: Likewise.
8814         * sysdeps/unix/sysv/bits/stat.h: Likewise.
8815         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
8816         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
8817
8818         * sysdeps/unix/sysv/setrlimit.c: Remove file.
8819
8820         * sysdeps/unix/xmknod.c: Remove file.
8821         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
8822
8823         * sysdeps/unix/sysv/settimeofday.c: Remove file.
8824
8825         * sysdeps/unix/sysv/i386/time.S: Remove file.
8826
8827         * sysdeps/unix/fxstat.c: Remove file.
8828         * sysdeps/unix/xstat.c: Likewise.
8829         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
8830
8831         * sysdeps/unix/sysv/sigaction.c: Remove file.
8832
8833         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
8834         (sysdep_headers): Remove variable.
8835         [termio.h not in sysdep_headers] (generated): Likewise.
8836         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
8837         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
8838         * sysdeps/unix/sysv/tcdrain.c: Likewise.
8839         * sysdeps/unix/sysv/tcflow.c: Likewise.
8840         * sysdeps/unix/sysv/tcflush.c: Likewise.
8841         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
8842         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
8843         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
8844         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
8845         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
8846
8847         * sysdeps/unix/siglist.c: Remove file.
8848
8849         * sysdeps/unix/getppid.S: Remove file.
8850
8851         * sysdeps/unix/mkdir.c: Remove file.
8852         * sysdeps/unix/rmdir.c: Likewise.
8853
8854 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
8855
8856         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
8857         ERR_MAX value.
8858         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
8859         errlist-compat value.
8860
8861 2012-04-18  David S. Miller  <davem@davemloft.net>
8862
8863         * sysdeps/generic/memcopy.h (reg_char): Delete.
8864         * debug/strcat_chk.c: Use char, not reg_char.
8865         * debug/strcpy_chk.c: Likewise.
8866         * debug/strncat_chk.c: Likewise.
8867         * debug/strncpy_chk.c: Likewise.
8868         * string/memchr.c: Likewise.
8869         * string/memrchr.c: Likewise.
8870         * string/rawmemchr.c: Likewise.
8871         * string/strcat.c: Likewise.
8872         * string/strchr.c: Likewise.
8873         * string/strchrnul.c: Likewise.
8874         * string/strcmp.c: Likewise.
8875         * string/strcpy.c: Likewise.
8876         * string/strncat.c: Likewise.
8877         * string/strncmp.c: Likewise.
8878         * string/strncpy.c: Likewise.
8879
8880 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
8881
8882         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
8883         __builtin_memcopy is called when src and dest ranges are known to not
8884         overlap.
8885
8886 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
8887
8888         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
8889         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
8890         fwd_align_merge macro call.
8891         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
8892         bwd_align_merge macro call.
8893         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
8894
8895 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
8896
8897         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
8898         bwd_align_merge macros.
8899         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
8900         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
8901         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
8902
8903 2012-04-18  David S. Miller  <davem@davemloft.net>
8904
8905         * sysdeps/sparc/sparc64/memcopy.h: Delete.
8906
8907 2012-04-18  Andreas Jaeger  <aj@suse.de>
8908
8909         [BZ# 6794]
8910         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
8911         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
8912         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
8913
8914         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
8915         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
8916         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
8917
8918         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
8919         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
8920         Adjust for changed ldbl-128 files.
8921
8922         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
8923         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
8924         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
8925
8926 2012-04-17  David S. Miller  <davem@davemloft.net>
8927
8928         * sysdeps/sparc/sparc32/memcopy.h: Delete.
8929
8930 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
8931
8932         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
8933         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
8934         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
8935         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
8936         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
8937         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
8938
8939 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8940
8941         [BZ #6794]
8942         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
8943         * math/libm-test.inc: Add ilogb errno and exception tests.
8944         * math/w_ilogb.c: New file: ilogb wrapper.
8945         * math/w_ilogbf.c: New file: ilogbf wrapper.
8946         * math/w_ilogbl.c: New file: ilogbl wrapper.
8947         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
8948         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
8949         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
8950         exception being thrown with 0.0 as argument.
8951         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
8952         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
8953         exception being thrown with 0.0 as argument.
8954         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
8955         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
8956         exception being thrown with 0.0 as argument.
8957         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
8958         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
8959         exception being thrown with 0.0 as argument.
8960         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
8961         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
8962         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
8963         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
8964         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
8965         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
8966         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
8967         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
8968         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
8969
8970 2012-04-17  Petr Baudis  <pasky@ucw.cz>
8971
8972         * include/sys/uio.h: Change __vector to __iovec to avoid clash
8973         with altivec.
8974
8975 2012-04-16  Marek Polacek  <polacek@redhat.com>
8976
8977         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
8978
8979 2012-04-16  Marek Polacek  <polacek@redhat.com>
8980
8981         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
8982         operands of fdivp instruction.
8983
8984 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
8985
8986         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
8987         * elf/tst-auditmod3b.c: Likewise.
8988         * elf/tst-auditmod4b.c: Likewise.
8989         * elf/tst-auditmod5b.c: Likewise.
8990         * elf/tst-auditmod6b.c: Likewise.
8991         * elf/tst-auditmod6c.c: Likewise.
8992         * elf/tst-auditmod7b.c: Likewise.
8993         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
8994         * sysdeps/x86_64/preconfigure.in: Likewise.
8995         * sysdeps/x86_64/preconfigure: Regenerated.
8996
8997 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
8998
8999         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
9000         __ILP32__.
9001
9002 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
9003
9004         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
9005         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
9006
9007 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
9008
9009         [BZ #13973]
9010         * locale/iso-639.def: Fix gl language name. Spotted by
9011         Yaron Shahrabani.
9012
9013 2012-04-12  Roland McGrath  <roland@hack.frob.com>
9014
9015         [BZ #2074]
9016         * libio/libio.h (__io_write_fn): Update comment.
9017
9018 2012-04-12  Petr Baudis  <pasky@ucw.cz>
9019
9020         [BZ #2074]
9021         * stdio.texi (Hook Functions): The user provided writer function
9022         is not allowed to return -1.
9023
9024 2012-04-11  David S. Miller  <davem@davemloft.net>
9025
9026         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9027
9028 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
9029
9030         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
9031         Add a leading slash to rtkaio.
9032
9033 2012-04-11  Jim Meyering  <meyering@redhat.com>
9034
9035         [BZ #11959]
9036         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
9037         It is not necessarily an error to ignore fwrite's return
9038         value.  One can reliably use ferror to test for errors after
9039         the fact.
9040
9041 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
9042
9043         * bits/types.h (__snseconds_t): New type.
9044         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
9045
9046         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
9047         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
9048         (__SNSECONDS_T_TYPE): Likewise.
9049         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
9050         (__SNSECONDS_T_TYPE): Likewise.
9051         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
9052         (__SNSECONDS_T_TYPE): Likewise.
9053
9054 2012-04-10  Andreas Jaeger  <aj@suse.de>
9055
9056         [BZ #2636]
9057         * manual/time.texi (Processor Time): Return type of times is
9058         elapsed real time since an arbitrary point in the past.
9059         (CPU Time): Move CLK_TCK from here...
9060         (Processor Time): ...to here.  Correct description.
9061         * manual/conf.texi (Constants for Sysconf): Correct description of
9062         _SC_CLK_TCK.
9063
9064 2012-04-10  David S. Miller  <davem@davemloft.net>
9065
9066         [BZ #13967]
9067         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
9068         where the is a gap between DT_REL(A) and DT_JMPREL.
9069
9070 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
9071
9072         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
9073         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
9074         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
9075
9076 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
9077
9078         * elf/dl-support.c (_dl_inhibit_cache): New variable.
9079         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
9080         (dl_main): Handle --inhibit-cache.
9081         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
9082         _dl_inhibit_cache.
9083         * elf/dl-load.c (_dl_map_object): Use it.
9084         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
9085
9086 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
9087
9088         [BZ #13872]
9089         * sysdeps/i386/fpu/e_powl.S (p78): New object.
9090         (__ieee754_powl): Saturate large exponents rather than testing for
9091         overflow of y*log2(x).
9092         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
9093         * math/libm-test.inc (pow_test): Do not permit spurious overflow
9094         exceptions.
9095
9096         [BZ #11521]
9097         * math/s_ctan.c: Include <float.h>.
9098         (__ctan): Avoid internal overflow or cancellation in calculating
9099         denominator.
9100         * math/s_ctanf.c: Likewise.
9101         * math/s_ctanl.c: Likewise.
9102         * math/s_ctanh.c: Likewise.
9103         * math/s_ctanhf.c: Likewise.
9104         * math/s_ctanhl.c: Likewise.
9105         * math/libm-test.inc (ctan_test): Add more tests.
9106         (ctanh_test): Likewise.
9107         * sysdeps/i386/fpu/libm-test-ulps: Update.
9108         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9109
9110 2012-04-09  Andreas Jaeger  <aj@suse.de>
9111
9112         [BZ #6894]
9113         * manual/filesys.texi (Directory Entries): Mention that d_namlen
9114         is an optional BSD extension.
9115
9116         [BZ #10254]
9117         * manual/stdio.texi (Opening Streams): Document additional fopen
9118         parameters.
9119
9120 2012-04-09  Roland McGrath  <roland@hack.frob.com>
9121
9122         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
9123         %eax without telling the compiler.
9124
9125 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
9126
9127         [BZ # 13963]
9128         * manual/install.texi: Use sourceware.org.
9129
9130 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
9131
9132         [BZ #13873]
9133         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
9134         (__ieee754_pow): Generate overflow and underflow using huge*huge
9135         and tiny*tiny rather than just returning constant infinity or zero
9136         for large exponents.
9137         * math/libm-test.inc (pow_test): Require overflow exceptions for
9138         applicable cases of large exponents.
9139
9140         [BZ #706]
9141         * sysdeps/i386/fpu/e_pow.S (p10): New object.
9142         (__ieee754_pow): Use iterative multiplication algorithm only for
9143         integer exponents with absolute value below 1024.  Check for odd
9144         integer exponents when using algorithm for real exponents.
9145         * math/libm-test.inc (pow_test): Add more tests.
9146         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9147
9148 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
9149
9150         [BZ #13705]
9151         * math/libm-test.inc (exp_test): Do not allow overflow exception
9152         on underflow test.
9153
9154 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
9155
9156         [BZ #13705]
9157         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
9158         instead of __kernel_standard_f.
9159
9160 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
9161
9162         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
9163         * sysdeps/x86_64/memset_chk.S: Likewise.
9164
9165 2012-04-08  Andreas Jaeger  <aj@suse.de>
9166
9167         [BZ #10153]
9168         * manual/startup.texi (Environment Access): Describe return value
9169         for putenv and setenv.
9170
9171         [BZ #6895]
9172         * manual/filesys.texi (Directory Entries): Add description for
9173         DT_LNK.
9174
9175         [BZ #6890]
9176         * manual/filesys.texi (Directory Entries): Clarify that it's file
9177         system not operating system in the description of DT_UNKNOWN.
9178
9179         [BZ #6578]
9180         * manual/syslog.texi (closelog): Fix reference, it's openlog.
9181
9182 2012-04-08  Stephen Compall  <s11@member.fsf.org>
9183
9184         [BZ #6649]
9185         * manual/llio.texi (Opening and Closing Files): Add cross
9186         reference to explain mode argument.
9187
9188 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
9189
9190         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
9191         * sysdeps/x86_64/memset_chk.S: Likewise.
9192
9193 2012-04-07  David S. Miller  <davem@davemloft.net>
9194
9195         * elf/elf.h (R_SPARC_WDISP10): Define.
9196         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
9197         R_SPARC_SIZE32.
9198         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
9199         R_SPARC_SIZE64 and R_SPARC_H34.
9200
9201 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
9202
9203         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
9204         conditions and remove no longer applicable assertion.
9205
9206 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
9207
9208         * bits/byteswap.h: Include <features.h>.
9209         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
9210         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
9211
9212 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
9213
9214         * bits/byteswap.h (__bswap_16): Removed.
9215         Include <bits/byteswap-16.h> to get __bswap_16.
9216         * sysdeps/i386/bits/byteswap.h: Likewise.
9217         * sysdeps/s390/bits/byteswap.h: Likewise.
9218         * sysdeps/x86_64/bits/byteswap.h: Likewise.
9219         * bits/byteswap-16.h: New file.
9220         * sysdeps/i386/bits/byteswap-16.h: Likewise.
9221         * sysdeps/s390/bits/byteswap-16.h: Likewise.
9222         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
9223         * string/Makefile (headers): Add bits/byteswap-16.h.
9224
9225 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
9226
9227         [BZ #13895]
9228         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
9229         extra indirection.
9230         * nss/Makefile (tests-static, tests): Add tst-nss-static.
9231         * nss/tst-nss-static.c: New.
9232
9233 2012-04-06  Robert Millan  <rmh@gnu.org>
9234
9235         [BZ #6486]
9236         * manual/llio.texi (File Position Primitive): lseek
9237         refers to WHENCE when it really means OFFSET.
9238
9239 2012-04-06  Andreas Jaeger  <aj@suse.de>
9240
9241         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
9242         strncmp declarations.
9243
9244         * abilist/libc.abilist: Add __poll and __ppoll.
9245
9246 2012-04-05  David S. Miller  <davem@davemloft.net>
9247
9248         * scripts/check-local-headers.sh: Accept a host triplet in the
9249         path matched by the exclude regexp.
9250
9251         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
9252         definition.
9253         * sysdeps/powerpc/powerpc32/dl-machine.h
9254         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
9255         * sysdeps/s390/s390-32/dl-machine.h
9256         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
9257         * sysdeps/sparc/sparc32/dl-machine.h
9258         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
9259         * sysdeps/sparc/sparc64/dl-machine.h
9260         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
9261
9262         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
9263         lazy binding.
9264         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
9265         undefined symbol errors.
9266
9267         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
9268         DT_NEEDED entries.
9269
9270 2012-04-05  Michael Matz  <matz@suse.de>
9271
9272         [BZ #13592]
9273         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
9274
9275 2012-04-05  Andreas Jaeger  <aj@suse.de>
9276
9277         [BZ #13908]
9278         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
9279         comment.
9280
9281 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9282
9283         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
9284         which ROUND is no valid rounding mode.
9285
9286 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9287
9288         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
9289         read again.
9290         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
9291
9292 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9293
9294         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
9295         an exception using FPU order intentionally.
9296
9297 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9298
9299         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
9300         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
9301         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
9302         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
9303
9304 2012-04-05  Simon Josefsson  <simon@josefsson.org>
9305
9306         [BZ #12340]
9307         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
9308         EINVAL when BUFLEN is too smal.
9309
9310 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
9311
9312         [BZ #13553]
9313         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
9314         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
9315
9316 2012-04-03  Andreas Jaeger  <aj@suse.de>
9317
9318         [BZ #13938]
9319         * manual/setjmp.texi (System V contexts): Fix sentence.
9320
9321         [BZ #13926]
9322         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
9323         New macro for this case.
9324         [!__GNUC__] (__bswap_64): New inline function for this case.
9325         * sysdeps/x86_64/bits/byteswap.h: Likewise.
9326         * bits/byteswap.h: Likewise.
9327         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
9328         ull, guard with __GLIBC_HAVE_LONG_LONG.
9329
9330         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
9331         __GLIBC_HAVE_LONG_LONG.
9332
9333         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
9334         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
9335
9336 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
9337
9338         [BZ #13691]
9339         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
9340         inptr and inend, rather than using last_ch.
9341
9342 2012-04-02  David S. Miller  <davem@davemloft.net>
9343
9344         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
9345         * stdio-common/printf-parse.h (read_int): Change return type to
9346         'int', return -1 on INT_MAX overflow.
9347         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
9348         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
9349         overflows INT_MAX.  Check for overflow of in-format-string precision
9350         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
9351         SIZE_MAX not INT_MAX for integer overflow test.
9352         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
9353         skip the construct in the format string but do not record anything.
9354         * stdio-common/bug22.c: Adjust to test both width/prevision
9355         INT_MAX overflow as well as total length INT_MAX overflow.  Check
9356         explicitly for proper errno values.
9357
9358 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
9359
9360         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
9361         CHAR_MAX.
9362         * string/test-strcmp.c [! WIDE]: Likewise.
9363         * time/tst-mktime2.c: Likewise for INT_MAX.
9364         * string/test-string.h: #include <sys/param.h> for MIN.
9365
9366         * csu/init-first.c (__libc_init_first): Call __ctype_init.
9367         * sysdeps/i386/init-first.c (init): Likewise.
9368         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
9369         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
9370         * sysdeps/sh/init-first.c (init): Likewise.
9371
9372 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
9373
9374         * po/ru.po: Update from translation team.
9375         * po/vi.po: Likewise.
9376
9377 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
9378
9379         * resolv/nss_dns/dns-host.c: Merge copyright years.
9380
9381 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9382
9383         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
9384         Optimize memcpy with prefetch if
9385         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
9386         src, dst pointers have unequal 16 byte alignments.
9387
9388 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
9389
9390         [BZ #13928]
9391         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
9392         from a CNAME entry and return the minimum ttl for the query.
9393         (gaih_getanswer_slice): Likewise.
9394
9395 2012-03-30  Jeff Law  <law@redhat.com>
9396
9397         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
9398         due to long keys.
9399         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
9400         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
9401
9402         * resolv/nss_dns/dns-host.c: Update copyright year.
9403
9404 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
9405
9406         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
9407         requests to save a system call.  Fix check that all bytes are sent.
9408
9409         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
9410         comments for sendmmsg.
9411
9412 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
9413
9414         [BZ #13691]
9415         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
9416         with only 1 character between 0x0041 and 0x01b0.
9417         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
9418         * wcsmbs/tst-mbsnrtowcs.c: New file.
9419
9420 2012-03-29  David S. Miller  <davem@davemloft.net>
9421
9422         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
9423         small copies by hand.
9424
9425 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
9426
9427         [BZ #13761]
9428         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
9429         _nss_compat_initgroups_dyn): Fall back to malloc/free
9430         for large group memberships.
9431
9432 2012-03-28  David S. Miller  <davem@davemloft.net>
9433
9434         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
9435         that branches into memcpy.
9436         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
9437         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
9438         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
9439         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
9440         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
9441         bits.
9442         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
9443         implementation too.
9444         * sysdeps/sparc/mempcpy.S: New file.
9445
9446         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
9447         the IFUNC routine in the libc case.
9448         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
9449
9450         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
9451         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
9452         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
9453         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
9454         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
9455         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
9456         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
9457         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
9458
9459         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
9460         loop to 256 bytes instead of 64 bytes and fix test signedness.
9461
9462         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
9463         * sysdeps/sparc/sparc32/Makefile: rather than here...
9464         * sysdeps/sparc/sparc64/Makefile: and here.
9465
9466 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
9467
9468         * malloc/mallocbug.c: Avoid warnings about unused variables.
9469
9470 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
9471
9472         [BZ #13760]
9473         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
9474         in the right place. Discard and retry query if response is
9475         larger than input buffer size.
9476
9477 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
9478
9479         [BZ #369]
9480         [BZ #2678]
9481         [BZ #3866]
9482         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
9483         x for large integer exponent.
9484         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
9485         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
9486         sign of result as needed afterwards.
9487         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
9488         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
9489         result for underflowing pow the same as for overflow.
9490         (__kernel_standard_l): Handle powl overflow and underflow here
9491         rather than calling __kernel_standard.
9492         * math/libm-test.inc (pow_test): Add more tests.
9493
9494         [BZ #3868]
9495         [BZ #13879]
9496         [BZ #13910]
9497         [BZ #13911]
9498         [BZ #13912]
9499         [BZ #13913]
9500         [BZ #13915]
9501         [BZ #13916]
9502         [BZ #13917]
9503         [BZ #13918]
9504         [BZ #13919]
9505         [BZ #13920]
9506         [BZ #13921]
9507         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
9508         * sysdeps/ieee754/k_standard.c: Include <float.h>.
9509         (__kernel_standard_l): New function.
9510         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
9511         __kernel_standard.
9512         * math/w_acosl.c (__acosl): Likewise.
9513         * math/w_asinl.c (__asinl): Likewise.
9514         * math/w_atan2l.c (__atan2l): Likewise.
9515         * math/w_atanhl.c (__atanhl): Likewise.
9516         * math/w_coshl.c (__coshl): Likewise.
9517         * math/w_exp10l.c (__exp10l): Likewise.
9518         * math/w_exp2l.c (__exp2l): Likewise.
9519         * math/w_fmodl.c (__fmodl): Likewise.
9520         * math/w_hypotl.c (__hypotl): Likewise.
9521         * math/w_j0l.c (__j0l, __y0l): Likewise.
9522         * math/w_j1l.c (__j1l, __y1l): Likewise.
9523         * math/w_jnl.c (__jnl, __ynl): Likewise.
9524         * math/w_lgammal.c (__lgammal): Likewise.
9525         * math/w_log10l.c (__log10l): Likewise.
9526         * math/w_log2l.c (__log2l): Likewise.
9527         * math/w_logl.c (__logl): Likewise.
9528         * math/w_powl.c (__powl): Likewise.
9529         * math/w_remainderl.c (__remainderl): Likewise.
9530         * math/w_scalbl.c (sysv_scalbl): Likewise.
9531         * math/w_sinhl.c (__sinhl): Likewise.
9532         * math/w_sqrtl.c (__sqrtl): Likewise.
9533         * math/w_tgammal.c (__tgammal): Likewise.
9534         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
9535         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
9536         * math/libm-test.inc (acos_test): Add more tests.
9537         (acosh_test): Likewise.
9538         (asin_test): Likewise.
9539         (atanh_test): Likewise.
9540         (exp_test): Likewise.
9541         (exp10_test): Likewise.
9542         (exp2_test): Likewise.
9543         (expm1_test): Likewise.
9544         (lgamma_test): Likewise.
9545         (log_test): Likewise.
9546         (log10_test): Likewise.
9547         (log1p_test): Likewise.
9548         (log2_test): Likewise.
9549         (pow_test): Do not allow some spurious overflow exceptions.
9550         (sqrt_test): Add more tests.
9551         (tgamma_test): Likewise.
9552         (y0_test): Likewise.
9553         (y1_test): Likewise.
9554         (yn_test): Likewise.
9555
9556 2012-03-27  Anton Blanchard  <anton@samba.org>
9557
9558         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
9559         MAP_HUGETLB.
9560         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
9561         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
9562         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
9563
9564 2012-03-27  David S. Miller  <davem@davemloft.net>
9565
9566         * conform/Makefile: Run run-conformtest.sh using $(BASH).
9567
9568         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
9569         have-as-vis3 check.
9570
9571 2012-03-27  Andreas Jaeger  <aj@suse.de>
9572
9573         * sysdeps/x86_64/elf/configure.in: Moved to ...
9574         * sysdeps/x86_64/configure.in: ... here.
9575         * sysdeps/x86_64/elf/start.S: Moved to ...
9576         * sysdeps/x86_64/start.S: ... here.
9577         * sysdeps/x86_64/elf/configure: Delete.
9578
9579         * sysdeps/x86_64/configure.in: Merge contents from
9580         sysdeps/i386/configure.in (without i686 check).
9581
9582         * sysdeps/i386/elf/Versions: Merge into ...
9583         * sysdeps/i386/Versions: ... this.
9584         * sysdeps/i386/elf/Versions: Delete file.
9585         * sysdeps/i386/elf/start.S: Moved to ...
9586         * sysdeps/i386/start.S: ...here.
9587         * sysdeps/i386/elf/configure.in: Merge into...
9588         * sysdeps/i386/configure.in: ...here.
9589         * sysdeps/i386/elf/configure.in: Delete file.
9590         * sysdeps/i386/elf/configure: Delete file.
9591
9592         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
9593         * debug/backtracesyms.c: ... here.
9594         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
9595         * debug/backtracesymsfd.c: ... here.
9596         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
9597         * sysdeps/generic/ifunc-sel.h: ... here.
9598
9599         * sysdeps/unix/i386/start.c: Delete file.
9600         * sysdeps/unix/sparc/start.c: Delete file.
9601         * sysdeps/unix/start.c: Delete file.
9602
9603         * sysdeps/sh/elf/configure.in: Moved to ...
9604         * sysdeps/sh/configure.in: ... here.
9605         * sysdeps/sh/elf/start.S: Moved to ...
9606         * sysdeps/sh/start.S: ... here.
9607         * sysdeps/sh/elf/configure: Delete file.
9608
9609         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
9610         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
9611         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
9612         * sysdeps/powerpc/powerpc64/entry.h: ... here.
9613         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
9614         * sysdeps/powerpc/powerpc64/start.S: here.
9615         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
9616         * sysdeps/powerpc/powerpc64/Makefile: ... this.
9617         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
9618         * sysdeps/powerpc/powerpc64/configure.in: ... this.
9619         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
9620
9621         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
9622         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
9623         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
9624         * sysdeps/powerpc/powerpc32/start.S: ... here.
9625         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
9626         * sysdeps/powerpc/powerpc32/configure.in: ... this.
9627         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
9628
9629         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
9630         * sysdeps/powerpc/ifunc-sel.h: ... here.
9631         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
9632         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
9633
9634         * sysdeps/sparc/elf/configure.in: Moved to ...
9635         * sysdeps/sparc/configure.in: ... here.
9636         * sysdeps/sparc/elf/configure: Delete file.
9637         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
9638         * sysdeps/sparc/sparc32/start.S: ... here.
9639         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
9640         * sysdeps/sparc/sparc64/start.S: ... here.
9641         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
9642         * sysdeps/sparc/sparc32/Makefile: ... this.
9643         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
9644         * sysdeps/sparc/sparc64/Makefile: ... this.
9645
9646         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
9647         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
9648         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
9649         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
9650         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
9651         * sysdeps/s390/s390-32/setjmp.S: ... here.
9652         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
9653         * sysdeps/s390/s390-32/configure.in: ... here.
9654         * sysdeps/s390/s390-32/elf/configure: Delete file.
9655         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
9656         * sysdeps/s390/s390-32/start.S: ... here.
9657
9658         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
9659         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
9660         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
9661         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
9662         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
9663         * sysdeps/s390/s390-64/setjmp.S: ... here.
9664         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
9665         * sysdeps/s390/s390-64/configure.in: ... here
9666         * sysdeps/s390/s390-64/elf/configure: Delete file.
9667         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
9668         * sysdeps/s390/s390-64/start.S: ... here.
9669         * sysdeps/s390/s390-64/elf/configure: Delete.
9670
9671         * configure.in: Remove support for elf directories in sysdeps.
9672
9673         * configure: Regenerated.
9674         * sysdeps/i386/configure: Regenerated.
9675         * sysdeps/powerpc/powerpc32/configure: Regenerated.
9676         * sysdeps/powerpc/powerpc64/configure: Regenerated.
9677         * sysdeps/s390/s390-32/configure: Regenerated.
9678         * sysdeps/s390/s390-64/configure: Regenerated.
9679         * sysdeps/sh/configure: Regenerated.
9680         * sysdeps/sparc/configure: Regenerated.
9681         * sysdeps/x86_64/configure: Regenerated.
9682
9683 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
9684
9685         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9686
9687         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
9688         denormal result into account.
9689
9690 2012-03-25  Roland McGrath  <roland@hack.frob.com>
9691
9692         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
9693         Reported by Allan McRae <allan@archlinux.org>.
9694
9695 2012-03-23  Jeff Law  <law@redhat.com>
9696
9697         * nss/getnssent.c (__nss_getent): Fix typo.
9698
9699 2012-03-23  David S. Miller  <davem@davemloft.net>
9700
9701         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9702
9703 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
9704
9705         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
9706         to pad to uint64_t for each field.
9707         (dl_tls_index): Replace unsigned long with uint64_t.
9708
9709 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
9710         Paul Pluzhnikov  <ppluzhnikov@google.com>
9711
9712         [BZ #6528]
9713         * grp/Makefile (otherlibs): Don't set it.
9714         * inet/Makefile (otherlibs): Likewise.
9715         * login/Makefile (otherlibs): Likewise.
9716         * nscd/Makefile (otherlibs): Likewise.
9717         * posix/Makefile (otherlibs): Likewise.
9718         * pwd/Makefile (otherlibs): Likewise.
9719         * rt/Makefile (otherlibs): Likewise.
9720         * sunrpc/Makefile (otherlibs): Likewise.
9721         * nss/Makefile (otherlibs): Likewise.
9722         Add libnss_files to routines and static-only-routines.
9723         ($(objpfx)getent): Remove rule.
9724         * resolv/Makefile: Add libnss_dns and libresolv to routines and
9725         static-only-routines.
9726
9727 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
9728
9729         [BZ #13892]
9730         * math/s_cexp.c: Include <float.h>.
9731         (__cexp): Handle exp result overflowing not necessarily
9732         overflowing both real and imaginary parts of result.
9733         * math/s_cexpf.c: Likewise.
9734         * math/s_cexpl.c: Likewise.
9735         * math/libm-test.inc (cexp_test): Add more tests.
9736         * sysdeps/i386/fpu/libm-test-ulps: Update.
9737         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9738
9739 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
9740
9741         * include/link.h (ELFW): New macro.
9742         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
9743         Replace ELF64_R_TYPE with ELFW(R_TYPE).
9744
9745 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
9746
9747         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
9748         with uint64_t.
9749
9750 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
9751
9752         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
9753         declaration.
9754         (struct La_x32_retval): Likewise.
9755
9756 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
9757
9758         * sysdeps/x86_64/preconfigure.in: New file.
9759         * sysdeps/x86_64/preconfigure: New generated file.
9760
9761 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
9762
9763         [BZ #13824]
9764         * math/e_exp2l.c: Include <float.h>.
9765         (__ieee754_exp2l): Handle overflow and underflow cases
9766         separately.  Only pass fractional part of argument to
9767         __ieee754_expl.
9768         * math/libm-test.inc (exp2_test): Add more tests.
9769
9770         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
9771         negating x to take absolute value.
9772         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
9773         Likewise.
9774         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
9775         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
9776         Likewise.
9777         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
9778         computing low part if x was negated.
9779         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
9780
9781 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
9782
9783         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
9784         la_x32_gnu_pltexit.
9785         (pltexit): Cast int_retval to ptrdiff_t.
9786         * elf/tst-auditmod3b.c: Likewise.
9787         * elf/tst-auditmod4b.c: Likewise.
9788         * elf/tst-auditmod5b.c: Likewise.
9789         * elf/tst-auditmod6b.c: Likewise.
9790         * elf/tst-auditmod6c.c: Likewise.
9791         * elf/tst-auditmod7b.c: Likewise.
9792
9793         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
9794         and x32_gnu_pltexit.
9795
9796         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
9797         __ELF_NATIVE_CLASS.
9798         (La_x32_regs): New macro.
9799         (La_x32_retval): Likewise.
9800         (la_x32_gnu_pltenter): New function prototype.
9801         (la_x32_gnu_pltexit): Likewise.
9802
9803 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
9804
9805         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
9806         exponent.
9807
9808         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9809
9810         * configure.in (libc_cv_cc_nofma): Check for option to disable
9811         generation of FMA instructions.
9812         * configure: Regenerate.
9813         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
9814         * sysdeps/ieee754/dbl-64/Makefile: New file.
9815         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
9816         Remove brandred-fma4.
9817         (CFLAGS-brandred-fma4.c): Remove.
9818         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
9819         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
9820         define.
9821         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
9822         define.
9823
9824 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
9825
9826         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
9827         LLONG_MAX != LONG_MAX.
9828         (_itoa_word): Use _ITOA_WORD_TYPE on value.
9829         (_fitoa_word): Likewise.
9830         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
9831         LLONG_MAX != LONG_MAX.
9832         * stdio-common/_itowa.h: Include <_itoa.h>.
9833         (_itowa_word): Use _ITOA_WORD_TYPE on value.
9834         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
9835         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
9836         only if not defined.
9837         (_ITOA_WORD_TYPE): Likewise.
9838         (_itoa_word): Use _ITOA_WORD_TYPE on value.
9839         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
9840
9841 2012-03-21  David S. Miller  <davem@davemloft.net>
9842
9843         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9844
9845 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
9846
9847         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
9848         of x86_64 when setting libc_cv_slibdir, libdir and
9849         libc_cv_localedir.
9850         * sysdeps/unix/sysv/linux/configure: Regenerated.
9851
9852 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
9853
9854         * manual/lang.texi (Old Varargs): Remove section.
9855         (How Variadic): Update menu.
9856         (va_start): Do not mention varargs.h.
9857
9858 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
9859             Joseph Myers  <joseph@codesourcery.com>
9860
9861         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
9862         link test.
9863         * configure: Regenerated.
9864
9865 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
9866
9867         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
9868         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
9869         conformtest.pl
9870
9871 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
9872
9873         * NOTES: Remove.
9874         * Makefile (files-for-dist): Remove NOTES.
9875         (NOTES): Remove rule.
9876         * README: Don't refer to NOTES.
9877         * manual/creature.texi: Don't include macros.texi.
9878         * manual/intro.texi (creature.texi): Remove comment referring to
9879         NOTES.
9880
9881         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
9882         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
9883         * configure: Regenerated.
9884         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
9885         LIBC_TRY_CC_OPTION.
9886         (libc_cv_as_i686): Likewise.
9887         (libc_cv_cc_avx): Likewise.
9888         (libc_cv_cc_sse2avx): Likewise.
9889         (libc_cv_cc_fma4): Likewise.
9890         (libc_cv_cc_novzeroupper): Likewise.
9891         * sysdeps/i386/configure: Regenerated.
9892
9893         [BZ #13883]
9894         * sysdeps/i386/fpu/s_cexp.S: Remove.
9895         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
9896         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
9897         * math/libm-test.inc (cexp_test): Add more tests.
9898         * sysdeps/i386/fpu/libm-test-ulps: Update.
9899         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9900
9901 2012-03-21  Allan McRae  <allan@archlinux.org>
9902
9903         * timezone/Makefile: Do not install iso3166.tab and zone.tab
9904
9905 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
9906
9907         [BZ #13871]
9908         * math/w_exp2.c: Do not include <float.h>.
9909         (o_threshold, u_threshold): Remove.
9910         (__exp2): Calculate result before checking finiteness and calling
9911         __kernel_standard.
9912         * math/w_exp2f.c: Likewise.
9913         * math/w_exp2l.c: Likewise.
9914         * math/libm-test.inc (exp2_test): Require overflow exception for
9915         1e6 input.
9916
9917         [BZ #3866]
9918         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
9919         range of signed 64-bit integers before using fistpll.  Remove
9920         checks for whether integers fit in mantissa bits.
9921         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
9922         the range of signed 32-bit integers before using fistpl.  Remove
9923         checks for whether integers fit in mantissa bits.
9924         * sysdeps/i386/fpu/e_powl.S (p64): New object.
9925         (__ieee754_powl): Test for y outside the range of signed 64-bit
9926         integers before using fistpll.  Reduce 64-bit values to 63-bit
9927         ones as needed.
9928         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
9929         divide-by-zero is raised for zero to large negative powers.
9930         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
9931         (__ieee754_powl): Test for y outside the range of signed 64-bit
9932         integers before using fistpll.  Reduce 64-bit values to 63-bit
9933         ones as needed.
9934         * math/libm-test.inc (pow_test): Add more tests.
9935
9936 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
9937
9938         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
9939         <stdio-common/_itoa.h>.
9940         * debug/segfault.c: Likewise.
9941         * elf/dl-cache.c: Likewise.
9942         * elf/dl-minimal.c: Likewise.
9943         * elf/dl-misc.c: Likewise.
9944         * elf/dl-sysdep.c: Likewise.
9945         * elf/dl-version.c: Likewise.
9946         * elf/rtld.c: Likewise.
9947         * hurd/hurdsock.c: Likewise.
9948         * hurd/lookup-retry.c: Likewise.
9949         * malloc/malloc.c: Likewise.
9950         * malloc/mtrace.c: Likewise.
9951         * nscd/nscd_getgr_r.c: Likewise.
9952         * nscd/nscd_getpw_r.c: Likewise.
9953         * nscd/nscd_getserv_r.c: Likewise.
9954         * posix/getopt_init.c: Likewise.
9955         * posix/wordexp.c: Likewise.
9956         * stdio-common/_itoa.c: Likewise.
9957         * stdio-common/printf_fphex.c: Likewise.
9958         * stdio-common/vfprintf.c: Likewise.
9959         * string/_strerror.c: Likewise.
9960         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
9961         * sysdeps/i386/i686/hp-timing.h: Likewise.
9962         * sysdeps/mach/_strerror.c: Likewise.
9963         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
9964         * sysdeps/mach/hurd/sethostid.c: Likewise.
9965         * sysdeps/mach/hurd/xmknodat.c: Likewise.
9966         * sysdeps/mach/xpg-strerror.c: Likewise.
9967         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
9968         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
9969         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
9970         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
9971         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
9972         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
9973         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
9974         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
9975         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
9976         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
9977         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
9978         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
9979         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
9980         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
9981         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
9982         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
9983         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
9984         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
9985         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
9986         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
9987         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
9988
9989         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
9990
9991         * stdio-common/_itoa.h: Moved to ...
9992         * sysdeps/generic/_itoa.h: Here.
9993
9994         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
9995
9996         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
9997         instead of "_itoa.h" and "_itowa.h".
9998         * stdio-common/vfprintf.: Likewise.
9999
10000 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
10001
10002         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
10003         <bits/wordsize.h>.
10004         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
10005         (__signbit): Likwise.
10006         (llrintf): Likwise.
10007         (llrint): Likwise.
10008
10009 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
10010
10011         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
10012         __WORDSIZE != 64.
10013
10014 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
10015
10016         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
10017         OVERFLOW_EXCEPTION_OK.
10018         * math/libm-test.inc ("Philosophy"): Update comment about
10019         exception testing.
10020         (OVERFLOW_EXCEPTION): Define.
10021         (OVERFLOW_EXCEPTION_OK): Likewise.
10022         (INVALID_EXCEPTION_OK): Renumber.
10023         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
10024         (IGNORE_ZERO_INF_SIGN): Likewise.
10025         (test_exceptions): Handle FE_OVERFLOW.
10026         (exp10_test): Expect overflow exceptions.
10027         (exp2_test): Likewise.
10028         (expm1_test): Likewise.
10029         (nextafter_test): Likewise.
10030         (pow_test): Likewise.
10031         (scalbn_test): Likewise.
10032         (scalbln_test): Likewise.
10033
10034 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10035
10036         * sysdeps/x86_64/bits/atomic.h
10037         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
10038         64bit integer.
10039         (atomic_exchange_acq): Likewise.
10040         (__arch_exchange_and_add_body): Likewise.
10041         (__arch_add_body): Likewise.
10042         (atomic_add_negative): Likewise.
10043         (atomic_add_zero): Likewise.
10044
10045 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10046
10047         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
10048         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
10049
10050 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10051
10052         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
10053         Check __x86_64__ instead of __WORDSIZE.
10054
10055 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10056
10057         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
10058
10059 2012-03-19  David S. Miller  <davem@davemloft.net>
10060
10061         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10062
10063         * sysdeps/sparc/fpu/fenv_private.h: New file.
10064         * sysdeps/sparc/fpu/math_private.h: Use it.
10065         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
10066         Remove.
10067         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
10068         (libc_feholdexcept_setroundl): Remove.
10069         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
10070         Remove.
10071         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
10072         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
10073
10074 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10075
10076         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
10077         int64_t instead of long int.
10078         (INSERT_WORDS64): Likwise.
10079
10080 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10081
10082         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
10083         _Unwind_GetCFA return to _Unwind_Ptr first.
10084
10085 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
10086
10087         [BZ #13629]
10088         * math/s_clog.c: Include <float.h>.
10089         (__clog): Scale large or subnormal inputs.
10090         * math/s_clogf.c: Likewise.
10091         * math/s_clogl.c: Likewise.
10092         * math/s_clog10.c: Include <float.h>.
10093         (M_LOG10_2): Define.
10094         (__clog10): Scale large or subnormal inputs.
10095         * math/s_clog10f.c: Likewise.
10096         * math/s_clog10l.c: Likewise.
10097         * math/libm-test.inc (clog_test): Add more tests.
10098         (clog10_test): Likewise.
10099         * sysdeps/i386/fpu/libm-test-ulps: Update.
10100         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10101
10102         [BZ #11451]
10103         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
10104         x and y.
10105         * math/libm-test.inc (atan2_test): Add another test.
10106
10107         * Makerules (common-objdir-compile): Remove.
10108         * sysdeps/unix/Makefile (config-generated): Do not add
10109         $(unix-generated) to variable.
10110         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
10111         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
10112         Remove rule.
10113         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
10114         Likewise.
10115         [generic bits/local_lim.h] (before-compile): Do not append to
10116         variable.
10117         [generic bits/local_lim.h] (common-generated): Likewise.
10118         [generic sys/param.h] (before-compile): Do not append to variable.
10119         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
10120         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
10121         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
10122         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
10123         include.
10124         [generic sys/param.h] (sys/param.h-includes): Remove variable.
10125         [generic sys/param.h] (sys/param.h-includes): Remove rule.
10126         [generic sys/param.h] ($(addprefix
10127         $(common-objpfx),$(sys/param.h-includes))): Likewise.
10128         [generic sys/param.h] (common-generated): Do not append to
10129         variable.
10130         [generic sys/param.h] (sysdep_headers): Likewise.
10131         [generic bits/errno.h] (before-compile): Do not append to
10132         variable.
10133         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
10134         rule.
10135         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
10136         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
10137         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
10138         [generic bits/errno.h] (common-generated): Do not append to
10139         variable.
10140         [generic bits/ioctls.h] (before-compile): Do not append to
10141         variable.
10142         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
10143         rule.
10144         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
10145         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
10146         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
10147         rule.
10148         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
10149         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
10150         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
10151         [generic bits/ioctls.h] (common-generated): Do not append to
10152         variable.
10153         [generic sys/syscall.h] (syscall.h): Remove variable.
10154         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
10155         rule.
10156         [generic sys/syscall.h] (before-compile): Do not append to
10157         variable.
10158         [generic sys/syscall.h] (common-generated): Likewise.
10159         * sysdeps/unix/errnos-tmpl.c: Remove file.
10160         * sysdeps/unix/errnos.awk: Likewise.
10161         * sysdeps/unix/ioctls-tmpl.c: Likewise.
10162         * sysdeps/unix/ioctls.awk: Likewise.
10163         * sysdeps/unix/mk-local_lim.c: Likewise.
10164         * sysdeps/unix/snarf-ioctls: Likewise.
10165
10166 2012-03-19  Richard Henderson  <rth@twiddle.net>
10167
10168         * sysdeps/i386/fpu/fenv_private.h: New file.
10169         * sysdeps/i386/fpu/math_private.h: Use it.
10170         (math_opt_barrier, math_force_eval): Remove.
10171         (libc_feholdexcept_setround_53bit): Remove.
10172         (libc_feupdateenv_53bit): Remove.
10173         * sysdeps/x86_64/fpu/math_private.h: Likewise.
10174         (math_opt_barrier, math_force_eval): Remove.
10175         (libc_feholdexcept): Remove.
10176         (libc_feholdexcept_setround): Remove.
10177         (libc_fetestexcept, libc_fesetenv): Remove.
10178         (libc_feupdateenv_test): Remove.
10179         (libc_feupdateenv, libc_feholdsetround): Remove.
10180         (libc_feresetround): Remove.
10181
10182         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
10183         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
10184
10185         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
10186         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
10187         (libc_feupdateenv_testl): New.
10188         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
10189         (libc_feupdateenv_testf): New.
10190         (libc_feupdateenv): Use libc_feupdateenv_test.
10191         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
10192         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
10193
10194         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
10195         (libc_feholdsetroundf, libc_feholdsetroundl): New.
10196         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
10197         (libc_feresetround_noex): New.
10198         (libc_feresetround_noexf): New.
10199         (libc_feresetround_noexl): New.
10200         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
10201         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
10202         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
10203         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
10204         SET_RESTORE_ROUND.
10205         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
10206         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
10207         (__cos): Likewise.
10208         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
10209         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
10210         SET_RESTORE_ROUND_NOEX.
10211         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
10212         SET_RESTORE_ROUND_NOEXF.
10213         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
10214         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
10215         (libc_feholdsetroundf): New.
10216         (libc_feresetround, libc_feresetroundf): New.
10217
10218         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
10219         (libc_feholdexcept_setround_53bit): Convert from macro to function.
10220         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
10221
10222         * sysdeps/generic/math_private.h: Include <fenv.h>.
10223         (default_libc_feholdexcept): New.
10224         (default_libc_feholdexcept_setround): New.
10225         (default_libc_fesetenv, default_libc_feupdateenv): New.
10226         (libc_feholdexcept): Only define if undefined.
10227         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
10228         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
10229         (libc_feholdexcept_setroundl): Likewise.
10230         (libc_feholdexcept_setround_53bit): Likewise.
10231         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
10232         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
10233         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
10234         (libc_feupdateenv_53bit): Likewise.
10235         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
10236         (libc_feholdexcept): Convert from macro to inline function.
10237         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
10238         (libc_fesetenv, libc_feupdateenv): Likewise.
10239
10240         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
10241         not previously defined.
10242         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
10243         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
10244         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
10245         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
10246         * sysdeps/ieee754/flt-32/math_private.h: New file.
10247         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
10248         math_private.h below SET_FLOAT_WORD.
10249         (__isnan, __isinf_ns, __finite): Remove.
10250         (__isnanf, __isinf_nsf, __finitef): Remove.
10251
10252 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
10253
10254         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10255
10256 2012-03-17  David S. Miller  <davem@davemloft.net>
10257
10258         [BZ #6471]
10259         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
10260         for 2.16.
10261
10262 2012-03-16  David S. Miller  <davem@davemloft.net>
10263
10264         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
10265         warnings.
10266
10267         [BZ #6471]
10268         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
10269         properly.
10270         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
10271         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
10272         sysdep_routines when subdir is sysvipc.
10273         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
10274         __getshmlba helper.
10275
10276         * sysdeps/sparc/fpu/libm-test/ulps: Update.
10277
10278 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10279
10280         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
10281         [__LP64__].
10282
10283 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10284
10285         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
10286         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
10287         (__lround): Renamed to ...
10288         (__llround): This.  Replace long int with long long int.
10289         Define lround functions as aliases of llround functions.
10290         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
10291
10292 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10293
10294         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
10295         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
10296         adresses to uintptr_t.  Replace "long int" and "unsigned long
10297         int" with "greg_t" on va_arg.
10298
10299 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10300
10301         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
10302         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
10303
10304         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
10305         Move e_machine check before EI_CLASS check.  Handle x32
10306         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
10307         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
10308         SKIP_EM_IA_64 and include
10309         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
10310
10311         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
10312         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
10313         (add_system_dir): New macro.
10314
10315         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
10316         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
10317
10318 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
10319
10320         [BZ #2551]
10321         [BZ #2552]
10322         [BZ #2553]
10323         [BZ #2554]
10324         [BZ #2562]
10325         [BZ #2563]
10326         [BZ #2565]
10327         [BZ #2566]
10328         [BZ #2576]
10329         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
10330         (y0): Likewise.
10331         * math/w_j0f.c (j0f): Likewise.
10332         (y0f): Likewise.
10333         * math/w_j0l.c (__j0l): Likewise.
10334         (__y0l): Likewise.
10335         * math/w_j1.c (j1): Likewise.
10336         (y1): Likewise.
10337         * math/w_j1f.c (j1f): Likewise.
10338         (y1f): Likewise.
10339         * math/w_j1l.c (__j1l): Likewise.
10340         (__y1l): Likewise.
10341         * math/w_jn.c (jn): Likewise.
10342         (yn): Likewise.
10343         * math/w_jnf.c (jnf): Likewise.
10344         (ynf): Likewise.
10345         * math/w_jnl.c (__jnl): Likewise.
10346         (__ynl): Likewise.
10347         * math/libm-test.inc (j0_test): Add more tests.
10348         (j1_test): Likewise.
10349         (jn_test): Likewise.  Add trailing semicolon to existing test.
10350         (y0_test): Likewise.
10351         (y1_test): Likewise.
10352         * sysdeps/i386/fpu/libm-test-ulps: Update.
10353         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10354
10355         [BZ #13851]
10356         [BZ #13854]
10357         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
10358         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
10359         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
10360         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
10361         (__tanl): Set errno for infinite argument.
10362         * sysdeps/i386/fpu/mptan.c: Remove.
10363         * sysdeps/i386/fpu/s_tan.S: Likewise.
10364         * sysdeps/i386/fpu/s_tanl.S: Likewise.
10365         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
10366         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
10367         * math/libm-test.inc (tan_test): Add more tests and enable more
10368         tests for double and long double.
10369         * sysdeps/i386/fpu/libm-test-ulps: Update.
10370         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10371
10372 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
10373
10374         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
10375         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
10376
10377 2012-03-16  Roland McGrath  <roland@hack.frob.com>
10378
10379         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
10380         * configure.in: Use it for both main tree and add-ons.
10381         * configure: Regenerated.
10382
10383 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10384
10385         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
10386
10387 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
10388
10389         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
10390         in comment.
10391
10392         [BZ #13851]
10393         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
10394         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
10395         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
10396         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
10397         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
10398         infinite argument.
10399         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
10400         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
10401         != 0 for prec == 2.
10402         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
10403         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
10404         * sysdeps/i386/fpu/s_cosl.S: Likewise.
10405         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
10406         * sysdeps/i386/fpu/s_sinl.S: Likewise.
10407         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
10408         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
10409         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
10410         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
10411         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
10412         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
10413         * math/libm-test.inc (cos_test): Add more tests and enable more
10414         tests for long double.
10415         (sin_test): Likewise.
10416         (sincos_test): Likewise.
10417         * sysdeps/i386/fpu/libm-test-ulps: Update.
10418         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10419
10420 2012-03-16  David S. Miller  <davem@davemloft.net>
10421
10422         * sysdeps/sparc/fpu/math_private.h: New file.
10423
10424 2012-03-15  David S. Miller  <davem@davemloft.net>
10425
10426         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
10427         file.
10428         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
10429         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
10430         file.
10431         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
10432         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
10433         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
10434         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
10435         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
10436         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
10437         sysdep routines.
10438         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
10439
10440         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
10441         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
10442
10443         * sysdeps/sparc/sparc-ifunc.h: New file.
10444         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
10445         sparc-ifunc.h
10446         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
10447         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
10448         Likewise.
10449         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
10450         Likewise.
10451         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
10452         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
10453         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
10454         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
10455         Likewise.
10456         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
10457         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
10458         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
10459         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
10460         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
10461         Likewise.
10462         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
10463         Likewise.
10464         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
10465         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
10466         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
10467         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
10468         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
10469         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
10470         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
10471         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
10472         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
10473         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
10474         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
10475         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
10476         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
10477         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
10478         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
10479         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
10480         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
10481         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
10482         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
10483         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
10484         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
10485         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
10486         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
10487         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
10488
10489 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
10490
10491         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
10492         scaling.
10493         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10494
10495 2012-03-15  Andreas Jaeger  <aj@suse.de>
10496
10497         [BZ #13852]
10498         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
10499         ieee754/flt-32 implementation for sin, cos and sincos.
10500         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
10501         * sysdeps/i386/fpu/s_cosf.S: Likewise.
10502         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
10503         * sysdeps/i386/fpu/s_sinf.S: Likewise.
10504         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
10505         ieee754/flt-32 implementation for tan.
10506
10507         * math/libm-test.inc (cos_test): Enable some large input tests for
10508         float as well
10509         (sin_test): Likewise.
10510         (sincos_test): Likewise.
10511         (tan_test): Add tests for large input.
10512
10513         * sysdeps/i386/fpu/libm-test-ulps: Update.
10514
10515 2012-03-15  Andreas Jaeger  <aj@suse.de>
10516
10517         [BZ #13658]
10518         * math/libm-test.inc (cos_test): Add more test cases.
10519         (sin_test): Likewise.
10520         (sincos_test): Likewise.
10521
10522 2012-03-15  Andreas Jaeger  <aj@suse.de>
10523
10524         [BZ #13837]
10525         * math/libm-test.inc (cos_test): Add a test case for large input
10526         value.
10527         (sin_test): Likewise.
10528         (sincos_test): Likewise.
10529
10530 2012-03-15  Andreas Jaeger  <aj@suse.de>,
10531         Joseph Myers  <joseph@codesourcery.com>
10532
10533         [BZ #13658]
10534         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
10535         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
10536         * sysdeps/i386/fpu/branred.c: Likewise.
10537         * sysdeps/i386/fpu/dosincos.c: Likewise.
10538         * sysdeps/i386/fpu/mpa.c: Likewise.
10539         * sysdeps/i386/fpu/s_cos.S: Likewise.
10540         * sysdeps/i386/fpu/s_sin.S: Likewise.
10541         * sysdeps/i386/fpu/s_sincos.S: Likewise.
10542         * sysdeps/i386/fpu/sincos32.c: Likewise.
10543
10544         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
10545         Define.
10546         (libc_feupdateenv_53bit): Define.
10547         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
10548         Define.
10549         (libc_feupdateenv_53bit): Define.
10550
10551         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
10552         53 bit (without extend i386 double precision).
10553
10554         * math/libm-test.inc (sincos_test): Add tests for large input.
10555         (sin): Likewise.
10556         (cos): Likewise.
10557
10558         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
10559
10560 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
10561
10562         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10563
10564 2012-03-15  David S. Miller  <davem@davemloft.net>
10565
10566         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
10567         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
10568         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
10569         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
10570         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
10571         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
10572         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
10573         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
10574         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
10575         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
10576         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
10577         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
10578         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
10579         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
10580         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
10581         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
10582         file.
10583         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
10584         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
10585         file.
10586         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
10587         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
10588         file.
10589         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
10590         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
10591         file.
10592         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
10593         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
10594         fmin/fmax sysdep routines.
10595         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
10596
10597 2012-03-14  David S. Miller  <davem@davemloft.net>
10598
10599         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
10600         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
10601         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
10602         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
10603         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
10604         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
10605         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
10606         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
10607         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
10608         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
10609         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
10610         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
10611         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
10612         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
10613         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
10614         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
10615         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
10616         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
10617         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
10618         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
10619         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
10620         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
10621         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
10622         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
10623         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
10624         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
10625         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
10626         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
10627         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
10628         routines.
10629         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
10630         file.
10631         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
10632         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
10633         file.
10634         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
10635         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
10636         file.
10637         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
10638         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
10639         file.
10640         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
10641         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
10642         file.
10643         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
10644         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
10645         file.
10646         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
10647         file.
10648         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
10649         file.
10650         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
10651         file.
10652         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
10653         New file.
10654         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
10655         file.
10656         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
10657         file.
10658         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
10659         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
10660         file.
10661         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
10662         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
10663         file.
10664         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
10665         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
10666         file.
10667         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
10668         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
10669         VIS3 routines.
10670
10671         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
10672         New file.
10673
10674         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10675
10676         * sysdeps/sparc/configure.in: New file.
10677         * sysdeps/sparc/configure: Generate.
10678         * configure.in (libc_cv_sparc_as_vis3): Substitute.
10679         * configure: Regenerate.
10680         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
10681         * config.make.in (have-as-vis3): New.
10682         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
10683         available use -Av9d instead of -Av9a.
10684         * sysdeps/sparc/sparc64/Makefile: Likewise.
10685         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
10686         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
10687         New file.
10688         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
10689         file.
10690         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
10691         New file.
10692         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
10693         file.
10694         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
10695         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
10696         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
10697         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
10698         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
10699
10700         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
10701         fzeros/fnegs to load 0x80000000 into a float register instead of
10702         using the stack.
10703         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
10704
10705 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
10706
10707         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
10708         bits/syscall.h.
10709         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
10710         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
10711         ($(inst_includedir)/bits/syscall.h): Remove rule.
10712         ($(objpfx)bits/syscall.d): Include instead of
10713         $(objpfx)syscall-list.d.
10714         (generated): Change syscall-list.h and syscall-list.d to
10715         bits/syscall.h and bits/syscall.d.
10716
10717 2012-03-14  Roland McGrath  <roland@hack.frob.com>
10718
10719         [BZ #13846]
10720         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
10721
10722 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
10723
10724         [BZ #13841]
10725         * math/s_csqrt.c: Include <float.h>.
10726         (__csqrt): Scale large or subnormal inputs.
10727         * math/s_csqrtf.c: Likewise.
10728         * math/s_csqrtl.c: Likewise.
10729         * math/libm-test.inc (csqrt_test): Add more tests.
10730         * sysdeps/i386/fpu/libm-test-ulps: Update.
10731         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10732
10733         [BZ #13840]
10734         * math/libm-test.inc (hypot_test): Add more tests.
10735
10736 2012-03-13  David S. Miller  <davem@davemloft.net>
10737
10738         [BZ #13840]
10739         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
10740         double-precision for the calculation instead of scaling.
10741
10742 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
10743
10744         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
10745         manipulate bits before adding and subtracting TWO52[sx].
10746         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
10747         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
10748         Likewise.
10749         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
10750
10751 2012-03-13  David S. Miller  <davem@davemloft.net>
10752
10753         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
10754         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
10755         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
10756         rtld-global-offsets.h
10757         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
10758
10759         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
10760         large parameters.
10761
10762         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
10763
10764         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
10765         'err' in the ifdef scope in which it is actually used.
10766
10767         * nss/nss_db/db-init.c: Include string.h
10768
10769 2012-03-12  David S. Miller  <davem@davemloft.net>
10770
10771         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
10772         masking out of the most significant byte of random value used.
10773         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
10774         Fix coding style in previous change.
10775
10776         * sysdeps/unix/sysv/linux/kernel-features.h
10777         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
10778         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
10779         expression.
10780         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
10781         later.
10782
10783 2012-03-11  David S. Miller  <davem@davemloft.net>
10784
10785         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
10786         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
10787         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
10788         for 'resultvar' otherwise things get truncated on 64-bit.
10789
10790         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
10791         Fix masking out of the most significant byte of random value used.
10792
10793         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10794
10795 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
10796
10797         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10798
10799 2012-03-09  David S. Miller  <davem@davemloft.net>
10800
10801         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
10802         variables with appropriate CPP guards.
10803         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
10804         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
10805         on resulting framesize and the management of the outregs buffer for pltexit.
10806         Preserve floating point return values across _dl_call_pltexit call.
10807         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
10808         framesize and the management of the outregs buffer for pltexit.
10809         Preserve floating point return values across _dl_call_pltexit
10810         call.
10811         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
10812         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
10813         (print_exit): Fix format string for return register value.
10814
10815 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
10816
10817         * sunrpc/Makefile (others): Add rpcgen.
10818         ($(objpfx)rpcgen): Remove special build rule and dependency on
10819         libc.
10820         * sunrpc/rpcgen.c: New file.
10821
10822 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
10823
10824         [BZ #13673]
10825         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
10826         * stdio-common/bug-vfprintf-nargs.c: Likewise.
10827         * sysdeps/i386/crti.S: Likewise.
10828         * sysdeps/i386/crtn.S: Likewise.
10829         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
10830         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
10831         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
10832         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
10833         * sysdeps/sh/crti.S: Likewise.
10834         * sysdeps/sh/crtn.S: Likewise.
10835         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
10836
10837         [BZ #13673]
10838         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
10839         with URL.
10840         * locale/programs/locfile-kw.gperf: Likewise.
10841         * locale/programs/charmap-kw.h: Regenerated.
10842         * locale/programs/locfile-kw.h: Likewise.
10843
10844         [BZ #13673]
10845         * intl/plural.y: Replace FSF snail mail address with URL.
10846         * intl/plural.c: Regenerated.
10847
10848 2012-03-09  Richard Henderson  <rth@twiddle.net>
10849
10850         * include/math_private.h: Remove file.
10851         * math/math_private.h: Move file ...
10852         * sysdeps/generic/math_private.h: ... here.
10853
10854         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
10855         * sysdeps/powerpc/fpu/math_private.h: Likewise.
10856         * sysdeps/x86_64/fpu/math_private.h: Likewise.
10857
10858         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
10859         and <math_private.h>.
10860         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
10861         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
10862         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
10863         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
10864         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
10865         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
10866         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
10867         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
10868         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
10869         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
10870         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
10871         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
10872         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
10873         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
10874         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
10875         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
10876         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
10877         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
10878         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
10879         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
10880         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
10881         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
10882         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
10883         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
10884         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
10885         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
10886         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
10887         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
10888         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
10889         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
10890         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
10891         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
10892         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
10893         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
10894         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
10895         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
10896         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
10897         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
10898         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
10899         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
10900         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
10901         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
10902         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
10903         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
10904         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
10905         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
10906         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
10907         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
10908         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
10909         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
10910         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
10911         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
10912         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
10913         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
10914         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
10915         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
10916         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
10917         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
10918         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
10919         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
10920         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
10921         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
10922         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
10923         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
10924         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
10925         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
10926         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
10927         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
10928         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
10929         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
10930         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
10931         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
10932         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
10933         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
10934         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
10935         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
10936         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
10937         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
10938         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
10939         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
10940         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
10941         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
10942         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
10943         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
10944         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
10945         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
10946         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
10947         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
10948         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
10949         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
10950         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
10951         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
10952         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
10953         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
10954         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
10955         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
10956         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
10957         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
10958         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
10959         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
10960         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
10961         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
10962         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
10963         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
10964         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
10965         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
10966         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
10967         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
10968         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
10969         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
10970         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
10971         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
10972         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
10973         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
10974         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
10975         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
10976         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
10977         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
10978         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
10979         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
10980         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
10981         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
10982         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
10983         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
10984         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
10985         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
10986         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
10987         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
10988         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
10989         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
10990         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
10991         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
10992         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
10993         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
10994         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
10995         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
10996         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
10997         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
10998         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
10999         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
11000         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
11001         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
11002         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
11003         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
11004         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
11005         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
11006         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
11007         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
11008         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
11009         * sysdeps/ieee754/k_standard.c: Likewise.
11010         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
11011         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
11012         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
11013         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
11014         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
11015         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
11016         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
11017         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
11018         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
11019         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
11020         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
11021         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
11022         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
11023         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
11024         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
11025         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
11026         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
11027         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
11028         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
11029         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
11030         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
11031         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
11032         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
11033         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
11034         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
11035         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
11036         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
11037         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
11038         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
11039         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
11040         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
11041         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
11042         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
11043         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
11044         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
11045         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
11046         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
11047         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
11048         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
11049         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
11050         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
11051         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
11052         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
11053         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
11054         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
11055         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
11056         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
11057         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
11058         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
11059         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
11060         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
11061         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
11062         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
11063         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
11064         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
11065         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
11066         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
11067         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
11068         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
11069         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
11070         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
11071         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
11072         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
11073         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
11074         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
11075         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
11076         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
11077         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
11078         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
11079         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
11080         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
11081         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
11082         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
11083         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
11084         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
11085         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
11086         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
11087         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
11088         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
11089         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
11090         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
11091         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
11092         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
11093         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
11094         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
11095         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
11096         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
11097         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
11098         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
11099         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
11100         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
11101         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
11102         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
11103         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
11104         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
11105         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
11106         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
11107         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
11108         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
11109         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
11110         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
11111         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
11112         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
11113         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
11114         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
11115         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
11116         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
11117         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
11118         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
11119         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
11120         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
11121         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
11122         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
11123         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
11124         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
11125         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
11126         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
11127         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
11128         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
11129         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
11130         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
11131         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
11132         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
11133         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
11134         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
11135         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
11136         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
11137         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
11138         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
11139         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
11140         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
11141         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
11142         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
11143         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
11144         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
11145         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
11146         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
11147         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
11148         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
11149         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
11150         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
11151         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
11152         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
11153         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
11154         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
11155         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
11156         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
11157         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
11158         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
11159         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
11160         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
11161         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
11162         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
11163         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
11164         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
11165         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
11166         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
11167         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
11168         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
11169         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
11170         * sysdeps/ieee754/s_lib_version.c: Likewise.
11171         * sysdeps/ieee754/s_matherr.c: Likewise.
11172         * sysdeps/ieee754/s_signgam.c: Likewise.
11173         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
11174         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
11175         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
11176         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
11177         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
11178         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
11179         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
11180         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
11181         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
11182         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
11183         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
11184         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
11185         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
11186         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
11187         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
11188         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
11189         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
11190         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
11191         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
11192         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
11193         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
11194
11195 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
11196
11197         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
11198         * sunrpc/rpc_main.c: Likewise.
11199         * sunrpc/rpc_svcout.c: Likewise.
11200
11201 2012-03-09  David S. Miller  <davem@davemloft.net>
11202
11203         * include/math_private.h: New file.
11204
11205 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
11206
11207         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
11208         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
11209         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
11210         from <bits/socket_type.h>.
11211         (enum __socket_type): Don't define here.
11212         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
11213         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11214         bits/socket_type.h.
11215
11216         [BZ #13566]
11217         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
11218         checking __USE_GNU.
11219
11220         * Makerules ($(inst_includedir)/%.h): New rule.
11221         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
11222         (install-others): Remove variable setting.
11223         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
11224
11225 2012-03-08  Richard Henderson  <rth@twiddle.net>
11226
11227         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
11228         from macro to inline function; merge with the
11229         !__LIBC_INTERNAL_MATH_INLINES version.
11230         (__ieee754_sqrtf): Likewise.
11231
11232         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
11233         to inline function.
11234         (__rintf, __floor, __floorf): Likewise.
11235
11236         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
11237         macro to inline function.
11238         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
11239
11240         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
11241         not <math/math_private.h>.
11242
11243 2012-03-08  David S. Miller  <davem@davemloft.net>
11244
11245         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
11246         copyright year.
11247         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
11248
11249 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
11250
11251         * resolv/gai_misc.c (handle_requests): Fix struct timespec
11252         normalization.
11253         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
11254         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
11255
11256 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
11257
11258         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
11259         be defined individually, they must be defined as a block.  Define
11260         S for printing a string instead of hidint the different by using a
11261         macro for adding the 'l'.
11262         * stdio-common/tst-fphex-wide.c: Adjust.
11263
11264 2012-03-07  Marek Polacek  <polacek@redhat.com>
11265
11266         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
11267
11268 2012-03-08  Marek Polacek  <polacek@redhat.com>
11269
11270         [BZ #13806]
11271         * stdio-common/Makefile (tests): Add tst-fphex-wide.
11272         * stdio-common/tst-fphex.c: Define a few macros to make the
11273         test reusable.  Use them.
11274         * stdio-common/tst-fphex-wide.c: New file.
11275
11276 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
11277
11278         [BZ #6911]
11279         * manual/macros.texi (gnusystems): New macro.
11280         (nongnusystems): Likewise.
11281         (gnulinuxhurdsystems): Likewise.
11282         (gnuhurdsystems): Likewise..
11283         (gnulinuxsystems): Likewise.
11284         * manual/charset.texi: Use new macros or @theglibc{} to refer to
11285         variants of the GNU system, not "GNU system".
11286         * manual/conf.texi: Likewise.
11287         * manual/errno.texi: Likewise.  Update example of errno macro
11288         expansion.
11289         * manual/filesys.texi: Likewise.
11290         (getumask): Document as specific to GNU/Hurd.
11291         * manual/install.texi: Likewise.  Reword some references to
11292         GNU/Linux.
11293         * manual/intro.texi: Likewise.
11294         * manual/io.texi: Likewise.
11295         (File Name Portability): Detail which constraints are inapplicable
11296         to all GNU systems and which are only inapplicable to GNU/Hurd.
11297         * manual/job.texi: Likewise.
11298         * manual/llio.texi: Likewise.
11299         (O_NOCTTY): Document as present on GNU/Linux.
11300         * manual/maint.texi: Likewise.
11301         * manual/memory.texi: Likewise.
11302         * manual/pattern.texi: Likewise.
11303         * manual/pipe.texi: Likewise.
11304         * manual/process.texi: Likewise.
11305         * manual/resource.texi: Likewise.
11306         (RUSAGE_CHILDREN): Remove statement about specifying a particular
11307         child on GNU/Hurd.
11308         * manual/setjmp.texi: Likewise.
11309         * manual/signal.texi: Likewise.
11310         * manual/startup.texi: Likewise.
11311         * manual/stdio.texi: Likewise.
11312         * manual/terminal.texi: Likewise.
11313         (ONLCR): Document as POSIX.
11314         (OXTABS): Document availability on GNU/Linux as XTABS.
11315         (ONOEOT): Document availability separately from other bits.
11316         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
11317         * manual/time.texi: Likewise.
11318         * manual/users.texi: Likewise.
11319         * INSTALL: Regenerated.
11320         * sysdeps/gnu/errlist.c: Regenerated.
11321
11322         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
11323         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
11324         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
11325         puts.
11326         * configure: Regenerated.
11327
11328 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
11329
11330         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
11331         default includes instead of AC_HEADER_CHECK.
11332         * sysdeps/i386/configure: Regenerated.
11333
11334         [BZ #10716]
11335         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
11336         * math/s_cacoshf.c (__cacoshf): Likewise.
11337         * math/s_cacoshl.c (__cacoshl): Likewise.
11338         * math/s_casinh.c (__casinh): Set signs of result from argument.
11339         * math/s_casinhf.c (__casinhf): Likewise.
11340         * math/s_casinhl.c (__casinhl): Likewise.
11341         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
11342         (casinh_test): Add more tests.
11343         * sysdeps/i386/fpu/libm-test-ulps: Update.
11344         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11345
11346 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
11347
11348         * po/zh_TW.po: Update from translation team.
11349
11350         * login/Makefile (distribute): Remove variable.
11351         * catgets/Makefile: Likewise.
11352         * mach/Makefile: Likewise.
11353         * malloc/Makefile: Likewise.
11354         * misc/Makefile: Likewise.
11355         * iconv/Makefile: Likewise.
11356         * nscd/Makefile: Likewise.
11357         * hurd/Makefile: Likewise.
11358         * manual/Makefile: Likewise.
11359         * locale/Makefile: Likewise.
11360         * intl/Makefile: Likewise.
11361         * conform/Makefile: Likewise.
11362         * nss/Makefile: Likewise.
11363         * time/Makefile: Likewise.
11364         * soft-fp/Makefile: Likewise.
11365         * dirent/Makefile: Likewise.
11366         * gmon/Makefile: Likewise.
11367         * po/Makefile: Likewise.
11368         * rt/Makefile: Likewise.
11369         * socket/Makefile: Likewise.
11370         * math/Makefile: Likewise.
11371         * signal/Makefile: Likewise.
11372         * debug/Makefile: Likewise.
11373         * elf/Makefile: Likewise.
11374         * timezone/Makefile: Likewise.
11375         * stdlib/Makefile: Likewise.
11376         * iconvdata/Makefile: Likewise.
11377         * sunrpc/Makefile: Likewise.
11378         * io/Makefile: Likewise.
11379         * argp/Makefile: Likewise.
11380         * inet/Makefile: Likewise.
11381         * hesiod/Makefile: Likewise.
11382         * grp/Makefile: Likewise.
11383         * csu/Makefile: Likewise.
11384         * wctype/Makefile: Likewise.
11385         * crypt/Makefile: Likewise.
11386         * libio/Makefile: Likewise.
11387         * string/Makefile: Likewise.
11388         * nis/Makefile: Likewise.
11389         * resolv/Makefile: Likewise.
11390         * stdio-common/Makefile: Likewise.
11391         * wcsmbs/Makefile: Likewise.
11392         * dlfcn/Makefile: Likewise.
11393         * posix/Makefile: Likewise.
11394
11395         [BZ #6959]
11396         * timezone/Makefile: Don't install timezone files, just the programs
11397         and scripts.
11398
11399 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
11400
11401         * nss/databases.def: Add missing gshadow entry.
11402
11403         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
11404
11405 2012-03-06  Marek Polacek  <polacek@redhat.com>
11406
11407         [BZ #13726]
11408         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
11409         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
11410         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
11411         * stdio-common/tst-long-dbl-fphex.c: New file.
11412
11413 2012-03-06  David S. Miller  <davem@davemloft.net>
11414
11415         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
11416         (set_obp_int): New function.
11417         (get_obp_int): New function.
11418         (__get_clockfreq_via_dev_openprom): Likewise.
11419         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
11420         Avoid unused variable warnings on 'val' and use builtin_expect.
11421         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
11422         __builtin_expect.
11423         (INLINE_CLONE_SYSCALL): Likewise.
11424
11425 2012-03-05  David S. Miller  <davem@davemloft.net>
11426
11427         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11428
11429 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
11430
11431         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11432
11433         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
11434         only for |x| >= 40.
11435         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
11436
11437 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
11438
11439         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
11440         Replace gettimeofday with __vdso_gettimeofday.
11441
11442         * sysdeps/unix/sysv/linux/x86_64/init-first.c
11443         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
11444         __vdso_clock_gettime and __vdso_getcpu.
11445
11446         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
11447         time with __vdso_time.
11448
11449 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
11450
11451         * manual/lang.texi (size_t): Note types to which size_t may be
11452         equivalent with the GNU C Library, but do not describe when
11453         differences between them are significant.
11454
11455 2012-03-05  Andreas Jaeger  <aj@suse.de>
11456
11457         * sysdeps/i386/fpu/libm-test-ulps: Update.
11458
11459 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
11460
11461         [BZ #3976]
11462         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
11463         (__ieee754_pow): Save and restore rounding mode and use
11464         round-to-nearest for main computations.
11465         * math/libm-test.inc (pow_test_tonearest): New function.
11466         (pow_test_towardzero): Likewise.
11467         (pow_test_downward): Likewise.
11468         (pow_test_upward): Likewise.
11469         (main): Call the new functions.
11470         * sysdeps/i386/fpu/libm-test-ulps: Update.
11471         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11472
11473         [BZ #3976]
11474         * math/libm-test.inc (cosh_test_tonearest): New function.
11475         (cosh_test_towardzero): Likewise.
11476         (cosh_test_downward): Likewise.
11477         (cosh_test_upward): Likewise.
11478         (sinh_test_tonearest): Likewise.
11479         (sinh_test_towardzero): Likewise.
11480         (sinh_test_downward): Likewise.
11481         (sinh_test_upward): Likewise.
11482         (main): Call the new functions.
11483         * sysdeps/i386/fpu/libm-test-ulps: Update.
11484         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11485
11486 2012-03-05  Tom de Vries  <tom@codesourcery.com>
11487
11488         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
11489         default stack guard is set in last bytes.
11490         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
11491
11492 2012-03-05  Kees Cook  <keescook@chromium.org>
11493
11494         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
11495
11496         [BZ #13656]
11497         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
11498         possibly allocate from heap instead of stack.
11499         * stdio-common/bug-vfprintf-nargs.c: New file.
11500         * stdio-common/Makefile (tests): Add nargs overflow test.
11501
11502 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
11503
11504         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11505
11506 2012-03-03  Marek Polacek  <polacek@redhat.com>
11507
11508         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
11509         * math/math_private.h: Likewise.
11510         * stdlib/tst-strtod.c: Likewise.
11511         * sysdeps/i386/i486/bits/atomic.h: Likewise.
11512         * sysdeps/x86_64/bits/atomic.h: Likewise.
11513
11514 2012-03-02  David S. Miller  <davem@davemloft.net>
11515
11516         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
11517         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
11518         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
11519         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
11520         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
11521         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
11522         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
11523         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
11524
11525 2012-03-02  Roland McGrath  <roland@hack.frob.com>
11526
11527         [BZ #13792]
11528         * manual/examples/README: New file, says the example source files
11529         can be used under GPL>=2.
11530         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
11531         line containing just "*/".
11532         * manual/examples/add.c: Add copyright header (GPL>=2).
11533         * manual/examples/argp-ex1.c: Likewise.
11534         * manual/examples/argp-ex2.c: Likewise.
11535         * manual/examples/argp-ex3.c: Likewise.
11536         * manual/examples/argp-ex4.c: Likewise.
11537         * manual/examples/atexit.c: Likewise.
11538         * manual/examples/db.c: Likewise.
11539         * manual/examples/dir.c: Likewise.
11540         * manual/examples/dir2.c: Likewise.
11541         * manual/examples/execinfo.c: Likewise.
11542         * manual/examples/filecli.c: Likewise.
11543         * manual/examples/filesrv.c: Likewise.
11544         * manual/examples/fmtmsgexpl.c: Likewise.
11545         * manual/examples/genpass.c: Likewise.
11546         * manual/examples/inetcli.c: Likewise.
11547         * manual/examples/inetsrv.c: Likewise.
11548         * manual/examples/isockad.c: Likewise.
11549         * manual/examples/longopt.c: Likewise.
11550         * manual/examples/memopen.c: Likewise.
11551         * manual/examples/memstrm.c: Likewise.
11552         * manual/examples/mkfsock.c: Likewise.
11553         * manual/examples/mkisock.c: Likewise.
11554         * manual/examples/mygetpass.c: Likewise.
11555         * manual/examples/pipe.c: Likewise.
11556         * manual/examples/popen.c: Likewise.
11557         * manual/examples/rprintf.c: Likewise.
11558         * manual/examples/search.c: Likewise.
11559         * manual/examples/select.c: Likewise.
11560         * manual/examples/setjmp.c: Likewise.
11561         * manual/examples/sigh1.c: Likewise.
11562         * manual/examples/sigusr.c: Likewise.
11563         * manual/examples/stpcpy.c: Likewise.
11564         * manual/examples/strdupa.c: Likewise.
11565         * manual/examples/strftim.c: Likewise.
11566         * manual/examples/strncat.c: Likewise.
11567         * manual/examples/subopt.c: Likewise.
11568         * manual/examples/swapcontext.c: Likewise.
11569         * manual/examples/termios.c: Likewise.
11570         * manual/examples/testopt.c: Likewise.
11571         * manual/examples/testpass.c: Likewise.
11572         * manual/examples/timeval_subtract.c: Likewise.
11573
11574         [BZ #13792]
11575         * manual/time.texi (Elapsed Time): Move timeval_subtract example
11576         function to ...
11577         * manual/timeval_subtract.c.texi: ... here, new file.
11578
11579 2012-03-02  David S. Miller  <davem@davemloft.net>
11580
11581         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
11582
11583 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
11584
11585         [BZ #3976]
11586         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
11587         (__sin): Save and restore rounding mode and use round-to-nearest
11588         for all computations.
11589         (__cos): Save and restore rounding mode and use round-to-nearest
11590         for all computations.
11591         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
11592         <fenv.h>.
11593         (tan): Save and restore rounding mode and use round-to-nearest for
11594         all computations.
11595         * math/libm-test.inc (cos_test_tonearest): New function.
11596         (cos_test_towardzero): Likewise.
11597         (cos_test_downward): Likewise.
11598         (cos_test_upward): Likewise.
11599         (sin_test_tonearest): Likewise.
11600         (sin_test_towardzero): Likewise.
11601         (sin_test_downward): Likewise.
11602         (sin_test_upward): Likewise.
11603         (tan_test_tonearest): Likewise.
11604         (tan_test_towardzero): Likewise.
11605         (tan_test_downward): Likewise.
11606         (tan_test_upward): Likewise.
11607         (main): Call the new functions.
11608         * sysdeps/i386/fpu/libm-test-ulps: Update.
11609         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11610
11611         [BZ #10135]
11612         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
11613         small n, then large n, before computing and testing k+n.
11614         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
11615         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
11616         Likewise.
11617         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
11618         Likewise.
11619         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
11620         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
11621         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
11622         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
11623         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
11624         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
11625         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
11626         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
11627         * math/libm-test.inc (scalbn_test): Add more tests.
11628         (scalbln_test): Likewise.
11629
11630         * manual/filesys.texi (mode_t): Describe constraints on size and
11631         signedness, not exact equivalence to a particular type.
11632         (ino_t): Likewise.
11633         (ino64_t): Likewise.
11634         (dev_t): Likewise.
11635         (nlink_t): Likewise.
11636         (blkcnt_t): Likewise.
11637         (blkcnt64_t): Likewise.
11638         * manual/llio.texi (off_t): Likewise.
11639
11640         [BZ #3976]
11641         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
11642         (__ieee754_exp): Save and restore rounding mode and use
11643         round-to-nearest for all computations.
11644         * math/libm-test.inc (exp_test_tonearest): New function.
11645         (exp_test_towardzero): Likewise.
11646         (exp_test_downward): Likewise.
11647         (exp_test_upward): Likewise.
11648         (main): Call the new functions.
11649         * sysdeps/i386/fpu/libm-test-ulps: Update.
11650         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11651
11652 2012-03-01  Chris Demetriou  <cgd@google.com>
11653
11654         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
11655         have predictable order.
11656
11657 2012-03-01  David S. Miller  <davem@davemloft.net>
11658
11659         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
11660
11661         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
11662         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
11663         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
11664         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
11665
11666         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
11667         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
11668         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
11669         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
11670         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
11671         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
11672         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
11673         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
11674         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
11675
11676         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11677
11678         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
11679         * sysdeps/sparc/fpu/libm-test-ulps: to here.
11680         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
11681
11682         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
11683         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
11684         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
11685         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
11686         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
11687         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
11688         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
11689         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
11690         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
11691         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
11692         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
11693         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
11694         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
11695         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
11696         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
11697         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
11698         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
11699         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
11700         * sysdeps/sparc/elf/configure: Regenerated.
11701
11702 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
11703
11704         * configure.in (AS, LD): Require binutils 2.20 or later.
11705         * configure: Regenerated.
11706         * manual/install.texi (Tools for Compilation): Give binutils 2.20
11707         as required minimum version.
11708         * INSTALL: Regenerated.
11709
11710         [BZ #2541]
11711         [BZ #4108]
11712         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
11713         before squaring exponent.
11714         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
11715         bottom long double and 27 bits of top long double before squaring
11716         exponent.
11717         * math/libm-test.inc (erfc_test): Add more tests.
11718         * sysdeps/i386/fpu/libm-test-ulps: Update.
11719         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
11720         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11721
11722 2012-03-01  Kai Tietz  <ktietz@redhat.com>
11723
11724         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
11725         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
11726         containing bit-fields.
11727         * soft-fp/extended.h (_FP_UNION_E): Likewise.
11728         * soft-fp/single.h (_FP_UNION_S): Likewise.
11729         * soft-fp/double.h (_FP_UNION_D): Likewise.
11730
11731 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
11732
11733         [BZ #13786]
11734         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
11735         not include ../strcmp.S.
11736         [USE_AS_STRNCASECMP_L]: Likewise.
11737         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
11738         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
11739         * sysdeps/i386/i686/multiarch/strncase_l-c.c
11740         (__strncasecmp_l_ia32): Define as alias to
11741         __strncasecmp_l_nonascii.
11742
11743         [BZ #5794]
11744         * math/libm-test.inc (expm1_test): Add test for bug 5794.
11745         * sysdeps/i386/fpu/libm-test-ulps: Update.
11746         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11747
11748         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
11749         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11750
11751 2012-02-29  Jeff Law  <law@redhat.com>
11752
11753         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
11754         out of bounds read.
11755
11756 2012-02-29  Marek Polacek  <polacek@redhat.com>
11757
11758         [BZ #13706]
11759         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
11760         * elf/Makefile: Add rules to run tst-unused-dep.out.
11761
11762 2012-02-28  David S. Miller  <davem@davemloft.net>
11763
11764         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
11765         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
11766         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
11767         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
11768         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
11769         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
11770
11771 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
11772
11773         * math/libm-test.inc (llround_test): Move one test from
11774         lround_test.  Use TEST_f_L in moved test.
11775         (lround_test): Move misplaced test to llround_test.  Add testcase
11776         from bug 2561.
11777
11778 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
11779
11780         * sysdeps/x86_64/fpu/e_expf.S: New file.
11781         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
11782
11783 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
11784
11785         [BZ #13637]
11786         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
11787         of remain_len that may cause incomplete multi-byte character and
11788         false match.
11789         * posix/bug-regex33.c: New file.
11790         * posix/Makefile (tests): Add bug-regex33.
11791
11792 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
11793
11794         * manual/macros.texi: New file.
11795         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
11796         * manual/libc.texinfo: Include macros.texi.
11797         * manual/creatute.texi: Likewise.
11798         * manual/install.texi: Likewise.
11799         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
11800         @glibcadj{} in references to the GNU C Library.
11801         * manual/charset.texi: Likewise.
11802         * manual/conf.texi: Likewise.
11803         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
11804         when not using those macros.
11805         * manual/creature.texi: Likewise.
11806         * manual/crypt.texi: Likewise.
11807         * manual/errno.texi: Likewise.
11808         * manual/filesys.texi: Likewise.
11809         * manual/header.texi: Likewise.
11810         * manual/install.texi: Likewise.
11811         * manual/intro.texi: Likewise.
11812         * manual/io.texi: Likewise.
11813         * manual/job.texi: Likewise.
11814         * manual/lang.texi: Likewise.
11815         * manual/libc.texiinfo: Likewise.
11816         * manual/llio.texi: Likewise.
11817         * manual/locale.texi: Likewise.
11818         * manual/maint.texi: Likewise.
11819         * manual/math.texi: Likewise.
11820         * manual/memory.texi: Likewise.
11821         * manual/message.texi: Likewise.
11822         * manual/nss.texi: Likewise.
11823         * manual/pattern.texi: Likewise.
11824         * manual/process.texi: Likewise.
11825         * manual/resource.texi: Likewise.
11826         * manual/search.texi: Likewise.
11827         * manual/setjmp.texi: Likewise.
11828         * manual/signal.texi: Likewise.
11829         * manual/socket.texi: Likewise.
11830         * manual/startup.texi: Likewise.
11831         * manual/stdio.texi: Likewise.
11832         * manual/string.texi: Likewise.
11833         * manual/sysinfo.texi: Likewise.
11834         * manual/syslog.texi: Likewise.
11835         * manual/terminal.texi: Likewise.
11836         * manual/time.texi: Likewise.
11837         * manual/users.texi: Likewise.
11838         * INSTALL: Regenerated.
11839         * NOTES: Regenerated.
11840         * sysdeps/gnu/errlist.c: Regenerated.
11841
11842 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
11843
11844         * include/dirent.h: Include <dirstream.h> before
11845         <dirent/dirent.h>.
11846
11847 2012-02-28  David S. Miller  <davem@davemloft.net>
11848
11849         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
11850         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
11851         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
11852         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
11853
11854 2012-02-27  David S. Miller  <davem@davemloft.net>
11855
11856         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
11857         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
11858         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
11859         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
11860
11861         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
11862         frame pointer instead of stack pointer relative arg slot.
11863         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
11864         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
11865         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
11866
11867 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
11868
11869         [BZ #3992]
11870         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
11871
11872 2012-02-27  David S. Miller  <davem@davemloft.net>
11873
11874         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
11875         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
11876         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
11877         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
11878         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
11879         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
11880         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
11881         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
11882
11883 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
11884
11885         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
11886         later.  Allow versions 5-9.
11887         * configure: Regenerated.
11888         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
11889         required minimum version and 4.6 as recommended version.  Do not
11890         mention bugs in GCC 2.7 and 2.8.
11891         * INSTALL: Regenerated.
11892
11893 2012-02-27  David S. Miller  <davem@davemloft.net>
11894
11895         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
11896         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
11897         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
11898         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
11899         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
11900         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
11901         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
11902         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
11903
11904         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
11905         manipulate bits before adding and subtracting TWO112[sx].
11906         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
11907
11908 2012-02-27  Roland McGrath  <roland@hack.frob.com>
11909
11910         [BZ #13775]
11911         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
11912         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
11913         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
11914         being in POSIX, because they are in 1003.1-2008.
11915
11916         * rt/tst-aio.c: Include <fcntl.h>.
11917         * rt/tst-aio7.c: Likewise.
11918         * rt/tst-aio64.c: Likewise.
11919
11920         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
11921
11922 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
11923
11924         * manual/install.texi (--with-headers): Describe headers as
11925         interface headers, not private headers.
11926         (Specific advice for GNU/Linux systems): Describe use of headers
11927         from "make headers_install", not private headers from older
11928         kernels.
11929         * INSTALL: Regenerated.
11930         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
11931         Change to 2.6.19.
11932         * sysdeps/unix/sysv/linux/configure: Regenerated.
11933
11934         * manual/llio.texi (fclean): Remove documentation.
11935
11936         * manual/Makefile (libc-texi-generated): New variable.  Include
11937         version.texi.
11938         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
11939         $(libc-texi-generated), not duplicated list of files.
11940         (version.texi, stamp-version): New rules.
11941         (realclean): Remove $(libc-texi-generated), not individual files
11942         from that list.  Do not remove dir-add.texinfo.
11943         * manual/libc.texinfo: Comment out uses of edition numbers and
11944         references to printed manual.  Remove last-updated dates.
11945         (EDITION): Comment out.
11946         (ISBN): Likewise.
11947         (VERSION, UPDATED): Remove.
11948         (version.texi): Include.
11949
11950 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
11951
11952         * sysdeps/posix/spawni.c: Include <signal.h>.
11953         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
11954         * sysdeps/pthread/aio_fsync.c: Likewise.
11955
11956 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
11957
11958         * conform/Makefile (tests): Run only when not cross-compiling and
11959         when fast-check is not defined.
11960
11961         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
11962         * conform/data/limits.h-data: Fixes for POSIX2008.
11963         * conform/run-conformtest.sh: Run all tests.
11964         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
11965         headers.
11966         * include/bits/dlfcn.h: Likewise.
11967         * include/langinfo.h: Likewise.
11968         * include/monetary.h: Likewise.
11969         * include/sys/poll.h: Likewise.
11970
11971         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
11972         for __USE_GNU.
11973         * posix/spawn.h: Define __need_sigset_t.
11974         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
11975         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
11976         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
11977         to get sigevent_t only.
11978         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
11979         only for __USE_GNU.
11980         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
11981         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
11982         process_vm_writev only for __USE_GNU.
11983         * termios/termios.h: Declare tcgetsid also for POSIX2008.
11984
11985         * conform/Makefile: For now ignore errors from run-conformtest.
11986         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
11987         POSIX to avoid namespace pollution.  Don't prepend headers.
11988         * conform/data/aio.h-data: Fixes for POSIX testing.
11989         * conform/data/fcntl.h-data: Likewise.
11990         * conform/data/glob.h-data: Likewise.
11991         * conform/data/grp.h-data: Likewise.
11992         * conform/data/pthread.h-data: Likewise.
11993         * conform/data/pwd.h-data: Likewise.
11994         * conform/data/signal.h-data: Likewise.
11995         * conform/data/spawn.h-data: Likewise.
11996         * conform/data/stdio.h-data: Likewise.
11997         * conform/data/stdlib.h-data: Likewise.
11998         * conform/data/stropts.h-data: Likewise.
11999         * conform/data/sys/mman.h-data: Likewise.
12000         * conform/data/sys/stat.h-data: Likewise.
12001         * conform/data/sys/types.h-data: Likewise.
12002         * conform/data/sys/wait.h-data: Likewise.
12003         * conform/data/time.h-data: Likewise.
12004         * conform/data/unistd.h-data: Likewise.
12005         * conform/data/utime.h-data: Likewise.
12006
12007         * io/sys/stat.h: fchmod was always in POSIX.
12008         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
12009         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
12010         * rt/aio.h: Define __need_timespec before including <time.h>.
12011         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
12012         struct.  Add forward declaration of pthread_attr_t and use it in
12013         sigevent.
12014         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
12015         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
12016         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
12017         always remove CLK_TCK definition.
12018
12019 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
12020
12021         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
12022
12023 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
12024
12025         * conform/run-conformtest.sh: New file.
12026         * conform/Makefile: Run run-conformtest for tests.
12027         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
12028         support.
12029
12030         * conform/data/uchar.h-data: New file.
12031         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
12032         * conform/data/arpa/inet.h-data: Likewise.
12033         * conform/data/assert.h-data: Likewise.
12034         * conform/data/complex.h-data: Likewise.
12035         * conform/data/cpio.h-data: Likewise.
12036         * conform/data/ctype.h-data: Likewise.
12037         * conform/data/dirent.h-data: Likewise.
12038         * conform/data/dlfcn.h-data: Likewise.
12039         * conform/data/errno.h-data: Likewise.
12040         * conform/data/fcntl.h-data: Likewise.
12041         * conform/data/float.h-data: Likewise.
12042         * conform/data/fmtmsg.h-data: Likewise.
12043         * conform/data/fnmatch.h-data: Likewise.
12044         * conform/data/ftw.h-data: Likewise.
12045         * conform/data/glob.h-data: Likewise.
12046         * conform/data/grp.h-data: Likewise.
12047         * conform/data/iconv.h-data: Likewise.
12048         * conform/data/inttypes.h-data: Likewise.
12049         * conform/data/langinfo.h-data: Likewise.
12050         * conform/data/libgen.h-data: Likewise.
12051         * conform/data/limits.h-data: Likewise.
12052         * conform/data/locale.h-data: Likewise.
12053         * conform/data/math.h-data: Likewise.
12054         * conform/data/monetary.h-data: Likewise.
12055         * conform/data/mqueue.h-data: Likewise.
12056         * conform/data/ndbm.h-data: Likewise.
12057         * conform/data/net/if.h-data: Likewise.
12058         * conform/data/netdb.h-data: Likewise.
12059         * conform/data/netinet/in.h-data: Likewise.
12060         * conform/data/nl_types.h-data: Likewise.
12061         * conform/data/poll.h-data: Likewise.
12062         * conform/data/pthread.h-data: Likewise.
12063         * conform/data/pwd.h-data: Likewise.
12064         * conform/data/regex.h-data: Likewise.
12065         * conform/data/sched.h-data: Likewise.
12066         * conform/data/search.h-data: Likewise.
12067         * conform/data/semaphore.h-data: Likewise.
12068         * conform/data/setjmp.h-data: Likewise.
12069         * conform/data/signal.h-data: Likewise.
12070         * conform/data/spawn.h-data: Likewise.
12071         * conform/data/stdarg.h-data: Likewise.
12072         * conform/data/stdio.h-data: Likewise.
12073         * conform/data/stdlib.h-data: Likewise.
12074         * conform/data/string.h-data: Likewise.
12075         * conform/data/strings.h-data: Likewise.
12076         * conform/data/stropts.h-data: Likewise.
12077         * conform/data/sys/ipc.h-data: Likewise.
12078         * conform/data/sys/mman.h-data: Likewise.
12079         * conform/data/sys/msg.h-data: Likewise.
12080         * conform/data/sys/resource.h-data: Likewise.
12081         * conform/data/sys/select.h-data: Likewise.
12082         * conform/data/sys/sem.h-data: Likewise.
12083         * conform/data/sys/shm.h-data: Likewise.
12084         * conform/data/sys/socket.h-data: Likewise.
12085         * conform/data/sys/stat.h-data: Likewise.
12086         * conform/data/sys/statvfs.h-data: Likewise.
12087         * conform/data/sys/time.h-data: Likewise.
12088         * conform/data/sys/timeb.h-data: Likewise.
12089         * conform/data/sys/times.h-data: Likewise.
12090         * conform/data/sys/types.h-data: Likewise.
12091         * conform/data/sys/uio.h-data: Likewise.
12092         * conform/data/sys/un.h-data: Likewise.
12093         * conform/data/sys/utsname.h-data: Likewise.
12094         * conform/data/sys/wait.h-data: Likewise.
12095         * conform/data/syslog.h-data: Likewise.
12096         * conform/data/tar.h-data: Likewise.
12097         * conform/data/termios.h-data: Likewise.
12098         * conform/data/utime.h-data: Likewise.
12099         * conform/data/utmpx.h-data: Likewise.
12100         * conform/data/varargs.h-data: Likewise.
12101         * conform/data/wchar.h-data: Likewise.
12102         * conform/data/wctype.h-data: Likewise.
12103         * conform/data/wordexp.h-data: Likewise.
12104
12105         * include/stropts.h: New file.
12106         * include/uchar.h: New file.
12107         * include/aio.h: Changes to allow conformtest.pl to use the headers.
12108         * include/assert.h: Likewise.
12109         * include/ctype.h: Likewise.
12110         * include/dirent.h: Likewise.
12111         * include/dlfcn.h: Likewise.
12112         * include/fcntl.h: Likewise.
12113         * include/fnmatch.h: Likewise.
12114         * include/glob.h: Likewise.
12115         * include/grp.h: Likewise.
12116         * include/libio.h: Likewise.
12117         * include/locale.h: Likewise.
12118         * include/math.h: Likewise.
12119         * include/net/if.h: Likewise.
12120         * include/netdb.h: Likewise.
12121         * include/netinet/in.h: Likewise.
12122         * include/pthread.h: Likewise.
12123         * include/pwd.h: Likewise.
12124         * include/regex.h: Likewise.
12125         * include/sched.h: Likewise.
12126         * include/search.h: Likewise.
12127         * include/setjmp.h: Likewise.
12128         * include/signal.h: Likewise.
12129         * include/stdio.h: Likewise.
12130         * include/stdlib.h: Likewise.
12131         * include/string.h: Likewise.
12132         * include/sys/cdefs.h: Likewise.
12133         * include/sys/mman.h: Likewise.
12134         * include/sys/msg.h: Likewise.
12135         * include/sys/resource.h: Likewise.
12136         * include/sys/select.h: Likewise.
12137         * include/sys/socket.h: Likewise.
12138         * include/sys/stat.h: Likewise.
12139         * include/sys/statvfs.h: Likewise.
12140         * include/sys/time.h: Likewise.
12141         * include/sys/times.h: Likewise.
12142         * include/sys/uio.h: Likewise.
12143         * include/sys/utsname.h: Likewise.
12144         * include/sys/wait.h: Likewise.
12145         * include/termios.h: Likewise.
12146         * include/time.h: Likewise.
12147         * include/ulimit.h: Likewise.
12148         * include/unistd.h: Likewise.
12149         * include/utime.h: Likewise.
12150         * include/wchar.h: Likewise.
12151         * include/wctype.h: Likewise.
12152         * include/wordexp.h: Likewise.
12153
12154         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
12155
12156         * time/time.h: TIME_UTC must be a macro.
12157         Make timespec_get available for ISO C11 only as well.
12158
12159 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
12160
12161         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
12162         Reported by Peng Haitao <penght@cn.fujitsu.com>.
12163
12164 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
12165
12166         * configure.in: Use -o not -a in test for unsupported multi-arch.
12167
12168 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
12169
12170         * manual/texinfo.tex: Update to version 2012-01-19.16.
12171
12172 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
12173
12174         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
12175
12176 2012-02-24  Roland McGrath  <roland@hack.frob.com>
12177
12178         [BZ #13738]
12179         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
12180         * manual/fdl-1.3.texi: New file.
12181         * manual/fdl-1.1.texi: File removed.
12182
12183         [BZ #13738]
12184         * manual/libc.texinfo (FDL_VERSION): New @set.
12185         Use it for mention of FDL in cover text.
12186         (Documentation License): Use it in @include file name.
12187
12188 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12189             Roland McGrath  <roland@hack.frob.com>
12190
12191         [BZ #5461]
12192         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
12193         not LONG_LONG_MAX and LONG_LONG_MIN.
12194         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
12195         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
12196         name.
12197         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
12198
12199 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12200
12201         [BZ #2547]
12202         [BZ #11365]
12203         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
12204         manipulate bits before adding and subtracting TWO23[sx].
12205         * math/libm-test.inc (nearbyint_test): Add more tests.
12206
12207 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12208
12209         [BZ #2548]
12210         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
12211         bits before adding and subtracting TWO23[sx].
12212         * math/libm-test.inc (rint_test): Add more tests.
12213         (rint_test_tonearest): Likewise.
12214         (rint_test_towardzero): Likewise.
12215         (rint_test_downward): Likewise.
12216         (rint_test_upward: Likewise.
12217
12218 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12219
12220         [BZ #10110]
12221         * include/stdc-predef.h: New file.  Extracted from features.h.
12222         * include/features.h: Include stdc-predef.h.
12223         * Makefile (headers): Add stdc-predef.h.
12224         * CONFORMANCE (Compiler limitations): Update.
12225
12226 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12227
12228         * manual/libc.texinfo (VERSION, UPDATED): Revert.
12229
12230 2012-02-21  David S. Miller  <davem@davemloft.net>
12231
12232         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
12233         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
12234
12235 2012-02-20  David S. Miller  <davem@davemloft.net>
12236
12237         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
12238         using a normal save/restore sequence, rather than allocating a
12239         dummy stack frame just to store a frame pointer and restore.
12240         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
12241
12242 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
12243
12244         * manual/install.texi: Fix stray word in line-wrapped comment.
12245
12246 2012-02-20  David S. Miller  <davem@davemloft.net>
12247
12248         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
12249         both binutils and gcc support GOTDATA.
12250
12251         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
12252         "rd %pc" in the PIC register setup sequences.
12253
12254         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
12255         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
12256         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
12257         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
12258         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
12259         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
12260         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
12261         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
12262         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
12263         (SYSCALL_ERROR_HANDLER): Likewise.
12264         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
12265         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
12266         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
12267         (SYSCALL_ERROR_HANDLER): Likewise.
12268
12269         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
12270         (HAVE_GCC_GOTDATA): New.
12271         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
12272         relocation support in both binutils and gcc.
12273         * sysdeps/sparc/elf/configure: Regenerate.
12274
12275         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
12276         * sysdeps/sparc/sparc32/elf/configure: Delete.
12277         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
12278         * sysdeps/sparc/sparc64/elf/configure: Delete.
12279         * sysdeps/sparc/elf/configure.in: New file.
12280         * sysdeps/sparc/elf/configure: Generate.
12281
12282         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
12283         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
12284         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
12285         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
12286         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
12287
12288 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
12289
12290         * manual/install.texi: Do not mention specific glibc version
12291         numbers.
12292         * manual/libc.texinfo (VERSION, UPDATED): Update.
12293         (@copying): Use @copyright{} and range of years.
12294
12295 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
12296
12297         [BZ #13695]
12298         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
12299         [crti.S not in sysdirs] (generated): Do not append.
12300         [crti.S not in sysdirs] (omit-deps): Likewise.
12301         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
12302         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
12303         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
12304         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
12305         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
12306         Likewise.
12307         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
12308         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
12309         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
12310         * csu/defs.awk: Remove file.
12311         * sysdeps/generic/initfini.c: Likewise.
12312         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
12313         variable.
12314         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
12315         Likewise.
12316
12317 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
12318
12319         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
12320         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
12321         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
12322         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
12323         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
12324         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
12325         <bits/epoll.h>.
12326         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
12327         (__EPOLL_PACKED): Define to empty if not defined by
12328         <bits/epoll.h>.
12329         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
12330         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12331         bits/epoll.h.
12332
12333 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
12334
12335         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
12336         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
12337         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
12338         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
12339         <bits/timerfd.h>.
12340         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
12341         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12342         bits/timerfd.h.
12343
12344 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
12345
12346         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
12347         in C locale.
12348         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
12349         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
12350         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
12351         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12352
12353 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
12354
12355         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
12356         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
12357
12358 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
12359
12360         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
12361         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
12362         defined.
12363         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
12364         Likewise.
12365         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
12366         entry for 2.16.
12367
12368 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
12369
12370         * math/w_acos.c: Use non-signaling floating-point comparisons.
12371         * math/w_acosf.c: Likewise.
12372         * math/w_acosh.c: Likewise.
12373         * math/w_acoshf.c: Likewise.
12374         * math/w_acoshl.c: Likewise.
12375         * math/w_acosl.c: Likewise.
12376         * math/w_asin.c: Likewise.
12377         * math/w_asinf.c: Likewise.
12378         * math/w_asinl.c: Likewise.
12379         * math/w_atanh.c: Likewise.
12380         * math/w_atanhf.c: Likewise.
12381         * math/w_atanhl.c: Likewise.
12382         * math/w_exp2.c: Likewise.
12383         * math/w_exp2f.c: Likewise.
12384         * math/w_exp2l.c: Likewise.
12385         * math/w_j0.c: Likewise.
12386         * math/w_j0f.c: Likewise.
12387         * math/w_j0l.c: Likewise.
12388         * math/w_j1.c: Likewise.
12389         * math/w_j1f.c: Likewise.
12390         * math/w_j1l.c: Likewise.
12391         * math/w_jn.c: Likewise.
12392         * math/w_jnf.c: Likewise.
12393         * math/w_log.c: Likewise.
12394         * math/w_log10.c: Likewise.
12395         * math/w_log10f.c: Likewise.
12396         * math/w_log10l.c: Likewise.
12397         * math/w_log2.c: Likewise.
12398         * math/w_log2f.c: Likewise.
12399         * math/w_log2l.c: Likewise.
12400         * math/w_logf.c: Likewise.
12401         * math/w_logl.c: Likewise.
12402         * math/w_sqrt.c: Likewise.
12403         * math/w_sqrtf.c: Likewise.
12404         * math/w_sqrtl.c: Likewise.
12405         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
12406         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
12407         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
12408         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
12409         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
12410
12411 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
12412
12413         [BZ #9739]
12414         * manual/string.texi (strnlen): Use correct parameter name in
12415         equivalent expression.
12416
12417 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
12418
12419         [BZ #11174]
12420         * manual/users.texi (seteuid): Consistently use neweuid for
12421         argument name.
12422
12423 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
12424
12425         [BZ #13704]
12426         * manual/nss.texi (Services in the NSS configuration): Correct
12427         list of services in example configuration file.
12428
12429 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
12430
12431         [BZ #11322]
12432         * manual/arith.texi: Remove statements about negative zero
12433         behaving identically to zero.
12434
12435 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
12436
12437         [BZ #5993]
12438         * manual/install.texi: Do not document upgrading from libc5.
12439
12440 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
12441
12442         [BZ #4596]
12443         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
12444
12445 2012-02-18  David S. Miller  <davem@davemloft.net>
12446
12447         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
12448         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
12449         %o7 across the call.
12450         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
12451         instead.
12452         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
12453         SETUP_PIC_REG_LEAF.
12454         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
12455         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
12456         * sysdeps/sparc/crtn.S: Likewise.
12457
12458 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
12459
12460         * aout/Makefile: Remove.
12461
12462 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
12463
12464         [BZ #13058]
12465         * manual/examples/argp-ex1.c (main): Format definition in GNU
12466         style.
12467         * manual/examples/argp-ex2.c (main): Likewise.
12468         * manual/examples/argp-ex3.c (main): Likewise.
12469         * manual/examples/argp-ex4.c (main): Likewise.
12470         * manual/examples/longopt.c (main): Use new-style prototype
12471         definition.
12472         * manual/examples/strncat.c (main): Specify return type and use
12473         (void) for arguments.
12474         * manual/examples/subopt.c (main): Use char **argv argument.
12475
12476 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12477
12478         [BZ #5077]
12479         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
12480         rounding modes.
12481
12482 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
12483
12484         [BZ #6907]
12485         * manual/string.texi (strchr): Change when strchrnul is
12486         recommended.
12487
12488 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
12489
12490         [BZ #174]
12491         * manual/locale.texi (setlocale): Document LOCPATH.
12492
12493 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12494
12495         [BZ #10210]
12496         * manual/process.texi (execle): Move @dots{} before last argument.
12497
12498 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
12499
12500         [BZ #12047]
12501         * manual/charset.texi (Generic Charset Conversion): Fix typo
12502         (LC_TYPE -> LC_CTYPE).
12503
12504 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
12505
12506         [BZ #5805]
12507         * manual/arith.texi (scalbn): Use @var{} on parameter names.
12508         (scalbnf): Likewise.
12509         (scalbnl): Likewise.
12510         (scalbln): Likewise.
12511         (scalblnf): Likewise.
12512         (scalblnl): Likewise.
12513         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
12514         (vwarnx): Likewise.
12515         (verr): Likewise.
12516         (verrx): Likewise.
12517         * manual/filesys.texi (telldir): Use braces around return type.
12518         * manual/llio.texi (mmap): Add space after comma.
12519         (mmap64): Likewise.
12520         * manual/math.texi (jn): Use @var{} on parameter names.
12521         (jnf): Likewise.
12522         (jnl): Likewise.
12523         (yn): Likewise.
12524         (ynf): Likewise.
12525         (ynl): Likewise.
12526         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
12527         line.
12528         * manual/resource.texi (ulimit): Use @dots{} instead of literal
12529         "...".
12530         (sched_get_priority_min): Remove semicolon on @deftypefun line.
12531         (sched_get_priority_max): Likewise.
12532         * manual/signal.texi (sigvec): Add space after comma.
12533         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
12534         names.
12535         (if_indextoname): Likewise.
12536         (if_freenameindex): Likewise.
12537         (sendto): Use ',' instead of '.' in prototype.
12538         * manual/startup.texi (syscall): Use @dots{} instead of literal
12539         "...".
12540         * manual/stdio.texi (__fpending): Separate initial words of
12541         paragraph from @deftypefun line.
12542         * manual/syslog.texi (syslog): Use @dots{} instead of literal
12543         "...".
12544         (vsyslog): Use @var{} on parameter names.
12545         * manual/terminal.texi (stty): Use @var{} on parameter names.
12546         * manual/users.texi (getutmp): Use @var{} on parameter names.
12547         (getutmpx): Likewise.
12548
12549 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12550
12551         [BZ #6884]
12552         * manual/stdio.texi (fopen): Fix typos in description of
12553         ",ccs=STRING".
12554
12555 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
12556
12557         [BZ #4026]
12558         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
12559         get clock_id definition.
12560
12561 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
12562
12563         [BZ #4822]
12564         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
12565         (madvise): Cast every argument to void on its own.
12566
12567 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12568
12569         [BZ #9902]
12570         * manual/startup.texi (Exit Status): Fix typo.
12571
12572 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12573
12574         [BZ #10140]
12575         * manual/examples/argp-ex1.c: Include <stdlib.h>.
12576         * manual/examples/argp-ex2.c: Likewise.
12577         * manual/examples/argp-ex3.c: Likewise.
12578
12579 2012-02-16  Richard Henderson  <rth@redhat.com>
12580
12581         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
12582         * sysdeps/s390/s390-32/initfini.c: Remove.
12583         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
12584         * sysdeps/s390/s390-64/initfini.c: Remove.
12585
12586 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
12587
12588         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
12589         compiler output for sysdeps/generic/initfini.c.
12590         * sysdeps/sh/elf/initfini.c: Remove file.
12591
12592 2012-02-16  David S. Miller  <davem@davemloft.net>
12593
12594         [BZ #11494]
12595         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
12596
12597         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
12598         * sysdeps/sparc/crti.S: New file.
12599         * sysdeps/sparc/crtn.S: New file.
12600         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
12601         * sysdeps/sparc/sparc64/Makefile: Likewise.
12602
12603 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
12604
12605         [BZ #3335]
12606         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
12607
12608 2012-02-15  Roland McGrath  <roland@hack.frob.com>
12609
12610         [BZ #4822]
12611         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
12612
12613         * mach/devstream.c (cookie_io_functions_t): Macro removed.
12614         (write, read, close): Likewise.
12615         Patch by Aurelien Jarno <aurelien@aurel32.net>.
12616
12617 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
12618
12619         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
12620         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
12621         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
12622         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
12623         <bits/signalfd.h>.
12624         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
12625         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12626         bits/signalfd.h.
12627
12628 2012-02-14  Marek Polacek  <polacek@redhat.com>
12629
12630         * sysdeps/x86_64/crti.S: New file.
12631         * sysdeps/x86_64/crtn.S: New file.
12632         * sysdeps/x86_64/elf/initfini.c: Remove file.
12633
12634 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
12635
12636         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
12637         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
12638         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
12639         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
12640         <bits/inotify.h>.
12641         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
12642         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12643         bits/inotify.h.
12644
12645 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
12646
12647         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
12648         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
12649         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
12650         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
12651         <bits/eventfd.h>.
12652         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
12653         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12654         bits/eventfd.h.
12655
12656 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
12657
12658         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
12659         __feraiseexcept instead of feraiseexcept.
12660
12661         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
12662         nanosleep invocations.
12663         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
12664         strings, and add error checking for a nanosleep invocations.
12665
12666 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
12667
12668         Replace FSF snail mail address with URLs, as per GNU coding standards.
12669         Most of the snail mail addresses were wrong anyway, and omitting
12670         them makes the source code easier to maintain.  Almost all of the
12671         changes are to license notices and to locale LC_IDENTIFICATION
12672         addresses, except for this one:
12673         * manual/libc.texinfo: In "Published by", give the FSF's URL,
12674         not its snail mail address.
12675
12676 2012-02-09  Richard Henderson  <rth@twiddle.net>
12677
12678         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
12679         of kernel-features.h.
12680
12681         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
12682
12683 2012-02-08  Marek Polacek  <polacek@redhat.com>
12684
12685         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
12686         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
12687         * sysdeps/gnu/_G_config.h: Likewise.
12688         * sysdeps/generic/_G_config.h: Likewise.
12689
12690 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
12691
12692         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
12693         tests.
12694         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12695
12696         * sysdeps/powerpc/powerpc32/crti.S: New file.
12697         * sysdeps/powerpc/powerpc32/crtn.S: New file.
12698         * sysdeps/powerpc/powerpc64/crti.S: New file.
12699         * sysdeps/powerpc/powerpc64/crtn.S: New file.
12700
12701         * Makeconfig (have-initfini): Don't set.
12702         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
12703         * configure.in (nopic_initfini): Don't substitute.
12704         * config.h.in (HAVE_INITFINI): Don't #undef.
12705         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
12706         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
12707
12708 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
12709
12710         Support crti.S and crtn.S provided directly by architectures.
12711         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
12712         [crti.S in sysdirs] (omit-deps): Likewise.
12713         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
12714         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
12715         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
12716         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
12717         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
12718         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
12719         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
12720         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
12721         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
12722         compiler output for sysdeps/generic/initfini.c.
12723         * sysdeps/i386/elf/Makefile: Remove file.
12724         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
12725
12726 2012-02-07  Marek Polacek  <polacek@redhat.com>
12727
12728         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
12729         * sysdeps/gnu/_G_config.h: Likewise.
12730         * sysdeps/mach/hurd/_G_config.h: Likewise.
12731
12732 2012-02-07  Marek Polacek  <polacek@redhat.com>
12733
12734         * math/Makefile (tests): Add tst-CMPLX2.
12735         * math/tst-CMPLX2.c: New file.
12736
12737 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
12738
12739         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
12740
12741         * math/libm-test.inc (jn_test): Add missing L suffix.
12742
12743 2012-02-06  Marek Polacek  <polacek@redhat.com>
12744
12745         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
12746         * sysdeps/i386/fpu/e_powf.S: Likewise.
12747         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
12748         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
12749         * sysdeps/i386/fpu/e_acosh.S: Likewise.
12750         * sysdeps/i386/fpu/e_pow.S: Likewise.
12751         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
12752         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
12753         * sysdeps/i386/fpu/s_expm1.S: Likewise.
12754         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
12755         * sysdeps/i386/fpu/e_log2.S: Likewise.
12756         * sysdeps/i386/fpu/e_log2l.S: Likewise.
12757         * sysdeps/i386/fpu/e_scalb.S: Likewise.
12758         * sysdeps/i386/fpu/e_powl.S: Likewise.
12759         * sysdeps/i386/fpu/s_log1p.S: Likewise.
12760         * sysdeps/i386/fpu/e_log10f.S: Likewise.
12761         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
12762         * sysdeps/i386/fpu/e_logl.S: Likewise.
12763         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
12764         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
12765         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
12766         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
12767         * sysdeps/i386/fpu/e_log2f.S: Likewise.
12768         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
12769         * sysdeps/i386/fpu/e_log.S: Likewise.
12770         * sysdeps/i386/fpu/s_cexp.S: Likewise.
12771         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
12772         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
12773         * sysdeps/i386/fpu/e_logf.S: Likewise.
12774         * sysdeps/i386/fpu/e_log10l.S: Likewise.
12775         * sysdeps/i386/fpu/e_atanh.S: Likewise.
12776         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
12777         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
12778         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
12779         * sysdeps/i386/fpu/e_log10.S: Likewise.
12780         * sysdeps/i386/fpu/s_frexp.S: Likewise.
12781         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
12782         * sysdeps/i386/fpu/s_asinh.S: Likewise.
12783         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
12784         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
12785         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
12786         * sysdeps/i386/asm-syntax.h: Likewise.
12787         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
12788         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
12789         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
12790         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
12791         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
12792         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
12793         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
12794         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
12795         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
12796         * sysdeps/powerpc/sysdep.h: Likewise.
12797         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
12798         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
12799
12800 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
12801
12802         [BZ #411]
12803         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
12804
12805 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
12806
12807         * sysdeps/i386/sysdep.h: Include <features.h>.
12808         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
12809         version.
12810
12811 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
12812
12813         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
12814         Define.
12815         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
12816         LOAD_PIC_REG_STR.
12817
12818 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
12819
12820         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
12821         (SETUP_PIC_REG): Use GET_PC_THUNK.
12822         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
12823         macro.
12824
12825 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
12826
12827         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
12828         for non-PIC compilation.
12829         (SETUP_PIC_REG): Add .p2align directive.
12830         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
12831         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
12832         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
12833         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
12834         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
12835         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
12836         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
12837         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
12838         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
12839         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
12840         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
12841         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
12842         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
12843         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
12844         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
12845         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
12846         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
12847         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
12848         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
12849         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
12850         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
12851         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
12852         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
12853         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
12854         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
12855         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
12856         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
12857         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
12858         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
12859         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
12860         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
12861         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
12862         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
12863         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
12864         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
12865         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
12866         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
12867         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
12868         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
12869         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
12870         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
12871
12872 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
12873
12874         * math/tst-CMPLX.c: Include <stdio.h>.
12875
12876 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
12877
12878         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
12879         float.
12880         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
12881         * sysdeps/sparc/bits/mathdef.h: Likewise.
12882
12883 2012-01-31  Marek Polacek  <polacek@redhat.com>
12884
12885         * libio/libio.h: Don't define _PARAMS.
12886         * locale/programs/config.h: Don't define PARAMS.
12887         * stdlib/strtol_l.c: Likewise.
12888         (__strtol_l): Remove PARAMS from the prototype.
12889
12890 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
12891
12892         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
12893         names.  Just use the correct names.  Remove unnecessary wrapper
12894         functions.
12895         * malloc/arena.c: Likewise.
12896         * malloc/hooks.c: Likewise.
12897
12898         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
12899         ARENA_TEST says not to.  Simplify test for creation of a new arena.
12900         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
12901
12902 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
12903
12904         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
12905         into tail calls.
12906         (update_get_addr): New function.
12907         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
12908         GET_ADDR_MODULE parameter.
12909
12910 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
12911
12912         * crypt/cert.c: Remove __STDC__ conditionals.
12913         * crypt/crypt-entry.c: Likewise.
12914         * crypt/crypt_util.c: Likewise.
12915         * libio/filedoalloc.c: Likewise.
12916         * libio/fileops.c: Likewise.
12917         * libio/genops.c: Likewise.
12918         * libio/iofclose.c: Likewise.
12919         * libio/iofdopen.c: Likewise.
12920         * libio/iofopen.c: Likewise.
12921         * libio/iofopen64.c: Likewise.
12922         * libio/iogetdelim.c: Likewise.
12923         * libio/iopopen.c: Likewise.
12924         * libio/obprintf.c: Likewise.
12925         * libio/oldfileops.c: Likewise.
12926         * libio/oldiofclose.c: Likewise.
12927         * libio/oldiofdopen.c: Likewise.
12928         * libio/oldiofopen.c: Likewise.
12929         * libio/oldiopopen.c: Likewise.
12930         * libio/wfiledoalloc.c: Likewise.
12931         * libio/wgenops.c: Likewise.
12932         * locale/programs/xmalloc.c: Likewise.
12933         * misc/syslog.c: Likewise.
12934         * stdio-common/xbug.c: Likewise.
12935         * string/memchr.c: Likewise.
12936         * string/memcmp.c: Likewise.
12937         * string/memrchr.c: Likewise.
12938         * string/rawmemchr.c: Likewise.
12939         * sysdeps/posix/getcwd.c: Likewise.
12940         * time/strftime_l.c: Likewise.
12941
12942 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
12943
12944         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
12945         * config.make.in (config-cflags-sse2avx): Define.
12946         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
12947         Fix typo.
12948
12949 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
12950
12951         * scripts/config.guess: Update from upstream config git repository.
12952         * scripts/config.sub: Likewise.
12953
12954 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
12955
12956         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
12957         (EM_NUM): Update.
12958         (R_TILEPRO_*, R_TILEGX_*): New macros.
12959
12960         * scripts/firstversions.awk: Fix bug in version range handling.
12961
12962         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
12963
12964         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
12965
12966         * include/sys/epoll.h: New file.
12967         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
12968         libc_hidden_def.
12969
12970 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
12971
12972         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
12973         Avoid unnecessary __WORDSIZE == 64 test.
12974         (fmaxf): Use VEX format if possible.
12975         (fmax): Likewise.
12976         (fminf): Likewise.
12977         (fmin): Likewise.
12978
12979         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
12980         * math/math_private.h: Remove libc_fegetround* and
12981         libc_fesetround*.
12982         * sysdeps/i386/configure.in: Check for -msse2avx.
12983         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
12984         also if SSE2AVX is defined.
12985         Remove libc_fegetround* and libc_fesetround*.
12986         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
12987         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
12988         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
12989         of HAS_YMM_USABLE.
12990         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
12991         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
12992         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
12993         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
12994         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
12995
12996         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
12997
12998 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12999
13000         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
13001         size is not set.
13002         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
13003
13004 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
13005
13006         [BZ #13618]
13007         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
13008         relocation.
13009         * Makeconfig (libm): Define.
13010         * elf/Makefile: Add rules to build and run tst-relsort1.
13011         * elf/tst-relsort1.c: New file.
13012         * elf/tst-relsort1mod1.c: New file.
13013         * elf/tst-relsort1mod2.c: New file.
13014
13015 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
13016
13017         * math/s_ldexp.c: Remove __STDC__ conditionals.
13018         * math/s_ldexpf.c: Likewise.
13019         * math/s_ldexpl.c: Likewise.
13020         * math/s_nextafter.c: Likewise.
13021         * math/s_nexttowardf.c: Likewise.
13022         * math/s_significand.c: Likewise.
13023         * math/s_significandf.c: Likewise.
13024         * math/s_significandl.c: Likewise.
13025         * math/w_jnl.c: Likewise.
13026         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
13027         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
13028         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
13029         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
13030         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
13031         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
13032         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
13033         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
13034         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
13035         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
13036         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
13037         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
13038         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
13039         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
13040         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
13041         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
13042         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
13043         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
13044         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
13045         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
13046         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
13047         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
13048         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
13049         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
13050         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
13051         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
13052         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
13053         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
13054         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
13055         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
13056         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
13057         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
13058         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
13059         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
13060         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
13061         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
13062         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
13063         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
13064         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
13065         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
13066         * sysdeps/ieee754/k_standard.c: Likewise.
13067         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
13068         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
13069         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
13070         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
13071         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
13072         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
13073         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
13074         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
13075         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
13076         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
13077         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
13078         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
13079         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
13080         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
13081         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
13082         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
13083         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
13084         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
13085         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
13086         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
13087         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
13088         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
13089         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
13090         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
13091         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
13092         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
13093         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
13094         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
13095         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
13096         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
13097         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
13098         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
13099         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
13100         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
13101         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
13102         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
13103         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
13104         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
13105         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
13106         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
13107         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
13108         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
13109         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
13110         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
13111         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
13112         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
13113         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
13114         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
13115         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
13116         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
13117         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
13118         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
13119         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
13120         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
13121         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
13122         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
13123         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
13124         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
13125         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
13126         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
13127         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
13128         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
13129         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
13130         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
13131         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
13132         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
13133         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
13134         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
13135         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
13136         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
13137         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
13138         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
13139         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
13140         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
13141         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
13142         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
13143         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
13144         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
13145         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
13146         * sysdeps/ieee754/s_matherr.c: Likewise.
13147         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
13148         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
13149         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
13150         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
13151
13152 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
13153
13154         * crypt/md5.h: Remove __STDC__ conditionals.
13155         * libio/libioP.h: Likewise.
13156         * locale/programs/config.h: Likewise.
13157         * sysdeps/generic/sysdep.h: Likewise.
13158         * sysdeps/i386/asm-syntax.h: Likewise.
13159         * sysdeps/s390/asm-syntax.h: Likewise.
13160         * sysdeps/unix/sysdep.h: Likewise.
13161         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
13162         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
13163
13164 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
13165
13166         * libio/libio.h: Remove __STDC__ conditionals.
13167         * malloc/obstack.h: Likewise.
13168         * math/complex.h: Likewise.
13169         * math/math.h: Likewise.
13170         * sysdeps/generic/_G_config.h: Likewise.
13171         * sysdeps/gnu/_G_config.h: Likewise.
13172         * sysdeps/mach/hurd/_G_config.h: Likewise.
13173         * sysdeps/powerpc/bits/mathdef.h: Likewise.
13174         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
13175         * sysdeps/sparc/bits/mathdef.h: Likewise.
13176
13177 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
13178
13179         [BZ #13583]
13180         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
13181         Clean up HAS_* macros.
13182         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
13183         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
13184         possible.
13185         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
13186         HAS_AVX.
13187         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
13188         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
13189         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
13190         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
13191         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
13192
13193 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
13194
13195         * elf/tst-unique3.cc (gets): Remove declaration.
13196         * elf/tst-unique3lib.cc (gets): Likewise.
13197         * elf/tst-unique3lib2.cc (gets): Likewise.
13198         * elf/tst-unique4.cc (gets): Likewise.
13199
13200 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
13201
13202         * include/stdio.h: Add C++ protection.  Add gets declarations and
13203         definitions.
13204         * debug/tst-chk1.c: Don't declare gets here.
13205         * stdio-common/tst-gets.c: Likewise.
13206
13207 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
13208
13209         * posix/glob: Remove directory.
13210
13211 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
13212
13213         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
13214
13215 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
13216
13217         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
13218         of the non-standard EPFNOSUPPORT.
13219
13220 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13221
13222         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
13223         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
13224         ANYWHERE set to 1 only on KERN_NO_SPACE error.
13225
13226 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
13227
13228         * wcsmbs/uchar.h: Test __STDC_VERSION__.
13229
13230 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
13231
13232         * nscd/aicache.c (addhstaiX): Do not cache negative results of
13233         transient errors.
13234         * nscd/grpcache.c (cache_addgr): Likewise.
13235         * nscd/hstcache.c (cache_addhst): Likewise.
13236         * nscd/initgrcache.c (addinitgroupsX): Likewise.
13237         * nscd/pwdcache.c (cache_addpw): Likewise.
13238         * nscd/servicescache.c (cache_addserv): Likewise.
13239
13240 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
13241
13242         * malloc/malloc.c: Various cleanups.
13243         * malloc/hooks.c: Likewise.
13244
13245         * stdlib/Makefile (tests): Add bug-fmtmsg1.
13246         * stdlib/bug-fmtmsg1.c: New file.
13247
13248         * stdlib/fmtmsg.c (init): Add missing unlock.
13249         Patch by Peng Haitao <penght@cn.fujitsu.com>.
13250
13251 2012-01-12  Marek Polacek  <polacek@redhat.com>
13252
13253         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
13254         and _GNU_SOURCE.
13255
13256 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
13257
13258         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
13259         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
13260         macro to ensure uniqueness of label name.
13261         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
13262         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
13263
13264 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
13265
13266         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
13267
13268         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
13269         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
13270         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
13271         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
13272
13273 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
13274
13275         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
13276
13277         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
13278         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
13279         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
13280
13281         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
13282
13283         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
13284         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
13285         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
13286         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
13287
13288         * math/bits/math-finite.h: Add ldexp support.
13289
13290 2012-01-10  Marek Polacek  <polacek@redhat.com>
13291
13292         * locale/programs/localedef.h (show_archive_content): Add noreturn
13293         attribute.
13294
13295 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
13296
13297         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
13298
13299 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
13300
13301         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
13302
13303         * io/Makefile (headers): Add bits/poll2.h.
13304
13305 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
13306
13307         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
13308         typo #include statement.
13309
13310 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
13311
13312         * include/sys/cdefs.h: Define __attribute_alloc_size.
13313         * catgets/gencat.c: Add alloc_size attribute and apply consistently
13314         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
13315         * elf/pldd.c: Likewise.
13316         * iconv/iconv_charmap.c: Likewise.
13317         * iconv/iconvconfig.c: Likewise.
13318         * iconv/strtab.c: Likewise.
13319         * locale/programs/locale.c: Likewise.
13320         * locale/programs/localedef.h: Likewise.
13321         * locale/programs/simple-hash.c: Likewise.
13322         * nscd/nscd.h: Likewise.
13323         * nss/makedb.c: Likewise.
13324         * sysdeps/generic/ldconfig.h: Likewise.
13325         * locale/programs/localedef.c: Remove xmalloc prototype.
13326         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
13327
13328 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
13329
13330         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
13331         appropriate.
13332
13333 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
13334
13335         * math/Makefile (tests): Add tst-CMPLX.
13336         * math/tst-CMPLX.c: New file.
13337
13338         * math/complex.h (CMPLXL): Fix typo.
13339
13340         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
13341         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
13342         GLIBC_2.16.
13343         * debug/tst-chk1.c: Add poll and ppoll tests.
13344         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
13345         * include/sys/poll.h: Add hidden proto for ppoll.
13346         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
13347         * sysdeps/mach/hurd/ppoll.c: Likewise.
13348         * io/ppoll.c: Likewise.
13349         * debug/poll_chk.c: New file.
13350         * debug/ppoll_chk.c: New file.
13351         * include/bits/poll2.h: New file.
13352         * io/bits/poll2.h: New file.
13353
13354         [BZ #1350]
13355         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
13356
13357         * configure.in: static is always set to yes.  Remove.
13358         * config.make.in: Don't set build-static.
13359         * Makeconfig: Remove use of build-static.
13360         * dlfcn/Makefile: Likewise.
13361         * elf/Makefile: Likewise.
13362         * math/Makefile: Likewise.
13363         * misc/Makefile: Likewise.
13364         * nptl/Makefile: Likewise.
13365         * sysdeps/mach/hurd/Makefile: Likewise.
13366
13367         * configure.in: PWD_P is not used anymore.
13368         * config.make.in: Remove PWD_P entry.
13369
13370         * configure.in: Remove last remnants of RANLIB.
13371         No need to check for signed size_t anymore.
13372         Don't set libc_commonpagesize and libc_relro_required here for Alpha
13373         and IA-64.
13374         Remove __builtin_expect test because we require at least gcc 3.4.
13375         * aclocal.m4: Likewise.
13376
13377         * wcsmbs/mbrtoc16.c: Implement using towc function.
13378         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
13379         * wcsmbs/wcsmbsload.c: Likewise.
13380         * iconv/gconv_simple.c: Likewise.
13381         * iconv/gconv_int.h: Likewise.
13382         * iconv/gconv_builtin.h: Likewise.
13383         * iconv/iconv_prog.c: Remove CHAR16 handling.
13384
13385         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
13386
13387         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
13388
13389         * configure.in: Remove --with-elf and --enable-bounded options.
13390         Dont set base_machine for ia64.  More non-ELF conditions removed.
13391         Remove testing and setting of leading underscore information.
13392         * config.make.in (build-bounded): Set to no.
13393         * config.h.in: Remove NO_UNDERSCORES entry.
13394         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
13395         them.
13396         * csu/start.c: Remove !NO_UNDERSCORE code.
13397         * locale/localeinfo.h: Likewise.
13398         * sysdeps/generic/machine-gmon.h: Likewise.
13399         * sysdeps/generic/sysdep.h: Likewise.
13400         * sysdeps/i386/sysdep.h: Likewise.
13401         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
13402         * sysdeps/mach/sysdep.h: Likewise.
13403         * sysdeps/s390/s390-32/sysdep.h: Likewise.
13404         * sysdeps/s390/s390-64/sysdep.h: Likewise.
13405         * sysdeps/sh/sysdep.h: Likewise.
13406         * sysdeps/sparc/sparc32/alloca.S: Likewise.
13407         * sysdeps/unix/i386/sysdep.S: Likewise.
13408         * sysdeps/unix/sparc/start.c: Likewise.
13409         * sysdeps/unix/sparc/sysdep.S: Likewise.
13410         * sysdeps/unix/sparc/sysdep.h: Likewise.
13411         * sysdeps/unix/start.c: Likewise.
13412         * sysdeps/unix/x86_64/sysdep.S: Likewise.
13413         * sysdeps/x86_64/sysdep.h: Likewise.
13414
13415 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
13416
13417         [BZ #13553]
13418         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
13419         for non-gcc.
13420         * argp/argp-fmtstream.h: Use const instead __const.
13421         * argp/argp.h: Likewise.
13422         * assert/assert.h: Likewise.
13423         * bits/fenv.h: Likewise.
13424         * bits/sched.h: Likewise.
13425         * bits/sigset.h: Likewise.
13426         * bits/sigthread.h: Likewise.
13427         * catgets/nl_types.h: Likewise.
13428         * conform/data/pthread.h-data: Likewise.
13429         * crypt/crypt-private.h: Likewise.
13430         * crypt/crypt.h: Likewise.
13431         * crypt/crypt_util.c: Likewise.
13432         * ctype/ctype.h: Likewise.
13433         * debug/execinfo.h: Likewise.
13434         * debug/mbsnrtowcs_chk.c: Likewise.
13435         * debug/mbsrtowcs_chk.c: Likewise.
13436         * debug/wcsnrtombs_chk.c: Likewise.
13437         * debug/wcsrtombs_chk.c: Likewise.
13438         * debug/wcstombs_chk.c: Likewise.
13439         * dirent/dirent.h: Likewise.
13440         * dlfcn/dlfcn.h: Likewise.
13441         * elf/neededtest4.c: Likewise.
13442         * grp/grp.h: Likewise.
13443         * gshadow/gshadow.h: Likewise.
13444         * iconv/gconv.h: Likewise.
13445         * iconv/gconv_int.h: Likewise.
13446         * iconv/gconv_simple.c: Likewise.
13447         * iconv/iconv.h: Likewise.
13448         * iconv/loop.c: Likewise.
13449         * iconv/skeleton.c: Likewise.
13450         * include/aio.h: Likewise.
13451         * include/aliases.h: Likewise.
13452         * include/argz.h: Likewise.
13453         * include/arpa/inet.h: Likewise.
13454         * include/assert.h: Likewise.
13455         * include/dirent.h: Likewise.
13456         * include/dlfcn.h: Likewise.
13457         * include/execinfo.h: Likewise.
13458         * include/fcntl.h: Likewise.
13459         * include/fenv.h: Likewise.
13460         * include/glob.h: Likewise.
13461         * include/grp.h: Likewise.
13462         * include/libintl.h: Likewise.
13463         * include/mntent.h: Likewise.
13464         * include/netdb.h: Likewise.
13465         * include/pwd.h: Likewise.
13466         * include/rpc/netdb.h: Likewise.
13467         * include/sched.h: Likewise.
13468         * include/search.h: Likewise.
13469         * include/shadow.h: Likewise.
13470         * include/signal.h: Likewise.
13471         * include/stdio.h: Likewise.
13472         * include/stdlib.h: Likewise.
13473         * include/string.h: Likewise.
13474         * include/sys/socket.h: Likewise.
13475         * include/sys/stat.h: Likewise.
13476         * include/sys/statfs.h: Likewise.
13477         * include/sys/statvfs.h: Likewise.
13478         * include/sys/syslog.h: Likewise.
13479         * include/sys/time.h: Likewise.
13480         * include/sys/uio.h: Likewise.
13481         * include/time.h: Likewise.
13482         * include/unistd.h: Likewise.
13483         * include/utmp.h: Likewise.
13484         * include/wchar.h: Likewise.
13485         * include/wctype.h: Likewise.
13486         * inet/aliases.h: Likewise.
13487         * inet/arpa/inet.h: Likewise.
13488         * inet/netinet/ether.h: Likewise.
13489         * inet/netinet/in.h: Likewise.
13490         * intl/libintl.h: Likewise.
13491         * io/bits/fcntl2.h: Likewise.
13492         * io/fcntl.h: Likewise.
13493         * io/ftw.h: Likewise.
13494         * io/sys/poll.h: Likewise.
13495         * io/sys/stat.h: Likewise.
13496         * io/sys/statfs.h: Likewise.
13497         * io/sys/statvfs.h: Likewise.
13498         * io/utime.h: Likewise.
13499         * libio/bits/stdio.h: Likewise.
13500         * libio/bits/stdio2.h: Likewise.
13501         * libio/libio.h: Likewise.
13502         * libio/libioP.h: Likewise.
13503         * libio/stdio.h: Likewise.
13504         * locale/lc-ctype.c: Likewise.
13505         * locale/locale.h: Likewise.
13506         * login/utmp.h: Likewise.
13507         * malloc/arena.c: Likewise.
13508         * malloc/malloc.c: Likewise.
13509         * malloc/malloc.h: Likewise.
13510         * malloc/mcheck.c: Likewise.
13511         * malloc/mtrace.c: Likewise.
13512         * math/bits/mathcalls.h: Likewise.
13513         * math/fenv.h: Likewise.
13514         * math/math_private.h: Likewise.
13515         * misc/bits/error.h: Likewise.
13516         * misc/bits/syslog.h: Likewise.
13517         * misc/err.h: Likewise.
13518         * misc/error.h: Likewise.
13519         * misc/fstab.h: Likewise.
13520         * misc/mntent.h: Likewise.
13521         * misc/regexp.h: Likewise.
13522         * misc/search.h: Likewise.
13523         * misc/sgtty.h: Likewise.
13524         * misc/sys/mman.h: Likewise.
13525         * misc/sys/syslog.h: Likewise.
13526         * misc/sys/uio.h: Likewise.
13527         * misc/sys/xattr.h: Likewise.
13528         * misc/ttyent.h: Likewise.
13529         * nis/rpcsvc/ypclnt.h: Likewise.
13530         * nss/nss.h: Likewise.
13531         * posix/bits/unistd.h: Likewise.
13532         * posix/fnmatch.h: Likewise.
13533         * posix/glob.h: Likewise.
13534         * posix/sched.h: Likewise.
13535         * posix/spawn.h: Likewise.
13536         * posix/sys/wait.h: Likewise.
13537         * posix/unistd.h: Likewise.
13538         * posix/wordexp.h: Likewise.
13539         * pwd/pwd.h: Likewise.
13540         * resolv/netdb.h: Likewise.
13541         * resource/sys/resource.h: Likewise.
13542         * rt/aio.h: Likewise.
13543         * rt/bits/mqueue2.h: Likewise.
13544         * rt/mqueue.h: Likewise.
13545         * shadow/shadow.h: Likewise.
13546         * signal/signal.h: Likewise.
13547         * socket/send.c: Likewise.
13548         * socket/sendto.c: Likewise.
13549         * socket/sys/socket.h: Likewise.
13550         * stdio-common/printf.h: Likewise.
13551         * stdlib/bits/stdlib.h: Likewise.
13552         * stdlib/fmtmsg.h: Likewise.
13553         * stdlib/monetary.h: Likewise.
13554         * stdlib/stdlib.h: Likewise.
13555         * stdlib/ucontext.h: Likewise.
13556         * streams/stropts.h: Likewise.
13557         * string/argz.h: Likewise.
13558         * string/bits/string2.h: Likewise.
13559         * string/string.h: Likewise.
13560         * string/strings.h: Likewise.
13561         * sunrpc/rpc/auth.h: Likewise.
13562         * sunrpc/rpc/auth_des.h: Likewise.
13563         * sunrpc/rpc/clnt.h: Likewise.
13564         * sunrpc/rpc/netdb.h: Likewise.
13565         * sunrpc/rpc/pmap_clnt.h: Likewise.
13566         * sunrpc/rpc/xdr.h: Likewise.
13567         * sysdeps/generic/inttypes.h: Likewise.
13568         * sysdeps/generic/net/if.h: Likewise.
13569         * sysdeps/generic/sys/swap.h: Likewise.
13570         * sysdeps/gnu/net/if.h: Likewise.
13571         * sysdeps/gnu/utmpx.h: Likewise.
13572         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
13573         * sysdeps/i386/i486/bits/string.h: Likewise.
13574         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
13575         * sysdeps/s390/bits/string.h: Likewise.
13576         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
13577         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
13578         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
13579         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
13580         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
13581         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
13582         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
13583         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
13584         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
13585         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
13586         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
13587         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
13588         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
13589         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
13590         * sysdeps/unix/sysv/linux/readv.c: Likewise.
13591         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
13592         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
13593         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
13594         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
13595         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
13596         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
13597         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
13598         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
13599         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
13600         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
13601         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
13602         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
13603         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
13604         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
13605         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
13606         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
13607         * sysvipc/sys/ipc.h: Likewise.
13608         * sysvipc/sys/msg.h: Likewise.
13609         * sysvipc/sys/sem.h: Likewise.
13610         * sysvipc/sys/shm.h: Likewise.
13611         * termios/termios.h: Likewise.
13612         * time/sys/time.h: Likewise.
13613         * time/time.h: Likewise.
13614         * wcsmbs/bits/wchar2.h: Likewise.
13615         * wcsmbs/uchar.h: Likewise.
13616         * wcsmbs/wchar.h: Likewise.
13617         * wctype/wctype.h: Likewise.
13618
13619         [BZ #13551]
13620         * Makeconfig: Remove all but ELF support including AIX support.
13621         * Makerules: Likewise.
13622         * config.h.in: Likewise.
13623         * config.make.in: Likewise.
13624         * configure: Likewise.
13625         * configure.in: Likewise.
13626         * csu/Makefile: Likewise.
13627         * csu/version.c: Likewise.
13628         * debug/Makefile: Likewise.
13629         * dlfcn/Makefile: Likewise.
13630         * elf/Makefile: Likewise.
13631         * extra-lib.mk: Likewise.
13632         * iconv/Makefile: Likewise.
13633         * include/libc-symbols.h: Likewise.
13634         * include/shlib-compat.h: Likewise.
13635         * resolv/Makefile: Likewise.
13636         * resolv/res_libc.c: Likewise.
13637         * rt/Makefile: Likewise.
13638         * sysdeps/i386/asm-syntax.h: Likewise.
13639         * sysdeps/i386/sysdep.h: Likewise.
13640         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
13641         * sysdeps/mach/sysdep.h: Likewise.
13642         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
13643         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
13644         * sysdeps/s390/asm-syntax.h: Likewise.
13645         * sysdeps/s390/s390-32/sysdep.h: Likewise.
13646         * sysdeps/s390/s390-64/sysdep.h: Likewise.
13647         * sysdeps/sh/sysdep.h: Likewise.
13648         * sysdeps/unix/sparc/sysdep.h: Likewise.
13649         * sysdeps/wordsize-32/divdi3.c: Likewise.
13650         * sysdeps/x86_64/sysdep.h: Likewise.
13651
13652         * argp/Versions: Remove _argp_unlock_xxx.
13653
13654         [BZ #13559]
13655         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
13656         * abilist/libBrokenLocale.abilist: Likewise.
13657         * abilist/libanl.abilist: Likewise.
13658         * abilist/libc.abilist: Likewise.
13659         * abilist/libcrypt.abilist: Likewise.
13660         * abilist/libdl.abilist: Likewise.
13661         * abilist/libm.abilist: Likewise.
13662         * abilist/libnsl.abilist: Likewise.
13663         * abilist/libpthread.abilist: Likewise.
13664         * abilist/libresolv.abilist: Likewise.
13665         * abilist/librt.abilist: Likewise.
13666         * abilist/libthread_db.abilist: Likewise.
13667         * abilist/libutil.abilist: Likewise.
13668         * abilist/libnss_db.abilist: New file.
13669
13670         * scripts/abilist.awk: Add support for indirect functions.
13671
13672         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
13673
13674         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
13675
13676         * shlib-versions: Remove entries for ports architectures.
13677
13678         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
13679         files in ports.
13680         * elf/stackguard-macros.h: Remove support for IA-64.
13681         * elf/tst-auditmod1.c: Likewise.
13682         * sysdeps/generic/ldsodefs.h: Likewise.
13683
13684         * sysdeps/unix/sysv/linux/configure.in: Ports should define
13685         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
13686         configure files.
13687
13688         [BZ #13552]
13689         * configure.in: Remove --enable-omitfp support.
13690         * FAQ.in: Adjust.
13691         * config.make.in: Likewise.
13692         * Makeconfig: Likewise.
13693         * manual/install.texi: Likewise.
13694
13695         In case anyone cares, the IA-64 architecture could move to ports.
13696         * sysdeps/ia64/*: Removed.
13697         * sysdeps/unix/sysv/linux/ia64/*: Removed.
13698         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
13699
13700         [BZ #13555]
13701         * configure.in: Remove entries for unsupported architectures.
13702
13703         [BZ #13533]
13704         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
13705         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
13706         routines.
13707         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
13708         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
13709         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
13710         fall back to using wcrtomb.
13711         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
13712         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
13713         renaming.
13714         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
13715         * wcsmbs/tst-c16c32-1.c: New file.
13716
13717         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
13718         local variable.
13719
13720         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
13721
13722         * elf/tst-unique3.cc: Add explicit declaration of gets.
13723         * elf/tst-unique3lib.cc: Likewise.
13724         * elf/tst-unique3lib2.cc: Likewise.
13725         * elf/tst-unique4.cc: Likewise.
13726
13727         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
13728
13729 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
13730
13731         [BZ #13566]
13732         * assert/assert.h (static_assert): Don't define for C++.
13733         * libio/stdio.h (gets): Do declare for C++ <= C++11.
13734         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
13735
13736 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
13737
13738         * iconv/loop.c (single loop): Fix assertion in storing of
13739         remaining bytes.
13740
13741         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
13742
13743 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
13744
13745         * posix/getconf.c: Update copyright year.
13746         * nss/getent.c: Likewise.
13747         * nss/makedb.c: Likewise.
13748         * iconv/iconvconfig.c: Likewise.
13749         * iconv/iconv_prog.c: Likewise.
13750         * elf/ldconfig.c: Likewise.
13751         * elf/pldd.c: Likewise.
13752         * elf/sotruss.ksh: Likewise.
13753         * catgets/gencat.c: Likewise.
13754         * csu/version.c: Likewise.
13755         * elf/ldd.bash.in: Likewise.
13756         * elf/sprof.c (print_version): Likewise.
13757         * locale/programs/locale.c: Likewise.
13758         * locale/programs/localedef.c: Likewise.
13759         * login/programs/pt_chown.c: Likewise.
13760         * nscd/nscd.c (print_version): Likewise.
13761         * debug/xtrace.sh: Likewise.
13762         * malloc/memusage.sh: Likewise.
13763         * malloc/mtrace.pl: Likewise.
13764         * debug/catchsegv.sh: Likewise.
13765
13766 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
13767
13768         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
13769         pure attribute.
13770
13771 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
13772
13773         [BZ #13533]
13774         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
13775         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
13776         transformations.
13777         * iconv/gconv_int.h: Likewise.
13778         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
13779         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
13780         from libc for GLIBC_2.16.
13781         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
13782         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
13783         * wcsmbs/uchar.h: Really define mbstate_t.
13784         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
13785         * wcsmbs/c16rtomb.c: New file.
13786         * wcsmbs/mbrtoc16.c: New file.
13787         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
13788         for C/POSIX locale.
13789         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
13790         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
13791
13792         * wcsmbs/wchar.h: Add missing __restrict.
13793
13794 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
13795
13796         [BZ #13532]
13797         * time/Makefile (routines): Add timespec_get.
13798         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
13799         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
13800         timespec for ISO C11.
13801         * time/timespec_get.c: New file.
13802         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
13803         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
13804
13805         [BZ #13531]
13806         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
13807         * stdlib/stdlib.h: Declare aligned_alloc.
13808         * Versions.def: Add GLIBC_2.16 for libc.
13809         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
13810
13811         [BZ 13527]
13812         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
13813         ISO C11.
13814
13815         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
13816         code.
13817
13818         [BZ #13528]
13819         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
13820
13821         [BZ #13529]
13822         * assert/assert.h (static_assert): Define.
13823
13824         * version.h: Update for 2.16 development version.
13825
13826         [BZ #13526]
13827         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
13828         _ISOC11_SOURCE.
13829
13830         * version.h (RELEASE): Bump for 2.15 release.
13831         * include/features.h (__GLIBC_MINOR__): Bump to 15.
13832
13833         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
13834         Patch by Marek Polacek <mpolacek@redhat.com>.
13835
13836         * bits/byteswap.h: Protect long long constants with __extension__.
13837         * sysdeps/i386/bits/byteswap.h: Likewise.
13838         * sysdeps/ia64/bits/byteswap.h: Likewise.
13839         * sysdeps/s390/bits/byteswap.h: Likewise.
13840         * sysdeps/x86_64/bits/byteswap.h: Likewise.
13841
13842 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13843
13844         [BZ #13540]
13845         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
13846         destination buffer.
13847         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
13848
13849 2011-12-23  Marek Polacek  <polacek@redhat.com>
13850
13851         * elf/dl-addr.c (determine_info): Add inline keyword.
13852         * elf/tst-auditmod4b.c (check_avx): Likewise.
13853         * elf/tst-auditmod6b.c (check_avx): Likewise.
13854         * elf/tst-auditmod6c.c (check_avx): Likewise.
13855         * elf/tst-auditmod7b.c (check_avx): Likewise.
13856
13857 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
13858
13859         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
13860         !__SSE_MATH__.
13861
13862 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13863
13864         [BZ #13540]
13865         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
13866         processing for last bytes.
13867
13868 2011-08-06  Bruno Haible  <bruno@clisp.org>
13869
13870         [BZ #13061]
13871         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
13872         U+0385, not to U+1FEE.
13873
13874         [BZ #13062]
13875         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
13876         entry for U+00A5 U+0301.
13877
13878 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
13879
13880         [BZ #13166]
13881         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
13882         buffer for the output is too small.
13883
13884         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
13885         optimization.
13886
13887         [BZ #13185]
13888         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
13889         SSE flags if possible.
13890
13891 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13892
13893         [BZ #13540]
13894         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
13895         processing for last bytes.
13896
13897 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
13898
13899         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
13900         (syscall-list-default-options, syscall-list-default-condition)
13901         (syscall-list-includes): Define.
13902         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
13903         list of ABIs and options and #if conditions for each ABI.  Do not
13904         handle common syscalls between ABIs specially.
13905         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
13906         Remove.
13907         (syscall-list-variants, syscall-list-32bit-options)
13908         (syscall-list-32bit-condition, syscall-list-64bit-options)
13909         (syscall-list-64bit-condition): Define.
13910         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
13911         (syscall-list-variants, syscall-list-32bit-options)
13912         (syscall-list-32bit-condition, syscall-list-64bit-options)
13913         (syscall-list-64bit-condition): Define.
13914         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
13915         Remove.
13916         (syscall-list-variants, syscall-list-32bit-options)
13917         (syscall-list-32bit-condition, syscall-list-64bit-options)
13918         (syscall-list-64bit-condition): Define.
13919         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
13920         Remove.
13921         (syscall-list-variants, syscall-list-32bit-options)
13922         (syscall-list-32bit-condition, syscall-list-64bit-options)
13923         (syscall-list-64bit-condition): Define.
13924
13925 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
13926
13927         * locale/iso-639.def: Add brx entry.
13928
13929         [BZ #13328]
13930         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
13931         Proposed by Mariusz_Cukr <marcukr@op.pl>.
13932
13933         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
13934         __feraiseexcept_renamed.
13935
13936 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
13937
13938         [BZ #13538]
13939         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
13940         EPOLLET with unsigned values.
13941         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
13942         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
13943
13944         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
13945         to large cancellation.
13946         * math/s_cacoshf.c: Likewise.
13947         * math/s_cacoshl.c: Likewise.
13948
13949 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
13950
13951         [BZ #13305]
13952         [BZ #12786]
13953         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
13954         * math/s_cacoshf.c: Likewise.
13955         * math/s_cacoshl.c: Likewise.
13956
13957 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
13958
13959         [BZ #13439]
13960         * iconv/gconv.h: Define __GCONV_SWAP.
13961         * iconvdata/unicode.c: The swap bit must be stored in __flags.
13962         * iconvdata/utf-16.c: Likewise.
13963         * iconvdata/utf-32.c: Likewise.
13964
13965 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
13966
13967         [BZ #13524]
13968         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
13969         numerator after shifting it by one limb.
13970
13971 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
13972
13973         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
13974         under [__USE_EXTERN_INLINES].
13975
13976 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
13977
13978         [BZ #13446]
13979         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
13980
13981 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13982
13983         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
13984         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
13985         optimized code.
13986         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
13987         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
13988         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
13989         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
13990         for strncasecmp/strncasecmp_l compilation.
13991         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
13992         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
13993
13994 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
13995
13996         [BZ #13484]
13997         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
13998         of __asm__.
13999
14000 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
14001
14002         [BZ #13506]
14003         * time/tzfile.c (__tzfile_read): Check values from file header.
14004
14005 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
14006
14007         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
14008         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
14009         * powerpc/powerpc32/dl-start.S: Likewise.
14010         * powerpc/powerpc32/elf/start.S: Likewise.
14011         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
14012         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
14013         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
14014         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
14015         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
14016         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
14017         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
14018         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
14019         * powerpc/powerpc32/fpu/s_round.S: Likewise.
14020         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
14021         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
14022         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
14023         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
14024         * powerpc/powerpc32/memset.S: Likewise.
14025         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
14026         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
14027         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
14028         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
14029         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
14030         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
14031         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
14032         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
14033         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
14034         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
14035         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
14036         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
14037         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
14038
14039 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14040
14041         * math/libm-test.inc: Added more nearbyint tests.
14042         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
14043         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
14044         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
14045         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
14046
14047 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
14048
14049         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
14050         FD_CLOEXEC.
14051
14052 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14053
14054         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
14055         Add wcscpy-ssse3 wcscpy-c.
14056         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
14057         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
14058         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
14059         * sysdeps/x86_64/wcschr.S: New file.
14060         * sysdeps/x86_64/wcsrchr.S: New file.
14061         * string/test-strcmp.c: Remove checking of wcscmp function for
14062         wrong alignments.
14063         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
14064         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
14065         wcsrchr-sse2 wcsrchr-c.
14066         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
14067         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
14068         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
14069         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
14070         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
14071         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
14072         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
14073         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
14074         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
14075         * wcsmbc/wcschr.c (WCSCHR): New macro.
14076
14077 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14078
14079         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
14080         * wcsmbs/test-wcsrchr.c: New file.
14081         * string/test-strrchr.c: Add wcsrchr support.
14082         (WIDE): New macro.
14083         * wcsmbs/test-wcscpy.c: New file.
14084         * string/test-strcpy.c: Add wcscpy support.
14085         (WIDE): New macro.
14086
14087 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
14088
14089         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
14090         the inner loop.
14091
14092 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
14093
14094         [BZ #13472]
14095         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
14096
14097 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
14098
14099         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
14100         Minor optimizations.
14101
14102         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
14103         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
14104         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
14105
14106 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
14107
14108         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
14109         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
14110         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
14111         for gcc to avoid warnings.
14112         * inet/Makefile (tests): Add tst-checks.
14113         * inet/tst-checks.c: New file.
14114
14115         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
14116         warning.
14117
14118         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
14119         __wmemcmp_sse2.
14120
14121         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
14122         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
14123
14124         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
14125
14126 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
14127
14128         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
14129         problem.
14130
14131         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
14132
14133 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
14134
14135         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
14136         conditional on GCC version.
14137         (__arch_compare_and_exchange_val_8_acq)
14138         (__arch_compare_and_exchange_val_16_acq)
14139         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
14140         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
14141         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
14142
14143 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
14144
14145         * sysdeps/sh/backtrace.c: New file.
14146
14147 2011-12-02  Andreas Schwab  <schwab@redhat.com>
14148
14149         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
14150         parenthesis.
14151
14152 2011-12-01  Andreas Schwab  <schwab@redhat.com>
14153
14154         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
14155         falling back to utime.
14156
14157 2011-11-30  Andreas Schwab  <schwab@redhat.com>
14158
14159         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
14160         expectations for float.
14161
14162 2011-11-29  Andreas Schwab  <schwab@redhat.com>
14163
14164         * locale/weight.h (findidx): Add parameter len.
14165         * locale/weightwc.h (findidx): Likewise.
14166         * posix/fnmatch_loop.c (FCT): Adjust caller.
14167         * posix/regcomp.c (build_equiv_class): Likewise.
14168         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
14169         * posix/regexec.c (check_node_accept_bytes): Likewise.
14170         * string/strcoll_l.c (STRCOLL): Likewise.
14171         * string/strxfrm_l.c (STRXFRM): Likewise.
14172
14173 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
14174
14175         * Makefile.in: Remove CVSOPT handling.
14176         * configure.in: Remove use of AC_REVISION.
14177         * iconvdata/Makefile (distribute): No need to filter out CVS.
14178         * scripts/list-sources.sh: Remove CVS, subversion and monotone
14179         handling.
14180
14181 2011-11-16  Andreas Schwab  <schwab@redhat.com>
14182
14183         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
14184         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
14185         [USE_AS_STRNCASECMP_L]: Likewise.
14186         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
14187         NO_TLS_DIRECT_SEG_REFS.
14188         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
14189         Fix argument offsets for non-PIC.
14190         [USE_AS_STRNCASECMP_L]: Likewise.
14191         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
14192         NO_TLS_DIRECT_SEG_REFS.
14193
14194 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
14195
14196         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
14197         O_CLOEXEC.
14198         * locale/loadlocale.c (_nl_load_locale): Likewise.
14199
14200 2011-11-15  Andreas Schwab  <schwab@redhat.com>
14201
14202         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
14203         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
14204         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
14205         (SYSCALL_GETTIME): Set errno on error.
14206
14207         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
14208         count references to noai6ai_cached.
14209
14210 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
14211
14212         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
14213
14214         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
14215         FD_CLOEXEC for /proc/self/maps.
14216
14217         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
14218         FD_CLOEXEC for /proc/meminfo.
14219
14220         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
14221         gai.conf.
14222
14223         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
14224         FD_CLOEXEC for given file.
14225
14226         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
14227
14228         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
14229         FD_CLOEXEC for /etc/hosts.
14230         (_gethtent): Likewise.
14231
14232         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
14233
14234         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
14235         cancellation and set FD_CLOEXEC for /etc/netgroup.
14236
14237         * nss/nss_files/files-key.c (search): Don't allow cancellation when
14238         reading /etc/publickey.
14239
14240         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
14241         allow cancellation when reading /etc/group.
14242
14243         * nss/nss_files/files-alias.c (internal_setent): Don't allow
14244         cancellation.
14245         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
14246
14247         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
14248         when using data file.
14249
14250         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
14251
14252         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
14253         (write_nis_obj): Use "c" and "e" in fopen.
14254
14255         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
14256
14257         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
14258
14259         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
14260
14261         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
14262
14263         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
14264         locale.alias.
14265
14266         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
14267
14268         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
14269
14270         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
14271
14272         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
14273         file parsing and set FD_CLOEXEC.
14274
14275 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
14276
14277         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
14278
14279 2011-11-14  Andreas Schwab  <schwab@redhat.com>
14280
14281         * malloc/arena.c (arena_get2): Don't call reused_arena when
14282         _int_new_arena failed.
14283
14284 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
14285
14286         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
14287         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
14288         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
14289         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
14290         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
14291         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
14292         to compile strcasecmp and strncasecmp.
14293         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
14294         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
14295
14296         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
14297
14298 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
14299
14300         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
14301         locale-defines.sym to gen-as-const-headers.
14302         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
14303         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
14304         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
14305         to compile strcasecmp and strncasecmp.
14306         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
14307         strcasecmp_l and strncasecmp_l.
14308         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
14309         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
14310         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
14311         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
14312         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
14313         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
14314         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
14315         * sysdeps/i386/i686/multiarch/strncase.S: New file.
14316         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
14317         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
14318         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
14319
14320 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
14321
14322         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
14323         result of SYSDEP_GETTIME_CPU to retval.
14324         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
14325         parameter list to macro.  Remove trailing semicolon.  Adjust users.
14326
14327         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
14328         variable.
14329
14330         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
14331         mantissa words.
14332         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
14333
14334         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
14335         from unused variable.
14336
14337         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
14338         DWARF definitions.
14339         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
14340         for assembling.
14341
14342         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
14343         over namespaces.
14344
14345         * sunrpc/rpc_prot.c (rejected): Fix case value.
14346
14347         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
14348         unsigned long long int to avoid warnings in shift.
14349
14350         * posix/regex_internal.c (re_string_reconstruct): Actually use result
14351         of use of trans.
14352         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
14353         variable tmp.
14354
14355         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
14356         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
14357         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
14358
14359         * nis/nis_table.c (nis_list): Use variable of correct type for
14360         result of __follow_path call.
14361
14362 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14363
14364         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
14365         of math functions ceil, trunc, floor, round, and sqrt, when
14366         avaliable on the platform.
14367         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
14368         name clash.
14369         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
14370         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
14371         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
14372
14373 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
14374
14375         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
14376         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
14377
14378 2011-11-11  Roland McGrath  <roland@hack.frob.com>
14379
14380         * include/unistd.h: Fix __readlink return type.
14381         Reported by Chris Metcalf <cmetcalf@tilera.com>.
14382
14383 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
14384
14385         * stdlib/ucontext.h: Undo last change for makecontext.
14386
14387 2011-11-11  Andreas Schwab  <schwab@redhat.com>
14388
14389         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
14390
14391         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
14392         * setjmp/setjmp.h: Mark functions as non-leaf.
14393         * setjmp/bits/setjmp2.h: Likewise.
14394         * stdlib/ucontext.h: Likewise.
14395
14396 2011-11-10  Andreas Schwab  <schwab@redhat.com>
14397
14398         * malloc/arena.c (_int_new_arena): Don't increment narenas.
14399         (reused_arena): Don't check arena limit.
14400         (arena_get2): Atomically check arena limit.
14401
14402 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
14403
14404         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
14405         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
14406
14407         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
14408         instructions.
14409
14410 2011-11-07  Andreas Schwab  <schwab@redhat.com>
14411
14412         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
14413         handler when locking.
14414
14415         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
14416         Fix size of allocated buffer.
14417
14418 2011-11-04  Andreas Schwab  <schwab@redhat.com>
14419
14420         [BZ #10103]
14421         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
14422         declarations for long double functions.
14423         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
14424
14425         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
14426
14427 2011-11-03  Andreas Schwab  <schwab@redhat.com>
14428
14429         * nscd/nscd.c (main): Don't start AVC thread until credentials are
14430         installed.
14431
14432         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
14433         is disabled.
14434
14435 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14436
14437         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
14438
14439 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
14440
14441         * include/alloca.h (stackinfo_alloca_round): Define.
14442         (extend_alloca): Use it.
14443         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
14444         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
14445         here.
14446
14447         * scripts/check-local-headers.sh: Ignore libaudit.h.
14448
14449         * nscd/Makefile (extra-objs): Make recursively expanded.
14450
14451 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
14452
14453         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
14454         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
14455
14456         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
14457         * posix/tst-rfc3484-2.c: Likewise.
14458         * posix/tst-rfc3484-3.c: Likewise.
14459
14460         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
14461         process_vm_writev.
14462         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
14463         process_vm_writev.
14464         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
14465         process_vm_writev from libc using GLIBC_2.15 version.
14466
14467         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
14468
14469 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
14470
14471         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
14472         stack usage.
14473
14474 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
14475
14476         [BZ #13367]
14477         * nss/getent.c (initgroups_keys): Show error message in case no group
14478         names are given.
14479
14480         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
14481         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
14482         __bump_nl_timestamp.
14483         * nscd/connections (nscd_init): When host database is served open
14484         netlink socket and request notification about configuration changes.
14485         (main_loop_poll): Track netlink file descriptor and bump timestamp
14486         in case data becomes available.
14487         (main_loop_epoll): Likewise.
14488         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
14489         (database_pers_head): Add extra_data fileds.
14490         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
14491         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
14492         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
14493         Adjust caller.
14494         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
14495         in6ai data, call __free_in6ai.
14496         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
14497         Add -DHAVE_NETLINK.
14498         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
14499         interface information.  Reuse previous data if netlink timestamp
14500         is not changed.
14501         (__bump_nl_timestamp): New function.
14502         (__free_in6ai): New function.
14503
14504 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
14505
14506         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
14507         close_not_cancel_no_status here.
14508         (__check_pf): Reorganize code a bit to not call close twice if OOM.
14509
14510 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
14511
14512         [BZ #13276]
14513         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
14514         return value.
14515
14516         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
14517         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
14518         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
14519
14520 2011-07-03  Andreas Jaeger  <aj@suse.de>
14521
14522         [BZ #10709]
14523         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
14524         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
14525         * math/libm-test.inc (sin_test): Add test case.
14526
14527 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
14528
14529         [BZ #13337]
14530         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
14531         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
14532
14533         * elf/chroot_canon.c (chroot_canon): Cleanups.
14534
14535         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
14536
14537         [BZ #13335]
14538         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
14539         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
14540
14541         * string/test-strchr.c: Make usable for strchrnul testing.
14542         * string/test-strchrnul.c: New file.
14543         * string/Makefile (strop-tests): Add strchrnul.
14544
14545         * po/it.po: Update from translation team.
14546         * po/es.po: Likewise.
14547
14548 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
14549
14550         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
14551         the three constants needed as parameters.  Drop the others.
14552         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
14553         __m128i_strloadu_tolower.
14554         Create and initialize variable zero and use it in all the places
14555         where _mm_setzero_si128 was used.
14556
14557         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
14558         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
14559         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
14560         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
14561         anymore.
14562         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
14563         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
14564         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
14565         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
14566         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
14567         __mpranred, __mptan.
14568         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
14569         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
14570         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
14571         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
14572         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
14573         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
14574         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
14575         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
14576         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
14577
14578 2011-10-28  Andreas Schwab  <schwab@redhat.com>
14579
14580         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
14581         redefine if SHARED.
14582         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
14583
14584         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
14585         wide char related routines to wcsmbs subdir.
14586
14587 2011-10-27  Andreas Schwab  <schwab@redhat.com>
14588
14589         [BZ #13344]
14590         * misc/sys/cdefs.h (__THROWNL): Define.
14591         * posix/unistd.h: Use __THREADNL instead of __THREAD
14592         for memory synchronization functions.
14593
14594 2011-10-26  Roland McGrath  <roland@hack.frob.com>
14595
14596         [BZ #13349]
14597         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
14598         doesn't exist.
14599         * manual/stdio.texi (Obstack Streams): Node removed.
14600
14601 2011-10-26  Andreas Schwab  <schwab@redhat.com>
14602
14603         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
14604         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
14605         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
14606
14607         * math/math_private.h (math_force_eval): Allow non-addressable
14608         arguments.
14609         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
14610
14611 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
14612
14613         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
14614         file is not needed.
14615
14616         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
14617         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
14618         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
14619         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
14620         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
14621         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
14622         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
14623         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
14624         Add AVX variants.
14625         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
14626         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
14627         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
14628         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
14629         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
14630         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
14631         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
14632         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
14633         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
14634         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
14635         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
14636         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
14637         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
14638         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
14639         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
14640         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
14641         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
14642         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
14643         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
14644
14645         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
14646         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
14647
14648         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
14649         place.  Use VEX encoding when compiling for AVX.
14650
14651 2011-10-25  Andreas Schwab  <schwab@redhat.com>
14652
14653         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
14654         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
14655
14656         * string/test-strchr.c (do_test): Don't generate NUL bytes.
14657
14658 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
14659
14660         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
14661         useless if() expression.
14662         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
14663         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
14664         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
14665         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
14666         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
14667         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
14668         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
14669         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
14670         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
14671         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
14672         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
14673         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
14674         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
14675         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
14676         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
14677         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
14678         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
14679         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
14680         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
14681
14682         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
14683
14684 2011-10-25  Andreas Schwab  <schwab@redhat.com>
14685
14686         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
14687         condition.
14688         * elf/dl-fini.c (_dl_sort_fini): Likewise.
14689
14690 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
14691
14692         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
14693         .text section.  Avoid duplicate constants.
14694         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
14695         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14696         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
14697         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14698         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
14699         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14700         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14701         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14702         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
14703         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
14704         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
14705         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
14706         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
14707         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
14708         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
14709         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
14710         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
14711         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
14712         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
14713         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
14714         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
14715         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
14716         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
14717         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
14718         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
14719         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
14720         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
14721         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
14722         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
14723         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
14724         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
14725         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
14726         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
14727         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
14728         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
14729         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
14730         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
14731         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
14732         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
14733         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
14734         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
14735         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
14736         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
14737         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
14738         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
14739
14740 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
14741
14742         * sysdeps/x86_64/dla.h: Move to ...
14743         * sysdeps/x86_64/fpu/dla.h: ...here.
14744         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
14745         situations.  Use __builtin_fma only for gcc 4.6 and up.
14746
14747         * config.make.in: Add have-mfma4 entry.
14748         * configure.in: Substitute libc_cv_cc_fma4.
14749         * math/Makefile (dbl-only-routines): Add sincostab.
14750         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
14751         Use __sincostab not sincos.
14752         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
14753         name is a macro.
14754         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
14755         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14756         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14757         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
14758         using __copysign.
14759         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
14760         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
14761         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
14762         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
14763         and __inv.
14764         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
14765         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
14766         __copysign.
14767         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
14768         define aliases when function name is a macro.
14769         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
14770         sysdeps/ieee754/dbl-64/sincos.tbl.
14771         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
14772         fma4-enabled routines.
14773         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
14774         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
14775         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
14776         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
14777         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
14778         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
14779         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
14780         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
14781         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
14782         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
14783         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
14784         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
14785         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
14786         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
14787         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
14788         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
14789         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
14790         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
14791         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
14792         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
14793         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
14794         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
14795         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
14796         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
14797         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
14798         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
14799         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
14800         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
14801         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
14802         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
14803
14804         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
14805         rename.
14806         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14807         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14808         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14809         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14810         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14811         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14812         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
14813         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
14814
14815 2011-10-24  Andreas Schwab  <schwab@redhat.com>
14816
14817         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
14818
14819 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
14820
14821         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
14822
14823         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
14824         prediction.
14825         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
14826
14827         * string/strnlen.c: Don't define STRNLEN, reverse logic.
14828         Remove unused variable magic_bits.
14829         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
14830
14831         * string/strnlen.c: Define and use STRNLEN macro.
14832         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
14833         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
14834         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
14835         * wcsmbs/wcslen.c: Define and use WCSLEN.
14836         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
14837         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
14838         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
14839         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
14840         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
14841         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
14842         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
14843
14844 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14845
14846         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
14847         strnlen-sse2-no-bsf.
14848         Rename strlen-no-bsf to strlen-sse2-no-bsf.
14849         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
14850         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
14851         Add strnlen support.
14852         (USE_AS_STRNLEN): New macro.
14853         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
14854         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
14855         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
14856         * sysdeps/x86_64/wcslen.S: New file.
14857
14858 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
14859
14860         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
14861         XMM-moves are used for copying on small sizes.
14862
14863 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14864
14865         * wcsmbs/Makefile (strop-tests): Add wcschr.
14866         * wcsmbs/test-wcschr.c: New file.
14867         * string/test-strchr.c: Update.
14868         Add wcschr support.
14869         (WIDE): New macro.
14870
14871 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14872
14873         * wcsmbs/Makefile (strop-tests): Add wcslen.
14874         * wcsmbs/test-wcslen.c: New file.
14875         * string/test-strlen.c: Update.
14876         Add wcslen support.
14877         (WIDE): New macro.
14878
14879 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
14880
14881         * po/it.po: Update from translation team.
14882
14883 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14884
14885         * sysdeps/x86_64/wcscmp.S: Update.
14886         Fix wrong comparison semantics.
14887         wcscmp shall use signed comparison not unsigned.
14888         Don't use substraction to avoid overflow bug.
14889         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
14890         * wcsmbc/wcscmp.c: Likewise.
14891         * string/test-strcmp.c: Likewise.
14892         Add new tests to check cases with negative values.
14893
14894 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
14895
14896         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
14897         * sysdeps/x86_64/dla.h: ...here.  New file.
14898         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
14899         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14900         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14901         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14902         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14903         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
14904         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14905         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
14906         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
14907
14908 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
14909
14910         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
14911         __ynl_finite aliases.
14912
14913 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
14914
14915         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
14916
14917         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
14918         define DLA_FMA.
14919         [DLA_FMA] (EMULV): Use DLA_FMA.
14920         [DLA_FMA] (MUL12): Use EMULV.
14921         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
14922         that are not needed.
14923         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14924         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14925         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14926         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14927         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14928         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
14929         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
14930
14931 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
14932
14933         * math/s_nan.c: Undef __nan.
14934         * math/s_nanf.c: Undef __nanf.
14935         * math/s_nanl.c: Undef __nanl.
14936         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
14937         "math_private.h".
14938
14939 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
14940
14941         * math/s_catan.c: Add branch predictions.
14942         * math/s_catanf.c: Likewise.
14943         * math/s_catanh.c: Likewise.
14944         * math/s_catanhf.c: Likewise.
14945         * math/s_catanhl.c: Likewise.
14946         * math/s_catanl.c: Likewise.
14947         * math/s_cexp.c: Likewise.
14948         * math/s_cexpf.c: Likewise.
14949         * math/s_cexpl.c: Likewise.
14950         * math/s_clog.c: Likewise.
14951         * math/s_clog10.c: Likewise.
14952         * math/s_clog10f.c: Likewise.
14953         * math/s_clog10l.c: Likewise.
14954         * math/s_clogf.c: Likewise.
14955         * math/s_clogl.c: Likewise.
14956         * math/s_csqrt.c: Likewise.
14957         * math/s_csqrtf.c: Likewise.
14958         * math/s_csqrtl.c: Likewise.
14959         * math/s_ctanf.c: Likewise.
14960         * math/s_ctanh.c: Likewise.
14961         * math/s_ctanhf.c: Likewise.
14962         * math/s_ctanhl.c: Likewise.
14963         * math/s_ctanl.c: Likewise.
14964
14965         * math/math_private.h: Define __nan, __nanf, __nanl.
14966         * math/s_cacosh.c: Include <math_private.h>.
14967         * math/s_cacoshl.c: Likewise.
14968         * math/s_casinh.c: Likewise.
14969         * math/s_casinhf.c: Likewise.
14970         * math/s_casinhl.c: Likewise.
14971         * math/s_ccos.c: Rely entire on ccosh.
14972         * math/s_ccosf.c: Rely entire on ccoshf.
14973         * math/s_ccosl.c: Rely entirely on ccoshl.
14974         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
14975         Remove tests for FE_INVALID.
14976         * math/s_ccoshf.c: Likewise.
14977         * math/s_ccoshl.c: Likewise.
14978         * math/s_csin.c: Likewise.
14979         * math/s_csinf.c: Likewise.
14980         * math/s_csinh.c Likewise.
14981         * math/s_csinhf.c: Likewise.
14982         * math/s_csinhl.c: Likewise.
14983         * math/s_csinl.c: Likewise.
14984         * math/s_ctan.c: Likewise.
14985         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
14986         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
14987         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
14988
14989 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
14990
14991         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
14992         compilation problems.
14993
14994         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
14995         __builtin_expect.
14996
14997 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
14998
14999         * sysdeps/i386/configure.in: Test for -mfma4 option.
15000         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
15001         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
15002         COMMON_CPUID_INDEX_80000001.
15003         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
15004         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
15005         use it if FMA3 is not supported.
15006         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
15007
15008         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
15009         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
15010
15011 2011-10-20  Andreas Schwab  <schwab@redhat.com>
15012
15013         [BZ #12892]
15014         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
15015         it would create a cycle with a link time dependency.
15016
15017 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
15018
15019         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
15020         instruction.
15021         * string/Makefile (strop-tests): Add rawmemchr.
15022         * string/test-rawmemchr.c: New file.
15023
15024         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
15025         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
15026         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
15027         when compiling str{,n}casecmp and when AVX is available.  Hook up
15028         new optimized code in initializers.
15029
15030 2011-10-19  Andreas Schwab  <schwab@redhat.com>
15031
15032         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
15033         __feraiseexcept instead of feraiseexcept.
15034
15035 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
15036
15037         * math/math_private.h: Define defaults for libc_fetestexcept and
15038         libc_feupdateenv.
15039         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
15040         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
15041         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
15042         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
15043         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
15044         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
15045         libc_fetestexcept and libc_feupdateenv.
15046
15047         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
15048         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
15049         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
15050         * sysdeps/x86_64/fpu/math_private.h: Define special version of
15051         libc_feholdexcept_setround.
15052
15053         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
15054         Add s_nearbyint-c and s_nearbyintf-c.
15055         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
15056         nearbyintf inlines.
15057         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
15058         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
15059         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
15060         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
15061
15062         * math/math_private.h: Define defaults for libc_fegetround,
15063         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
15064         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
15065         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
15066         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
15067         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
15068         standard functions.
15069         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
15070         Remove comments and hacks for old compiler versions.
15071         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
15072         libc_fegetround, libc_fesetround, libc_feholdexcept, and
15073         libc_feholdexceptl.
15074
15075 2011-10-18  Andreas Schwab  <schwab@redhat.com>
15076
15077         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
15078         (__feraiseexcept_renamed): Add __NTH.
15079         (feraiseexcept): Add __NTH.  Rename local variables to fix
15080         namespace violations.
15081
15082 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
15083
15084         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
15085
15086         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
15087
15088         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
15089         recently added interfaces.
15090         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
15091
15092         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
15093         about macro parameter expansion.
15094
15095         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
15096         __NO_MATH_INLINES is defined.  Cleanups.
15097
15098         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
15099         and __floorf is target has SSE4.1.
15100         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
15101         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
15102         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
15103         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
15104
15105         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
15106         name.
15107         (floorf): Likewise.
15108
15109         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
15110
15111 2011-10-17  Andreas Schwab  <schwab@redhat.com>
15112
15113         * misc/sys/cdefs.h: Fix last change.
15114
15115         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
15116         database lookup.
15117
15118 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
15119
15120         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
15121
15122         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
15123         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
15124         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
15125         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
15126         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
15127         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
15128         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
15129         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
15130         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
15131         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
15132         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
15133         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
15134         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
15135         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
15136         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
15137         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
15138         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
15139         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
15140         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
15141         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
15142         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
15143         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
15144
15145         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
15146         ceil, ceilf, floor, floorf.
15147
15148         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
15149         Perform IRELATIVE relocations last.
15150
15151         * elf/do-rel.h: Add another parameter nrelative, replacing the
15152         local variable with the same name.  Change name of the function
15153         to end in Rel or Rela (uppercase).
15154         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
15155         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
15156         elf_dynamic_do_##reloc function.
15157
15158 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
15159
15160         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
15161         is sufficient, at least on modern CPUs.
15162
15163         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
15164
15165         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
15166         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
15167
15168         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
15169         __expl_finite.
15170         * math/bits/math-finite.h: Add entries for exp.
15171         * math/e_expl.c: Add __*_finite alias.
15172         * sysdeps/i386/fpu/e_exp.S: Likewise.
15173         * sysdeps/i386/fpu/e_expf.S: Likewise.
15174         * sysdeps/i386/fpu/e_expl.c: Likewise.
15175         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
15176         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
15177         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
15178         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
15179         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
15180         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
15181         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
15182
15183         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
15184         is sufficient, at least on modern CPUs.
15185
15186         * ctype/ctype-info.c (__ctype_init): Define.
15187         * include/ctype.h (__ctype_init): Declare.
15188         (__ctype_b_loc): The variable is always initialized.
15189         (__ctype_toupper_loc): Likewise.
15190         (__ctype_tolower_loc): Likewise.
15191         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
15192         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
15193
15194 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
15195
15196         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
15197
15198         * configure.in: Also look in $cxxmachine/include for C++ system
15199         headers.
15200
15201 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15202
15203         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
15204         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
15205         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
15206         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
15207         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
15208         (USE_AS_WMEMCMP): New macro.
15209         Fixing indents.
15210         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
15211         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
15212         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
15213         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
15214         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
15215         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
15216         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
15217         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
15218         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
15219         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
15220         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
15221         (USE_AS_WMEMCMP): New macro.
15222         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
15223         * sysdeps/string/test-memcmp.c: Update.
15224         Fix simple_wmemcmp.
15225         Add new tests.
15226         * wcsmbs/wmemcmp.c: Update.
15227         (WMEMCMP): New macro.
15228         Fix overflow bug.
15229
15230 2011-10-12  Andreas Jaeger  <aj@suse.de>
15231
15232         [BZ #13268]
15233         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
15234
15235 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
15236
15237         * libio/iofwide.c (do_length): Avoid warning.
15238
15239         * ctype/ctype.h (__isctype_f): Add missing __THROW.
15240
15241 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
15242
15243         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
15244
15245         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
15246         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
15247         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
15248         * sysdeps/i386/i686/fpu/e_log.S: New file.
15249         * sysdeps/i386/i686/fpu/e_logf.S: New file.
15250         * sysdeps/i386/i686/fpu/e_logl.S: New file.
15251
15252         * ctype/ctype.h: Add support for inlined isXXX functions when
15253         compiling C++ code.
15254
15255 2011-10-14  Andreas Schwab  <schwab@redhat.com>
15256
15257         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
15258
15259         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
15260
15261 2011-10-13  Roland McGrath  <roland@hack.frob.com>
15262
15263         [BZ #13291]
15264         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
15265
15266 2011-10-13  Andreas Schwab  <schwab@redhat.com>
15267
15268         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
15269         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
15270         feraiseexcept.
15271
15272         * sysdeps/x86_64/memrchr.S: Check for zero size.
15273
15274         * string/stratcliff.c: Add memrchr tests.
15275
15276 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15277
15278         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
15279         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
15280         rawmemchr-sse2 rawmemchr-sse2-bsf.
15281         * sysdeps/i386/i686/multiarch/memchr.S: New file.
15282         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
15283         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
15284         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
15285         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
15286         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
15287         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
15288         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
15289         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
15290         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
15291         * string/memrchr.c (MEMRCHR): New macro.
15292
15293 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
15294
15295         Add integration with gcc's -ffinite-math-only and optimize wrapper
15296         functions in libm.
15297         * Versions.def: Define GLIBC_2.15 version for libm.
15298         * math/Makefile (headers): Add bits/math-finite.h.
15299         * math/bits/math-finite.h: New file.
15300         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
15301         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
15302         * math/e_acoshl.c: Add __*_finite alias.
15303         * math/e_acosl.c: Likewise.
15304         * math/e_asinl.c: Likewise.
15305         * math/e_atan2l.c: Likewise.
15306         * math/e_atanhl.c: Likewise.
15307         * math/e_coshl.c: Likewise.
15308         * math/e_exp10.c: Likewise.
15309         * math/e_exp10f.c: Likewise.
15310         * math/e_exp10l.c: Likewise.
15311         * math/e_exp2l.c: Likewise.
15312         * math/e_fmodl.c: Likewise.
15313         * math/e_gammal_r.c: Likewise.
15314         * math/e_hypotl.c: Likewise.
15315         * math/e_j0l.c: Likewise.
15316         * math/e_j1l.c: Likewise.
15317         * math/e_jnl.c: Likewise.
15318         * math/e_lgammal_r.c: Likewise.
15319         * math/e_log10l.c: Likewise.
15320         * math/e_log2l.c: Likewise.
15321         * math/e_logl.c: Likewise.
15322         * math/e_powl.c: Likewise.
15323         * math/e_sinhl.c: Likewise.
15324         * math/e_sqrtl.c: Likewise.
15325         * math/e_scalb.c: Completely rewritten and optimized.
15326         * math/e_scalbf.c: Likewise.
15327         * math/e_scalbl.c: Likewise.
15328         * math/w_acos.c: Likewise.
15329         * math/w_acosf.c: Likewise.
15330         * math/w_acosl.c: Likewise.
15331         * math/w_acosh.c: Likewise.
15332         * math/w_acoshf.c: Likewise.
15333         * math/w_acoshl.c: Likewise.
15334         * math/w_asin.c: Likewise.
15335         * math/w_asinf.c: Likewise.
15336         * math/w_asinl.c: Likewise.
15337         * math/w_atan2.c: Likewise.
15338         * math/w_atan2f.c: Likewise.
15339         * math/w_atan2l.c: Likewise.
15340         * math/w_atanh.c: Likewise.
15341         * math/w_atanhf.c: Likewise.
15342         * math/w_atanhl.c: Likewise.
15343         * math/w_exp10.c: Likewise.
15344         * math/w_exp10f.c: Likewise.
15345         * math/w_exp10l.c: Likewise.
15346         * math/w_fmod.c: Likewise.
15347         * math/w_fmodf.c: Likewise.
15348         * math/w_fmodl.c: Likewise.
15349         * math/w_j0.c: Likewise.
15350         * math/w_j0f.c: Likewise.
15351         * math/w_j0l.c: Likewise.
15352         * math/w_j1.c: Likewise.
15353         * math/w_j1f.c: Likewise.
15354         * math/w_j1l.c: Likewise.
15355         * math/w_jn.c: Likewise.
15356         * math/w_jnf.c: Likewise.
15357         * math/w_log.c: Likewise.
15358         * math/w_logf.c: Likewise.
15359         * math/w_logl.c: Likewise.
15360         * math/w_log10.c: Likewise.
15361         * math/w_log10f.c: Likewise.
15362         * math/w_log10l.c: Likewise.
15363         * math/w_log2.c: Likewise.
15364         * math/w_log2f.c: Likewise.
15365         * math/w_log2l.c: Likewise.
15366         * math/w_pow.c: Likewise.
15367         * math/w_powf.c: Likewise.
15368         * math/w_powl.c: Likewise.
15369         * math/w_remainder.c: Likewise.
15370         * math/w_remainderf.c: Likewise.
15371         * math/w_remainderl.c: Likewise.
15372         * math/w_scalb.c: Likewise.
15373         * math/w_scalbf.c: Likewise.
15374         * math/w_scalbl.c: Likewise.
15375         * math/w_sqrt.c: Likewise.
15376         * math/w_sqrtf.c: Likewise.
15377         * math/w_sqrtl.c: Likewise.
15378         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
15379         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
15380         used.
15381         * math/math_private.h: Declare __kernel_standard_f.
15382         * math/w_cosh.c: Remove cruft and optimize a bit.
15383         * math/w_coshf.c: Likewise.
15384         * math/w_coshl.c: Likewise.
15385         * math/w_exp2.c: Likewise.
15386         * math/w_exp2f.c: Likewise.
15387         * math/w_exp2l.c: Likewise.
15388         * math/w_hypot.c: Likewise.
15389         * math/w_hypotf.c: Likewise.
15390         * math/w_hypotl.c: Likewise.
15391         * math/w_lgamma.c: Likewise.
15392         * math/w_lgamma_r.c: Likewise.
15393         * math/w_lgammaf.c: Likewise.
15394         * math/w_lgammaf_r.c: Likewise.
15395         * math/w_lgammal.c: Likewise.
15396         * math/w_lgammal_r.c: Likewise.
15397         * math/w_sinh.c: Likewise.
15398         * math/w_sinhf.c: Likewise.
15399         * math/w_sinhl.c: Likewise.
15400         * math/w_tgamma.c: Likewise.
15401         * math/w_tgammaf.c: Likewise.
15402         * math/w_tgammal.c: Likewise.
15403         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
15404         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
15405         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
15406         Minor optimizations.  Pretty printing.  Remove cruft.
15407         * sysdeps/i386/fpu/e_acosf.S: Likewise.
15408         * sysdeps/i386/fpu/e_acosh.S: Likewise.
15409         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
15410         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
15411         * sysdeps/i386/fpu/e_acosl.c: Likewise.
15412         * sysdeps/i386/fpu/e_asin.S: Likewise.
15413         * sysdeps/i386/fpu/e_asinf.S: Likewise.
15414         * sysdeps/i386/fpu/e_atan2.S: Likewise.
15415         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
15416         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
15417         * sysdeps/i386/fpu/e_atanh.S: Likewise.
15418         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
15419         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
15420         * sysdeps/i386/fpu/e_exp10.S: Likewise.
15421         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
15422         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
15423         * sysdeps/i386/fpu/e_exp2.S: Likewise.
15424         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
15425         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
15426         * sysdeps/i386/fpu/e_fmod.S: Likewise.
15427         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
15428         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
15429         * sysdeps/i386/fpu/e_hypot.S: Likewise.
15430         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
15431         * sysdeps/i386/fpu/e_log.S: Likewise.
15432         * sysdeps/i386/fpu/e_log10.S: Likewise.
15433         * sysdeps/i386/fpu/e_log10f.S: Likewise.
15434         * sysdeps/i386/fpu/e_log10l.S: Likewise.
15435         * sysdeps/i386/fpu/e_log2.S: Likewise.
15436         * sysdeps/i386/fpu/e_log2f.S: Likewise.
15437         * sysdeps/i386/fpu/e_log2l.S: Likewise.
15438         * sysdeps/i386/fpu/e_logf.S: Likewise.
15439         * sysdeps/i386/fpu/e_logl.S: Likewise.
15440         * sysdeps/i386/fpu/e_pow.S: Likewise.
15441         * sysdeps/i386/fpu/e_powf.S: Likewise.
15442         * sysdeps/i386/fpu/e_powl.S: Likewise.
15443         * sysdeps/i386/fpu/e_remainder.S: Likewise.
15444         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
15445         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
15446         * sysdeps/i386/fpu/e_scalb.S: Likewise.
15447         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
15448         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
15449         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
15450         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
15451         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
15452         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
15453         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
15454         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15455         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
15456         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
15457         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
15458         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
15459         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
15460         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
15461         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
15462         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
15463         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
15464         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15465         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
15466         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
15467         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15468         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
15469         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
15470         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
15471         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15472         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
15473         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
15474         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
15475         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
15476         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
15477         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
15478         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
15479         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
15480         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
15481         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
15482         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
15483         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
15484         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
15485         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
15486         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
15487         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
15488         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
15489         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
15490         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
15491         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
15492         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
15493         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
15494         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
15495         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
15496         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
15497         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
15498         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
15499         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
15500         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
15501         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
15502         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
15503         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
15504         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
15505         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
15506         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
15507         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
15508         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
15509         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
15510         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
15511         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
15512         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
15513         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
15514         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
15515         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
15516         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
15517         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
15518         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
15519         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
15520         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
15521         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
15522         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
15523         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
15524         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
15525         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
15526         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
15527         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
15528         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
15529         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
15530         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
15531         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
15532         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
15533         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
15534         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
15535         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
15536         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
15537         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
15538         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
15539         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
15540         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
15541         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
15542         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
15543         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
15544         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
15545         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
15546         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
15547         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
15548         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
15549         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
15550         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
15551         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
15552         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
15553         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
15554         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
15555         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
15556         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
15557         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
15558         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
15559         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
15560         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
15561         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
15562         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
15563         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
15564         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
15565         (__isnanf): Likewise.
15566         (__isinf_ns): Likewise.
15567         (__isinf_nsf): Likewise.
15568         (__finite): Likewise.
15569         (__finitef): Likewise.
15570         (__ieee754_sqrt): Define as macro.
15571         (__ieee754_sqrtf): Define as macro.
15572         (__ieee754_sqrtl): Define as macro.
15573         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
15574         inlined copy.
15575         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
15576         __FINITE_MATH_ONLY__ consistent.
15577         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
15578
15579 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
15580
15581         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
15582         of rawmemchr.
15583
15584         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
15585
15586 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
15587
15588         * po/ja.po: Update from translation team.
15589
15590 2011-10-08  Roland McGrath  <roland@hack.frob.com>
15591
15592         * locale/programs/locarchive.c (prepare_address_space): New function.
15593         (create_archive, enlarge_archive, open_archive): Use it.
15594
15595         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
15596         inside [SHARED], where it is used.
15597
15598         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
15599
15600         * nss/getent.c (netgroup_keys): Remove unused variable.
15601         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
15602
15603 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
15604
15605         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
15606         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
15607         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
15608         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
15609         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
15610         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
15611         * math/Makefile (libm-calls): Add s_isinf_ns.
15612         * math/divtc3.c: Use __isinf_nsl instead of isinf.
15613         * math/multc3.c: Likewise.
15614         * math/s_casin.c: Likewise.
15615         * math/s_casinf.c: Likewise.
15616         * math/s_casinl.c: Likewise.
15617         * math/s_ccos.c: Likewise.
15618         * math/s_ccosf.c: Likewise.
15619         * math/s_ccosl.c: Likewise.
15620         * math/s_ctan.c: Likewise.
15621         * math/s_ctanf.c: Likewise.
15622         * math/s_ctanh.c: Likewise.
15623         * math/s_ctanhf.c: Likewise.
15624         * math/s_ctanhl.c: Likewise.
15625         * math/s_ctanl.c: Likewise.
15626         * math/w_fmod.c: Likewise.
15627         * math/w_fmodf.c: Likewise.
15628         * math/w_fmodl.c: Likewise.
15629         * math/w_remainder.c: Likewise.
15630         * math/w_remainderf.c: Likewise.
15631         * math/w_remainderl.c: Likewise.
15632         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
15633         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
15634         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
15635         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
15636         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
15637         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
15638         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
15639         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
15640
15641         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
15642         of the number.
15643         * stdio-common/printf_fphex.c: Likewise.
15644         * stdio-common/printf_size.c: Likewise.
15645
15646         * math/e_exp10.c: Include math_private.h using <...> not "...".
15647         * math/e_exp10f.c: Likewise.
15648         * math/e_exp10l.c: Likewise.
15649         * math/e_exp2l.c: Likewise.
15650         * math/e_j0l.c: Likewise.
15651         * math/e_j1l.c: Likewise.
15652         * math/e_jnl.c: Likewise.
15653         * math/e_lgammal_r.c: Likewise.
15654         * math/e_rem_pio2l.c: Likewise.
15655         * math/e_scalb.c: Likewise.
15656         * math/e_scalbf.c: Likewise.
15657         * math/e_scalbl.c: Likewise.
15658         * math/k_cosl.c: Likewise.
15659         * math/k_sinl.c: Likewise.
15660         * math/k_tanl.c: Likewise.
15661         * math/s_cacoshf.c: Likewise.
15662         * math/s_catan.c: Likewise.
15663         * math/s_catanf.c: Likewise.
15664         * math/s_catanh.c: Likewise.
15665         * math/s_catanhf.c: Likewise.
15666         * math/s_catanhl.c: Likewise.
15667         * math/s_catanl.c: Likewise.
15668         * math/s_ccosh.c: Likewise.
15669         * math/s_ccoshf.c: Likewise.
15670         * math/s_ccoshl.c: Likewise.
15671         * math/s_cexp.c: Likewise.
15672         * math/s_cexpf.c: Likewise.
15673         * math/s_cexpl.c: Likewise.
15674         * math/s_clog.c: Likewise.
15675         * math/s_clog10.c: Likewise.
15676         * math/s_clog10f.c: Likewise.
15677         * math/s_clog10l.c: Likewise.
15678         * math/s_clogf.c: Likewise.
15679         * math/s_clogl.c: Likewise.
15680         * math/s_csin.c: Likewise.
15681         * math/s_csinf.c: Likewise.
15682         * math/s_csinh.c: Likewise.
15683         * math/s_csinhf.c: Likewise.
15684         * math/s_csinhl.c: Likewise.
15685         * math/s_csinl.c: Likewise.
15686         * math/s_csqrt.c: Likewise.
15687         * math/s_csqrtf.c: Likewise.
15688         * math/s_csqrtl.c: Likewise.
15689         * math/s_ctan.c: Likewise.
15690         * math/s_ctanf.c: Likewise.
15691         * math/s_ctanh.c: Likewise.
15692         * math/s_ctanhf.c: Likewise.
15693         * math/s_ctanhl.c: Likewise.
15694         * math/s_ctanl.c: Likewise.
15695         * math/s_ldexp.c: Likewise.
15696         * math/s_ldexpf.c: Likewise.
15697         * math/s_ldexpl.c: Likewise.
15698         * math/s_significand.c: Likewise.
15699         * math/s_significandf.c: Likewise.
15700         * math/s_significandl.c: Likewise.
15701         * math/w_acos.c: Likewise.
15702         * math/w_acosf.c: Likewise.
15703         * math/w_acosh.c: Likewise.
15704         * math/w_acoshf.c: Likewise.
15705         * math/w_acoshl.c: Likewise.
15706         * math/w_acosl.c: Likewise.
15707         * math/w_asin.c: Likewise.
15708         * math/w_asinf.c: Likewise.
15709         * math/w_asinl.c: Likewise.
15710         * math/w_atan2.c: Likewise.
15711         * math/w_atan2f.c: Likewise.
15712         * math/w_atan2l.c: Likewise.
15713         * math/w_atanh.c: Likewise.
15714         * math/w_atanhf.c: Likewise.
15715         * math/w_atanhl.c: Likewise.
15716         * math/w_cosh.c: Likewise.
15717         * math/w_coshf.c: Likewise.
15718         * math/w_coshl.c: Likewise.
15719         * math/w_dremf.c: Likewise.
15720         * math/w_exp10.c: Likewise.
15721         * math/w_exp10f.c: Likewise.
15722         * math/w_exp10l.c: Likewise.
15723         * math/w_exp2.c: Likewise.
15724         * math/w_exp2f.c: Likewise.
15725         * math/w_fmod.c: Likewise.
15726         * math/w_fmodf.c: Likewise.
15727         * math/w_fmodl.c: Likewise.
15728         * math/w_hypot.c: Likewise.
15729         * math/w_hypotf.c: Likewise.
15730         * math/w_hypotl.c: Likewise.
15731         * math/w_j0.c: Likewise.
15732         * math/w_j0f.c: Likewise.
15733         * math/w_j0l.c: Likewise.
15734         * math/w_j1.c: Likewise.
15735         * math/w_j1f.c: Likewise.
15736         * math/w_j1l.c: Likewise.
15737         * math/w_jn.c: Likewise.
15738         * math/w_jnf.c: Likewise.
15739         * math/w_jnl.c: Likewise.
15740         * math/w_lgamma.c: Likewise.
15741         * math/w_lgamma_r.c: Likewise.
15742         * math/w_lgammaf.c: Likewise.
15743         * math/w_lgammaf_r.c: Likewise.
15744         * math/w_lgammal.c: Likewise.
15745         * math/w_lgammal_r.c: Likewise.
15746         * math/w_log.c: Likewise.
15747         * math/w_log10.c: Likewise.
15748         * math/w_log10f.c: Likewise.
15749         * math/w_log10l.c: Likewise.
15750         * math/w_log2.c: Likewise.
15751         * math/w_log2f.c: Likewise.
15752         * math/w_log2l.c: Likewise.
15753         * math/w_logf.c: Likewise.
15754         * math/w_logl.c: Likewise.
15755         * math/w_pow.c: Likewise.
15756         * math/w_powf.c: Likewise.
15757         * math/w_powl.c: Likewise.
15758         * math/w_remainder.c: Likewise.
15759         * math/w_remainderf.c: Likewise.
15760         * math/w_remainderl.c: Likewise.
15761         * math/w_scalb.c: Likewise.
15762         * math/w_scalbf.c: Likewise.
15763         * math/w_scalbl.c: Likewise.
15764         * math/w_sinh.c: Likewise.
15765         * math/w_sinhf.c: Likewise.
15766         * math/w_sinhl.c: Likewise.
15767         * math/w_sqrt.c: Likewise.
15768         * math/w_sqrtf.c: Likewise.
15769         * math/w_sqrtl.c: Likewise.
15770         * math/w_tgamma.c: Likewise.
15771         * math/w_tgammaf.c: Likewise.
15772         * math/w_tgammal.c: Likewise.
15773
15774         * po/ja.po: Update from translation team.
15775
15776 2011-09-29  Andreas Jaeger  <aj@suse.de>
15777
15778         [BZ #13179]
15779         * sunrpc/netname.c (netname2host): Fix logic.
15780
15781         [BZ #6779]
15782         [BZ #6783]
15783         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
15784         correctly.
15785         * math/w_remainder.c (__remainder): Likewise.
15786         * math/w_remainderf.c (__remainderf): Likewise.
15787         * math/libm-test.inc (remainder_test): Add test cases.
15788
15789 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15790
15791         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
15792         sdiv_qrnnd.
15793
15794 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
15795
15796         * string/test-memcmp.c: Avoid unncessary #defines.
15797         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
15798
15799 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15800
15801         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
15802         Use new sse2 version for core i3 - i7 as it's faster
15803         than sse42 version.
15804         (bit_Prefer_PMINUB_for_stringop): New.
15805         * sysdeps/x86_64/rawmemchr.S: Update.
15806         Replace with faster SSE2 version.
15807         * sysdeps/x86_64/memrchr.S: New file.
15808         * sysdeps/x86_64/memchr.S: Update.
15809         Replace with faster SSE2 version.
15810
15811 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
15812
15813         * elf/dl-load.c (lose): Add cast to avoid warning.
15814
15815 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
15816
15817         * po/ca.po: Update from translation team.
15818
15819         * inet/getnetgrent_r.c: Hook up nscd.
15820         * nscd/Makefile (routines): Add nscd_netgroup.
15821         (nscd-modules): Add netgroupcache.
15822         (CFLAGS-netgroupcache.c): Define.
15823         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
15824         (cache_search): Add const to second parameter.
15825         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
15826         INNETGR.
15827         (dbs): Add netgrdb entry.
15828         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
15829         (verify_persistent_db): Handle netgrdb.
15830         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
15831         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
15832         GETFDNETGR.
15833         (netgroup_response_header): Define.
15834         (innetgroup_response_header): Define.
15835         (datahead): Add netgroup_response_header and innetgroup_response_header
15836         elements.
15837         * nscd/nscd.conf: Add entries for netgroup cache.
15838         * nscd/nscd.h (dbtype): Add netgrdb.
15839         (_PATH_NSCD_NETGROUP_DB): Define.
15840         (netgroup_iov_disabled): Declare.
15841         (xmalloc, xcalloc, xrealloc): Move declarations here.
15842         (cache_search): Adjust prototype.
15843         Add netgroup-related prototypes.
15844         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
15845         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
15846         (__nscd_innetgr): Declare.
15847         * nscd/selinux.c (perms): Use access_vector_t as element type and
15848         add netgroup-related initializers.
15849         * nscd/netgroupcache.c: New file.
15850         * nscd/nscd_netgroup.c: New file.
15851         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
15852         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
15853         For four parameters use innetgr.
15854         * nss/nss_files/files-init.c: Add definition and callback for netgr.
15855         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
15856         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
15857         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
15858
15859         * nscd/connections.c (register_traced_file): Don't register file
15860         for disabled databases.
15861
15862 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
15863
15864         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
15865
15866         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
15867         from tree and freeing node.
15868
15869 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
15870
15871         * nss/nsswitch.c (__nss_database_lookup): Handle
15872         nss_parse_service_list out of memory case.
15873
15874 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
15875
15876         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
15877         out of memory case.
15878
15879 2011-10-04  Andreas Schwab  <schwab@redhat.com>
15880
15881         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
15882         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
15883         pass it down.
15884         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
15885         elf_machine_rela, elf_machine_lazy_rel.
15886         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
15887         (ELF_DYNAMIC_DO_REL): Likewise.
15888         (ELF_DYNAMIC_DO_RELA): Likewise.
15889         (ELF_DYNAMIC_RELOCATE): Likewise.
15890         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
15891         to ELF_DYNAMIC_DO_REL.
15892         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
15893         (dl_main): In trace mode always set __RTLD_NOIFUNC.
15894         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
15895         elf_machine_rela.
15896         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
15897         skip_ifunc, don't call ifunc function if non-zero.
15898         (elf_machine_rela): Likewise.
15899         (elf_machine_lazy_rel): Likewise.
15900         (elf_machine_lazy_rela): Likewise.
15901         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
15902         (elf_machine_lazy_rel): Likewise.
15903         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
15904         Likewise.
15905         (elf_machine_lazy_rel): Likewise.
15906         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
15907         Likewise.
15908         (elf_machine_lazy_rel): Likewise.
15909         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
15910         (elf_machine_lazy_rel): Likewise.
15911         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
15912         (elf_machine_lazy_rel): Likewise.
15913         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
15914         (elf_machine_lazy_rel): Likewise.
15915         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
15916         (elf_machine_lazy_rel): Likewise.
15917         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
15918         (elf_machine_lazy_rel): Likewise.
15919         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
15920         (elf_machine_lazy_rel): Likewise.
15921
15922 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
15923
15924         * nss/nss_files/files-init.c (_nss_files_init): Use static
15925         initialization for all the *_traced_file variables.
15926
15927 2011-09-28  Andreas Schwab  <schwab@redhat.com>
15928
15929         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
15930
15931 2011-09-27  Roland McGrath  <roland@hack.frob.com>
15932
15933         [BZ #13226]
15934         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
15935
15936 2011-09-27  Andreas Schwab  <schwab@redhat.com>
15937
15938         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
15939         Reread the line before reparsing it.
15940
15941 2011-09-26  Andreas Schwab  <schwab@redhat.com>
15942
15943         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
15944
15945 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
15946             Maxim Kuvyrkov  <maxim@codesourcery.com>
15947             Joseph Myers  <joseph@codesourcery.com>
15948
15949         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
15950         if needed for __stack_chk_guard.
15951
15952 2011-09-19  Roland McGrath  <roland@hack.frob.com>
15953
15954         * sysdeps/posix/spawni.c (script_execute): Always define it.
15955         It will be optimized away if unused.
15956         (maybe_script_execute): New function.
15957         (__spawni): Call it.
15958
15959         * Makerules: Don't include tls.make.
15960         (config-tls): Always set to thread.
15961         * tls.make.c: File removed.
15962
15963 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
15964
15965         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
15966         * config.make.in (CPPFLAGS-config): New substituted variable.
15967
15968 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
15969
15970         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
15971
15972         [BZ #13192]
15973         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
15974         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
15975
15976 2011-09-15  Roland McGrath  <roland@hack.frob.com>
15977
15978         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
15979         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
15980         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
15981         (CALL_FAIL): Likewise.
15982         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
15983         (CALL_FAIL): Macro removed.
15984         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
15985
15986 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
15987
15988         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
15989         for __FINITE_MATH_ONLY__ == 1.
15990
15991 2011-09-15  Andreas Schwab  <schwab@redhat.com>
15992
15993         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
15994         __ieee754_sqrt instead of sqrt.
15995         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
15996         __ieee754_sqrtf instead of sqrtf.
15997         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
15998         __floorf instead of floorf.
15999         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
16000         __floorf, __truncf instead of floorf, truncf.
16001
16002 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
16003
16004         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
16005
16006         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
16007         __extern_always_inline.
16008         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
16009         32-bit.
16010
16011 2011-09-14  Andreas Schwab  <schwab@redhat.com>
16012
16013         * elf/rtld.c (dl_main): Also relocate in dependency order when
16014         doing symbol dependency testing.
16015
16016 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
16017
16018         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
16019         Always define `refsym'.
16020
16021 2011-09-13  Andreas Schwab  <schwab@redhat.com>
16022
16023         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
16024         (__FD_ELT): Renamed from __FDELT.
16025         * misc/bits/select2.h (__FD_ELT): Likewise.
16026         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
16027         __FD_MASK instead of __FDELT, __FDMASK.
16028         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
16029         Likewise.
16030         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
16031         Likewise.
16032
16033         * elf/Makefile (gen-ldd): Fix pattern.
16034
16035         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
16036         (init_tls): Likewise.
16037
16038 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
16039
16040         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
16041
16042 2011-09-12  Andreas Schwab  <schwab@redhat.com>
16043
16044         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
16045         `struct cmsghdr *' instead of `void *'.
16046         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
16047         Likewise.
16048
16049 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
16050
16051         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
16052         if non-absolute.
16053         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
16054         ldd_rewrite_script.
16055
16056 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
16057
16058         * configure.in: Remove --with-tls option.
16059         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
16060         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
16061         out in case it is missing.
16062         * sysdeps/ia64/elf/configure.in: Likewise.
16063         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
16064         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
16065         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
16066         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
16067         * sysdeps/sh/elf/configure.in: Likewise.
16068         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
16069         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
16070         * sysdeps/x86_64/elf/configure.in: Likewise.
16071         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
16072         * sysdeps/mach/hurd/tls.h: Likewise.
16073
16074         [BZ #13067]
16075         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
16076
16077         [BZ #13090]
16078         * configure.in: Fix use of AC_INIT.
16079
16080         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
16081
16082 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
16083
16084         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
16085         __set_errno.
16086         * malloc/hooks.c: Likewise.
16087
16088         [BZ #11929]
16089         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
16090         variables statically.
16091         (narenas): Initialize.
16092         (list_lock): Initialize.
16093         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
16094         initializtion of main_arena and list_lock.  Small cleanups.
16095         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
16096         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
16097         Add initializers to main_arena and mp_.
16098         (malloc_state): Remove pagesize member.  Change all users to use
16099         GLRO(dl_pagesize).
16100
16101         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
16102         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
16103         is always initialized.
16104
16105         * malloc/malloc.c: Removed unused configurations and dead code.
16106         * malloc/arena.c: Likewise.
16107         * malloc/hooks.c: Likewise.
16108         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
16109
16110         * include/tls.h: Removed.  USE___THREAD must always be defined.
16111         * bits/libc-tsd.h: Don't handle !USE___THREAD.
16112         * elf/dl-libc.c: Likewise.
16113         * elf/dl-tsd.c: Likewise.
16114         * include/errno.h: Likewise.
16115         * include/netdb.h: Likewise.
16116         * include/resolv.h: Likewise.
16117         * inet/herrno-loc.c: Likewise.
16118         * inet/herrno.c: Likewise.
16119         * malloc/arena.c: Likewise.
16120         * malloc/hooks.c: Likewise.
16121         * malloc/malloc.c: Likewise.
16122         * resolv/res-state.c: Likewise.
16123         * resolv/res_libc.c: Likewise.
16124         * sysdeps/i386/dl-machine.h: Likewise.
16125         * sysdeps/ia64/dl-machine.h: Likewise.
16126         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
16127         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
16128         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
16129         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
16130         * sysdeps/sh/dl-machine.h: Likewise.
16131         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
16132         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
16133         * sysdeps/unix/i386/sysdep.S: Likewise.
16134         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
16135         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
16136         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
16137         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
16138         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
16139         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
16140         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
16141         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
16142         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
16143         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
16144         * sysdeps/unix/x86_64/sysdep.S: Likewise.
16145         * sysdeps/x86_64/dl-machine.h: Likewise.
16146         * tls.make.c: Likewise.
16147
16148         * configure.in: Remove --with-__thread option.  Make tests for
16149         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
16150         tls_model attribute fail if no support is available.  Remove
16151         USE_IN_LIBIO.
16152         * Makeconfig: Adjust for dropped configure option.  All features are
16153         now mandatory.
16154         * Makerules: Likewise.
16155         * Versions.def: Likewise.
16156         * argp/argp-fmtstream.c: Likewise.
16157         * argp/argp-fmtstream.h: Likewise.
16158         * argp/argp-help.c: Likewise.
16159         * assert/assert.c: Likewise.
16160         * config.h.in: Likewise.
16161         * config.make.in: Likewise.
16162         * configure: Likewise.
16163         * configure.in: Likewise.
16164         * csu/Versions: Likewise.
16165         * csu/init.c: Likewise.
16166         * elf/tst-audit2.c: Likewise.
16167         * elf/tst-tls10.c: Likewise.
16168         * elf/tst-tls10.h: Likewise.
16169         * elf/tst-tls11.c: Likewise.
16170         * elf/tst-tls12.c: Likewise.
16171         * elf/tst-tls14.c: Likewise.
16172         * elf/tst-tlsmod11.c: Likewise.
16173         * elf/tst-tlsmod12.c: Likewise.
16174         * elf/tst-tlsmod13.c: Likewise.
16175         * elf/tst-tlsmod13a.c: Likewise.
16176         * elf/tst-tlsmod14a.c: Likewise.
16177         * elf/tst-tlsmod15b.c: Likewise.
16178         * elf/tst-tlsmod16a.c: Likewise.
16179         * elf/tst-tlsmod16b.c: Likewise.
16180         * elf/tst-tlsmod7.c: Likewise.
16181         * elf/tst-tlsmod8.c: Likewise.
16182         * elf/tst-tlsmod9.c: Likewise.
16183         * gmon/gmon.c: Likewise.
16184         * grp/fgetgrent_r.c: Likewise.
16185         * grp/putgrent.c: Likewise.
16186         * hurd/fopenport.c: Likewise.
16187         * include/libc-symbols.h: Likewise.
16188         * include/tls.h: Likewise.
16189         * intl/gettextP.h: Likewise.
16190         * intl/loadinfo.h: Likewise.
16191         * locale/global-locale.c: Likewise.
16192         * locale/localeinfo.h: Likewise.
16193         * mach/devstream.c: Likewise.
16194         * malloc/arena.c: Likewise.
16195         * malloc/set-freeres.c: Likewise.
16196         * misc/err.c: Likewise.
16197         * misc/getttyent.c: Likewise.
16198         * misc/mntent_r.c: Likewise.
16199         * posix/getopt.c: Likewise.
16200         * posix/wordexp.c: Likewise.
16201         * pwd/fgetpwent_r.c: Likewise.
16202         * resolv/Versions: Likewise.
16203         * resolv/res_hconf.c: Likewise.
16204         * shadow/fgetspent_r.c: Likewise.
16205         * shadow/putspent.c: Likewise.
16206         * stdio-common/printf_fphex.c: Likewise.
16207         * stdio-common/tmpfile.c: Likewise.
16208         * stdlib/abort.c: Likewise.
16209         * stdlib/fmtmsg.c: Likewise.
16210         * sunrpc/auth_unix.c: Likewise.
16211         * sunrpc/clnt_perr.c: Likewise.
16212         * sunrpc/clnt_tcp.c: Likewise.
16213         * sunrpc/clnt_udp.c: Likewise.
16214         * sunrpc/clnt_unix.c: Likewise.
16215         * sunrpc/openchild.c: Likewise.
16216         * sunrpc/svc_simple.c: Likewise.
16217         * sunrpc/svc_tcp.c: Likewise.
16218         * sunrpc/svc_udp.c: Likewise.
16219         * sunrpc/svc_unix.c: Likewise.
16220         * sunrpc/xdr.c: Likewise.
16221         * sunrpc/xdr_array.c: Likewise.
16222         * sunrpc/xdr_rec.c: Likewise.
16223         * sunrpc/xdr_ref.c: Likewise.
16224         * sunrpc/xdr_stdio.c: Likewise.
16225
16226 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
16227
16228         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
16229
16230 2011-07-03  Andreas Jaeger  <aj@suse.de>
16231
16232         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
16233         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
16234         regenerate with gen-libm-tests.pl.
16235
16236 2010-05-12  Petr Baudis  <pasky@suse.cz>
16237
16238         [BZ #11589]
16239         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
16240         around j0() zero points by switching to j1().
16241         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
16242         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
16243         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
16244         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
16245
16246 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
16247
16248         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
16249         instead of 0.
16250         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
16251         instead of 0.                              .
16252         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
16253         Patch in part by Pavel Roskin <proski@gnu.org>.
16254
16255         [BZ #13138]
16256         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
16257         realloc.
16258         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
16259         Free memory block if necessary.
16260
16261         [BZ #12847]
16262         * libio/genops.c (INTDEF): For string streams the _lock pointer can
16263         be NULL.  Don't lock in this case.
16264
16265 2011-09-09  Roland McGrath  <roland@hack.frob.com>
16266
16267         * elf/elf.h (ELFOSABI_GNU): New macro.
16268         (ELFOSABI_LINUX): Define to that.
16269
16270 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
16271
16272         * string/strncat.c (strncat): Undef the symbol in case it has been
16273         defined in bits/string.h.
16274
16275 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
16276
16277         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
16278
16279         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
16280         link map.
16281
16282 2011-08-17  Andreas Jaeger  <aj@suse.de>
16283
16284         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
16285
16286 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
16287             Ian Lance Taylor  <iant@google.com>
16288
16289         * math/libm-test.inc (lround_test): New testcase.
16290         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
16291
16292 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
16293
16294         * Makefile: Remove support for automatic cvs check-ins.
16295         * Makerules: Likewise.
16296         * config.make.in: Likewise.
16297         * configure.in: Likewise.
16298         * intl/Makefile: Likewise.
16299         * locale/Makefile: Likewise.
16300         * po/Makefile: Likewise.
16301         * posix/Makefile: Likewise.
16302         * sysdeps/gnu/Makefile: Likewise.
16303         * sysdeps/mach/hurd/Makefile: Likewise.
16304         * sysdeps/sparc/sparc32/Makefile: Likewise.
16305
16306         [BZ #13118]
16307         * posix/Makefile (bug-regex32-ENV): Define.
16308         Patch by John Stanley <jpsinthemix@verizon.net>.
16309
16310         * misc/Makefile (headers): Add bits/select2.h.
16311         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
16312         * misc/bits/select2.h: New file.
16313         * include/bits/select2.h: New file.
16314         * debug/Makefile (routines): Add fdelt_chk.
16315         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
16316         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
16317         FD_ISSET.
16318         * debug/fdelt_chk.c: New file.
16319
16320         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
16321         * wcsmbs/test-wmemcmp.c: Likewise.
16322         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
16323         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
16324
16325 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16326
16327         * string/Makefile (strop-tests): Add memcmp.
16328         * string/test-wmemcmp.c: New file.
16329         * string/test-memcmp.c: Add wmemcmp support.
16330
16331 2011-09-08  Roland McGrath  <roland@hack.frob.com>
16332
16333         [BZ #13153]
16334         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
16335         2011-07-19 change.
16336
16337         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
16338         garbage value in a __mach_port_mod_refs call in the cases of the
16339         task-self and thread-self ports.
16340
16341 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16342
16343         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
16344
16345 2011-09-08  Andreas Schwab  <schwab@redhat.com>
16346
16347         * elf/dl-load.c (lose): Check for non-null L.
16348
16349 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
16350
16351         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
16352
16353         * elf/dl-libc.c (dlerror_run): Pass back error code from
16354         dl_catch_error.
16355
16356         [BZ #13123]
16357         * elf/dl-load.c (lose): Free l_origin if it is valid.
16358
16359         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
16360         names.
16361         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
16362         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
16363         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
16364         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
16365         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
16366         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
16367
16368 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16369
16370         * sysdeps/powerpc/fpu/e_hypot.c: New file.
16371         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
16372         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
16373         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
16374         * sysdeps/powerpc/fpu/k_cosf.c: New file.
16375         * sysdeps/powerpc/fpu/k_sinf.c: New file.
16376         * sysdeps/powerpc/fpu/s_cosf.c: New file.
16377         * sysdeps/powerpc/fpu/s_sinf.c: New file.
16378         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
16379         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
16380
16381 2011-08-15  Alan Modra  <amodra@gmail.com>
16382
16383         [BZ #13092]
16384         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
16385         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
16386         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
16387         ppc_mcount to static-only-routines.
16388         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
16389         __mcount_internal.
16390         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
16391         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
16392
16393 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
16394
16395         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
16396         for finite and infinity parameters.
16397
16398 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
16399
16400         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
16401         and add nop instructions for throughput optimization.
16402         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
16403
16404 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
16405
16406         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
16407         aligned copy for power7 with vector-scalar instructions.
16408         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
16409
16410 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
16411
16412         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
16413         AVX check.
16414
16415 2011-09-07  Andreas Schwab  <schwab@redhat.com>
16416
16417         [BZ #13144]
16418         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
16419         last change.
16420
16421 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
16422
16423         * sysdeps/unix/sysv/linux/x86_64/init-first.c
16424         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
16425         syscall wrapper around clock_gettime in __vdso_clock_gettime.
16426         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
16427         clock_gettime.
16428
16429 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
16430
16431         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
16432         Forgot to demangle the pointer.
16433
16434         * sysdeps/i386/sysdep.h: Define atom_text_section.
16435         * sysdeps/x86_64/sysdep.h: Likewise.
16436         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
16437         section with atom_text_section.
16438         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
16439         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
16440         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
16441         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
16442         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
16443
16444         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
16445         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
16446         already be defined.  Change to take two parameters and don't assign
16447         result to variable.  Adjust all users.
16448         Define INTERNAL_GETTIME if not already defined.
16449         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
16450         call.
16451         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
16452         HAVE_CLOCK_GETTIME_VSYSCALL.
16453         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
16454
16455         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
16456         gettimeofday vsyscall, just use time.
16457
16458 2011-09-06  Andreas Schwab  <schwab@redhat.com>
16459
16460         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
16461         <errno.h>.
16462
16463 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
16464
16465         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
16466         syscall on x86-64.
16467         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
16468         syscall.
16469         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
16470         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
16471         syscall if possible.
16472
16473 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
16474
16475         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
16476         e_ident.  Don't pass to find_mapsXX.
16477         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
16478
16479 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16480
16481         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16482         strchr-sse2-no-bsf strrchr-sse2-no-bsf
16483         * sysdeps/x86_64/multiarch/strchr.S: Update.
16484         Check bit_slow_BSF bit.
16485         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
16486         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
16487         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
16488
16489 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
16490
16491         [BZ #13134]
16492         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
16493         before glibc 2.15.
16494         (tryshell): Define.
16495         (__spawni): Change last parameter to be flag.  Test
16496         SPAWN_XFLAGS_USE_PATH flag to use path or not.
16497         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
16498         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
16499         * posix/spawni.c: Likewise.
16500         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
16501         * posix/spawnp.c: Likewise.  Change normal version to use
16502         SPAWN_XFLAGS_USE_PATH.
16503         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
16504         SPAWN_XFLAGS_TRY_SHELL.
16505
16506         [BZ #13150]
16507         * posix/glob.h: Remove gcc 1.x support.
16508
16509         [BZ #13068]
16510         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
16511
16512 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16513
16514         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16515         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
16516         strrchr-sse2-bsf
16517         * sysdeps/i386/i686/multiarch/strchr.S: New file.
16518         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
16519         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
16520         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
16521         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
16522         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
16523
16524 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16525
16526         * sysdeps/x86_64/wcscmp.S: New file.
16527
16528         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
16529         wcscmp-c wcscmp-sse2
16530         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
16531         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
16532         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
16533         * wcsmbs/wcscmp.c: Allow renaming.
16534
16535 2011-09-05  David S. Miller  <davem@davemloft.net>
16536
16537         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
16538         stack slot, rather than the struct return pointer slot.
16539         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
16540         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
16541         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
16542         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
16543
16544 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
16545
16546         * po/ja.po: Update from translation team.
16547
16548         [BZ #13144]
16549         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
16550         kernel in 64-bit binaries.
16551
16552 2011-09-01  David S. Miller  <davem@davemloft.net>
16553
16554         * elf/elf.h (HWCAP_SPARC_*): Move to..
16555         * sysdeps/sparc/sysdep.h: this new file and add new values.
16556         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
16557         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
16558         _DL_HWCAP_COUNT to 24.
16559         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
16560         entries.
16561         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
16562         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
16563         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
16564         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
16565         instead of magic constants.
16566         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
16567
16568 2011-08-31  David S. Miller  <davem@davemloft.net>
16569
16570         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
16571         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
16572         Reimplement to do errno handling inline.
16573         (SYSCALL_ERROR_HANDLER): New macro.
16574         (__SYSCALL_STRING): Do not do errno handling in asm.
16575         (__CLONE_SYSCALL_STRING): Delete.
16576         (__INTERNAL_SYSCALL_STRING): Delete.
16577         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
16578         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
16579         (PSEUDO): Reimplement to do errno handling inline.
16580         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
16581         (SYSCALL_ERROR_HANDLER): New macro.
16582         (__SYSCALL_STRING): Do not do errno handling in asm.
16583         (__CLONE_SYSCALL_STRING): Delete.
16584         (__INTERNAL_SYSCALL_STRING): Delete.
16585         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
16586         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
16587         i386.
16588         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
16589         (inline_syscall*): Add 'err' argument.
16590         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
16591         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
16592         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
16593         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
16594
16595         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
16596         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
16597
16598 2011-08-30  Andreas Schwab  <schwab@redhat.com>
16599
16600         * elf/rtld.c (dl_main): Relocate objects in dependency order.
16601
16602 2011-08-29  Jiri Olsa <jolsa@redhat.com>
16603
16604         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
16605         directive.
16606
16607 2011-08-24  David S. Miller  <davem@davemloft.net>
16608
16609         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
16610
16611 2011-08-24  Andreas Schwab  <schwab@redhat.com>
16612
16613         * elf/Makefile: Add rules to build and run unload8 test.
16614         * elf/unload8.c: New file.
16615         * elf/unload8mod1.c: New file.
16616         * elf/unload8mod1x.c: New file.
16617         * elf/unload8mod2.c: New file.
16618         * elf/unload8mod3.c: New file.
16619
16620         * elf/dl-close.c (_dl_close_worker): Reset private search list if
16621         it wasn't used.
16622
16623 2011-08-23  David S. Miller  <davem@davemloft.net>
16624
16625         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
16626         subtract stack bias.
16627         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
16628         %sp not %fp in calculations.
16629         (_JMPBUF_UNWINDS_ADJ): Likewise.
16630
16631         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
16632         (aio_suspend): Call it to force an exception region around the
16633         AIO_MISC_WAIT() invocation.
16634
16635 2011-08-23  Andreas Schwab  <schwab@redhat.com>
16636
16637         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
16638         backslash.
16639
16640 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
16641
16642         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
16643         protection macro.
16644         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
16645         and <dl-machine.h>.
16646         (Elf64_FuncDesc): Remove.
16647
16648 2011-08-22  David S. Miller  <davem@davemloft.net>
16649
16650         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
16651         sigaltstack check, add missing cfi directives.
16652         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
16653         missing cfi directives, and sigaltstack handling.
16654
16655 2011-08-16  Andreas Schwab  <schwab@redhat.com>
16656
16657         [BZ #11724]
16658         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
16659         object is seen twice.
16660         * elf/dl-fini.c (_dl_sort_fini): Likewise.
16661
16662         * elf/Makefile (distribute): Add tst-initorder2.c.
16663         (tests): Add tst-initorder2.
16664         (modules-names): Add tst-initorder2a tst-initorder2b
16665         tst-initorder2c tst-initorder2d.  Add rules to build them.
16666         ($(objpfx)tst-initorder2.out): New rule.
16667         * elf/tst-initorder2.c: New file.
16668         * elf/tst-initorder2.exp: New file.
16669
16670 2011-08-22  Andreas Schwab  <schwab@redhat.com>
16671
16672         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
16673
16674         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
16675         dependencies back to end of function.
16676
16677         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
16678         $(elfobjdir)/ld.so.
16679
16680 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
16681
16682         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
16683         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
16684         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
16685         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
16686         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
16687         of __vdso_gettimeofday.
16688         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
16689         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
16690         attribute_hidden.
16691         (_libc_vdso_platform_setup): Remove initialization of
16692         __vdso_gettimeofday and __vdso_time.
16693
16694 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
16695
16696         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
16697         and fgetc_unlocked.
16698         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
16699         getc_unlocked.
16700
16701         * elf/dl-open.c (add_to_global): Report additions to the global scope
16702         for LD_DEBUG=scopes.
16703         (dl_open_worker): Also print scope of newly loaded dependencies.
16704         (_dl_show_scope): Indicate if there is no scope.
16705
16706         [BZ #13114]
16707         * stdio-common/Makefile (tests): Add bug24.
16708         * stdio-common/bug24.c: New file.
16709
16710 2011-08-19  Andreas Jaeger  <aj@suse.de>
16711
16712         [BZ #13114]
16713         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
16714         non-existant file when using close-on-exec mode.
16715
16716 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
16717
16718         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
16719         the very first instruction.
16720
16721         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
16722         the CFI state in the end.
16723         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
16724         inclusion of dl-trampoline.h.
16725         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
16726
16727 2011-08-19  Andreas Schwab  <schwab@redhat.com>
16728
16729         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
16730         expectations for long double.
16731
16732         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
16733         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
16734
16735 2011-08-14  David S. Miller  <davem@davemloft.net>
16736
16737         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
16738         artificual limit depends upon the system page size.
16739
16740 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
16741
16742         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
16743         * resolv/Makefile: Define CFLAGS-libresolv.
16744
16745 2011-08-17  Andreas Schwab  <schwab@redhat.com>
16746
16747         * nss/makedb.c (compute_tables): Make variables used in nested
16748         function static.
16749
16750 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
16751
16752         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
16753         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
16754         if buffer was too small.
16755
16756         * elf/pldd.c (main): Attach to all threads in the process.
16757         Rewrite /proc handling to use *at functions.
16758
16759 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
16760
16761         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
16762         specifies first scope to show.
16763         (dl_open_worker): Update callers.  Move printing scope of new
16764         object to before the relocation.
16765         * elf/rtld.c (dl_main): Update _dl_show_scope call.
16766         * sysdeps/generic/ldsodefs.h: Update declaration.
16767
16768         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
16769         string for the scope number.
16770
16771 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
16772
16773         * nscd/servicescache.c (cache_addserv): Make sure written is always
16774         initialized.
16775
16776 2011-08-14  Roland McGrath  <roland@hack.frob.com>
16777
16778         * sysdeps/i386/i486/bits/atomic.h
16779         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
16780         statement expression, so as to suppress "set but not used" warning.
16781         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
16782
16783         * string/strncat.c (STRNCAT): Use prototype definition.
16784
16785         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
16786         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
16787         -Iprograms here.
16788         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
16789         (localedef-modules): Add localedef.
16790         (locale-modules): Add locale.
16791
16792         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
16793         * elf/rtld.c (dl_main): Invert order of assignment in last change,
16794         to avoid a warning.
16795
16796 2011-08-14  David S. Miller  <davem@davemloft.net>
16797
16798         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
16799         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
16800
16801 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
16802
16803         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
16804         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
16805         * elf/rtld.c (dl_main): Set l_name of vDSO.
16806         Call _dl_show_scope when DL_DEBUG_SCOPES.
16807         (process_dl_debug): Recognize scopes flag and also set it for all.
16808         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
16809         Declare _dl_show_scope.
16810
16811         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
16812         (do_dlopen): Pass caller_dlopen to dl_open.
16813         (__libc_dlopen_mode): Initialize caller_dlopen.
16814
16815         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
16816         of libc.  Make tolower call locale-independent.  Optimize a bit by
16817         using isdigit instead of isalnum.
16818         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
16819
16820 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
16821
16822         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
16823         was a dependency or dynamically loaded.
16824
16825 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
16826
16827         * intl/l10nflist.c: Allow architecture-specific pop function.
16828         * sysdeps/x86_64/l10nflist.c: New file.
16829
16830         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
16831         classification.
16832
16833 2011-08-10  Andreas Schwab  <schwab@redhat.com>
16834
16835         * include/dirent.h: Add libc_hidden_proto for scandirat and
16836         scandirat64.  Don't declare __scandirat64.
16837         * dirent/scandirat.c: Add libc_hidden_def.
16838         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
16839         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
16840
16841 2011-08-10  David S. Miller  <davem@davemloft.net>
16842
16843         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
16844         enum.
16845         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
16846         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
16847         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
16848
16849 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
16850
16851         * Versions.def [libc]: Add GLIBC_2.15.
16852         * dirent/Makefile (routines): Add scandirat and scandirat64.
16853         * dirent/Versions [libc]: Export scandirat and scandirat64 for
16854         GLIBC_2.15.
16855         * dirent/dirent.h: Declare scandirat and scandirat64.
16856         * dirent/scandirat.c: New file.
16857         * dirent/scandirat64.c: New file.
16858         * sysdeps/wordsize-64/scandirat.c: New file.
16859         * sysdeps/wordsize-64/scandirat64.c: New file.
16860         * dirent/opendir.c: Define opendirat.
16861         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
16862         using scandirat.
16863         * dirent/scandir64.c: Adjust for scandir.c change.
16864         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
16865         __scandirat64, and __scandir_cancel_handler.
16866         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
16867         additional parameter and use openat instead of open (outside of ld.so).
16868         Add new __opendir as wrapper around __opendirat.
16869         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
16870         here without requiring old scandirat implementation.
16871
16872 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
16873
16874         * dirent/scandir.c (cancel_handler): Renamed to
16875         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
16876         defined.  Adjust users.
16877         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
16878         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
16879
16880 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
16881
16882         * string/test-string.h (IMPL): Use __STRING to expand name and then
16883         stringify it.
16884
16885         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
16886         of cleanups.
16887
16888 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16889
16890         * string/Makefile: Update.
16891         (strop-tests): Append strncat.
16892         * string/test-wcscmp.c: New file.
16893         New comprehensive test for wcscmp.
16894         * string/test-strcmp.c: Update.
16895         (WIDE): New define.
16896
16897 2011-07-22  Andreas Schwab  <schwab@redhat.com>
16898
16899         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
16900         line.
16901
16902 2011-07-26  Andreas Schwab  <schwab@redhat.com>
16903
16904         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
16905         encoding to ACE if AI_IDN.
16906
16907 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
16908
16909         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
16910         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
16911
16912 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16913
16914         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
16915         Fix overflow bug in strncat.
16916         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
16917
16918         * string/test-strncat.c: Update.
16919         Add new tests for checking overflow bugs.
16920
16921 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16922
16923         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16924         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
16925         * sysdeps/i386/i686/multiarch/strcat.S: New file.
16926         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
16927         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
16928         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
16929         * sysdeps/i386/i686/multiarch/strncat.S: New file.
16930         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
16931         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
16932
16933         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
16934         (USE_AS_STRCAT): Define.
16935         Add strcat and strncat support.
16936         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
16937
16938 2011-07-25  Andreas Schwab  <schwab@redhat.com>
16939
16940         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
16941         __n bigger than INT_MAX+1.
16942         (__strncmp_g): Likewise.
16943
16944 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
16945
16946         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
16947         * libio/stido.h: Likewise.
16948
16949         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
16950         (AF_NFC): Define.
16951         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
16952         (AF_NFC): Define.
16953
16954         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
16955         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
16956         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
16957         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
16958         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
16959
16960         [BZ #13021]
16961         * scripts/test-installation.pl: Don't expect libnss_test1 to be
16962         installed.
16963
16964         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
16965         typo.
16966         (_dl_x86_64_save_sse): Likewise.
16967
16968 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
16969
16970         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
16971         OSXSAVE.
16972         (_dl_x86_64_save_sse): Likewise.
16973
16974         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
16975
16976         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
16977
16978 2011-07-21  Andreas Schwab  <schwab@redhat.com>
16979
16980         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
16981         change.
16982         (_dl_x86_64_save_sse): Use correct AVX check.
16983
16984 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16985
16986         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
16987         bug in strncpy/strncat.
16988         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
16989
16990 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
16991
16992         * string/tester.c (test_strcat): Add tests for different alignments
16993         of source and destination.
16994         (test_strncat): Likewise.
16995
16996 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
16997
16998         [BZ #12852]
16999         * posix/glob.c (glob): Check passed in values before using them in
17000         expressions to avoid some overflows.
17001         (glob_in_dir): Likewise.
17002
17003         [BZ #13007]
17004         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
17005         check for AVX enablement so that we don't crash with old kernels and
17006         new hardware.
17007         * elf/tst-audit4.c: Add same checks here.
17008         * elf/tst-audit6.c: Likewise.
17009
17010         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
17011
17012 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
17013
17014         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
17015
17016 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
17017
17018         * po/cs.po: Update from translation team.
17019         * po/bg.po: Likewise.
17020
17021 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
17022
17023         * misc/sys/cdefs.h: Add support for const attribute.
17024         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
17025         to gnu_dev_{major,minor,makedev} functions.
17026
17027 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
17028
17029         * intl/dcigettext.c (get_output_charset): Add missing bracket.
17030
17031 2011-07-20  Andreas Schwab  <schwab@redhat.com>
17032
17033         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
17034         strlen results.
17035
17036 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17037
17038         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
17039         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
17040         register in order to avoid conflicts with the soft frame pointer
17041         being held in r11 when necessary.
17042         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
17043         (INTERNAL_VSYSCALL_NCS): Likewise.
17044
17045 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
17046
17047         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
17048         * elf/dl-fini.c (_dl_fini): Adjust caller.
17049         * elf/dl-close.c (_dl_close_worker): Likewise.
17050         * sysdeps/generic/ldsodefs.h: Adjust declaration.
17051
17052 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
17053
17054         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
17055         "aux_cache->nlibs < 0".
17056
17057         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
17058         in the reload-count case.
17059
17060 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
17061
17062         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
17063         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
17064         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
17065         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
17066         * sysdeps/x86_64/multiarch/strcat.S: New file.
17067         * sysdeps/x86_64/multiarch/strncat.S: New file.
17068         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
17069         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
17070         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
17071         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
17072         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
17073         (USE_AS_STRCAT): Define.
17074         Add strcat and strncat support.
17075         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
17076         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
17077         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
17078         * string/strncat.c: Update.
17079         (USE_AS_STRNCAT): Define.
17080         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17081         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
17082         and i7.
17083         * sysdeps/x86_64/multiarch/init-arch.h
17084         (bit_Prefer_PMINUB_for_stringop): New.
17085         (index_Prefer_PMINUB_for_stringop): Likewise.
17086         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
17087         bit_Prefer_PMINUB_for_stringop.
17088
17089 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
17090
17091         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
17092         buffer64.
17093         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
17094         of casting of buffer.
17095         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
17096         buffer32 and buffer64.
17097         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
17098         writes instead of casting of buffer.
17099         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
17100         buffer32.
17101         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
17102         casting of buffer.
17103
17104 2011-07-19  Andreas Schwab  <schwab@redhat.com>
17105
17106         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
17107
17108 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
17109
17110         * nscd/nscd.c (termination_handler): Don't do anything for a database
17111         if it has not yet been initialized.
17112
17113 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
17114
17115         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
17116
17117 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
17118
17119         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
17120
17121 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
17122
17123         * po/nl.po: Update from translation team.
17124         * po/sv.po: Likewise.
17125
17126 2011-07-16  Roland McGrath  <roland@hack.frob.com>
17127
17128         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
17129         now disallowed by GCC.
17130
17131         * configure.in (use-default-link): Default to yes if a test -shared
17132         link meets our qualifications.
17133         * configure: Regenerated.
17134
17135         * config.make.in (output-format): New variable.
17136         * configure.in: Check for ld --print-output-format support.
17137         * configure: Regenerated.
17138         * Makerules ($(common-objpfx)format.lds)
17139         [$(output-format) != unknown]: Just use $(output-format),
17140         instead of the linker-script munging.
17141
17142 2011-07-14  Roland McGrath  <roland@hack.frob.com>
17143
17144         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
17145         of $(common-objpfx)shlib.lds.
17146         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
17147
17148         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
17149         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
17150
17151         * configure.in (-z relro check): Adjust test code to add a large
17152         writable data section after it.
17153         * configure: Regenerated.
17154
17155 2011-07-11  Roland McGrath  <roland@hack.frob.com>
17156
17157         * configure.in (-z relro check): Fix test code to make the variable
17158         truly const.
17159         * configure: Regenerated.
17160
17161 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
17162
17163         * nscd/nscd.h (struct traced_file): Define.
17164         (struct database_dyn): Remove inotify_descr, reset_res, and filename
17165         elements.  Add traced_files.
17166         (inotify_fd): Declare.
17167         (register_traced_file): Declare.
17168         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
17169         (inotify_fd): Export.
17170         (resolv_conf_descr): Remove.
17171         (nscd_init): Move inotify descriptor creation to main.
17172         Don't register files for notification here.
17173         (register_traced_file): New function.
17174         (invalidate_cache): Don't use reset_res to determine whether to call
17175         res_init, go through the list of registered files.
17176         (main_loop_poll): The inotify descriptors are now stored in the
17177         structures for the traced files.
17178         (main_loop_epoll): Likewise
17179         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
17180         to __nss_disable_nscd.
17181         * nscd/cache.c (prune_cache): There is no single inotify descriptor
17182         for a database anymore.  Check the records for all the registered
17183         files instead.
17184         * nss/Makefile (libnss_files-routines): Add files-init.
17185         (libnss_db-routines): Add db-init.
17186         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
17187         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
17188         * nss/nss_db/db-init.c: New file.
17189         * nss/nss_files/files-init.c: New file.
17190         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
17191         __nss_lookup_function.
17192         (__nss_lookup_function): Call nss_load_library.
17193         (nss_load_all_libraries): New function.
17194         (__nss_disable_nscd): Take parameter with callback function for files
17195         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
17196         used for the cached services.
17197         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
17198         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
17199         options for features to all the files in nscd.
17200
17201         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
17202
17203 2011-07-10  Roland McGrath  <roland@hack.frob.com>
17204
17205         * csu/elf-init.c (__libc_csu_init): Comment typo.
17206
17207 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
17208
17209         * po/pl.po: Update from translation team.
17210         * po/ja.po: Likewise.
17211         * po/ru.po: Likewise.
17212         * po/ko.po: Likewise.
17213         * po/fr.po: Likewise.
17214
17215 2011-07-09  Roland McGrath  <roland@hack.frob.com>
17216
17217         * configure.in (.ctors/.dtors header and trailer check):
17218         Use an empirical test on a built program.
17219         * configure: Regenerated.
17220
17221         * configure.in (-z relro check): Use an empirical test on a built DSO.
17222         Detect, but do not require, on ia64.
17223         * configure: Regenerated.
17224
17225         * configure.in (READELF): Find it with AC_CHECK_TOOL.
17226         Update tests that use readelf to use $READELF instead.
17227         * configure: Regenerated.
17228
17229 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
17230
17231         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
17232         if the result is not used.
17233
17234 2011-07-05  Andreas Jaeger  <aj@suse.de>
17235
17236         [BZ#9696]
17237         * stdlib/tst-strtod.c: Add testcase.
17238
17239 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
17240
17241         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
17242         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
17243         The latter has a higher limit.  Take additional parameter to pass to
17244         the new function.
17245         (__pathconf): Pass file to __statfs_link_max.
17246         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
17247         __statfs_link_max.
17248         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
17249         __statfs_link_max.
17250
17251         [BZ #12868]
17252         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
17253         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
17254         Handle Lustre.
17255         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
17256         (__statfs_filesize_max): Likewise.
17257         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
17258
17259 2011-07-05  Andreas Jaeger  <aj@suse.de>
17260
17261         * resolv/res_comp.c (dn_skipname): Remove unused variable.
17262
17263 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
17264
17265         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
17266         `status' variable.
17267         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
17268         Likewise.
17269
17270 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
17271
17272         * Makefile (strop-tests): Add strncat.
17273         * string/test-strncat.c: New file.
17274
17275 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
17276
17277         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
17278
17279 2011-06-21  Andreas Jaeger  <aj@suse.de>
17280
17281         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
17282         Copy rule from iconvdata/Makefile.
17283
17284 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
17285
17286         [BZ #12922]
17287         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
17288         but no long options are defined, just return 'W'.
17289
17290 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
17291
17292         [BZ #9696]
17293         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
17294
17295 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
17296
17297         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
17298         netgroups to read.
17299         (innetgr): Likewise.
17300
17301 2011-07-05  Roland McGrath  <roland@hack.frob.com>
17302
17303         * config.make.in (install_root): Default to $(DESTDIR).
17304
17305 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
17306
17307         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
17308
17309 2011-07-02  Roland McGrath  <roland@hack.frob.com>
17310
17311         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
17312
17313         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
17314         containing directory rather than embedding absolute directory names.
17315
17316         * scripts/check-local-headers.sh: Rewritten using awk.
17317         Match by word, not by line.  Print error messages for matches.
17318         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
17319
17320         * Makerules [shlib-lds-flags empty]:
17321         ($(common-objpfx)libc_pic.opts): New target.
17322         ($(common-objpfx)libc_pic.os.clean): New target.
17323         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
17324
17325         * config.make.in (OBJCOPY): New variable.
17326         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
17327         * configure: Regenerated.
17328
17329         * config.make.in (use-default-link): New variable.
17330         * configure.in (use_default_link): Grok --with-default-link to set it.
17331         * configure: Regenerated.
17332         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
17333         (shlib-lds, shlib-lds-flags): Define to empty.
17334
17335         * Makerules (shlib-lds): New variable.
17336         (shlib-lds-flags): New variable.
17337         (build-shlib, build-moduile, build-module-asneeded): Use it.
17338         ($(common-objpfx)libc.so): Use $(shlib-lds).
17339         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
17340         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
17341
17342         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
17343         DT_FLAGS/DT_FLAGS_1 with zero flags.
17344
17345         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
17346         linker script munging.
17347
17348 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
17349
17350         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
17351         as 128-bit value.
17352         * crypt/sha512.c (sha512_process_block): Perform total addition using
17353         128-bit if possible.
17354         (__sha512_finish_ctx): Likewise.
17355         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
17356         as 64-bit value.
17357         * crypt/sha256.c (SWAP64): Define.
17358         (sha256_process_block): Perform total addition using 64-bit if
17359         possible.
17360         (__sha256_finish_ctx): Likewise.
17361
17362 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
17363
17364         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
17365         * nscd/initgrcache.c (addinitgroupsX): Likewise.
17366         * nscd/hstcache.c (cache_addhst): Likewise.
17367         * nscd/grpcache.c (cache_addgr): Likewise.
17368         * nscd/aicache.c (addhstaiX): Likewise
17369         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
17370
17371 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
17372
17373         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
17374         * nscd/initgrcache.c (addinitgroupsX): Likewise.
17375         * nscd/hstcache.c (cache_addhst): Likewise.
17376         * nscd/grpcache.c (cache_addgr): Likewise.
17377         * nscd/aicache.c (addhstaiX): Likewise
17378
17379 2011-07-01  Andreas Schwab  <schwab@redhat.com>
17380
17381         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
17382         domain only when needed.
17383
17384 2011-06-30  Andreas Schwab  <schwab@redhat.com>
17385
17386         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
17387         is always restored.
17388
17389 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
17390
17391         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
17392         are re-adding the entry.
17393         * nscd/servicescache.c (cache_addserv): Likewise.
17394
17395 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
17396
17397         * sysdeps/generic/dl-irel.h: fix protection against multiple
17398         inclusions.
17399         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
17400
17401 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
17402
17403         [BZ #12935]
17404         * malloc/memusage.sh: Fix quoting in message.
17405         * debug/xtrace.sh: Likewise.
17406
17407         * configure.in: Remove support for --experimental-malloc option, make
17408         it the default.
17409         * config.make.in: Likewise.
17410         * malloc/Makefile: Likewise.
17411
17412 2011-06-27  Andreas Schwab  <schwab@redhat.com>
17413
17414         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
17415         two-byte characters.
17416
17417 2011-06-27  Roland McGrath  <roland@hack.frob.com>
17418
17419         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
17420         AC_CACHE_CHECK invocation.
17421         * configure: Regenerated.
17422
17423         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
17424
17425 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
17426
17427         [BZ #12350]
17428         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
17429         bit from old_res_options.
17430
17431         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
17432
17433         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
17434         value type for setfct.
17435
17436 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
17437
17438         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
17439         __gettimeofday instead of gettimeofday.
17440
17441 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
17442
17443         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
17444
17445 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
17446
17447         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
17448
17449         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
17450         info.
17451
17452 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
17453
17454         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
17455         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
17456         strcpy-sse2-unaligned strncpy-sse2-unaligned
17457         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
17458         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
17459         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
17460         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
17461         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
17462         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
17463         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
17464         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
17465         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
17466         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
17467         (STRCPY): Support SSE2 and SSSE3 versions.
17468
17469 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
17470
17471         [BZ #12874]
17472         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
17473         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
17474         kernels which artificially limit size of requests.
17475
17476 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
17477
17478         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
17479         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
17480         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
17481         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
17482         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
17483         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
17484         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
17485         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
17486         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
17487         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
17488         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
17489         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
17490         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
17491         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
17492         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
17493         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17494         Enable unaligned load optimization for Intel Core i3, i5 and i7
17495         processors.
17496         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
17497         Define.
17498         (index_Fast_Unaligned_Load): Define.
17499         (HAS_FAST_UNALIGNED_LOAD): Define.
17500
17501 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
17502
17503         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
17504
17505 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
17506
17507         [BZ #12907]
17508         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
17509         until it is clear that the information is realy needed.
17510         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
17511
17512 2011-06-22  Andreas Schwab  <schwab@redhat.com>
17513
17514         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
17515
17516 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
17517
17518         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
17519         /sys/devices/system/cpu/online if it is usable.
17520
17521         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
17522         reading the information from the /proc filesystem to once a second.
17523
17524 2011-06-21  Andreas Jaeger  <aj@suse.de>
17525
17526         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
17527         NULL after inclusion of kernel headers.
17528
17529 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
17530
17531         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
17532         calls to internal_setent.
17533
17534         [BZ #12885]
17535         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
17536         addresses using gethostbyname4_r ignore IPv4 addresses.
17537
17538         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
17539         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
17540
17541         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
17542
17543 2011-06-20  David S. Miller  <davem@davemloft.net>
17544
17545         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
17546         inclusions.
17547         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
17548
17549         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
17550         (elf_irel): Use it.
17551         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
17552         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
17553         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
17554         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
17555         * sysdeps/x86_64/dl-irel.h: Likewise.
17556
17557         * elf/dl-runtime.c: Use elf_ifunc_invoke.
17558         * elf/dl-sym.c: Likewise.
17559
17560 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
17561
17562         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
17563         need to dereference resplen2.
17564
17565 2011-06-14  Andreas Schwab  <schwab@redhat.com>
17566
17567         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
17568
17569 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
17570
17571         * Makeconfig: Define vardbdir and inst_vardbdir.
17572         * nss/Makefile: Add rules to install db-Makefile.
17573
17574         * nss/nss_db/db-XXX.c: Cleanup.
17575
17576         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
17577         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
17578         GLIBC_PRIVATE.
17579         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
17580         * nss/makedb.c: Implement -g option to specify that value strings
17581         are generated and should not be added to table iterated over for
17582         get*ent calls.
17583         * nss/nss_db/db-initgroups.c: New file.
17584
17585         * nss/getent.c: Add support for initgroups lookups through getgrouplist
17586         interface.
17587
17588         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
17589         (internal_getgrouplist): Adjust to name change.
17590         Update use_initgroups_entry if this is not the first call.
17591         * nss/databases.def: Add initgroups entry.
17592
17593         * nss/makedb.c (compute_tables): Check result of multiple hash table
17594         sizes to minimize maximum chain length.
17595
17596 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
17597
17598         * Versions.def: Add entry for libnss_db.
17599         * shlib-versions: Likewise.
17600         * nss/Makefile: Add rules to build libnss_db.
17601         * nss/Versions: Add libnss_db information.  Organize libnss_files
17602         entries better.
17603         * nss/db-Makefile: Add gshadow support.  Change rules for the new
17604         makedb progra.  Some minor improvements to generate smaller files.
17605         * nss/nss_db/nss_db.h: Move NSS database header data structures to
17606         here from...
17607         * nss/makedb.c: ...here.
17608         Improve database format to be smaller and require less memory at
17609         runtime.
17610         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
17611         db anymore.
17612         * nss/nss_db/db-netgrp.c: Likewise.
17613         * nss/nss_db/db-open.c: Likewise.
17614         * nss/nss_files/flies-XXX.x: Adjust comments.
17615         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
17616         * nss/nss_files/files-grp.c: Likewise.
17617         * nss/nss_files/files-hosts.c: Likewise.
17618         * nss/nss_files/files-network.c: Likewise.
17619         * nss/nss_files/files-proto.c: Likewise.
17620         * nss/nss_files/files-pwd.c: Likewise.
17621         * nss/nss_files/files-rpc.c: Likewise.
17622         * nss/nss_files/files-service.c: Likewise.
17623         * nss/nss_files/files-sgrp.c: Likewise.
17624         * nss/nss_files/files-spwd.c: Likewise.
17625         * nss/nss_db/db-alias.c: Removed.
17626         * nss/nss_db/dummy-db.h: Removed.
17627
17628 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
17629
17630         * nss/makedb.c: Rewritten to not use database library.
17631         * nss/Makefile: Update to build new makedb program.
17632
17633 2011-06-14  Andreas Jaeger  <aj@suse.de>
17634
17635         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
17636         memset declaration.
17637
17638 2011-06-10  Andreas Schwab  <schwab@redhat.com>
17639
17640         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
17641         tmpbuf.
17642
17643 2011-06-10  Roland McGrath  <roland@hack.frob.com>
17644
17645         * Makerules (shlib.lds): Fail if the linker script comes out empty.
17646         * elf/Makefile ($(objpfx)ld.so): Likewise.
17647
17648         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
17649         Don't list ld.so twice in dependencies.
17650
17651         * posix/bug-regex31.c: Include <stdlib.h>.
17652
17653         * nscd/hstcache.c (cache_addhst): Remove unused variable.
17654
17655         * nis/nss_compat/compat-spwd.c
17656         (getspent_next_nss_netgr): Remove unused variable.
17657         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
17658
17659         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
17660         nonmembers" output to use the right array.
17661
17662         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
17663
17664         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
17665
17666         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
17667         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
17668         * catgets/gencat.c (read_input_file): Likewise.
17669         * locale/programs/locarchive.c (enlarge_archive): Likewise.
17670
17671         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
17672         variable definition inside #if's controlling its use.
17673
17674         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
17675
17676         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
17677
17678         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
17679
17680         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
17681         unreachable code.
17682
17683         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
17684
17685         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
17686         * configure: Regenerated.
17687
17688         * Makerules: Revert last change.
17689         * elf/Makefile: Likewise.
17690
17691 2011-06-09  Roland McGrath  <roland@hack.frob.com>
17692
17693         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
17694         * elf/Makefile ($(objpfx)librtld.os): Likewise.
17695         (reloc-link): Likewise.
17696
17697 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
17698
17699         * elf/Makefile: Add rules to build pldd.
17700         * elf/pldd.c: New file.
17701         * elf/pldd-xx.c: New file.
17702
17703 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
17704
17705         * version.h: Update for 2.15 development version.
17706
17707 2011-06-07  David S. Miller  <davem@davemloft.net>
17708
17709         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
17710         ifuncs.
17711         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
17712         elf_machine_lazy_rel): Likewise.
17713         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
17714         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
17715         elf_machine_lazy_rel): Likewise.
17716         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
17717         dl_hwcap via passed in argument.
17718         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
17719         Likewise.
17720
17721 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17722
17723         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
17724
17725 2011-06-06  Roland McGrath  <roland@hack.frob.com>
17726
17727         [BZ #12849]
17728         * manual/fdl-1.1.texi: New file, verbatim from:
17729         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
17730         * manual/lgpl-2.1.texi: New file, verbatim from:
17731         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
17732         * manual/Makefile (licenses): New variable, list those new file names.
17733         (texis): Use it.
17734         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
17735
17736         * manual/fdl.texi: File removed.
17737         * manual/lesser.texi: File removed.
17738         * manual/libc.texinfo (Copying, Documentation License):
17739         Use new @include file names, put @appendix directive before @include.
17740
17741 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
17742
17743         [BZ #12841]
17744         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
17745         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
17746         (mq_open): Add __NTH.
17747
17748 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
17749
17750         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17751         Assume Intel Core i3/i5/i7 processor if AVX is available.
17752
17753 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
17754
17755         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
17756         typo.
17757
17758 2011-05-31  Andreas Schwab  <schwab@redhat.com>
17759
17760         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
17761         memory.  Use alloca_account.  Fix memory leak when retrying.
17762
17763 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
17764
17765         * version.h (RELEASE): Bump for 2.14 release.
17766         * include/features.h (__GLIBC_MINOR__): Bump to 14.
17767
17768         * config.make.in (RANLIB): Remove entry.
17769
17770 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
17771
17772         * po/Makefile (po-sed-cmd): Add ksh to extensions.
17773         (libc.pot): Work around missing support for .ksh extension in xgettext.
17774
17775         [BZ #12684]
17776         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
17777         if both request failed.
17778         (send_dg): In case of server errors clear resplen or *resplen2.
17779
17780         [BZ #12454]
17781         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
17782         when there are multiple maps.
17783         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
17784         (_dl_fini): Remove test here.
17785
17786         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
17787
17788 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
17789
17790         [BZ #12350]
17791         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
17792         bit from old_res_options.
17793         (gaih_inet): Likewise.
17794
17795         [BZ #11099]
17796         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
17797         as signed.
17798
17799         * resolv/res_init.c (res_setoptions): Make the code more compact.
17800
17801         [BZ #11558]
17802         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
17803         set RES_USEVC.
17804
17805         [BZ #11634]
17806         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
17807
17808         * malloc/malloc.h: Mark malloc hook variables as deprecated.
17809
17810         [BZ #11781]
17811         * malloc/malloc.h: Declare malloc hook variables as volatile.
17812
17813         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
17814         in last patch.
17815
17816         [BZ #11799]
17817         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
17818         raise in the comment.
17819         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
17820         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
17821         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
17822
17823 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
17824
17825         [BZ #12811]
17826         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
17827         grow the buffers more if it already has to be sufficient.
17828         (build_wcs_upper_buffer): Likewise.
17829         * posix/regexec.c (check_matching): Likewise.
17830         (clean_state_log_if_needed): Likewise.
17831         (extend_buffers): Don't enlarge buffers beyond size of the input
17832         buffer.
17833         Patches mostly by Emil Wojak <emil@wojak.eu>.
17834         * posix/bug-regex32.c: New file.
17835         * posix/Makefile (tests): Add bug-regex32.
17836
17837         * locale/findlocale.c (_nl_find_locale): Return right away if
17838         _nl_explode_name failed.
17839         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
17840
17841         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
17842
17843         * debug/xtrace.sh: Unify messages.
17844         * malloc/memusage.sh: Likewise.
17845
17846         [BZ #12813]
17847         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
17848         time symbol from vDSO.  Substitute with vsyscall if not available.
17849         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
17850         __vdso_time.
17851
17852         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
17853         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
17854         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
17855         Add sendmmsg and internal_sendmmsg.
17856         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
17857         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
17858         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
17859
17860         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
17861         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
17862         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
17863
17864 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
17865
17866         [BZ #12813]
17867         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
17868         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
17869         available.
17870         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
17871         __vdso_getcpu.
17872
17873         [BZ #12814]
17874         * iconvdata/Makefile (tests): Add bug-iconv9.
17875         * iconvdata/bug-iconv9.c: New file.
17876
17877 2011-05-27  Andreas Schwab  <schwab@redhat.com>
17878
17879         [BZ #12814]
17880         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
17881
17882 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
17883
17884         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
17885         (struct user_regs_struct): Change intcs field back to cs.
17886
17887 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
17888
17889         * po/ja.po: Update from translation team.
17890
17891 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
17892
17893         [BZ #12795]
17894         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
17895         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
17896
17897 2011-05-20  Andreas Schwab  <schwab@redhat.com>
17898
17899         * stdlib/longlong.h: Update from GCC.
17900
17901 2011-05-23  Andreas Schwab  <schwab@redhat.com>
17902
17903         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
17904         parameter name.
17905         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
17906         Add parameter name.
17907         (__sysconf): Pass it down.
17908
17909 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
17910
17911         [BZ #12671]
17912         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
17913         some situations.
17914         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
17915         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
17916         add in in __libc_use_alloca calls.  Adjust callers.
17917         (glob): Use malloc in some situations.
17918
17919         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
17920         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
17921         pltexit.
17922
17923 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
17924
17925         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
17926         and CLOCK_BOOTTIME_ALARM.
17927
17928         [BZ #12782]
17929         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
17930         is returned.
17931
17932         * string/_strerror.c (__strerror_r): Print negative errors as signed
17933         numbers.
17934
17935         [BZ #12777]
17936         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
17937         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
17938         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
17939
17940         * configure.in: Fix typo in redirection and correct removal of test
17941         files in two cases.
17942
17943         [BZ #12788]
17944         * locale/setlocale.c (new_composite_name): Fix test to check for
17945         identical name of all categories.
17946
17947         [BZ #12792]
17948         * libio/filedoalloc.c (local_isatty): New function.
17949         (_IO_file_doallocate): Use local_isatty.
17950         * stdio-common/perror.c (perror): In case a new stream is used
17951         forward the stream error.
17952         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
17953         error flag.
17954
17955 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
17956
17957         [BZ #11869]
17958         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
17959         alloca.
17960         * include/alloca.h (extend_alloca_account): Define.
17961
17962         [BZ #11857]
17963         * posix/regex.h: Fix comments with documentation of user-accessible
17964         fields after compilation and describe correct free'ing of pattern
17965         after re_compile_pattern.
17966         Patch by Reuben Thomas <rrt@sc3d.org>.
17967
17968 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
17969
17970         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
17971         and -mno-altivec to prevent the compiler from using Altivec and/or
17972         VSX instructions when the corresponding registers are not available.
17973
17974 2011-05-19  Andreas Schwab  <schwab@redhat.com>
17975
17976         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
17977
17978 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
17979
17980         * libio/freopen.c (freopen): Use __dup2, not dup2.
17981         * libio/freopen64.c (freopen64): Likewise.
17982
17983 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
17984
17985         [BZ #12775]
17986         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
17987         * math/Makefile (tests): Add test-powl.
17988         (CFLAGS-test-powl.c): Define.
17989         * math/test-powl.c: New file.
17990
17991 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
17992
17993         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
17994
17995 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
17996
17997         [BZ #11837]
17998         * iconvdata/gb18030.c: Update to GB18020-2005.
17999
18000 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
18001
18002         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
18003         RE_SYNTAX_POSIX_AWK): Update to match recent development.
18004         Patch by Aharon Robbins <arnold@skeeve.com>.
18005
18006         [BZ #11892]
18007         * stdlib/putenv.c (putenv): Don't always create copy of the variable
18008         on the stack.
18009
18010         [BZ #11895]
18011         * misc/pselect.c (__pselect): Handle timeout value errors hidden
18012         through underflows.
18013
18014         [BZ #12766]
18015         * misc/error.c (error_at_line): Ensure file_name and old_file_name
18016         point to strings before performing equality test for error_one_per_line
18017         mode.
18018
18019         [BZ #11697]
18020         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
18021
18022         [BZ #11820]
18023         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
18024         (struct user_fpregs_struct): Avoid __uint*_t types.
18025
18026         [BZ #6420]
18027         * malloc/mtrace.c (tr_where): Add additional parameter to point to
18028         symbol info.  Use it instead of calling _dl_addr locally.
18029         (lock_and_info): New function.
18030         (tr_freehook): Call lock_and_info and pass symbol info as additional
18031         parameter to tr_where.
18032         (tr_mallochook): Likewise.
18033         (tr_reallochook): Likewise.
18034         (tr_memalignhook): Likewise.
18035
18036         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
18037         used and couldn't be at all thread-safe.
18038
18039 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
18040
18041         * libio/freopen.c (freopen): Don't close old file descriptor
18042         before the new one is opened.  Instead dup the new file descriptor
18043         to the old one after the new stream is created.
18044         * libio/freopen64.c (freopen64): Likewise.
18045         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
18046         * libio/fileops.c (_IO_new_file_close_it): Handle new
18047         _IO_FLAGS2_NOCLOSE flag.
18048         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
18049         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
18050         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
18051         _IO_FLAGS2_NOCLOSE flag.
18052         * include/unistd.h: Add hidden_proto for dup3.
18053         Define __have_dup3.
18054         * io/dup3.c: Define hidden symbol.
18055         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
18056
18057         [BZ #7101]
18058         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
18059         when an incomplete long option is used.
18060         * posix/tst-getopt_long1.c: New file.
18061         * posix/Makefile (tests): Add tst-getopt_long1.
18062
18063         [BZ #10138]
18064         * scripts/config.guess: Update from autoconf-2.68.
18065         * scripts/config.sub: Likewise.
18066
18067         [BZ #10157]
18068         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
18069         tests into ...
18070         (has_cpuclock): ...this.  New function.
18071         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
18072         macro here based on has_cpuclock code.
18073
18074         [BZ #10149]
18075         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
18076         First byte (not low byte) is now always NUL.
18077         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
18078
18079         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
18080         Use non-cancelable interfaces.
18081
18082         [BZ #9809]
18083         * locale/iso-639.def: Add entry for Sorani.
18084
18085         [BZ #11901]
18086         * include/stdlib.h: Move include protection to the right place.
18087         Define abort_msg_s.  Declare __abort_msg with it.
18088         * stdlib/abort.c (__abort_msg): Adjust type.
18089         * assert/assert.c (__assert_fail_base): New function.  Majority
18090         of code from __assert_fail.  Allocate memory for __abort_msg with
18091         mmap.
18092         (__assert_fail): Now call __assert_fail_base.
18093         * assert/assert-perr.c: Remove bulk of implementation.  Use
18094         __assert_fail_base.
18095         * include/assert.hL Declare __assert_fail_base.
18096         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
18097         mmap.
18098         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
18099
18100 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
18101
18102         [BZ #11952]
18103         [BZ #12453]
18104         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
18105         until all modules are registered in the DTV.
18106         * elf/Makefile: Add rules to build and run tst-tls19.
18107         * elf/tst-tls19.c: New file.
18108         * elf/tst-tls19mod1.c: New file.
18109         * elf/tst-tls19mod2.c: New file.
18110         * elf/tst-tls19mod3.c: New file.
18111         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
18112
18113         [BZ #12083]
18114         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
18115         correctly.
18116
18117         [BZ #12601]
18118         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
18119         two-byte sequence errors.
18120         * iconvdata/Makefile (tests): Add bug-iconv8.
18121         * iconvdata/bug-iconv8.c: New file.
18122
18123         [BZ #12626]
18124         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
18125         buf2 definition.
18126
18127         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
18128
18129         [BZ #12432]
18130         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
18131         (dummy_getcfa): New function.
18132         (init): Get _Unwind_GetCFA address, use dummy if not found.
18133         (backtrace_helper): In recursion check, also check whether CFA changes.
18134         (__backtrace): Completely initialize arg.
18135
18136         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
18137         storing incomplete byte sequence in state object.  Avoid testing for
18138         guaranteed too small input if we know there is enough data available.
18139
18140 2011-05-11  Andreas Schwab  <schwab@redhat.com>
18141
18142         * Makeconfig (+link-pie): Indent.
18143         * Rules (binaries-pie): Define if $(have-fpie) and
18144         $(build-shared).
18145         (binaries-shared): Also filter out $(binaries-pie).
18146         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
18147         * nscd/Makefile (others-pie): Add nscd.
18148         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
18149         ($(objpfx)nscd): Remove command override.
18150         * login/Makefile (others-pie): Add pt_chown.
18151         ($(objpfx)pt_chown): Remove command override.
18152         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
18153         remove command overrides.
18154
18155 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
18156
18157         * libio/tst_putwc.c: Fix error messages.
18158
18159         [BZ #12724]
18160         * libio/fileops.c (_IO_new_file_close_it): Always flush when
18161         currently writing and seek to current position when not.
18162         * libio/Makefile (tests): Add bug-fclose1.
18163         * libio/bug-fclose1.c: New file.
18164
18165 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
18166
18167         [BZ #12511]
18168         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
18169         don't set DF_1_NODELETE here.
18170         (do_lookup_x): When entering new entry test for copy relocation
18171         and if necessary set DF_1_NODELETE flag.
18172         * elf/tst-unique4.cc: New file.
18173         * elf/tst-unique4.h: New file.
18174         * elf/tst-unique4lib.cc: New file.
18175         * elf/Makefile: Add rules to build and run tst-unique4.
18176         Patch by Piotr Bury <pbury@goahead.com>.
18177
18178 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
18179
18180         [BZ #12052]
18181         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
18182
18183         [BZ #12625]
18184         * misc/mntent_r.c (addmntent): Flush the stream after the output
18185
18186         [BZ #12393]
18187         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
18188         (is_trusted_path_normalize): Skip initial colon.  Append slash
18189         to empty buffer.  Duplicate is_trusted_path code but allow
18190         constructed patch to be prefix.
18191         (is_dst): Allow $ORIGIN followed by /.
18192         (_dl_dst_substitute): Correct clearing of check_for_trusted.
18193         Correct testing of result of is_trusted_path_normalize
18194         (decompose_rpath): Fix warning.
18195
18196 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
18197
18198         [BZ #11257]
18199         * grp/initgroups.c (internal_getgrouplist): When we found the service
18200         list through the initgroups entry in nsswitch.conf do not always
18201         continue on a successful lookup.  Don't always use the
18202         __nss_group_database value if it is set.
18203         * nss/nsswitch.conf (initgroups): Change action for successful db
18204         lookup to continue for compatibility.
18205
18206 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
18207
18208         [BZ #11532]
18209         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
18210         and CP774 modules.
18211         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
18212         and CP774 modules.
18213         * iconvdata/tst-tables.sh: Likewise.
18214         * iconvdata/cp770.c: New file.
18215         * iconvdata/cp771.c: New file.
18216         * iconvdata/cp772.c: New file.
18217         * iconvdata/cp773.c: New file.
18218         * iconvdata/cp774.c: New file.
18219         * iconvdata/testdata/CP770: New file.
18220         * iconvdata/testdata/CP770..UTF8: New file.
18221         * iconvdata/testdata/CP771: New file.
18222         * iconvdata/testdata/CP771..UTF8: New file.
18223         * iconvdata/testdata/CP772: New file.
18224         * iconvdata/testdata/CP772..UTF8: New file.
18225         * iconvdata/testdata/CP773: New file.
18226         * iconvdata/testdata/CP773..UTF8: New file.
18227         * iconvdata/testdata/CP774: New file.
18228         * iconvdata/testdata/CP774..UTF8: New file.
18229
18230         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
18231         END CHARMAP line.
18232         * iconvdata/gen-8bit-gap.sh: Likewise.
18233         * iconvdata/gen-8bit.sh: Likewise.
18234
18235         * locale/iso-639.def: Add ary entry.
18236
18237         [BZ #11258]
18238         * locale/C-translit.h.in: Add U20A1 transliteration.
18239
18240         [BZ #12178]
18241         * locale/iso-639.def: Add wae entry.
18242         Patch by Kevin Bortis <bortis@translate-wae.ch>.
18243
18244         [BZ #12545]
18245         * locale/programs/localedef.c (construct_output_path): Use ssize_t
18246         for n.
18247
18248         [BZ #12711]
18249         * locale/C-translit.h.in: Add entry for U20B9.
18250         Patch by pravin.d.s@gmail.com.
18251
18252 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
18253
18254         [BZ #12713]
18255         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
18256         ENAMETOOLONG use generic getcwd.
18257         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
18258         in rtld.  Use *stat64.
18259         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
18260         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
18261         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
18262         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
18263         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
18264         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
18265         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
18266         __fstatat64 macros.
18267         * include/dirent.h: Add libc_hidden_proto for rewinddir.
18268         * dirent/rewinddir.c: Add libc_hidden_def.
18269         * sysdeps/mach/hurd/rewinddir.c: Likewise.
18270         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
18271
18272         * include/dirent.h (__alloc_dir): Add flags parameter.
18273         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
18274         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
18275         __alloc_dir.
18276         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
18277         from fdopendir if O_CLOEXEC is already set.
18278
18279 2011-03-15  Alan Modra  <amodra@gmail.com>
18280
18281         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
18282         l_tls_firstbyte_offset non-zero.  Save padding offset in
18283         l_tls_firstbyte_offset for later use.
18284         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
18285         freeing static tls block.
18286
18287 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
18288
18289         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
18290         where #ifdef was intended.  The intent is to prevent ARG_MAX from
18291         being defined by the kernel headers.
18292
18293 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
18294
18295         [BZ #12734]
18296         * resolv/resolv.h: Define RES_NOTLDQUERY.
18297         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
18298         no-tld-query and set RES_NOTLDQUERY.
18299         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
18300         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
18301         modern BIND to search name as TLD unless forbidden.
18302
18303 2011-05-07  Petr Baudis  <pasky@suse.cz>
18304             Ulrich Drepper  <drepper@gmail.com>
18305
18306         [BZ #12393]
18307         * elf/dl-load.c (fillin_rpath): Move trusted path check...
18308         (is_trusted_path): ...to here.
18309         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
18310         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
18311         using is_trusted_path_normalize() in setuid scripts.
18312
18313 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
18314
18315         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
18316         __BEGIN/__END_DECLS.
18317
18318 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
18319
18320         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
18321         NSS_STATUS_NOTFOUND if no record was found.
18322
18323 2011-05-05  Andreas Schwab  <schwab@redhat.com>
18324
18325         * sunrpc/Makefile (headers): Add rpc/netdb.h.
18326         (headers-not-in-tirpc): Remove rpc/netdb.h
18327         * resolv/netdb.h: Revert last change.
18328
18329 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
18330
18331         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
18332         circular dependency between libgcc.a and libc.a.
18333
18334 2011-05-05  Andreas Schwab  <schwab@redhat.com>
18335
18336         * resolv/netdb.h: Don't include <rpc/netdb.h>.
18337         * nis/Makefile: Don't install rpcsvc/*.
18338         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
18339         instead of <rpc/types.h>.
18340         (MAXHOSTNAMELEN): Define.
18341
18342 2011-05-03  Andreas Schwab  <schwab@redhat.com>
18343
18344         * elf/ldconfig.c (add_dir): Don't crash on empty path.
18345
18346 2011-04-28  Maciej Babinski  <mbabinski@google.com>
18347
18348         [BZ #12714]
18349         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
18350         gethostbyname4_r when IPv6 results are possible.
18351
18352 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
18353
18354         [BZ #12723]
18355         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
18356         _PC_PIPE_BUF handling.
18357
18358 2011-04-30  Bruno Haible  <bruno@clisp.org>
18359
18360         [BZ #12717]
18361         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
18362         * resolv/netdb.h (getnameinfo): Change type of flags parameter
18363         to 'int'.
18364         * inet/getnameinfo.c (getnameinfo): Likewise.
18365
18366 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
18367
18368         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
18369         to groups setting in database lookup.
18370         * nss/nsswitch.conf: Add initgroups entry.
18371
18372 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
18373
18374         [BZ #12685]
18375         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
18376         mode string.
18377         Patch by Eric Blake <eblake@redhat.com>.
18378
18379 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
18380
18381         * sunrpc/Makefile (need-export-routines): Add svc_run.
18382         (routines): Remove svc_run.
18383         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
18384         * sunrpc/clnt_perr.c (clnt_perrno): Export.
18385         * sunrpc/svc_run.c (svc_run): Likewise.
18386         * sunrpc/svc_udp.c (svcudp_create): Likewise.
18387
18388 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
18389
18390         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
18391         problem in reallocation in last patch.
18392
18393 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
18394
18395         * sunrpc/Makefile: Move inclusion of Rules.
18396
18397 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
18398
18399         * nss/nss_files/files-initgroups.c: New file.
18400         * nss/Makefile (libnss_files-routines): Add files-initgroups.
18401         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
18402         _nss_files_initgroups_dyn.
18403
18404 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
18405
18406         * elf/elf.h (R_ARM_IRELATIVE): Define.
18407
18408 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
18409
18410         * po/ru.po: Update from translation team.
18411
18412 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
18413
18414         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
18415         dependencies.
18416
18417 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
18418
18419         [BZ #12653]
18420         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
18421         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
18422         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
18423         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
18424         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
18425
18426 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
18427
18428         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
18429         differing bytes.
18430         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
18431         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
18432         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
18433
18434 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
18435
18436         [BZ #12420]
18437         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
18438         storing it.
18439         * stdlib/bug-getcontext.c: New file.
18440         * stdlib/Makefile: Add rules to build and run bug-getcontext.
18441
18442 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18443
18444         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
18445         instructions into .machine "z9-109".
18446         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
18447         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
18448
18449 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18450
18451         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
18452         between environment variables and auxiliary vector.
18453
18454 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
18455
18456         * Makefile: Add rules to build linkobj/libc.so.
18457         * include/libc-symbols.h: Define libc_hidden_nolink.
18458         * include/rpc/auth.h: Mark functions which are to be hidden.
18459         * include/rpc/auth_des.h: Likewise.
18460         * include/rpc/auth_unix.h: Likewise.
18461         * include/rpc/clnt.h: Likewise.
18462         * include/rpc/des_crypt.h: Likewise.
18463         * include/rpc/key_prot.h: Likewise.
18464         * include/rpc/pmap_clnt.h: Likewise.
18465         * include/rpc/pmap_prot.h: Likewise.
18466         * include/rpc/pmap_rmt.h: Likewise.
18467         * include/rpc/rpc_msg.h: Likewise.
18468         * include/rpc/svc.h: Likewise.
18469         * include/rpc/svc_auth.h: Likewise.
18470         * include/rpc/xdr.h: Likewise.
18471         * nis/Makefile: Link all DSOs against linkobj/libc.so.
18472         * nss/Makefile: Likewise.
18473         * sunrpc/Makefile: Don't install headers.  Build library with normal
18474         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
18475         * sunrpc/auth_des.c: Hide exported symbols by default, export some
18476         for the compat linking library.  Remove use of INTDEF/INTUSE.
18477         * sunrpc/auth_none.c: Likewise.
18478         * sunrpc/auth_unix.c: Likewise.
18479         * sunrpc/authdes_prot.c: Likewise.
18480         * sunrpc/authuxprot.c: Likewise.
18481         * sunrpc/clnt_gen.c: Likewise.
18482         * sunrpc/clnt_perr.c: Likewise.
18483         * sunrpc/clnt_raw.c: Likewise.
18484         * sunrpc/clnt_simp.c: Likewise.
18485         * sunrpc/clnt_tcp.c: Likewise.
18486         * sunrpc/clnt_udp.c: Likewise.
18487         * sunrpc/clnt_unix.c: Likewise.
18488         * sunrpc/des_crypt.c: Likewise.
18489         * sunrpc/des_soft.c: Likewise.
18490         * sunrpc/get_myaddr.c: Likewise.
18491         * sunrpc/key_call.c: Likewise.
18492         * sunrpc/key_prot.c: Likewise.
18493         * sunrpc/netname.c: Likewise.
18494         * sunrpc/pm_getmaps.c: Likewise.
18495         * sunrpc/pm_getport.c: Likewise.
18496         * sunrpc/pmap_clnt.c: Likewise.
18497         * sunrpc/pmap_prot.c: Likewise.
18498         * sunrpc/pmap_prot2.c: Likewise.
18499         * sunrpc/pmap_rmt.c: Likewise.
18500         * sunrpc/publickey.c: Likewise.
18501         * sunrpc/rpc_cmsg.c: Likewise.
18502         * sunrpc/rpc_common.c: Likewise.
18503         * sunrpc/rpc_dtable.c: Likewise.
18504         * sunrpc/rpc_prot.c: Likewise.
18505         * sunrpc/rpc_thread.c: Likewise.
18506         * sunrpc/rtime.c: Likewise.
18507         * sunrpc/svc.c: Likewise.
18508         * sunrpc/svc_auth.c: Likewise.
18509         * sunrpc/svc_authux.c: Likewise.
18510         * sunrpc/svc_raw.c: Likewise.
18511         * sunrpc/svc_run.c: Likewise.
18512         * sunrpc/svc_simple.c: Likewise.
18513         * sunrpc/svc_tcp.c: Likewise.
18514         * sunrpc/svc_udp.c: Likewise.
18515         * sunrpc/svc_unix.c: Likewise.
18516         * sunrpc/svcauth_des.c: Likewise.
18517         * sunrpc/xcrypt.c: Likewise.
18518         * sunrpc/xdr.c: Likewise.
18519         * sunrpc/xdr_array.c: Likewise.
18520         * sunrpc/xdr_float.c: Likewise.
18521         * sunrpc/xdr_intXX_t.c: Likewise.
18522         * sunrpc/xdr_mem.c: Likewise.
18523         * sunrpc/xdr_rec.c: Likewise.
18524         * sunrpc/xdr_ref.c: Likewise.
18525         * sunrpc/xdr_sizeof.c: Likewise.
18526         * sunrpc/xdr_stdio.c: Likewise.
18527
18528 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
18529
18530         [BZ #12650]
18531         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
18532         * sysdeps/ia64/dl-tls.h: Likewise.
18533         * sysdeps/powerpc/dl-tls.h: Likewise.
18534         * sysdeps/s390/dl-tls.h: Likewise.
18535         * sysdeps/sh/dl-tls.h: Likewise.
18536         * sysdeps/sparc/dl-tls.h: Likewise.
18537         * sysdeps/x86_64/dl-tls.h: Likewise.
18538         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
18539
18540 2011-03-14  Andreas Schwab  <schwab@redhat.com>
18541
18542         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
18543         rpath element also skip the following colon.
18544         (expand_dynamic_string_token): Add is_path parameter and pass
18545         down to DL_DST_REQUIRED and _dl_dst_substitute.
18546         (decompose_rpath): Call expand_dynamic_string_token with
18547         non-zero is_path.  Ignore empty rpaths.
18548         (_dl_map_object_from_fd): Call expand_dynamic_string_token
18549         with zero is_path.
18550
18551 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
18552
18553         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
18554         Make cancelable.
18555
18556 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
18557
18558         [BZ #12655]
18559         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
18560         Patch by Filipe David Manana <fdmanana@apache.org>.
18561
18562 2011-04-07  Andreas Schwab  <schwab@redhat.com>
18563
18564         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
18565         Maintain aligned stack.
18566         (CHECK_RSP): Remove unused macro.
18567
18568 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
18569
18570         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
18571         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
18572
18573 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
18574
18575         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
18576
18577         * include/features.h: Mention __USE_XOPEN2K8 in comment.
18578
18579 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
18580
18581         [BZ #12518]
18582         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
18583         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
18584         * sysdeps/x86_64/memmove.c: New file.
18585         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
18586         (memcpy): Renamed to ...
18587         (__new_memcpy): This.
18588         (memcpy): Provide GLIBC_2_14 memcpy.
18589         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
18590         (memcpy): Provide GLIBC_2_2_5 memcpy.
18591
18592 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
18593
18594         [BZ #12631]
18595         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
18596
18597 2011-03-30  Andreas Schwab  <schwab@redhat.com>
18598
18599         * misc/syncfs.c: New file.
18600         * misc/Makefile (routines): Add syncfs.
18601         * posix/unistd.h: Declare syncfs.
18602         * sysdeps/unix/syscalls.list: Add syncfs.
18603
18604 2011-04-01  Andreas Schwab  <schwab@redhat.com>
18605
18606         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
18607         open_by_handle_at.
18608         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
18609         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
18610         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
18611         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
18612         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
18613         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
18614         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
18615
18616 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
18617
18618         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
18619         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
18620         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
18621         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
18622         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
18623         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
18624         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
18625
18626         * io/Makefile: Compile fallocate.c, fallocate64.c, and
18627         sync_file_range.c with -fexceptions.
18628         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
18629         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
18630         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
18631         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
18632         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
18633         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
18634         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
18635         sync_file_range as cancellation point
18636         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
18637         now a wrapper around __call_sync_file_range with cancellation handling.
18638         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
18639         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
18640         function name to __call_sync_file_range.
18641         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
18642         Add call_sync_file_range.
18643
18644 2011-04-01  Andreas Schwab  <schwab@redhat.com>
18645
18646         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
18647         bits/timex.h.
18648
18649 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
18650
18651         * iconv/iconv.h: Fix typo in comment.
18652         * io/fcntl.h: Likewise.
18653         * libio/stdio.h: Likewise.
18654         * posix/spawn.h: Likewise.
18655         * posix/unistd.h: Likewise.
18656         * stdlib/stdlib.h: Likewise.
18657         * time/time.h: Likewise.
18658         * wcsmbs/wchar.h: Likewise.
18659
18660         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
18661         open_by_handle): Add.
18662         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
18663         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
18664         Augment a few comments.
18665         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
18666         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
18667         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
18668         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
18669         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
18670         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
18671         open_by_handle.
18672
18673         * io/fcntl.h (AT_EMPTY_PATH): Define.
18674
18675 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
18676
18677         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
18678         * sysdeps/unix/sysv/linux/bits/time.h: New file.
18679         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
18680         to...
18681         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
18682         * Versions.def: Add GLIBC_2.14.
18683         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
18684         Export.
18685
18686 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
18687
18688         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
18689         round counter.
18690         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
18691
18692 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
18693
18694         [BZ #12597]
18695         * string/test-strncmp.c (do_page_test): New function.
18696         (check2): Likewise.
18697         (test_main): Call check2.
18698         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
18699
18700 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
18701
18702         [BZ #12587]
18703         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
18704         Handle cache information in CPU leaf 4.
18705         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
18706
18707 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
18708
18709         [BZ #12583]
18710         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
18711         character representation.
18712         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
18713
18714 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
18715
18716         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
18717         END(__isnan) to END(__isnanf) to match function entry point/label
18718         EALIGN(__isnanf,...).
18719
18720 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
18721
18722         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
18723
18724 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
18725
18726         [BZ #12510]
18727         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
18728         copy from the symbol referenced in the relocation to initialize the
18729         used variable.
18730         Patch by Piotr Bury <pbury@goahead.com>.
18731         * elf/Makefile: Add rules to build and tst-unique3.
18732         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
18733         * elf/tst-unique3.cc: New file.
18734         * elf/tst-unique3.h: New file.
18735         * elf/tst-unique3lib.cc: New file.
18736         * elf/tst-unique3lib2.cc: New file.
18737
18738         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
18739
18740 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
18741
18742         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
18743         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
18744         to _start.
18745
18746 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
18747
18748         * elf/dl-load.c (_dl_map_object): If we are looking for the first
18749         to-be-loaded object along a path to loader is ld.so.
18750
18751 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
18752             Ulrich Drepper  <drepper@gmail.com>
18753
18754         * sysdeps/x86_64/memset.S: After aligning destination, code
18755         branches to different locations depending on the value of
18756         misalignment, when multiarch is enabled. Fix this.
18757
18758 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
18759
18760         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
18761         Set _x86_64_preferred_memory_instruction for AMD processsors.
18762         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18763         Set bit_Prefer_SSE_for_memop for AMD processors.
18764
18765 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
18766
18767         * libio/fmemopen.c (fmemopen): Optimize a bit.
18768
18769 2011-03-03  Andreas Schwab  <schwab@redhat.com>
18770
18771         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
18772
18773 2011-03-03  Roland McGrath  <roland@redhat.com>
18774
18775         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
18776
18777 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
18778
18779         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
18780         __bzero_ultra1 instead of __memset_ultra1.
18781
18782 2011-02-23  Andreas Schwab  <schwab@redhat.com>
18783             Ulrich Drepper  <drepper@gmail.com>
18784
18785         [BZ #12509]
18786         * include/link.h (struct link_map): Add l_orig_initfini.
18787         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
18788         returning unsuccessfully.
18789         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
18790         close of a file loaded at startup, restore the original l_initfini
18791         list.
18792         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
18793         list, store the pointer.
18794         * elf/Makefile ($(objpfx)noload-mem): New rule.
18795         (noload-ENV): Define.
18796         (tests): Add $(objpfx)noload-mem.
18797         * elf/noload.c: Include <memcheck.h>.
18798         (main): Call mtrace.  Close all opened handles.
18799
18800 2011-02-17  Andreas Schwab  <schwab@redhat.com>
18801
18802         [BZ #12454]
18803         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
18804         dependencies are missing.
18805
18806 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18807
18808         Fix __if_freereq crash: Unlike the generic version which uses free,
18809         Hurd needs munmap.
18810         * sysdeps/mach/hurd/ifreq.h: New file.
18811
18812 2011-01-27  Petr Baudis  <pasky@suse.cz>
18813             Ulrich Drepper  <drepper@gmail.com>
18814
18815         [BZ 12445]#
18816         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
18817         to extend_alloca().
18818         * stdio-common/bug23.c: New file.
18819         * stdio-common/Makefile (tests): Add bug23.
18820
18821 2010-09-28  Andreas Schwab  <schwab@redhat.com>
18822             Ulrich Drepper  <drepper@gmail.com>
18823
18824         [BZ #12489]
18825         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
18826         before performing relro protection.  At old place add assertion
18827         to make sure nothing changed.
18828
18829 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
18830             Glauber de Oliveira Costa  <glommer@gmail.com>
18831
18832         * elf/elf.h: Add new ARM TLS relocs.
18833
18834 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
18835
18836         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
18837         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
18838         cast from r3.
18839         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
18840         'tests' variable.
18841         * sysdeps/wordsize-64/tst-writev.c: New file.
18842
18843 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
18844
18845         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
18846         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
18847         insns in _dl_start to prevent a TOC reference before relocs are
18848         resolved.
18849
18850 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
18851
18852         [BZ #12469]
18853         * Makeconfig: Remove RANLIB definition.
18854         * Makerules: Don't use RANLIB.
18855         * aclocal.m4: Remove ranlib test.
18856         * configure.in: No need to check for ranlib.
18857         * elf/rtld-Rules: Don't use RANLIB.
18858
18859 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18860
18861         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
18862         protection macro.
18863         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
18864         inclusion protection macro.
18865
18866         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
18867         SIGRTMIN and SIGRTMAX and print information in that case only when
18868         SIGRTMIN is defined.
18869
18870 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
18871
18872         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
18873         arginfo fn returning -1.
18874
18875         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
18876         and thousands string is zero terminated.
18877
18878 2011-02-03  Andreas Schwab  <schwab@redhat.com>
18879
18880         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
18881         sysdeps/unix/sysv/linux/bits/socket.h.
18882
18883 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18884
18885         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
18886         (__CPU_COUNT): Remove old macros.
18887         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
18888         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
18889         (__CPU_ALLOC, __CPU_FREE): Add macros.
18890         (__sched_cpualloc, __sched_cpufree): Add declarations.
18891
18892 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
18893
18894         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
18895         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
18896         * nscd/aicache.c (addhstaiX): Return timeout of added value.
18897         (readdhstai): Return value of addhstaiX call.
18898         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
18899         (addgrbyX): Return value returned by cache_addgr.
18900         (readdgrbyname): Return value returned by addgrbyX.
18901         (readdgrbygid): Likewise.
18902         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
18903         (addpwbyX): Return value returned by cache_addpw.
18904         (readdpwbyname): Return value returned by addhstbyX.
18905         (readdpwbyuid): Likewise.
18906         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
18907         (addservbyX): Return value returned by cache_addserv.
18908         (readdservbyname): Return value returned by addservbyX:
18909         (readdservbyport): Likewise.
18910         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
18911         (addhstbyX): Return value returned by cache_addhst.
18912         (readdhstbyname): Return value returned by addhstbyX.
18913         (readdhstbyaddr): Likewise.
18914         (readdhstbynamev6): Likewise.
18915         (readdhstbyaddrv6): Likewise.
18916         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
18917         (readdinitgroups): Return value returned by addinitgroupsX.
18918         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
18919         (prune_cache): Keep track of timeout value of re-added entries.
18920         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
18921         * nscd/nscd.h: Adjust prototypes of readd* functions.
18922
18923 2011-02-04  Roland McGrath  <roland@redhat.com>
18924
18925         * nis/nis_server.c (nis_servstate): Use the right name for 0.
18926         (nis_stats): Likewise.
18927         * nis/nis_modify.c (nis_modify): Likewise.
18928         * nis/nis_remove.c (nis_remove): Likewise.
18929         * nis/nis_add.c (nis_add): Likewise.
18930
18931         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
18932
18933         * posix/fnmatch_loop.c: Add some consts.
18934
18935         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
18936
18937 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
18938
18939         [BZ #12460]
18940         * config.make.in (config-cflags-novzeroupper): Define.
18941         * configure.in: Substitute libc_cv_cc_novzeroupper.
18942         * elf/Makefile (AVX-CFLAGS): Define.
18943         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
18944         (CFLAGS-tst-auditmod4a.c): Likewise.
18945         (CFLAGS-tst-auditmod4b.c): Likewise.
18946         (CFLAGS-tst-auditmod6b.c): Likewise.
18947         (CFLAGS-tst-auditmod6c.c): Likewise.
18948         (CFLAGS-tst-auditmod7b.c): Likewise.
18949         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
18950
18951 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
18952
18953         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
18954         function to the callback.
18955         Patch partly by Jiri Olsa <jolsa@redhat.com>.
18956
18957 2011-02-02  Andreas Schwab  <schwab@redhat.com>
18958
18959         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
18960         of errno.
18961
18962 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
18963
18964         [BZ #11724]
18965         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
18966         of constructors.
18967         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
18968         of destructors.
18969         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
18970
18971         [BZ #11724]
18972         * elf/Makefile: Add rules to build and run new test.
18973         * elf/tst-initorder.c: New file.
18974         * elf/tst-initorder.exp: New file.
18975         * elf/tst-initordera1.c: New file.
18976         * elf/tst-initordera2.c: New file.
18977         * elf/tst-initordera3.c: New file.
18978         * elf/tst-initordera4.c: New file.
18979         * elf/tst-initorderb1.c: New file.
18980         * elf/tst-initorderb2.c: New file.
18981         * elf/tst-order-a1.c: New file.
18982         * elf/tst-order-a2.c: New file.
18983         * elf/tst-order-a3.c: New file.
18984         * elf/tst-order-a4.c: New file.
18985         * elf/tst-order-b1.c: New file.
18986         * elf/tst-order-b2.c: New file.
18987         * elf/tst-order-main.c: New file.
18988         New test case by George Gensure <werkt0@gmail.com>.
18989
18990 2010-10-01  Andreas Schwab  <schwab@redhat.com>
18991
18992         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
18993         decoding ACE if AI_CANONIDN.
18994
18995 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
18996
18997         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
18998
18999 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
19000
19001         * version.h (RELEASE): Bump for 2.13 release.
19002         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
19003
19004         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
19005
19006         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
19007         MADV_NOHUGEPAGE.
19008         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
19009         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
19010         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
19011         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
19012         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
19013         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
19014
19015         * posix/getconf.c: Update copyright year.
19016         * catgets/gencat.c: Likewise.
19017         * csu/version.c: Likewise.
19018         * debug/catchsegv.sh: Likewise.
19019         * debug/xtrace.sh: Likewise.
19020         * elf/ldconfig.c: Likewise.
19021         * elf/ldd.bash.in: Likewise.
19022         * elf/sprof.c (print_version): Likewise.
19023         * iconv/iconv_prog.c: Likewise.
19024         * iconv/iconvconfig.c: Likewise.
19025         * locale/programs/locale.c: Likewise.
19026         * locale/programs/localedef.c: Likewise.
19027         * malloc/memusage.sh: Likewise.
19028         * malloc/mtrace.pl: Likewise.
19029         * nscd/nscd.c (print_version): Likewise.
19030         * nss/getent.c: Likewise.
19031
19032         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
19033         PF_CAIF, and PF_ALG.
19034         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
19035
19036 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
19037
19038         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
19039         (modules-names): Use them.
19040         (ifunc-test-modules, ifunc-pie-tests): Define.
19041         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
19042         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
19043         (test-extras): Likewise.
19044         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
19045         $(compile-command.c).
19046         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
19047         (all-built-dso): Define.
19048         (check-textrel.out, check-execstack.out): Depend on it.
19049
19050         * configure.in: Don't override --enable-multi-arch.
19051
19052 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
19053
19054         [BZ #6812]
19055         * nscd/hstcache.c (tryagain): Define.
19056         (cache_addhst): Return tryagain not notfound for temporary errors.
19057         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
19058         failed.
19059
19060 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
19061
19062         [BZ #10563]
19063         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
19064         to make the syscall.
19065         * sysdeps/unix/sysv/linux/setgroups.c: New file.
19066
19067         [BZ #12378]
19068         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
19069         and fall back to matching as normal character if the string ends before
19070         the matching ']' is found.  This is what POSIX requires.
19071         * posix/testfnm.c: Adjust test result.
19072         * posix/globtest.sh: Adjust test result.  Add new test.
19073         * posix/tst-fnmatch.input: Likewise.
19074         * posix/tst-fnmatch2.c: Add new test.
19075
19076 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
19077
19078         * elf/Makefile (check-execstack): Revert last change.  Depend on
19079         check-execstack.h.
19080         (check-execstack.h): New target.
19081         (generated): Add check-execstack.h.
19082         * elf/check-execstack.c: Include "check-execstack.h".
19083         (main): Revert last change.
19084         (handle_file): Return zero if GNU_STACK is absent and
19085         DEFAULT_STACK_PERMS doesn't include PF_X.
19086
19087 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
19088
19089         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
19090         in child fails because the descriptor is already closed.
19091         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
19092         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
19093         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
19094
19095         [BZ #12397]
19096         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
19097         syscall.
19098
19099         [BZ #10484]
19100         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
19101         temporary buffer used to handle multi lookups locally.
19102         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
19103
19104 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
19105
19106         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
19107         loader is ld.so.
19108
19109 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
19110
19111         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
19112         alignment for SSE2.
19113
19114 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
19115
19116         [BZ #12394]
19117         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
19118         characters.  When rounding increased number of integer digits recompute
19119         number of groups.
19120         * stdio-common/tst-grouping.c: New file.
19121         * stdio-common/Makefile: Add rules to build and run tst-grouping.
19122
19123 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
19124
19125         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
19126         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
19127
19128         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
19129         void.
19130         * bits/select.h: Likewise.
19131
19132 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
19133
19134         * po/ja.po: Update from translation team.
19135
19136 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
19137
19138         [BZ #11155]
19139         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
19140         implementation just like for lxstat, fxstatat, et al.
19141
19142 2010-12-27  Jim Meyering  <meyering@redhat.com>
19143
19144         [BZ #12348]
19145         * posix/regexec.c (build_trtable): Return failure indication upon
19146         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
19147
19148 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
19149
19150         [BZ #12201]
19151         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
19152         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
19153         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
19154         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
19155
19156         [BZ #12207]
19157         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
19158
19159         [BZ #12204]
19160         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
19161         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
19162
19163 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
19164
19165         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
19166         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
19167         script has SORT_BY_INIT_PRIORITY.
19168         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
19169         NO_CTORS_DTORS_SECTIONS is defined.
19170         * elf/soinit.c: Likewise.
19171         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
19172         NO_CTORS_DTORS_SECTIONS is defined.
19173         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
19174         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
19175         * sysdeps/sh/init-first.c: Likewise.
19176         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
19177
19178 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
19179
19180         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
19181         always use the slow path.
19182
19183 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
19184
19185         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
19186         similar rule which adds the sysdep directories to the header search in
19187         order to pick up the correct platform stackinfo.h.
19188         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
19189         perform test if it is, otherwise return successfully without testing.
19190         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
19191         DEFAULT_STACK_PERMS define in stackinfo.h.
19192         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
19193         defined in stackinfo.h.
19194         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
19195         DEFAULT_STACK_PERMS defined in stackinfo.h.
19196         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
19197         * sysdeps/ia64/stackinfo.h: Likewise.
19198         * sysdeps/s390/stackinfo.h: Likewise.
19199         * sysdeps/sh/stackinfo.h: Likewise.
19200         * sysdeps/sparc/stackinfo.h: Likewise.
19201         * sysdeps/x86_64/stackinfo.h: Likewise.
19202         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
19203         PF_X for powerpc64.  Retain PF_X for powerpc32.
19204
19205 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
19206
19207         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
19208         accurately.
19209         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
19210         GETDENTS_64BIT_ALIGNED.
19211
19212 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
19213
19214         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
19215
19216 2010-12-10  Andreas Schwab  <schwab@redhat.com>
19217
19218         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
19219         _GNU_SOURCE.
19220
19221         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
19222         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
19223         Remove __restrict.
19224         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
19225         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
19226
19227 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
19228
19229         [BZ #11655]
19230         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
19231         are initialized.
19232
19233 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
19234
19235         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
19236
19237 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
19238
19239         * po/it.po: Update from translation team.
19240
19241 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
19242
19243         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
19244         unused codes.
19245
19246 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
19247
19248         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
19249
19250 2010-11-24  Andreas Schwab  <schwab@redhat.com>
19251
19252         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
19253         specially.
19254         (gaih_getanswer_slice): Likewise.
19255
19256 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
19257
19258         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
19259
19260 2010-05-31  Petr Baudis  <pasky@suse.cz>
19261
19262         [BZ #11149]
19263         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
19264         silently even in the chroot mode.
19265
19266 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
19267
19268         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
19269         last patch a bit.  Pretty printing
19270
19271 2010-05-31  Petr Baudis <pasky@suse.cz>
19272
19273         [BZ #10085]
19274         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
19275         initialization of skip_initgroups_dyn.
19276
19277 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
19278
19279         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
19280         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
19281
19282 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
19283
19284         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
19285
19286 2010-11-11  Andreas Schwab  <schwab@redhat.com>
19287
19288         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
19289         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
19290         (tst-fnmatch-ENV): Set MALLOC_TRACE.
19291         ($(objpfx)tst-fnmatch-mem): New rule.
19292         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
19293         * posix/tst-fnmatch.c (main): Call mtrace.
19294
19295 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
19296
19297         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19298         Support Intel processor model 6 and model 0x2c.
19299
19300 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
19301
19302         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
19303           signed comparison.
19304
19305 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
19306
19307         [BZ #12205]
19308         * string/test-strncasecmp.c (check_result): New function.
19309         (do_one_test): Use it.
19310         (check1): New function.
19311         (test_main): Use it.
19312         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
19313         Support strcasecmp and strncasecmp.
19314
19315 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
19316
19317         [BZ #12194]
19318         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
19319         * sysdeps/x86_64/bits/byteswap.h: Likewise.
19320
19321 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
19322
19323         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
19324         IFUNC support.
19325         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
19326         memset-x86-64.
19327         * sysdeps/x86_64/multiarch/bzero.S: New file.
19328         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
19329         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
19330         * sysdeps/x86_64/multiarch/memset.S: New file.
19331         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
19332         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19333         Set bit_Prefer_SSE_for_memop for Intel processors.
19334         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
19335         Define.
19336         (index_Prefer_SSE_for_memop): Define.
19337         (HAS_PREFER_SSE_FOR_MEMOP): Define.
19338
19339 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
19340
19341         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
19342         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
19343
19344 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
19345
19346         [BZ #12191]
19347         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
19348         (__x86_64_raw_data_cache_size_half): Likewise.
19349         (__x86_64_raw_shared_cache_size): Likewise.
19350         (__x86_64_raw_shared_cache_size_half): Likewise.
19351
19352         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
19353         (__x86_64_raw_data_cache_size_half): Likewise.
19354         (__x86_64_raw_shared_cache_size): Likewise.
19355         (__x86_64_raw_shared_cache_size_half): Likewise.
19356         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
19357         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
19358         and __x86_64_raw_shared_cache_size_half.  Round
19359         __x86_64_data_cache_size_half, __x86_64_data_cache_size
19360         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
19361         to multiple of 256 bytes.
19362
19363 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
19364
19365         [BZ #12167]
19366         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
19367         of inacessible symlinks.  Verify result of symlink before returning it.
19368         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
19369         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
19370
19371 2010-10-28  Erich Ritz  <erichritz@gmail.com>
19372
19373         * math/math.h (isinf): Fix typo in comment.
19374
19375 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
19376
19377         * po/da.po: Update from translation team.
19378
19379 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
19380
19381         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
19382         is added to the list.
19383
19384 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19385             Ulrich Drepper  <drepper@gmail.com>
19386
19387         * elf/dl-object.c (_dl_new_object): Don't append the new object to
19388         the global list here.  Move code to...
19389         (_dl_add_to_namespace_list): ...here.  New function.
19390         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
19391         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
19392         * elf/dl-load.c (lose): Don't remove the element from the list.
19393         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
19394         (_dl_map_object): Likewise.
19395
19396 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
19397
19398         [BZ #12159]
19399         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
19400         into all bytes of SSE register.
19401         Patch by Richard Li <richardpku@gmail.com>.
19402
19403 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
19404
19405         [BZ #12140]
19406         * malloc/malloc.c (_int_free): Fill correct number of bytes when
19407         perturbing.
19408
19409 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
19410
19411         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
19412         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
19413         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
19414         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
19415         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
19416         submachine.
19417         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
19418
19419 2010-10-22  Andreas Schwab  <schwab@redhat.com>
19420
19421         * include/dlfcn.h (__RTLD_SECURE): Define.
19422         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
19423         mode & __RTLD_SECURE instead.
19424         (open_path): Rename preloaded parameter to secure.
19425         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
19426         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
19427         * elf/dl-deps.c (openaux): Likewise.
19428         * elf/rtld.c (struct map_args): Remove is_preloaded.
19429         (map_doit): Don't use it.
19430         (dl_main): Likewise.
19431         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
19432         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
19433
19434 2010-09-09  Andreas Schwab  <schwab@redhat.com>
19435
19436         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
19437         (sysd-rules-targets): Remove duplicates.
19438         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
19439         rtld-%.$o dependency.
19440
19441 2010-10-18  Andreas Schwab  <schwab@redhat.com>
19442
19443         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
19444         _dl_map_object do it.
19445
19446 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
19447
19448         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
19449         fast fma builtins, define the macros in the C99 standard.
19450         (FP_FAST_FMAF): Likewise.
19451         (FP_FAST_FMAL): Likewise.
19452         * sysdeps/x86_64/bits/mathdef.h: Likewise.
19453
19454         * bits/mathdef.h: Update copyright year.
19455         * sysdeps/powerpc/bits/mathdef.h: Likewise.
19456
19457 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
19458
19459         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
19460         builtins, define the macros in the C99 standard.
19461         (FP_FAST_FMAF): Likewise.
19462         (FP_FAST_FMAL): Likewise.
19463         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
19464         multiply/add.
19465         (FP_FAST_FMAF): Likewise.
19466
19467 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
19468
19469         [BZ #3268]
19470         * math/libm-test.inc (fma_test): Some new testcases.
19471         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
19472         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
19473         y and infinite z.  Do multiplication by C already in long double.
19474         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
19475         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
19476         y and infinite z.  Do bitwise or of inexact bit into u.d.
19477         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
19478         * sysdeps/i386/fpu/s_fmaf.S: Removed.
19479         * sysdeps/i386/fpu/s_fma.S: Removed.
19480         * sysdeps/i386/fpu/s_fmal.S: Removed.
19481
19482 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
19483
19484         [BZ #3268]
19485         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
19486         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
19487         computation is not scheduled after fetestexcept.  Fix value
19488         of minimum denormal long double.
19489
19490 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
19491
19492         [BZ #3268]
19493         * math/libm-test.inc (fma_test): Add some more tests.
19494         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
19495         correctly.
19496
19497 2010-10-15  Andreas Schwab  <schwab@redhat.com>
19498
19499         * scripts/data/localplt-s390-linux-gnu.data: New file.
19500         * scripts/data/localplt-s390x-linux-gnu.data: New file.
19501
19502 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
19503
19504         [BZ #3268]
19505         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
19506         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
19507         instead of dbl-64.
19508         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
19509         inlines.
19510         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
19511         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
19512         if one of x and y is very large and the other is subnormal.
19513         * sysdeps/s390/fpu/s_fmaf.c: New file.
19514         * sysdeps/s390/fpu/s_fma.c: New file.
19515         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
19516         * sysdeps/powerpc/fpu/s_fma.S: New file.
19517         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
19518         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
19519         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
19520
19521 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
19522
19523         [BZ #3268]
19524         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
19525         fma tests.
19526         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
19527         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
19528         * sysdeps/i386/i686/multiarch/s_fma.c: Include
19529         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
19530         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
19531         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
19532         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
19533
19534 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
19535
19536         [BZ #12078]
19537         * posix/regcomp.c (parse_branch): One more memory leak plugged.
19538         * posix/bug-regex31.input: Add test case.
19539
19540 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
19541
19542         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
19543         * posix/bug-regex31.input: New file.
19544
19545         [BZ #12078]
19546         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
19547         (parse_sub_exp): Fix last change, use postorder.
19548
19549         * posix/bug-regex31.c: New file.
19550         * posix/Makefile: Add rules to build and run bug-regex31.
19551
19552         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
19553
19554         [BZ #12078]
19555         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
19556
19557         [BZ #12108]
19558         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
19559         to have entries in sys_siglist.
19560
19561         [BZ #12093]
19562         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
19563         be NULL.
19564
19565 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
19566
19567         [BZ #3268]
19568         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
19569         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
19570         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
19571         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
19572         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
19573         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
19574         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
19575         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
19576         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
19577         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
19578         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
19579         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
19580         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
19581         * math/ftestexcept.c (fetestexcept): Likewise.
19582         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
19583         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
19584         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
19585         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
19586         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
19587         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
19588         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
19589
19590 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
19591
19592         [BZ #12107]
19593         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
19594         newline.
19595
19596 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
19597
19598         * string/bug-strstr1.c: New file.
19599         * string/Makefile: Add rules to build and run bug-strstr1.
19600
19601 2010-10-05  Eric Blake  <eblake@redhat.com>
19602
19603         [BZ #12092]
19604         * string/str-two-way.h (two_way_long_needle): Always clear memory
19605         when skipping input due to the shift table.
19606
19607 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
19608
19609         [BZ #12005]
19610         * malloc/mcheck.c: Handle large requests.
19611
19612         [BZ #12077]
19613         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
19614         for strncmp and strncasecmp.
19615         * string/stratcliff.c: Add tests for strcmp and strncmp.
19616         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
19617
19618 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
19619
19620         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
19621         __set_fpscr.
19622
19623 2010-09-30  Andreas Jaeger  <aj@suse.de>
19624
19625         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
19626         (CGROUP_SUPER_MAGIC): Define.
19627         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
19628         Handle btrfs and cgroup file systems.
19629         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
19630         Likewise.
19631
19632 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
19633
19634         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
19635         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
19636
19637 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19638
19639         [BZ #12067]
19640         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
19641         trying to locate the ELF header.
19642
19643 2010-09-27  Andreas Schwab  <schwab@redhat.com>
19644
19645         [BZ #11611]
19646         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
19647         Mask out sign-bit copies when constructing f_fsid.
19648
19649 2010-09-24  Petr Baudis <pasky@suse.cz>
19650
19651         * debug/stack_chk_fail_local.c: Add missing licence exception.
19652         * debug/warning-nop.c: Likewise.
19653
19654 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
19655
19656         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
19657         implementing getdents64 using getdents syscall, set d_type if
19658         __ASSUME_GETDENTS32_D_TYPE.
19659
19660 2010-09-16  Andreas Schwab  <schwab@redhat.com>
19661
19662         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
19663         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
19664
19665 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
19666
19667         [BZ #12037]
19668         * posix/unistd.h: Undo change of feature selection for ftruncate from
19669         2010-01-11.
19670
19671 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
19672
19673         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
19674         detection.
19675
19676 2010-09-20  Andreas Schwab  <schwab@redhat.com>
19677
19678         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
19679         fanotify_mark.
19680         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
19681
19682 2010-09-14  Andreas Schwab  <schwab@redhat.com>
19683
19684         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
19685         variables after CHECK_SP call.
19686         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
19687
19688 2010-09-13  Andreas Schwab  <schwab@redhat.com>
19689             Ulrich Drepper  <drepper@redhat.com>
19690
19691         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
19692         re-relocationg ld.so.
19693         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
19694         _dl_init_paths call.
19695         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
19696         here anymore.
19697
19698 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
19699
19700         * resolv/res_init.c (__res_vinit): Count the default server we added.
19701
19702 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
19703             Ulrich Drepper  <drepper@redhat.com>
19704
19705         [BZ #11968]
19706         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
19707         (____longjmp_chk): Use %ebx for saving value across system call.
19708         Add unwind info.
19709
19710 2010-09-06  Andreas Schwab  <schwab@redhat.com>
19711
19712         * manual/Makefile: Don't mix pattern rules with normal rules.
19713
19714 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
19715
19716         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
19717         operation.
19718         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
19719         * libio/iofopncook.c (_IO_cookie_init): Likewise.
19720         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
19721         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
19722         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
19723         Likewise.
19724
19725 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
19726
19727         [BZ #11979]
19728         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
19729         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
19730
19731 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
19732
19733         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
19734         * sysdeps/x86_64/addmul_1.S: Likewise.
19735         * sysdeps/x86_64/lshift.S: Likewise.
19736         * sysdeps/x86_64/mul_1.S: Likewise.
19737         * sysdeps/x86_64/rshift.S: Likewise.
19738         * sysdeps/x86_64/sub_n.S: Likewise.
19739         * sysdeps/x86_64/submul_1.S: Likewise.
19740
19741 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19742
19743         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
19744         Define __sched_param instead of SCHED_* and sched_param when
19745         <bits/sched.h> is included with __need_schedparam defined.
19746         * bits/sched.h [__need_schedparam]
19747         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
19748         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
19749         (__defined_schedparam): Define to 1.
19750         (__sched_param): New structure, identical to sched_param.
19751         (__need_schedparam): Undefine.
19752
19753 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
19754
19755         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
19756         (epoll_create1): Declare.
19757
19758         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
19759
19760 2010-08-31  Andreas Schwab  <schwab@redhat.com>
19761
19762         [BZ #7066]
19763         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
19764         shifting retval into place.
19765
19766 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
19767
19768         * nis/rpcsvc/nis.h: Update copyright notice.
19769         * nis/rpcsvc/nis.x: Likewise.
19770         * nis/rpcsvc/nis_callback.h: Likewise.
19771         * nis/rpcsvc/nis_callback.x: Likewise.
19772         * nis/rpcsvc/nis_object.x: Likewise.
19773         * nis/rpcsvc/nis_tags.h: Likewise.
19774         * nis/rpcsvc/yp.h: Likewise.
19775         * nis/rpcsvc/yp.x: Likewise.
19776         * nis/rpcsvc/ypupd.h: Likewise.
19777         * nis/yp_xdr.c: Likewise.
19778         * nis/ypupdate_xdr.c: Likewise.
19779
19780         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
19781         mainly the body of pmap_getport.  Add parameters to specify timeouts.
19782         (pmap_getport): Use __libc_rpc_getport.
19783         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
19784         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
19785         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
19786
19787 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
19788
19789         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
19790         fanotify_mark.
19791
19792 2010-08-27  Roland McGrath  <roland@redhat.com>
19793
19794         * sysdeps/i386/i686/multiarch/Makefile
19795         (CFLAGS-varshift.c): New variable.
19796
19797 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
19798
19799         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
19800         * sysdeps/i386/i686/multiarch/varshift.c: New file.
19801
19802         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
19803
19804         * sysdeps/x86_64/strlen.S: Minimal code improvement.
19805
19806 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
19807
19808         * sysdeps/x86_64/strlen.S: Unroll the loop.
19809         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
19810         strlen-sse2 strlen-sse2-bsf.
19811         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
19812         __strlen_no_bsf if bit_Slow_BSF is set.
19813         (__strlen_sse42): Removed.
19814         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
19815         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
19816
19817 2010-08-25  Roland McGrath  <roland@redhat.com>
19818
19819         * sysdeps/x86_64/multiarch/varshift.S: File removed.
19820         * sysdeps/x86_64/multiarch/varshift.c: New file.
19821         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
19822         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
19823         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
19824         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
19825
19826 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
19827
19828         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
19829         strlen-sse2 strlen-sse2-bsf.
19830         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
19831         __strlen_sse2_bsf if bit_Slow_BSF is unset.
19832         (__strlen_sse2): Removed.
19833         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
19834         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
19835         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
19836         bit_Slow_BSF for Atom.
19837         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
19838         (index_Slow_BSF): Define.
19839         (HAS_SLOW_BSF): Define.
19840
19841 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
19842
19843         [BZ #10851]
19844         * resolv/res_init.c (__res_vinit): When no server address at all
19845         is given default to loopback.
19846
19847 2010-08-24  Roland McGrath  <roland@redhat.com>
19848
19849         * configure.in: Remove config-name.h generation.
19850         * configure: Regenerated.
19851         * config-name.in: File removed.
19852         * scripts/config-uname.sh: New file.
19853         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
19854         ($(objdir)config-name.h): New target.
19855
19856         * sunrpc/rpc_parse.h: Avoid nested comment.
19857
19858 2010-08-24  Richard Henderson  <rth@redhat.com>
19859             Ulrich Drepper  <drepper@redhat.com>
19860             H.J. Lu  <hongjiu.lu@intel.com>
19861
19862         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
19863         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
19864         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
19865         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
19866         _mm_alignr_epi8 with _mm_loadu_si128.
19867         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
19868         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
19869         (__m128i_shift_right): Removed.
19870         * sysdeps/i386/i686/multiarch/varshift.h: New file.
19871         * sysdeps/i386/i686/multiarch/varshift.S: New file.
19872         * sysdeps/x86_64/multiarch/varshift.h: New file.
19873         * sysdeps/x86_64/multiarch/varshift.S: New file.
19874
19875 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
19876
19877         * configure.in: Move assembler checks to before sysdep dir checking.
19878
19879 2010-08-20  Petr Baudis  <pasky@suse.cz>
19880
19881         * LICENSES: Sync the sunrpc license.
19882
19883 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
19884
19885         * sunrpc/auth_des.c: Update copyright notice once again.
19886         * sunrpc/auth_none.c: Likewise.
19887         * sunrpc/auth_unix.c: Likewise.
19888         * sunrpc/authdes_prot.c: Likewise.
19889         * sunrpc/authuxprot.c: Likewise.
19890         * sunrpc/bindrsvprt.c: Likewise.
19891         * sunrpc/clnt_gen.c: Likewise.
19892         * sunrpc/clnt_perr.c: Likewise.
19893         * sunrpc/clnt_raw.c: Likewise.
19894         * sunrpc/clnt_simp.c: Likewise.
19895         * sunrpc/clnt_tcp.c: Likewise.
19896         * sunrpc/clnt_udp.c: Likewise.
19897         * sunrpc/clnt_unix.c: Likewise.
19898         * sunrpc/des_crypt.c: Likewise.
19899         * sunrpc/des_soft.c: Likewise.
19900         * sunrpc/get_myaddr.c: Likewise.
19901         * sunrpc/getrpcport.c: Likewise.
19902         * sunrpc/key_call.c: Likewise.
19903         * sunrpc/key_prot.c: Likewise.
19904         * sunrpc/openchild.c: Likewise.
19905         * sunrpc/pm_getmaps.c: Likewise.
19906         * sunrpc/pm_getport.c: Likewise.
19907         * sunrpc/pmap_clnt.c: Likewise.
19908         * sunrpc/pmap_prot.c: Likewise.
19909         * sunrpc/pmap_prot2.c: Likewise.
19910         * sunrpc/pmap_rmt.c: Likewise.
19911         * sunrpc/rpc/auth.h: Likewise.
19912         * sunrpc/rpc/auth_unix.h: Likewise.
19913         * sunrpc/rpc/clnt.h: Likewise.
19914         * sunrpc/rpc/des_crypt.h: Likewise.
19915         * sunrpc/rpc/key_prot.h: Likewise.
19916         * sunrpc/rpc/netdb.h: Likewise.
19917         * sunrpc/rpc/pmap_clnt.h: Likewise.
19918         * sunrpc/rpc/pmap_prot.h: Likewise.
19919         * sunrpc/rpc/pmap_rmt.h: Likewise.
19920         * sunrpc/rpc/rpc.h: Likewise.
19921         * sunrpc/rpc/rpc_des.h: Likewise.
19922         * sunrpc/rpc/rpc_msg.h: Likewise.
19923         * sunrpc/rpc/svc.h: Likewise.
19924         * sunrpc/rpc/svc_auth.h: Likewise.
19925         * sunrpc/rpc/types.h: Likewise.
19926         * sunrpc/rpc/xdr.h: Likewise.
19927         * sunrpc/rpc_clntout.c: Likewise.
19928         * sunrpc/rpc_cmsg.c: Likewise.
19929         * sunrpc/rpc_common.c: Likewise.
19930         * sunrpc/rpc_cout.c: Likewise.
19931         * sunrpc/rpc_dtable.c: Likewise.
19932         * sunrpc/rpc_hout.c: Likewise.
19933         * sunrpc/rpc_main.c: Likewise.
19934         * sunrpc/rpc_parse.c: Likewise.
19935         * sunrpc/rpc_parse.h: Likewise.
19936         * sunrpc/rpc_prot.c: Likewise.
19937         * sunrpc/rpc_sample.c: Likewise.
19938         * sunrpc/rpc_scan.c: Likewise.
19939         * sunrpc/rpc_scan.h: Likewise.
19940         * sunrpc/rpc_svcout.c: Likewise.
19941         * sunrpc/rpc_tblout.c: Likewise.
19942         * sunrpc/rpc_util.c: Likewise.
19943         * sunrpc/rpc_util.h: Likewise.
19944         * sunrpc/rpcinfo.c: Likewise.
19945         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
19946         * sunrpc/rpcsvc/key_prot.x: Likewise.
19947         * sunrpc/rpcsvc/klm_prot.x: Likewise.
19948         * sunrpc/rpcsvc/mount.x: Likewise.
19949         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
19950         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
19951         * sunrpc/rpcsvc/rex.x: Likewise.
19952         * sunrpc/rpcsvc/rstat.x: Likewise.
19953         * sunrpc/rpcsvc/rusers.x: Likewise.
19954         * sunrpc/rpcsvc/sm_inter.x: Likewise.
19955         * sunrpc/rpcsvc/spray.x: Likewise.
19956         * sunrpc/rpcsvc/yppasswd.x: Likewise.
19957         * sunrpc/rtime.c: Likewise.
19958         * sunrpc/svc.c: Likewise.
19959         * sunrpc/svc_auth.c: Likewise.
19960         * sunrpc/svc_authux.c: Likewise.
19961         * sunrpc/svc_raw.c: Likewise.
19962         * sunrpc/svc_run.c: Likewise.
19963         * sunrpc/svc_simple.c: Likewise.
19964         * sunrpc/svc_tcp.c: Likewise.
19965         * sunrpc/svc_udp.c: Likewise.
19966         * sunrpc/svc_unix.c: Likewise.
19967         * sunrpc/svcauth_des.c: Likewise.
19968         * sunrpc/xcrypt.c: Likewise.
19969         * sunrpc/xdr.c: Likewise.
19970         * sunrpc/xdr_array.c: Likewise.
19971         * sunrpc/xdr_float.c: Likewise.
19972         * sunrpc/xdr_mem.c: Likewise.
19973         * sunrpc/xdr_rec.c: Likewise.
19974         * sunrpc/xdr_ref.c: Likewise.
19975         * sunrpc/xdr_sizeof.c: Likewise.
19976         * sunrpc/xdr_stdio.c: Likewise.
19977
19978         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
19979         handling.
19980
19981 2010-08-19  Andreas Schwab  <schwab@redhat.com>
19982
19983         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
19984
19985 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
19986
19987         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
19988         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
19989         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
19990         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
19991         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
19992         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
19993         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
19994         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
19995         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
19996         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
19997         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
19998         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
19999         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
20000         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
20001
20002 2010-07-26  Anton Blanchard  <anton@samba.org>
20003
20004         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
20005         * malloc/arena.c (heap_trim): Likewise.
20006
20007 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
20008
20009         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
20010         here.  Not...
20011         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
20012         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
20013
20014 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
20015
20016         * sysdeps/i386/elf/Makefile: New file.
20017
20018 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
20019
20020         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
20021         from fanotify_init.
20022         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
20023         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
20024
20025 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
20026
20027         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
20028         of strncasecmp_l.
20029         * sysdeps/multiarch/strcmp.S: Likewise.
20030
20031 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
20032
20033         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
20034         strncase_l-nonascii.
20035         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
20036         Add strncase_l-ssse3.
20037         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
20038         * sysdeps/x86_64/strcmp.S: Likewise.
20039         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
20040         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
20041         * sysdeps/x86_64/strncase.S: New file.
20042         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
20043         * sysdeps/x86_64/strncase_l.S: New file.
20044         * string/Makefile (strop-tests): Add strncasecmp.
20045         * string/test-strncasecmp.c: New file.
20046
20047         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
20048         warning.
20049
20050         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
20051         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
20052
20053 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
20054
20055         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
20056
20057 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
20058
20059         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
20060         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
20061         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
20062
20063 2010-05-01  Alan Modra  <amodra@gmail.com>
20064
20065         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
20066         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
20067         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
20068         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
20069         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
20070         tidying.  Don't tail-call __sigjmp_save for static lib.
20071         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
20072         save location.
20073         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
20074         (CALL_MCOUNT): Add eh info, and nop after bl.
20075         (TAIL_CALL_SYSCALL_ERROR): New macro.
20076         (PSEUDO_RET): Use it.
20077         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
20078         Correct save location of integer regs and cr.
20079         (_dl_profile_resolve): Correct cr save location.  Delete nops
20080         after bl when SHARED.  Reduce cfi size a little by better
20081         placement of cfi directives.
20082         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
20083         make a stack frame.  Instead use parm save area as a temp.
20084         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
20085         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
20086         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
20087         Don't make a stack frame for parent, use parm save area.
20088         Increase child stack frame to 112 bytes.  Don't save unused reg,
20089         and adjust reg usage.  Set up cfi on error recovery and
20090         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
20091         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
20092         (__makecontext): Add dummy nop after jump to exit.
20093         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
20094         Use correct parm save area and cr save, reduce stack frame.
20095         Correct cfi for possible PSEUDO_RET frame setup.
20096         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
20097         Branch to local label emitted by PSEUDO_RET rather than
20098         __syscall_error.
20099
20100 2010-08-12  Andreas Schwab  <schwab@redhat.com>
20101
20102         [BZ #11904]
20103         * locale/programs/locale.c (print_assignment): New function.
20104         (show_locale_vars): Use it.
20105
20106 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
20107
20108         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
20109         field.
20110         (struct statfs64): Likewise.
20111         (_STATFS_F_FLAGS): Define.
20112         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
20113         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
20114         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
20115         (ST_VALID): Define locally.
20116         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
20117         __statvfs_getflags, use the provided value.
20118         * sysdeps/unix/sysv/linux/kernel-features.h: Define
20119         __ASSUME_STATFS_F_FLAGS.
20120
20121         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
20122
20123         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
20124         Add sys/fanotify.h.
20125         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
20126         fanotify_mask for GLIBC_2.13.
20127         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
20128         fanotify_init and fanotify_mark.
20129         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
20130         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
20131
20132         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
20133         Add prlimit.
20134         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
20135         prlimit64 for GLIBC_2.13.
20136         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
20137         prlimit64.
20138         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
20139         syscall.
20140         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
20141         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
20142         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
20143         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
20144         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
20145         add prlimit alias.
20146         * sysdeps/unix/sysv/linux/prlimit.c: New file.
20147
20148         [BZ #11903]
20149         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
20150         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
20151
20152         * nss/Makefile: Add rules to build and run tst-nss-test1.
20153         * shlib-versions: Add entry for libnss_test1.
20154         * nss/nss_test1.c: New file.
20155         * nss/tst-nss-test1.c: New file.
20156
20157         * nss/nsswitch.c (__nss_database_custom): Define new variable.
20158         (__nss_configure_lookup): Set appropriate entry in
20159         __nss_configure_lookup to true.
20160         * nss/nsswitch.h: Define enum with indeces of databases in
20161         databases and __nss_database_custom arrays.  Declare
20162         __nss_database_custom.
20163         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
20164         to avoid using nscd when custom rules are installed.
20165         * nss/getXXbyYY_r.c: Likewise.
20166         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
20167
20168         * nss/nss_files/files-parse.c: Whitespace fixes.
20169
20170 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
20171
20172         [BZ #11883]
20173         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
20174         * posix/fnmatch_loop.c: Likewise.
20175
20176 2010-07-17  Andi Kleen  <ak@linux.intel.com>
20177
20178         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
20179         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
20180         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
20181         * Versions.def [GLIBC_2.13]: Add.
20182
20183 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
20184
20185         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
20186         Also fail if tpwd after pwuid call is NULL.
20187
20188 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20189
20190         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
20191         when converting to ms.
20192
20193 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20194
20195         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
20196         EOPNOTSUPP errors with ENOTTY.
20197         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
20198         EOPNOTSUPP errors with ENOTTY.
20199
20200 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
20201
20202         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
20203         Add strcasecmp_l-ssse3.
20204         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
20205         strcasecmp.
20206         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
20207         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
20208         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
20209
20210 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
20211
20212         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
20213
20214         * string/Makefile (strop-tests): Add strcasecmp.
20215         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
20216         strcasecmp_l-nonascii.
20217         (gen-as-const-headers): Add locale-defines.sym.
20218         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
20219         * sysdeps/x86_64/strcasecmp.S: New file.
20220         * sysdeps/x86_64/strcasecmp_l.S: New file.
20221         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
20222         * sysdeps/x86_64/locale-defines.sym: New file.
20223         * string/test-strcasecmp.c: New file.
20224
20225         * string/test-strcasestr.c: Test both ends of the range of characters.
20226         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
20227
20228 2010-07-29  Roland McGrath  <roland@redhat.com>
20229
20230         [BZ #11856]
20231         * manual/locale.texi (Yes-or-No Questions): Fix example code.
20232
20233 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
20234
20235         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
20236         for ld.so.
20237
20238 2010-07-27  Andreas Schwab  <schwab@redhat.com>
20239
20240         * manual/memory.texi (Malloc Tunable Parameters): Document
20241         M_PERTURB.
20242
20243 2010-07-26  Roland McGrath  <roland@redhat.com>
20244
20245         [BZ #11840]
20246         * configure.in (-fgnu89-inline check): Set and substitute
20247         gnu89_inline, not libc_cv_gnu89_inline.
20248         * configure: Regenerated.
20249         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
20250
20251 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
20252
20253         * string/test-strnlen.c: New file.
20254         * string/Makefile (strop-tests): Add strnlen.
20255         * string/tester.c (test_strnlen): Add a few more test cases.
20256         * string/tst-strlen.c: Better error reporting.
20257
20258         * sysdeps/x86_64/strnlen.S: New file.
20259
20260 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
20261
20262         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
20263         lower-latency instructions.
20264
20265 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
20266
20267         * string/test-strcasestr.c: New file.
20268         * string/test-strstr.c: New file.
20269         * string/Makefile (strop-tests): Add strstr and strcasestr.
20270         * string/str-two-way.h: Don't undefine MAX.
20271         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
20272
20273 2010-07-21  Andreas Schwab  <schwab@redhat.com>
20274
20275         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
20276         strcasestr-nonascii.
20277         (CFLAGS-strcasestr-nonascii.c): Define.
20278         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
20279         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
20280         Remove unused attribute.
20281
20282 2010-07-20  Roland McGrath  <roland@redhat.com>
20283
20284         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
20285         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
20286         ld.so.cache was broken.  With it, there is no way to disable dsocaps
20287         like LD_HWCAP_MASK can disable hwcaps.
20288
20289 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
20290
20291         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
20292
20293 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
20294
20295         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
20296         call in strcasestr.
20297         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
20298         __strcasestr_sse42_nonascii.
20299         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
20300         strcasestr-nonascii.c.
20301         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
20302
20303 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
20304
20305         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
20306         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
20307         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
20308         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
20309
20310 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
20311
20312         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
20313         fcntl.
20314
20315 2010-07-06  Andreas Schwab  <schwab@redhat.com>
20316
20317         [BZ #11577]
20318         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
20319         dl_signal_cerror.
20320
20321 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
20322
20323         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
20324         _PC_PIPE_BUF using F_GETPIPE_SZ.
20325
20326 2010-07-05  Roland McGrath  <roland@redhat.com>
20327
20328         * manual/arith.texi (Rounding Functions): Fix rint description
20329         implicit in round description.
20330
20331 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
20332
20333         * elf/Makefile: Fix linking for a few tests to make recent linker
20334         happy.
20335
20336 2010-06-30  Andreas Schwab  <schwab@redhat.com>
20337
20338         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
20339         $(common-objpfx)libc_nonshared.a.
20340
20341 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
20342
20343         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
20344         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
20345         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
20346         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
20347         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
20348         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
20349         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
20350         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
20351         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
20352         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
20353         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
20354         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
20355         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
20356         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
20357         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
20358         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
20359         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
20360         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
20361         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
20362         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
20363         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
20364         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
20365         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
20366         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
20367         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
20368         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
20369         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
20370         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
20371         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
20372         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
20373         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
20374         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
20375         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
20376         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
20377         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
20378         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
20379         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
20380         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
20381         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
20382         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
20383         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
20384         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
20385         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
20386         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
20387         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
20388         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
20389         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
20390         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
20391
20392 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
20393
20394         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
20395         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
20396         * string/memmove.c (memmove): Renamed to ...
20397         (MEMMOVE): ...this.  Default to memmove.
20398         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
20399         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
20400         (END_CHK): Define.
20401         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
20402         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
20403         mempcpy-ssse3-back memmove-ssse3-back.
20404         * sysdeps/x86_64/multiarch/bcopy.S: New file .
20405         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
20406         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
20407         * sysdeps/x86_64/multiarch/memcpy.S: New file.
20408         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
20409         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
20410         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
20411         * sysdeps/x86_64/multiarch/memmove.c: New file.
20412         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
20413         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
20414         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
20415         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
20416         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
20417         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
20418         Define.
20419         (index_Fast_Copy_Backward): Define.
20420         (HAS_ARCH_FEATURE): Define.
20421         (HAS_FAST_REP_STRING): Define.
20422         (HAS_FAST_COPY_BACKWARD): Define.
20423
20424 2010-06-21  Andreas Schwab  <schwab@redhat.com>
20425
20426         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
20427         Restore proper fallback handling.
20428
20429 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
20430
20431         [BZ #11701]
20432         * posix/group_member.c (__group_member): Correct checking loop.
20433
20434         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
20435         OOM in getpwuid_r correctly.  Return error number when the caller
20436         should return, otherwise -1.
20437         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
20438         call returning > 0 value.
20439         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
20440
20441 2010-06-07  Andreas Schwab  <schwab@redhat.com>
20442
20443         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
20444         libc_nonshared.a from targets in modules-names.
20445
20446 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
20447
20448         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
20449         requires it.
20450
20451 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
20452
20453         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
20454         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
20455         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
20456         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
20457
20458 2010-06-02  Andreas Schwab  <schwab@redhat.com>
20459
20460         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
20461
20462 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
20463
20464         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
20465         and F_GETPIPE_SZ.
20466         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
20467         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
20468         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
20469         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
20470         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
20471         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
20472
20473 2010-06-14  Roland McGrath  <roland@redhat.com>
20474
20475         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
20476
20477 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
20478
20479         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
20480         __REDIRECT followed by __THROW.
20481         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
20482         * posix/getopt.h (getopt): Likewise.
20483
20484 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
20485
20486         * hurd/lookup-at.c (__file_name_lookup_at): Accept
20487         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
20488         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
20489         in AT_FLAGS.
20490         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
20491         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
20492
20493 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
20494
20495         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
20496
20497 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
20498
20499         [BZ #11640]
20500         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20501         Properly check family and model.
20502
20503 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
20504
20505         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
20506
20507 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
20508
20509         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
20510
20511 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
20512
20513         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
20514         symbol reference.
20515
20516 2010-05-19  Andreas Schwab  <schwab@redhat.com>
20517
20518         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
20519         symbol reference.
20520
20521 2010-05-21  Andreas Schwab  <schwab@redhat.com>
20522
20523         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
20524         and internal_recvmmsg.
20525         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
20526         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
20527         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
20528         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
20529
20530         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
20531         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
20532         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
20533
20534 2010-05-20  Andreas Schwab  <schwab@redhat.com>
20535
20536         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
20537
20538 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
20539
20540         POWER7 optimizations.
20541         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
20542         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
20543
20544 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
20545
20546         * version.h: Update for 2.13 development version.
20547
20548 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
20549
20550         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
20551         exceptions.  Return 0.
20552
20553 2010-05-07  Roland McGrath  <roland@redhat.com>
20554
20555         * elf/ldconfig.c (main): Add a const.
20556
20557 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
20558
20559         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
20560         (args_options): Add no-idn option.
20561         (ahosts_keys_int): Add idn_flags to ai_flags.
20562         (parse_option): Handle 'i' option to clear idn_flags.
20563
20564         * malloc/malloc.c (_int_free): Possible race in the most recently
20565         added check.  Only act on the data if no current modification
20566         happened.
20567
20568 See ChangeLog.17 for earlier changes.