Reorganization of bits/fcntl.h for Linux
[platform/upstream/glibc.git] / ChangeLog
1 2012-10-20  Andreas Jaeger  <aj@suse.de>
2
3         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
4         generic values for Linux.
5         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
6         and declarations that are provided by <bits/fcntl-linux.h> and
7         include <bits/fcntl-linux.h>.
8         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
9         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
10
11 2012-10-20  Roland McGrath  <roland@hack.frob.com>
12
13         * io/fcntl.h: Move include of <bits/types.h> to the top and
14         include it unconditionally.
15
16 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
17
18         * wcsmbs/Makefile (tests-ifunc): New variable.
19         (tests): Add $(tests-ifunc).
20         * wcsmbs/test-wcschr-ifunc.c: New file.
21         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
22         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
23         * wcsmbs/test-wcslen-ifunc.c: Likewise.
24         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
25         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
26
27         * string/Makefile (tests-ifunc): New variable.
28         (tests): Add $(tests-ifunc).
29         * string/test-memccpy.c (TEST_NAME): New macro.
30         * string/test-memchr.c (TEST_NAME): Likewise.
31         * string/test-memcmp.c (TEST_NAME): Likewise.
32         * string/test-memcpy.c (TEST_NAME): Likewise.
33         * string/test-memmem.c (TEST_NAME): Likewise.
34         * string/test-memmove.c (TEST_NAME): Likewise.
35         * string/test-memset.c (TEST_NAME): Likewise.
36         * string/test-rawmemchr.c (TEST_NAME): Likewise.
37         * string/test-stpcpy.c (TEST_NAME): Likewise.
38         * string/test-stpncpy.c (TEST_NAME): Likewise.
39         * string/test-strcasecmp.c (TEST_NAME): Likewise.
40         * string/test-strcasestr.c (TEST_NAME): Likewise.
41         * string/test-strcat.c (TEST_NAME): Likewise.
42         * string/test-strchr.c (TEST_NAME): Likewise.
43         * string/test-strcmp.c(TEST_NAME): Likewise.
44         * string/test-strcpy.c (TEST_NAME): Likewise.
45         * string/test-strcspn.c (TEST_NAME): Likewise.
46         * string/test-strlen.c (TEST_NAME): Likewise.
47         * string/test-strncasecmp.c (TEST_NAME): Likewise.
48         * string/test-strncmp.c (TEST_NAME): Likewise.
49         * string/test-strncpy.c (TEST_NAME): Likewise.
50         * string/test-strnlen.c (TEST_NAME): Likewise.
51         * string/test-strpbrk.c (TEST_NAME): Likewise.
52         * string/test-strrchr.c (TEST_NAME): Likewise.
53         * string/test-strspn.c (TEST_NAME): Likewise.
54         * string/test-strstr.c (TEST_NAME): Likewise.
55         * string/test-bcopy-ifunc.c: New file.
56         * string/test-bzero-ifunc.c: Likewise.
57         * string/test-memccpy-ifunc.c: Likewise.
58         * string/test-memchr-ifunc.c: Likewise.
59         * string/test-memcmp-ifunc.c: Likewise.
60         * string/test-memcpy-ifunc.c: Likewise.
61         * string/test-memmem-ifunc.c: Likewise.
62         * string/test-memmove-ifunc.c: Likewise.
63         * string/test-mempcpy-ifunc.c: Likewise.
64         * string/test-memset-ifunc.c: Likewise.
65         * string/test-rawmemchr-ifunc.c: Likewise.
66         * string/test-stpcpy-ifunc.c: Likewise.
67         * string/test-stpncpy-ifunc.c: Likewise.
68         * string/test-strcasecmp-ifunc.c: Likewise.
69         * string/test-strcasestr-ifunc.c: Likewise.
70         * string/test-strcat-ifunc.c: Likewise.
71         * string/test-strchr-ifunc.c: Likewise.
72         * string/test-strchrnul-ifunc.c: Likewise.
73         * string/test-strcmp-ifunc.c: Likewise.
74         * string/test-strcpy-ifunc.c: Likewise.
75         * string/test-strcspn-ifunc.c: Likewise.
76         * string/test-strlen-ifunc.c: Likewise.
77         * string/test-strncasecmp-ifunc.c: Likewise.
78         * string/test-strncat-ifunc.c: Likewise.
79         * string/test-strncmp-ifunc.c: Likewise.
80         * string/test-strncpy-ifunc.c: Likewise.
81         * string/test-strnlen-ifunc.c: Likewise.
82         * string/test-strpbrk-ifunc.c: Likewise.
83         * string/test-strrchr-ifunc.c: Likewise.
84         * string/test-strspn-ifunc.c: Likewise.
85         * string/test-strstr-ifunc.c: Likewise.
86
87         * debug/Makefile (tests-ifunc): New variable.
88         (tests): Add $(tests-ifunc).
89         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
90         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
91         * debug/test-stpcpy_chk-ifunc.c: New file.
92         * debug/test-strcpy_chk-ifunc.c: Likewise.
93
94 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
95
96         [BZ #13601]
97         * elf/dl-load.c (open_verify): Retry read if the entire ELF
98         header is not read in.
99
100 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
101
102         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
103         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
104         directly.  Pass built executable to script as
105         $(built-program-cmd).
106         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
107         $testprogram without using LD_LIBRARY_PATH and $ldso.
108
109         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
110         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
111         $(rtld-installed-name).
112         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
113         (rtld_installed_name): Likewise.
114         (library_path): Likewise.
115         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
116         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
117         $(run-program-prefix) to tst-tables.sh.
118         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
119         it to run tst-table-from and tst-table-to.
120         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
121         Pass it to tst-table.sh.
122         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
123         $(run-program-prefix) to tst-gettext.sh.
124         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
125         tst-translit.sh.
126         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
127         tst-gettext2.sh.
128         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
129         to run tst-gettext.
130         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
131         to run tst-gettext2.
132         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
133         to run tst-translit.
134         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
135         $(run-program-prefix) to tst-mtrace.sh.
136         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
137         to run tst-mtrace.
138         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
139         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
140         $(rtld-installed-name).
141         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
142         (rtld_installed_name): Likewise.
143         (run_program_prefix): New variable.  Use it to run wordexp-test.
144
145         * Makeconfig (ARCH): Remove all definitions.
146         (machine): Likewise.
147         [ARCH]: Remove conditional code.
148         [!objdir]: Give error.
149         [!objdir] (objpfx): Remove.
150         [!objdir] (common-objpfx): Likewise.
151         [!objdir] (common-objdir): Likewise.
152         * configure.in (config_makefile): Remove.  Hardcode Makefile in
153         AC_CONFIG_FILES call.
154         * configure: Regenerated.
155
156         [BZ #13888]
157         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
158         or TMPDIR.
159         (testout): Likewise.
160
161         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
162         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
163         $(rtld-installed-name).
164         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
165         (rtld_installed_name): Likwise.
166         (runit): Remove function.
167         (run_getconf): New variable,  Use it for running getconf binary.
168
169 2012-10-19  Jim Blandy  <jimb@codesourcery.com>
170             Joseph Myers  <joseph@codesourcery.com>
171
172         * localedata/tst-wctype.sh (run_program_prefix): Remove variable.
173         (tst_wctype): New variable.  Use it directly to run test program
174         instead of passing test program name as argument.
175
176 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
177
178         [BZ #14716]
179         * string/test-memmem.c (check_result): New function.
180         (do_one_test): Use it.
181         (check1): New function.
182         (test_main): Use it.
183
184 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
185
186         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
187
188 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
189
190         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
191         (_G_LSEEK64): Likewise.
192         (_G_MMAP64): Likewise.
193         (_G_FSTAT64): Likewise.
194         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
195         (_G_LSEEK64): Likewise.
196         (_G_MMAP64): Likewise.
197         (_G_FSTAT64): Likewise.
198         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
199         unconditional.  Call __mmap64 directly.
200         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
201         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
202         __lseek64 directly.
203         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
204         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
205         __mmap64 directly.
206         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
207         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
208         __lseek64 directly.
209         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
210         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
211         __lseek64 directly.
212         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
213         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
214         __lseek64 directly.
215         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
216         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
217         __fxstat64 directly.
218         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
219         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
220         unconditional.
221         (freopen64) [!_G_OPEN64]: Remove conditional code.
222         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
223         unconditional.
224         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
225         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
226         unconditional.
227         (ftello64) [!_G_LSEEK64]: Remove conditional code.
228         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
229         unconditional.
230         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
231         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
232         unconditional.
233         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
234         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
235         unconditional.
236         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
237         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
238         unconditional.
239         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
240         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
241         unconditional.
242         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
243
244 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
245
246         [BZ #12140]
247         * manual/memory.texi (Malloc Tunable Parameters): Add note
248         about free list pointers overwriting some perturb bytes.
249         Wording suggested by Roland McGrath.
250
251 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
252
253         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
254         (lgamma_test): Likewise.
255         (tgamma_test): Likewise.
256
257 2012-10-16  Florian Weimer  <fweimer@redhat.com>
258
259         [BZ #14700]
260         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
261         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
262
263 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
264
265         * NEWS: Mention BZ #14716.
266         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
267         when removing AVAILABLE1_USES_J macro.
268
269 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
270
271         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
272         (__bswap_64): __uint64_t for unsigned 64-bit int.
273
274 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
275
276         * include/string.h (memmem): Declare libc hidden alias.
277         * string/memmem.c (memmem): Define libc hidden alias.
278         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
279         __read, __close instead of open, read, close.
280
281 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
282
283         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
284         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
285         global and hidden.
286         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
287         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
288         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
289         Likewise.
290         (__rawmemchr_sse2): Likewise.
291         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
292         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
293         (__strchr_sse2): Likewise.
294         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
295         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
296         (__strcasecmp_sse2): Likewise.
297         (__strncasecmp_sse2): Likewise.
298         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
299         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
300         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
301         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
302         (__strrchr_sse2): Likewise.
303         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
304         ifunc-impl-list.c.
305         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
306         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
307         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
308         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
309         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
310         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
311         * sysdeps/x86_64/multiarch/memset.S: Likewise.
312         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
313         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
314         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
315         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
316         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
317         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
318         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
319         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
320         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
321         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
322         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
323         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
324         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
325         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
326         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
327         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
328         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
329         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
330         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
331         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
332         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
333         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
334         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
335
336         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
337         global and hidden.
338         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
339         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
340         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
341         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
342         Likewise.
343         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
344         Likewise.
345         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
346         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
347         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
348         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
349         ifunc-impl-list.c.
350         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
351         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
352         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
353         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
354         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
355         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
356         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
357         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
358         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
359         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
360         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
361         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
362         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
363         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
364         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
365         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
366         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
367         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
368         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
369         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
370         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
371         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
372         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
373         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
374         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
375         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
376         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
377         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
378         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
379         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
380         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
381         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
382         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
383         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
384         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
385         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
386         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
387         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
388         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
389         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
390         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
391
392         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
393         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
394         * include/ifunc-impl-list.h: New file.
395         * misc/ifunc-impl-list.c: Likewise.
396         * misc/Makefile (routines): Add ifunc-impl-list.
397         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
398         * string/test-string.h: Include <ifunc-impl-list.h>.
399         [TEST_IFUNC && TEST_NAME] (func_list, func_count, impl_count,
400         impl_array): New variables.
401         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
402         are defined.
403         (test_init): Call __libc_ifunc_impl_list to initialize
404         func_list if TEST_IFUNC and TEST_NAME are defined.
405
406         * string/Makefile (strop-tests): Add bcopy and bzero.
407         * string/test-bcopy.c: New file.
408         * string/test-bzero.c: Likewise.
409         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
410         defined.
411         * string/test-memset.c: Support bzero test if TEST_BZERO is
412         defined.
413         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
414         __libc_memmove.
415         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
416         __libc_memset.
417         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
418         of memset.
419
420 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
421
422         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
423         * configure: Regenerated.
424
425         * Makeconfig (+link-static-before-libc): Don't include
426         $(link-static-libc).
427
428         * libio/libio.h (_IO_pos_t): Remove.
429
430 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
431
432         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
433         McGrath.
434
435 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
436
437         * crypt/crypt-entry.c: Include fips-private.h.
438         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
439         * crypt/md5c-test.c (main): Tolerate disabled MD5.
440         * sysdeps/unix/sysv/linux/fips-private.h: New file.
441         * sysdeps/generic/fips-private.h: New file, dummy fallback.
442
443 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
444
445         * crypt/crypt-private.h: Include stdbool.h.
446         (_ufc_setup_salt_r): Return bool.
447         * crypt/crypt-entry.c: Include errno.h.
448         (__crypt_r): Return NULL with EINVAL for bad salt.
449         * crypt/crypt_util.c (bad_for_salt): New.
450         (_ufc_setup_salt_r): Check that salt is long enough and within
451         the specified alphabet.
452         * crypt/badsalttest.c: New file.
453         * crypt/Makefile (tests): Add it.
454         ($(objpfx)badsalttest): New.
455
456 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
457
458         * NEWS: Add entry for BZ #14602.
459
460 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
461
462         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
463         type-generic.
464         * math/libm-test.inc: Update comment listing what functions and
465         macros are tested.
466         (isgreater_test): New function.
467         (isgreaterequal_test): Likewise.
468         (isless_test): Likewise.
469         (islessequal_test): Likewise.
470         (islessgreater_test): Likewise.
471         (isunordered_test): Likewise.
472         (main): Call the new functions.
473
474 2012-10-09  Roland McGrath  <roland@hack.frob.com>
475
476         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
477         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
478         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
479         * sysdeps/i386/configure: Regenerated.
480         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
481         * sysdeps/mach/configure: Regenerated.
482         * sysdeps/mach/hurd/configure: Regenerated.
483         * sysdeps/powerpc/configure: Regenerated.
484         * sysdeps/powerpc/powerpc32/configure: Regenerated.
485         * sysdeps/powerpc/powerpc64/configure: Regenerated.
486         * sysdeps/s390/s390-32/configure: Regenerated.
487         * sysdeps/s390/s390-64/configure: Regenerated.
488         * sysdeps/sh/configure: Regenerated.
489         * sysdeps/sparc/configure: Regenerated.
490         * sysdeps/unix/sysv/linux/configure: Regenerated.
491         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
492         * sysdeps/x86_64/configure: Regenerated.
493
494         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
495         defined.  Don't check if MAP is NULL.
496
497 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
498
499         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
500         (_G_stat64): Likewise.
501         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
502         (_G_stat64): Likewise.
503         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
504         instead of struct _G_stat64.
505         * libio/fileops.c (mmap_remap_check): Likewise.
506         (decide_maybe_mmap): Likewise.
507         (_IO_new_file_seekoff): Likewise.
508         (_IO_file_stat): Likewise.
509         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
510         _G_off64_t.
511         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
512         instead of struct _G_stat64.
513         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
514
515 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
516
517         [BZ #14602]
518         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
519         Replace with ...
520         (CHECK_EOL): New macro.
521         (two_way_short_needle): Check beginning of haystack for EOL.  Use
522         CHECK_EOL.
523         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
524         Replace with CHECK_EOL.
525         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
526         Replace with CHECK_EOL.
527
528 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
529
530         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
531         type-generic.
532         * math/libm-test.inc: Update comment listing what functions and
533         macros are tested.
534         (finite_test): New function.
535         (isinf_test): Likewise.
536         (isnan_test): Likewise.
537         (fpclassify_test): Test subnormal input.
538         (isfinite_test): Likewise.
539         (isnormal_test): Likewise.
540         (main): Call the new functions.
541
542 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
543
544         [BZ #14660]
545         * Makerules (%.dynsym): Force C locale when running
546         $(OBJDUMP) --dynamic-syms.
547
548 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
549
550         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
551         <stdint.h>.
552
553 2012-10-06  David S. Miller  <davem@davemloft.net>
554
555         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
556         upper 32-bits of the length value in %o2 since we use branch-on-register
557         tests which consider the entire 64-bit register.
558
559 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
560
561         * string/test-strstr.c (check2): Add a test for page boundary.
562
563 2012-10-05  David S. Miller  <davem@davemloft.net>
564
565         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
566         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
567         file.
568         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
569         sysdep_routines.
570         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
571         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
572         and bzero when HWCAP_SPARC_CRYPTO is present.
573
574 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
575
576         [BZ #14602]
577         * string/test-strstr.c (check2): New function.
578         (test_main): Call check2.
579
580         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
581         and bug-strchr1.
582         * string/bug-strcasestr1.c (do_test): Moved to ...
583         * string/test-strcasestr.c (check1): Here.  New function.
584         (do_one_test): Break out result checking code into ...
585         (check_result): This.  New function.
586         (do_one_test): Call check_result.
587         (test_main): Call check1.
588         * string/bug-strchr1.c (do_test): Moved to ...
589         * string/test-strchr.c (check1): Here.  New function.
590         (do_one_test): Break out result checking code into ...
591         (check_result): This.  New function.
592         (do_one_test): Call check_result.
593         (test_main): Call check1.
594         * string/bug-strstr1.c (main): Moved to ...
595         * string/test-strchr.c (check1): Here.  New function.
596         (do_one_test): Break out result checking code into ...
597         (check_result): This.  New function.
598         (do_one_test): Call check_result.
599         (test_main): Call check1.
600         * string/bug-strcasestr1.c: Removed.
601         * string/bug-strchr1.c: Likewise.
602         * string/bug-strstr1.c: Likewise.
603
604         * elf/Makefile (dl-routines): Add hwcaps.
605         * elf/dl-support.c (_dl_important_hwcaps): Removed.
606         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
607         (_dl_important_hwcaps): Moved to ...
608         * elf/dl-hwcaps.c: Here.  New file.
609         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
610
611         [BZ #14557]
612         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
613         if IS_IN_rtld isn't defined.
614
615         * elf/dl-support.c (_dl_sysinfo_map): New.
616         Include "get-dynamic-info.h" and "setup-vdso.h".
617         (_dl_non_dynamic_init): Call setup_vdso.
618         * elf/dynamic-link.h: Don't include <assert.h>.
619         (elf_get_dynamic_info): Moved to ...
620         * elf/get-dynamic-info.h: Here.  New file.
621         * elf/dynamic-link.h: Include "get-dynamic-info.h".
622         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
623         * elf/setup-vdso.h: Here.  New file.
624         * elf/rtld.c: Include "setup-vdso.h".
625         (dl_main): Call setup_vdso.
626
627 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
628
629         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
630         creal in comment listing functions tested.  List finite, isinf,
631         isnan, isless, islessequal, isgreater, isgreaterequal,
632         islessgreater, isunordered, lgamma_r and pow10 as functions and
633         macros not tested.  Mention which functions not tested are aliases
634         for other functions.  Fix typo.  Note that signs of NaNs are not
635         tested.
636
637         * scripts/config.guess: Update from config.git.
638         * scripts/config.sub: Likewise.
639
640 2012-10-04  Roland McGrath  <roland@hack.frob.com>
641
642         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
643         * misc/madvise.c (madvise): Renamed to __madvise.
644         Make madvise a weak alias.
645         * include/sys/mman.h: Declare __madvise.
646         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
647         * sysdeps/unix/syscalls.list
648         (madvise): Make __madvise the strong name, and madvise a weak alias.
649         * sysdeps/unix/sysv/linux/syscalls.list
650         (madvise, mmap): Remove redundant entries.
651         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
652         * malloc/malloc.c (mtrim): Likewise.
653         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
654
655 2012-10-03  Roland McGrath  <roland@hack.frob.com>
656
657         * sysdeps/mach/hurd/dl-cache.c: File removed.
658         * config.h.in (USE_LDCONFIG): New #undef.
659         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
660         * configure: Regenerated.
661         * elf/Makefile (dl-routines): Add dl-cache only under
662         [$(use-ldconfig) = yes].
663         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
664         cache on [USE_LDCONFIG].
665         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
666         [USE_LDCONFIG].
667         * elf/rtld.c (dl_main): Likewise.
668
669 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
670
671         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
672         _SC_LEVEL4_CACHE_LINESIZE.
673
674 2012-10-03  Roland McGrath  <roland@hack.frob.com>
675
676         * sysdeps/unix/bsd/confstr.h: File removed.
677
678 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
679
680         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
681         sys/sdt-config.h.
682
683 2012-10-02  Roland McGrath  <roland@hack.frob.com>
684
685         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
686         Make 'mapoff' field ElfW(Off) rather than off_t.
687
688 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
689
690         * nscd/Makefile: Remove nscd-cflags and all its users.
691         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
692         (CFLAGS-nonlib): Add compiler flags for nscd modules.
693
694         [BZ #10631]
695         * malloc.c (malloc_printerr): Clarify error message.
696
697 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
698
699         [BZ #14648]
700         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
701         Set bit_FMA_Usable if FMA is supported.
702         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
703         macro.
704         (bit_FMA4_Usable): Updated.
705         (index_FMA_Usable): New macro.
706         (CPUID_FMA): Likewise
707         (HAS_FMA): Defined with bit_FMA_Usable.
708
709 2012-10-01  Roland McGrath  <roland@hack.frob.com>
710
711         * bits/types.h (__swblk_t): Type removed.
712         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
713         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
714         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
715         (__SWBLK_T_TYPE): Likewise.
716         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
717         (__SWBLK_T_TYPE): Likewise.
718         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
719         (__SWBLK_T_TYPE): Likewise.
720         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
721         (__SWBLK_T_TYPE): Likewise.
722
723 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
724             Honza Horak <hhorak@redhat.com>
725
726         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
727         (xdr_mapname): Use YPMAXMAP as maxsize.
728         (xdr_peername): Use YPMAXPEER as maxsize.
729         (xdr_keydat): Use YPAXRECORD as maxsize.
730         (xdr_valdat): Use YPMAXRECORD as maxsize.
731
732 2012-10-01  Roland McGrath  <roland@hack.frob.com>
733
734         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
735
736         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
737         * csu/init-first.c: ... here.
738         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
739         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
740         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
741         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
742         * sysdeps/i386/init-first.c: File removed.
743         * sysdeps/sh/init-first.c: File removed.
744
745 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
746
747         [BZ #14645]
748         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
749         if x * y might underflow to zero and z is zero.
750         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
751         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
752         * math/libm-test.inc (min_subnorm_value): New variable.
753         (fma_test): Add more tests.
754         (fma_test_towardzero): Likewise.
755         (fma_test_downward): Likewise
756         (fma_test_upward): Likewise.
757         (initialize): Set min_subnorm_value.
758
759 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
760
761         [BZ #14638]
762         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
763         0 + 0.
764         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
765         mode for addition resulting in exact zero.
766         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
767         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
768         exact 0 + 0.
769         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
770         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
771         * math/libm-test.inc (fma_test): Add more tests.
772         (fma_test_towardzero): New function.
773         (fma_test_downward): Likewise.
774         (fma_test_upward): Likewise.
775         (main): Call the new functions.
776
777 2012-09-28  David S. Miller  <davem@davemloft.net>
778
779         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
780
781 2012-09-28  Roland McGrath  <roland@hack.frob.com>
782
783         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
784         instead of SIGALRM.
785
786         * sysdeps/gnu/_G_config.h: Moved to ...
787         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
788         * sysdeps/mach/hurd/_G_config.h: Moved to ...
789         * sysdeps/generic/_G_config.h: ... here.
790
791         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
792
793         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
794
795         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
796         Conditionalize target on [libnss_test1.so-version].
797
798         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
799
800         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
801         (elfobjdir): Move out of conditionals.
802
803         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
804         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
805         (__nss_lookup_function): Conditionalize label remove_from_tree on
806         [!DO_STATIC_NSS || SHARED], matching its only use.
807
808 2012-09-28  David S. Miller  <davem@davemloft.net>
809
810         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
811         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
812         file.
813         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
814         sysdep_routines.
815         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
816         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
817         when HWCAP_SPARC_CRYPTO is present.
818
819 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
820
821         * io/tst-mknodat.c: Create a FIFO instead of a socket.
822
823 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
824
825         [BZ #6530]
826         * stdio-common/vfprintf.c (process_string_arg): Revert
827         2000-07-22 change.
828
829 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
830
831         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
832         for testcase.
833         * stdio-common/tst-sprintf.c: Include <locale.h>
834         (main): Test sprintf's handling of incomplete multibyte
835         characters.
836
837 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
838
839         * elf/dl-runtime.c (VERSYMIDX): Removed.
840         * elf/dl-version.c (VERSYMIDX): Likewise.
841         * elf/do-rel.h (VERSYMIDX): Likewise.
842         (VALIDX): Likewise.
843         * elf/dynamic-link.h (VERSYMIDX): Likewise.
844         * elf/rtld.c (VALIDX): Likewise.
845         (ADDRIDX): Likewise.
846         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
847         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
848         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
849         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
850         (VALIDX): Likewise.
851         (ADDRIDX): Likewise.
852
853 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
854
855         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
856
857 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
858
859         [BZ #11438]
860         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
861         to global scope.
862         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
863         addresses are in the same scope as 192.0.2/24.
864         * posix/gai.conf: Document new scope table defaults.
865
866 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
867
868         [BZ #5298]
869         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
870         for ftell.  Compute offsets from write pointers instead.
871         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
872
873 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
874
875         [BZ #14543]
876         * libio/Makefile (tests): New test case tst-fseek.
877         * libio/tst-fseek.c: New test case to verify that fseek/ftell
878         combination works in wide mode.
879         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
880         state when the external buffer state changes.
881
882 2012-09-27  David S. Miller  <davem@davemloft.net>
883
884         [BZ #14376]
885         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
886         pass reloc->r_addend in as the 'high' argument to
887         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
888
889         * sysdeps/sparc/fpu/libm-test-ulps: Update.
890
891 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
892
893         * rt/tst-aio2.c: Include <pthread.h>.
894         * rt/tst-aio3.c: Likewise.
895
896 2012-09-27  Steve Ellcey  <sellcey@mips.com>
897
898         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
899
900 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
901
902         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
903         contents on [SHARED].
904
905 2012-09-26  Marek Polacek  <polacek@redhat.com>
906
907         [BZ #14530]
908         [BZ #13741]
909         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
910         for C++ and GCC <4.3 as well as for non GCC compilers.
911
912 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
913
914         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
915
916 2012-09-25  Roland McGrath  <roland@hack.frob.com>
917
918         * Makefile.in (all, install): Declare with .PHONY.
919         Reported by Michael Hope <michael.hope@linaro.org>.
920
921 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
922
923         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
924         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
925         system header.
926         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
927         Likewise.
928         (sydep_routines): Add the new and the internal functions.
929         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
930         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
931         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
932         (GLIBC_2.17): Add the new function.
933         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
934         (GLIBC_2.17): Likewise.
935         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
936         (GLIBC_2.17): Likewise.
937         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
938         (GLIBC_2.17): Likewise.
939         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
940
941 2012-09-25  Alan Modra  <amodra@gmail.com>
942
943         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
944         Add release barrier before setting once_control to say
945         initialisation is done.  Add hints on lwarx.  Use macro in
946         place of isync.
947         (clear_once_control): Add release barrier.
948
949 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
950
951         [BZ #13629]
952         * math/s_clog.c (__clog): Handle more values close to |z| = 1
953         specially.
954         * math/s_clog10.c (__clog10): Likewise.
955         * math/s_clog10f.c (__clog10f): Likewise.
956         * math/s_clog10l.c (__clog10l): Likewise.
957         * math/s_clogf.c (__clogf): Likewise.
958         * math/s_clogl.c (__clogl): Likewise.
959         * math/Makefile (libm-calls): Add x2y2m1.
960         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
961         (__x2y2m1): Likewise.
962         (__x2y2m1l): Likewise.
963         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
964         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
965         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
966         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
967         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
968         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
969         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
970         * sysdeps/i386/fpu/libm-test-ulps: Update.
971         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
972
973         [BZ #14621]
974         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
975         int as type of variable DEPTH.
976         (glob): Use size_t instead of int as type of variables NEWCOUNT
977         and OLD_PATHC.
978
979 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
980
981         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
982         Add s_sincosf-sse2.
983         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
984         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
985         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
986         macros for using routine as __sincosf_ia32.
987         Use macro for function declaration and weak_alias.
988         * sysdeps/i386/fpu/libm-test-ulps: Update.
989
990         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
991         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
992
993         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
994         subnormal argument.
995         * math/s_cexpf.c (__cexpf): Likewise.
996         * math/s_csinf.c (__csinf): Likewise.
997         * math/s_csinhf.c (__csinhf): Likewise.
998         * math/s_ctanf.c (__ctanf): Likewise.
999         * math/s_ctanhf.c (__ctanhf): Likewise.
1000         * math/s_ccosh.c (__ccoshf): Likewise.
1001         * math/s_cexp.c (__cexpl): Likewise.
1002         * math/s_csin.c (__csin): Likewise.
1003         * math/s_csinh.c (__csinh): Likewise.
1004         * math/s_ctan.c (__ctan): Likewise.
1005         * math/s_ctanh.c (ctanh): Likewise.
1006         * math/s_ccoshl.c (__ccoshl): Likewise.
1007         * math/s_cexpl.c (__cexpl): Likewise.
1008         * math/s_csinl.c (__csinl): Likewise.
1009         * math/s_csinhl.c (__csinhl): Likewise.
1010         * math/s_ctanl.c (__ctanl): Likewise.
1011         * math/s_ctanhl.c (__ctanhl): Likewise.
1012
1013 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
1014
1015         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
1016         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
1017         (_IO_off_t): Define to __off_t, not _G_off_t.
1018         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
1019         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
1020         (_IO_wint_t): Define to wint_t, not _G_wint_t.
1021         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
1022         type of __dummy and __dummy2 fields.
1023         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
1024         (_G_ssize_t): Likewise.
1025         (_G_off_t): Likewise.
1026         (_G_pid_t): Likewise.
1027         (_G_uid_t): Likewise.
1028         (_G_wchar_t): Likewise.
1029         (_G_wint_t): Likewise.
1030         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
1031         (_G_ssize_t): Likewise.
1032         (_G_off_t): Likewise.
1033         (_G_pid_t): Likewise.
1034         (_G_uid_t): Likewise.
1035         (_G_wchar_t): Likewise.
1036         (_G_wint_t): Likewise.
1037         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
1038         (_G_ssize_t): Likewise.
1039         (_G_off_t): Likewise.
1040         (_G_pid_t): Likewise.
1041         (_G_uid_t): Likewise.
1042         (_G_wchar_t): Likewise.
1043         (_G_wint_t): Likewise.
1044
1045 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
1046
1047         * malloc/arena.c: Include malloc-sysdep.h.
1048         (shrink_heap): Use check_may_shrink_heap to decide if madvise
1049         is sufficient to shrink the heap or an unmap is needed.
1050         * sysdeps/generic/malloc-sysdep.h: New file.  Define
1051         new function check_may_shrink_heap.
1052         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
1053         new function check_may_shrink_heap.
1054
1055 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
1056
1057         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
1058         comments.
1059
1060 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
1061
1062         * catgets/test-gencat.sh: Add "set -e".
1063         * elf/tst-pathopt.sh: Likewise.
1064         * grp/tst_fgetgrent.sh: Likewise.
1065         * iconvdata/run-iconv-test.sh: Likewise.
1066         * intl/tst-gettext.sh: Likewise.
1067         * intl/tst-gettext2.sh: Likewise.
1068         * intl/tst-gettext4.sh: Likewise.
1069         * intl/tst-gettext6.sh: Likewise.
1070         * intl/tst-translit.sh: Likewise.
1071         * io/ftwtest-sh: Likewise.
1072         * libio/test-freopen.sh: Likewise.
1073         * malloc/tst-mtrace.sh: Likewise.
1074         * posix/globtest.sh: Likewise.
1075         * posix/tst-getconf.sh: Likewise.
1076         * posix/wordexp-tst.sh: Likewise.
1077         * stdio-common/tst-printf.sh: Likewise.
1078         * stdio-common/tst-unbputc.sh: Likewise.
1079         * stdlib/tst-fmtmsg.sh: Likewise.
1080         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
1081         * catgets/Makefile: Do not specify -e option when running
1082         testsuite shell scripts.
1083         * elf/Makefile: Likewise.
1084         * grp/Makefile: Likewise.
1085         * iconvdata/Makefile: Likewise.
1086         * intl/Makefile: Likewise.
1087         * io/Makefile: Likewise.
1088         * libio/Makefile: Likewise.
1089         * malloc/Makefile: Likewise.
1090         * posix/Makefile: Likewise.
1091         * stdio-common/Makefile: Likewise.
1092         * stdlib/Makefile: Likewise.
1093         * sysdeps/x86_64/Makefile: Likewise.
1094
1095         * io/ftwtest-sh: Add copyright header.
1096         * posix/globtest.sh: Likewise.
1097         * posix/tst-getconf.sh: Likewise.
1098         * posix/wordexp-tst.sh: Likewise.
1099         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
1100
1101 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
1102
1103         [BZ #13679]
1104         * Makeconfig (+link): Defined as $(+link-static) if
1105         $(build-shared) isn't yes.
1106         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
1107         isn't yes.
1108         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
1109
1110         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
1111
1112         [BZ #14562]
1113         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
1114         new chunk size with MALLOC_ALIGN_MASK.
1115
1116 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
1117
1118         [BZ #5044]
1119         * stdio-common/printf_fphex.c: Include <stdbool.h> and
1120         <rounding-mode.h>.
1121         (__printf_fphex): Determine rounding using get_rounding_mode and
1122         round_away.
1123         * stdio-common/tst-printf-round.c (struct hex_test): New
1124         structure.
1125         (hex_tests): New variable.
1126         (test_hex_in_one_mode): New function.
1127         (do_test): Also run tests for hex float output.
1128
1129 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
1130
1131         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
1132         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
1133         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
1134         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
1135         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
1136         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
1137         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
1138         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
1139
1140 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
1141
1142         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
1143         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
1144         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
1145         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
1146
1147 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
1148
1149         [BZ #14579]
1150         * elf/rtld.c (dl_main): Limit the check for self loading to normal
1151         mode only.
1152         * elf/tst-rtld-load-self.sh: New test.
1153         * elf/Makefile: Run it.
1154
1155 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
1156
1157         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
1158         (tst-writev-ENV): Remove.
1159         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
1160
1161 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
1162
1163         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
1164
1165 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
1166
1167         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
1168         unconditional.
1169         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
1170         Likewise.
1171         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
1172         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
1173         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
1174         Likewise.
1175
1176 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
1177
1178         [BZ #14587]
1179         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
1180         * config.make.in (have-cpp-asm-debuginfo): Removed.
1181         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
1182         * configure: Regenerated.
1183
1184 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
1185
1186         [BZ #5044]
1187         * stdio-common/printf_fp.c: Include <stdbool.h> and
1188         <rounding-mode.h>.
1189         (___printf_fp): Determine rounding using get_rounding_mode and
1190         round_away.
1191         * stdio-common/tst-printf-round.c: New file.
1192         * stdio-common/Makefile (tests): Add tst-printf-round.
1193         (link-libm): New variable.
1194         ($(objpfx)tst-printf-round): Depend in $(link-libm).
1195
1196 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
1197
1198         [BZ #14576]
1199         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
1200         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
1201         Likewise.
1202         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
1203         Likewise.
1204
1205 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
1206
1207         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
1208         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
1209         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
1210         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
1211
1212 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
1213
1214         [BZ #14518]
1215         * include/rounding-mode.h: New file.
1216         * sysdeps/generic/get-rounding-mode.h: Likewise.
1217         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
1218         * stdlib/strtod_l.c: Include <rounding-mode.h>.
1219         (MAX_VALUE): New macro.
1220         (MIN_VALUE): Likewise.
1221         (overflow_value): New function.
1222         (underflow_value): Likewise.
1223         (round_and_return): Use overflow_value and underflow_value to
1224         determine return values in overflow and underflow cases.  Use
1225         round_away to determine rounding depending on rounding mode.
1226         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
1227         determine return values in overflow and underflow cases.
1228         * stdlib/tst-strtod-round.c: Include <fenv.h>.
1229         (struct test_results): New structure.
1230         (struct test): Use struct test_results to store expected results
1231         for all rounding modes.
1232         (TEST): Include expected results for all rounding modes.
1233         (test_in_one_mode): New function.
1234         (do_test): Use test_in_one_mode to compute and check results.
1235         Check results for all rounding modes.
1236         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
1237         $(link-libm).
1238
1239 2012-12-09  Allan McRae  <allan@archlinux.org>
1240
1241         * sysdeps/i386/fpu/libm-test-ulps: Update
1242
1243 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
1244
1245         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
1246         (_G_int32_t): Likewise.
1247         (_G_uint16_t): Likewise.
1248         (_G_uint32_t): Likewise.
1249         (_G_HAVE_BOOL): Likewise.
1250         (_G_HAVE_ATEXIT): Likewise.
1251         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
1252         (_G_HAVE_IO_FILE_OPEN): Likewise.
1253         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
1254         (_G_int32_t): Likewise.
1255         (_G_uint16_t): Likewise.
1256         (_G_uint32_t): Likewise.
1257         (_G_HAVE_BOOL): Likewise.
1258         (_G_HAVE_ATEXIT): Likewise.
1259         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
1260         (_G_HAVE_IO_FILE_OPEN): Likewise.
1261         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
1262         (_G_int32_t): Likewise.
1263         (_G_uint16_t): Likewise.
1264         (_G_uint32_t): Likewise.
1265         (_G_HAVE_BOOL): Likewise.
1266         (_G_HAVE_ATEXIT): Likewise.
1267         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
1268         (_G_HAVE_IO_FILE_OPEN): Likewise.
1269
1270 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
1271
1272         * csu/libc-tls.c: Update copyright years.
1273
1274 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
1275
1276         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
1277         [!_G_USING_THUNKS]: Remove conditional code.
1278         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
1279         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
1280
1281         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
1282         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
1283         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
1284         (_G_VTABLE_LABEL_PREFIX): Likewise.
1285         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
1286         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
1287         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
1288         (_G_VTABLE_LABEL_PREFIX): Likewise.
1289         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
1290         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
1291         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
1292         (_G_VTABLE_LABEL_PREFIX): Likewise.
1293         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
1294
1295 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
1296
1297         * libio/Makefile: Include ../Makeconfig before tests.
1298         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
1299         only if $(build-shared) is yes.
1300
1301         * iconv/gconv_db.c: Update copyright years.
1302
1303 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1304
1305         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
1306         unwind info if defined PIC. Fix special cases description.
1307         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
1308
1309         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
1310         DP_HI_MASK entry.
1311         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
1312
1313 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
1314
1315         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
1316
1317         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
1318         is NULL.
1319
1320         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
1321         (LDLIBS-tst-chk4): This.
1322         (LDFLAGS-tst-chk5): Renamed to ...
1323         (LDLIBS-tst-chk5): This.
1324         (LDFLAGS-tst-chk6): Renamed to ...
1325         (LDLIBS-tst-chk6): This.
1326         (LDFLAGS-tst-lfschk4): Renamed to ...
1327         (LDLIBS-tst-lfschk4): This.
1328         (LDFLAGS-tst-lfschk5): Renamed to ...
1329         (LDLIBS-tst-lfschk5): This.
1330         (LDFLAGS-tst-lfschk6): Renamed to ...
1331         (LDLIBS-tst-lfschk6): This.
1332
1333         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
1334         on $(common-objpfx)soversions.mk.
1335
1336 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
1337
1338         [BZ #10014]
1339         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
1340         example host name.
1341
1342 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
1343
1344         * malloc/arena.c (arena_get_retry): New function that gets
1345         another arena for the caller to try its request on.
1346         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
1347         current arena cannot fulfill the request.
1348         (__libc_memalign): Likewise.
1349         (__libc_memalign): Likewise.
1350         (__libc_pvalloc): Likewise.
1351         (__libc_calloc): Likewise.
1352
1353 2012-09-05  John Tobey  <john.tobey@gmail.com>
1354
1355         [BZ #13542]
1356         * manual/arith.texi (Operations on Complex): Fix description
1357         of carg branch cut.
1358
1359 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
1360
1361         [BZ #10014]
1362         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
1363         host name.
1364
1365         [BZ #10038]
1366         * manual/memory.texi (Memory): Make order of menu items match
1367         order of sections.
1368
1369 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1370
1371         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
1372         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
1373         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
1374
1375 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1376
1377         * csu/libc-tls.c (static_dtv): Renamed to ...
1378         (_dl_static_dtv): This.  Make it global.
1379         (_dl_initial_dtv): Removed.
1380         (__libc_setup_tls): Updated.
1381         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
1382         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
1383         DL_INITIAL_DTV.
1384
1385 2012-09-06  Petr Machata  <pmachata@redhat.com>
1386
1387         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
1388         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
1389         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
1390         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
1391
1392 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1393
1394         [BZ #14545]
1395         * csu/libc-tls.c (_dl_initial_dtv): New variable.
1396         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
1397         freeing dtv[-1].
1398
1399 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1400
1401         [BZ #14544]
1402         * Makeconfig (link-static-before-libc): Replace $(+prector)
1403         with $(+prectorT).
1404         (link-static-after-libc): Replace $(+postctor) with
1405         $(+postctorT).
1406         (link-bounded): Replace $(+prector)/$(+postctor) with
1407         $(+prectorT)/$(+postctorT).
1408         (+prectorT): New macro.
1409         (+postctorT): Likewise.
1410
1411 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
1412
1413         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
1414         (round_str): Handle values above the maximum for IBM long double
1415         as inexact.
1416         * stdlib/tst-strtod-round.c (tests): Regenerated.
1417
1418 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1419
1420         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
1421         assembler flag.
1422         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
1423         zarch_nohighgprs around the zarch optimized routines.
1424         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
1425         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
1426         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
1427         for zarch.
1428
1429 2012-09-05  David S. Miller  <davem@davemloft.net>
1430
1431         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1432
1433         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
1434         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
1435         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
1436         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
1437         entries.
1438
1439 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1440
1441         * malloc/arena.c: Fold copyright years.
1442         * malloc/mcheck.c, malloc/memusage.c: Likewise.
1443
1444 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1445
1446         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
1447
1448 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1449
1450         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
1451
1452 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1453
1454         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
1455         change internal state upon failure.
1456
1457 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1458
1459         * malloc/mcheck.c (mcheck_check_all): Fix typo.
1460         * malloc/memusage.c (mmap): Likewise.
1461         (mmap64, mremap): Likewise.  Adjust name in comment.
1462
1463 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
1464
1465         * libio/fileops.c: Fix typos in comments.
1466         * libio/oldfileops.c: Likewise.
1467         * libio/wfileops.c: Likewise.
1468
1469 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
1470
1471         [BZ #1349]
1472         * malloc/Makefile (tests): Add tst-malloc-usable test case.
1473         (tst-malloc-usable-ENV): Set environment for test case.
1474         * malloc/hooks.c (malloc_check_get_size): New function to get
1475         requested size.
1476         * malloc/malloc.c (musable): Use malloc_check_get_size.
1477         * malloc/tst-malloc-usable.c: New test case.
1478
1479 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
1480
1481         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
1482
1483 2012-09-05  Allan McRae  <allan@archlinux.org>
1484
1485         [BZ #13966]
1486         * configure.in (CXX_SYSINCLUDES): Use compiler output to
1487         determine header location.
1488         * configure: Regenerated.
1489
1490 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
1491
1492         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
1493         float format.
1494         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
1495         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
1496         format.
1497         (test): Regenerate.
1498
1499 2012-09-04  David S. Miller  <davem@davemloft.net>
1500
1501         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
1502         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
1503         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
1504
1505 2012-09-04  Florian Weimer  <fweimer@redhat.com>
1506
1507         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
1508         failures.
1509
1510         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
1511
1512 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
1513
1514         [BZ #9914]
1515         * libio/iogetdelim.c: Include <limits.h>.
1516         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
1517         + len + 1 would overflow.
1518
1519 2012-09-03  Andreas Jaeger  <aj@suse.de>
1520
1521         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1522         * sysdeps/i386/fpu/libm-test-ulps: Update.
1523
1524 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1525
1526         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
1527         Add s_sinf-sse2, s_conf-sse2.
1528
1529         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
1530         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
1531         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
1532         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
1533
1534         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
1535         for using routine as __sinf_ia32.
1536         Use macro for function declaration and weak_alias.
1537         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
1538         for using routine as __cosf_ia32.
1539         Use macro for function declaration and weak_alias.
1540
1541         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
1542         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
1543
1544         * sysdeps/x86_64/fpu/s_sinf.S: New file.
1545         * sysdeps/x86_64/fpu/s_cosf.S: New file.
1546         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1547
1548         * math/libm-test.inc (cos_test): Add more test cases.
1549         (sin_test): Likewise.
1550         (sincos_test): Likewise.
1551
1552 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1553
1554         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
1555         (IFUNC_RESOLVE): Make pointers to the specialized implementations
1556         hidden.
1557         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
1558
1559 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
1560
1561         [BZ #14538]
1562         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
1563         first element of the GOT.
1564         (elf_machine_load_address): Return the difference between
1565         the runtime address of _DYNAMIC and elf_machine_dynamic ().
1566
1567 2012-09-01  Allan McRae  <allan@archlinux.org>
1568
1569         [BZ #13412]
1570         * configure.in (AWK): Require gawk version 3.0 or later.
1571         * configure: Regenerated.
1572
1573 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
1574
1575         * sysdeps/unix/sysv/linux/kernel-features.h
1576         (__ASSUME_POSIX_CPU_TIMERS): Remove.
1577         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
1578         [__NR_clock_getres]: Make code unconditional.
1579         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
1580         (clock_getcpuclockid): Remove code left unreachable by removal of
1581         conditionals.
1582         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
1583         code unconditional.
1584         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
1585         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
1586         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
1587         Make code unconditional.
1588         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
1589         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
1590         * sysdeps/unix/sysv/linux/clock_settime.c
1591         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
1592         conditional code.
1593         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
1594         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
1595
1596 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
1597
1598         [BZ #14476]
1599         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
1600         scripts/test-installation.pl.
1601
1602         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
1603         and $ld_so_version if it is set.
1604
1605 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
1606
1607         [BZ #14516]
1608         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
1609         failure if reading from procfs failed.
1610         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
1611
1612 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
1613
1614         * sysdeps/unix/sysv/linux/kernel-features.h
1615         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
1616         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
1617         Remove conditional code.
1618         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1619         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
1620         Remove conditional code.
1621         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1622         * sysdeps/unix/sysv/linux/i386/fxstat.c
1623         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
1624         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1625         * sysdeps/unix/sysv/linux/i386/fxstatat.c
1626         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
1627         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1628         * sysdeps/unix/sysv/linux/i386/lxstat.c
1629         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
1630         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1631         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
1632         Remove conditional code.
1633         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1634         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
1635         Remove conditional code.
1636         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1637         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
1638         <kernel-features.h>.
1639         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
1640         Remove.
1641         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
1642         Remove conditional code.
1643         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1644         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
1645         Remove conditional.
1646
1647 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
1648
1649         [BZ #5400]
1650         * NEWS: Add fixed bug number.
1651
1652 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
1653
1654         [BZ #14519]
1655         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
1656         underflowing exponent in case of negative sign.
1657         * stdlib/tst-strtod-round-data: Add more tests.
1658         * stdlib/tst-strtod-round.c (tests): Regenerated.
1659
1660         [BZ #3479]
1661         * stdlib/strtod_l.c (NDIG): Remove.
1662         (HEXNDIG): Likewise.
1663         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
1664         smallest representable value.
1665         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
1666         lie within an exact representation of 1/2 ulp of the result.
1667         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
1668         unconditionally.
1669         (TENS_P9_IDX): Define unconditionally.
1670         (TENS_P9_SIZE): Likewise.
1671         (TENS_P10_IDX): Likewise.
1672         (TENS_P10_SIZE): Likewise.
1673         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
1674         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
1675         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
1676         entries for 10^2^13 and 10^2^14.
1677         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
1678         (TENS_P13_IDX): Define.
1679         (TENS_P13_SIZE): Likewise.
1680         (TENS_P14_IDX): Likewise.
1681         (TENS_P14_SIZE): Likewise.
1682         (_fpioconst_pow10): Change array size to
1683         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
1684         unconditional.
1685         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
1686         1024]: Add entries for 10^2^13 and 10^2^14.
1687         [LAST_POW10 > _LAST_POW10]: Remove #error.
1688         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
1689         (_fpioconst_pow10): Change array size to
1690         FPIOCONST_POW10_ARRAY_SIZE.
1691         * stdlib/gen-fpioconst.c: New file.
1692         * stdlib/gen-tst-strtod-round.c: Likewise.
1693         * stdlib/tst-strtod-round-data: Likewise.
1694         * stdlib/tst-strtod-round.c: Likewise.
1695         * stdlib/Makefile (tests): Add tst-strtod-round.
1696
1697         [BZ #14459]
1698         * stdlib/strtod_l.c: Include <stdint.h>.
1699         (NDEBUG): Do not define.
1700         (round_and_return): Change EXPONENT parameter to type intmax_t.
1701         Rearrange calculations to avoid internal overflow possibilities.
1702         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
1703         Rearrange calculations to avoid internal overflow possibilities.
1704         Assert that number fits inside MPNSIZE limbs.
1705         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
1706         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
1707         calculations and add assertions to avoid internal overflow
1708         possibilities.  Add casts to avoid signed/unsigned operations.
1709         * stdlib/tst-strtod-overflow.c: New file.
1710         * stdlib/Makefile (tests): Add tst-strtod-overflow.
1711
1712 2012-08-25  Marek Polacek  <polacek@redhat.com>
1713
1714         * time/time.h: Fix some typos in comments.
1715
1716 2012-08-23  Roland McGrath  <roland@hack.frob.com>
1717
1718         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
1719         * posix/tst-rfc3484-2.c: Likewise.
1720         * posix/tst-rfc3484-3.c: Likewise.
1721
1722 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
1723
1724         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
1725         (EF_ARM_ABI_FLOAT_HARD): Likewise.
1726
1727 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
1728
1729         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
1730         #include of fxstatat64.c.
1731
1732 2012-08-22  Roland McGrath  <roland@hack.frob.com>
1733
1734         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
1735         * shadow/getspent_r.c: Likewise.
1736         * shadow/getspnam.c: Likewise.
1737         * shadow/getspnam_r.c: Likewise.
1738         * gshadow/getsgent.c: Likewise.
1739         * gshadow/getsgent_r.c: Likewise.
1740         * gshadow/getsgnam.c: Likewise.
1741         * gshadow/getsgnam_r.c: Likewise.
1742         * inet/getnetbyad.c: Likewise.
1743         * inet/getnetbyad_r.c: Likewise.
1744         * inet/getnetbynm.c: Likewise.
1745         * inet/getnetbynm_r.c: Likewise.
1746         * inet/getnetent.c: Likewise.
1747         * inet/getnetent_r.c: Likewise.
1748         * inet/getproto.c: Likewise.
1749         * inet/getproto_r.c: Likewise.
1750         * inet/getprtent.c: Likewise.
1751         * inet/getprtent_r.c: Likewise.
1752         * inet/getprtname.c: Likewise.
1753         * inet/getprtname_r.c: Likewise.
1754         * inet/getrpcbyname.c: Likewise.
1755         * inet/getrpcbyname_r.c: Likewise.
1756         * inet/getrpcbynumber.c: Likewise.
1757         * inet/getrpcbynumber_r.c: Likewise.
1758         * inet/getrpcent.c: Likewise.
1759         * inet/getrpcent_r.c: Likewise.
1760         * inet/getaliasent.c: Likewise.
1761         * inet/getaliasent_r.c: Likewise.
1762         * inet/getaliasname.c: Likewise.
1763         * inet/getaliasname_r.c: Likewise.
1764         * nscd/getgrgid_r.c: Likewise.
1765         * nscd/getgrnam_r.c: Likewise.
1766         * nscd/gethstbyad_r.c: Likewise.
1767         * nscd/gethstbynm3_r.c: Likewise.
1768         * nscd/getpwnam_r.c: Likewise.
1769         * nscd/getpwuid_r.c: Likewise.
1770         * nscd/getsrvbynm_r.c: Likewise.
1771         * nscd/getsrvbypt_r.c: Likewise.
1772         * nscd/gai.c: Likewise.
1773
1774         * configure.in (build_nscd): New substituted variable, set
1775         by --disable-build-nscd and defaults to $use_nscd.
1776         * configure: Regenerated.
1777         * config.make.in (build-nscd): New substituted variable.
1778         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
1779         Change conditional to require [$(build-nscd) = yes] as well.
1780         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
1781
1782         [BZ# 13696]
1783         * configure.in (use_nscd): New substituted variable, set by
1784         --disable-nscd.  If enabled, define USE_NSCD.
1785         * configure: Regenerated.
1786         * config.h.in: Add USE_NSCD.
1787         * config.make.in (use-nscd): New substituted variable.
1788         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
1789         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
1790         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
1791         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
1792         (CFLAGS-getgrnam_r.c): Likewise.
1793         (CFLAGS-initgroups.c): Likewise.
1794         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
1795         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
1796         Variables removed.
1797         * inet/getnetgrent_r.c
1798         (nscd_setnetgrent): New function, broken out of ...
1799         (setnetgrent): ... here.  Call it.
1800         (innetgr): Conditionalize nscd bits on [USE_NSCD].
1801         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
1802         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
1803         * nscd/Makefile (routines, aux): Move definitions after include of
1804         Makeconfig.  Conditionalize on [$(use-nscd) != no].
1805         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
1806         Conditionalize on [USE_NSCD].
1807         (is_nscd, nscd_init_cb): Likewise.
1808         (nss_load_library): Conditionalize init callback on [USE_NSCD].
1809         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
1810         * nss/nss_db/db-init.c: Likewise.
1811         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
1812         [USE_NSCD].
1813         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
1814         (make_request): Use it.
1815         (cache_valid_p): New function.
1816         (__check_pf): Use it.
1817         * NEWS: Add item for --disable-nscd.
1818
1819 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
1820
1821         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
1822         to support sed >= 4.2.1-20-ga9bf076.
1823         * configure: Regenerated.
1824
1825 2012-08-22  Roland McGrath  <roland@hack.frob.com>
1826
1827         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
1828         Conditionalize whole body on [IREL].
1829
1830 2012-08-22  Jeff Law <law@redhat.com>
1831
1832         [BZ #14505]
1833         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
1834         if the family is PF_UNSPEC.
1835
1836 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
1837
1838         * Makerules (lib-version): Rename from V.
1839         (install-lib-nosubdir): Change V to lib-version.
1840
1841 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
1842
1843         [BZ #14252]
1844         * powerpc32/power6/wcschr.c: New file.
1845         * powerpc32/power6/wcscpy.c: New file.
1846         * powerpc32/power6/wcsrchr.c: New file.
1847         * powerpc64/power6/wcschr.c: New file.
1848         * powerpc64/power6/wcscpy.c: New file.
1849         * powerpc64/power6/wcsrchr.c: New file.
1850
1851 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
1852
1853         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
1854         (two_way_short_needle): Use it.
1855         * string/strstr.c (AVAILABLE1_USES_J): Define.
1856         * string/strcasestr.c: Likewise.
1857
1858         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
1859         array references.
1860         * string/strcasestr.c (TOLOWER): Make side-effect safe.
1861
1862         [BZ #11607]
1863         * NEWS: Add an entry.
1864         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
1865         define their defaults.
1866         (two_way_short_needle): Detect end-of-string on-the-fly.
1867         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
1868         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
1869         * string/bug-strcasestr1.c: New test.
1870         * string/Makefile: Run it.
1871
1872 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
1873
1874         [BZ #11607]
1875         * string/str-two-way.h (two_way_short_needle): Optimize matching of
1876         the first character.
1877
1878 2012-08-21  Roland McGrath  <roland@hack.frob.com>
1879
1880         * csu/elf-init.c (__libc_csu_irel): Function removed.
1881         * csu/libc-start.c (apply_irel): New function.
1882         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
1883
1884 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
1885
1886         * sysdeps/unix/sysv/linux/kernel-features.h
1887         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
1888         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
1889         <kernel-features.h>.
1890         [__NR_fadvise64_64]: Make code unconditional.
1891         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
1892         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
1893         !__NR_fadvise64_64)]: Likewise.
1894         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
1895         !__NR_fadvise64_64))]: Likewise.
1896         [__NR_fadvise64]: Make code unconditional.
1897         [!__NR_fadvise64]: Remove conditional code.
1898         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
1899         <kernel-features.h>.
1900         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
1901         unconditional.
1902         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
1903         conditional code.
1904         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
1905         not include <kernel-features.h>.
1906         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
1907         unconditional.
1908         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
1909         conditional code.
1910         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
1911         include <kernel-features.h>.
1912         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
1913         unconditional.
1914         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
1915         conditional code.
1916
1917 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
1918
1919         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
1920         slight instruction rearrangements per scrollpipe analysis.
1921         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
1922
1923 2012-08-20  Roland McGrath  <roland@hack.frob.com>
1924
1925         * manual/syslog.texi (syslog; vsyslog, closelog):
1926         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
1927         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
1928
1929         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
1930         DSOCAPS to match condition on defining it.
1931
1932 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
1933
1934         * sysdeps/unix/sysv/linux/kernel-features.h
1935         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
1936         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
1937         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
1938         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
1939         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
1940         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
1941         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
1942         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
1943         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
1944         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
1945
1946         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
1947         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
1948
1949         * sysdeps/unix/sysv/linux/kernel-features.h
1950         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
1951         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
1952         unconditional.
1953         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1954         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
1955         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
1956         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1957         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
1958         Make code unconditional.
1959         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1960         (__mmap64) [!__NR_mmap2]: Likewise.
1961         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
1962         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
1963         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1964         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
1965         [__NR_mmap2]: Make code unconditional.
1966         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
1967         (__mmap64) [!__NR_mmap2]: Likewise.
1968
1969 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1970
1971         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
1972
1973 2012-08-18  Andreas Jaeger  <aj@suse.de>
1974
1975         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
1976
1977 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
1978
1979         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
1980         * include/unistd.h (__have_sock_cloexec): Likewise.
1981         (__have_pipe2): Likewise.
1982         (__have_dup3): Likewise.
1983
1984 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
1985
1986         [BZ #9685]
1987         * include/unistd.h (__have_pipe2): Change define into an extern int.
1988         (__have_dup3): Likewise.
1989         * socket/have_sock_cloexec.c: Include fcntl.h.
1990         (__have_pipe2): New variable.
1991         (__have_dup3): Likewise.
1992
1993 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
1994
1995         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
1996
1997 2012-08-17  Marek Polacek  <polacek@redhat.com>
1998
1999         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
2000         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
2001
2002 2012-08-17  Roland McGrath  <roland@hack.frob.com>
2003
2004         * configure.in: Add AC_SUBST for sysheaders.
2005         * configure: Regenerated.
2006         * config.make.in (sysheaders): New substituted variable.
2007
2008         * sysdeps/unix/mkfifo.c: Moved ...
2009         * sysdeps/posix/mkfifo.c: ... here.
2010         * sysdeps/unix/mkfifoat.c: Moved ...
2011         * sysdeps/posix/mkfifoat.c: ... here.
2012
2013         * sysdeps/unix/utime.c: Moved ...
2014         * sysdeps/posix/utime.c: ... here.
2015
2016         * sysdeps/unix/time.c: Moved ...
2017         * sysdeps/posix/time.c: ... here.
2018         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
2019         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
2020
2021         * sysdeps/unix/nice.c: Moved ...
2022         * sysdeps/posix/nice.c: ... here.
2023
2024         * sysdeps/unix/alarm.c: Moved ...
2025         * sysdeps/posix/alarm.c: ... here.
2026
2027         * intl/Makefile ($(codeset_mo)): Depend on the input file.
2028
2029 2012-08-17  Jeff Law <law@redhat.com>
2030
2031         * intl/Makefile (codeset_mo): New variable.
2032         ($(codeset_mo)): New target.
2033         (tst-codeset.out): Depend on that.  Remove explicit rule.
2034         (tst-gettext3.out, tst-gettext5.out): Likewise.
2035         (LOCPATH-ENV, tst-codeset-ENV): New variables.
2036         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
2037         * intl/tst-codeset.sh: Remove.
2038         * intl/tst-gettext3.sh: Likewise.
2039         * intl/tst-gettext5.sh: Likewise.
2040
2041 2012-08-17  Roland McGrath  <roland@hack.frob.com>
2042
2043         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
2044         * sysdeps/unix/syscalls.list: ... here.
2045
2046         * sysdeps/posix/getaddrinfo.c
2047         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
2048         (gaiconf_init, gaiconf_reload): Use them.
2049         [!_STATBUF_ST_NSEC]
2050         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
2051         Define using time_t rather than struct timespec.
2052
2053         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
2054         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
2055         Macros removed.
2056         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
2057         [!NO_THREADS].
2058         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
2059         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
2060         Likewise.
2061
2062         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
2063         __libc_cleanup_push argument.
2064
2065         * bits/param.h: New file.
2066         * misc/sys/param.h: New file.
2067         * include/sys/param.h: New file.
2068         * misc/Makefile (headers): Add bits/param.h.
2069         * sysdeps/generic/sys/param.h: File removed.
2070         * sysdeps/unix/sysv/linux/bits/param.h: New file.
2071         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
2072         * sysdeps/mach/hurd/bits/param.h: New file.
2073         * sysdeps/mach/hurd/sys/param.h: New file.
2074
2075         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
2076         last change.
2077
2078         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
2079         [_IO_MTSAFE_IO].
2080         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
2081         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
2082         New macros.
2083
2084         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
2085         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
2086         rather than -D_IO_MTSAFE_IO conditionally.
2087         * stdio-common/Makefile (CPPFLAGS): Likewise.
2088         * wcsmbs/Makefile (CPPFLAGS): Likewise.
2089         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
2090         Use $(libio-mtsafe).
2091         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
2092         of -D_IO_MTSAFE_IO.
2093         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
2094         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
2095         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
2096         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
2097         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
2098         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
2099         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
2100         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
2101         (CFLAGS-fread_u_chk.c): Likewise.
2102         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
2103         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
2104         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
2105         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
2106         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
2107         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
2108         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
2109         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
2110         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
2111
2112         * libio/Makefile: Test [$(libc-reentrant) = yes]
2113         instead of [$(filter %REENTRANT, $(defines)) nonempty].
2114
2115         * Makeconfig
2116         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
2117         * sysdeps/pthread/configure: File removed.
2118         * sysdeps/pthread/Makeconfig: New file.
2119         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
2120         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
2121
2122 2012-08-16  Gary Benson  <gbenson@redhat.com>
2123
2124         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
2125         unmapping the first object in a namespace.
2126
2127 2012-08-16  Roland McGrath  <roland@hack.frob.com>
2128
2129         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
2130         (__internal_setnetgrent): ... this.  Add internal_function to
2131         definition.  Add libc_hidden_def.
2132         (setnetgrent): Update caller.
2133         (internal_endnetgrent): Renamed to ...
2134         (__internal_endnetgrent): ... this.  Add internal_function to
2135         definition.  Add libc_hidden_def.
2136         (endnetgrent): Update caller.
2137         (internal_getnetgrent_r): Renamed to ...
2138         (__internal_getnetgrent_r): ... this.  Add internal_function to
2139         definition.  Add libc_hidden_def.
2140         (__getnetgrent_r): Update caller.
2141         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
2142
2143 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
2144
2145         * stdlib/longlong.h: Update from GCC.
2146
2147 2012-08-16  Roland McGrath  <roland@hack.frob.com>
2148
2149         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
2150         on _QL, which is set by umul_ppmm but never used.
2151         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
2152         variables, which are set by GMP macros but never used.
2153         * stdio-common/_itowa.c (_itowa): Likewise.
2154         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
2155         * stdlib/mod_1.c (mpn_mod_1): Likewise.
2156
2157 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
2158
2159         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
2160         struct La_sh_regs is not constant.
2161         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
2162         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
2163         and struct La_sparc64_regs are not constant.
2164
2165 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
2166
2167         * sysdeps/unix/sysv/linux/kernel-features.h
2168         (__ASSUME_POSIX_TIMERS): Remove.
2169         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
2170         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2171         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
2172         Make code unconditional.
2173         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2174         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
2175         Make code unconditional.
2176         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2177         * sysdeps/unix/sysv/linux/clock_nanosleep.c
2178         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
2179         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2180         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
2181         Make code unconditional.
2182         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2183         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
2184         (__libc_missing_posix_timers): Remove.
2185
2186 2012-08-15  Roland McGrath  <roland@hack.frob.com>
2187
2188         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
2189         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
2190
2191         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
2192
2193         * elf/dl-sym.c: Include <stdlib.h>.
2194
2195         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
2196         constants, which avoids warnings in 32-bit builds.
2197
2198         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
2199         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
2200
2201         * misc/lseek.c: File moved to ...
2202         * io/lseek.c: ... here.
2203
2204         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
2205
2206         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
2207         shifting LEN more than 31 bits at once.
2208
2209 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
2210
2211         [BZ #14195]
2212         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
2213         segmentation fault for a case of two empty input strings.
2214         * string/test-strncasecmp.c (check1): Renamed to...
2215         (bz12205): ...this.
2216         (bz14195): Add new testcase for two empty input strings and N > 0.
2217         (test_main): Call new testcase, adapt for renamed function.
2218
2219 2012-08-15  Andreas Jaeger  <aj@suse.de>
2220
2221         [BZ #14090]
2222         * crypt/md5test2.c: New test, based on test supplied by Serge
2223         Belyshev <belyshev@depni.sinp.msu.ru>.
2224         * crypt/Makefile (xtests): Add md5test-giant..
2225         * crypt/Makefile ($(objpfx)md5test-giant): Add.
2226
2227 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
2228
2229         [BZ #14090]
2230         * crypt/md5.c (md5_process_block): Don't assume the buffer
2231         length is less than 2**32.
2232         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
2233         length is less than 2**64.
2234
2235 2012-08-15  Roland McGrath  <roland@hack.frob.com>
2236
2237         * string/str-two-way.h: Include <sys/param.h>.
2238         (MAX): Macro removed.
2239
2240         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
2241         Move #define and #undef of memmove to just before and after
2242         including <string.h>.
2243
2244         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
2245         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
2246         and after including <string.h>.  Move declarations of
2247         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
2248         to before #include "string/memmove.c".
2249
2250         * include/dirent.h: Declare __getdirentries.
2251
2252         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
2253         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
2254
2255 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
2256
2257         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
2258         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
2259         * sysdeps/i386/configure: Regenerated.
2260         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
2261         STABS_CURRENT_FILE, and STABS_FUN.
2262         (END): Remove call to STABS_FUN_END.
2263         (STABS_CURRENT_FILE1): Delete.
2264         (STABS_CURRENT_FILE): Likewise.
2265         (STABS_FUN): Likewise.
2266         (STABS_FUN_END): Likewise.
2267         (STABS_FUN2): Likewise.
2268         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
2269         * sysdeps/x86_64/configure: Regenerated.
2270
2271 2012-08-14  Roland McGrath  <roland@hack.frob.com>
2272
2273         * elf/dl-open.c: Include <atomic.h>.
2274         * elf/dl-lookup.c: Likewise.
2275
2276 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
2277
2278         * sysdeps/unix/sysv/linux/kernel-features.h
2279         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
2280         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
2281         unconditionally.
2282         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
2283         unconditionally.
2284         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
2285         condition on __ASSUME_CLONE_THREAD_FLAGS.
2286
2287 2012-08-14  Andreas Jaeger  <aj@suse.de>
2288
2289         * sysdeps/i386/fpu/libm-test-ulps: Update.
2290
2291 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
2292
2293         * include/atomic.h (atomic_exchange_and_add): Split into ...
2294         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
2295         New atomic macros.
2296
2297 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
2298
2299         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2300
2301 2012-08-13  Jeff Law <law@redhat.com>
2302
2303         * manual/stdio.texi (snprintf): Clarify handling of the trailing
2304         null byte in the output string.
2305
2306 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
2307
2308         * sysdeps/unix/sysv/linux/kernel-features.h
2309         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
2310         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
2311         (__ASSUME_ARG_MAX_STACK_BASED): Define.
2312         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
2313         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
2314         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
2315         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
2316
2317 2012-08-09  Jeff Law <law@redhat.com>
2318
2319         [BZ #13939]
2320         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
2321         When avoid_arena is set, don't retry in the that arena.  Pick the
2322         next one, whatever it might be.
2323         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
2324         (arena_lock): Pass in new parameter to arena_get2.
2325         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
2326         arena_get2.
2327         (__libc_malloc): Unify retrying after main arena failure with
2328         __libc_memalign version.
2329         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
2330
2331 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
2332
2333         [BZ #14166]
2334         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
2335         to __redirect_strstr.
2336         (__strstr_sse42): Use typeof __redirect_strstr.
2337         (__strstr_ia32): Likewise.
2338         (__libc_strstr): New prototype.
2339         (strstr): Renamed to ...
2340         (__libc_strstr): This.
2341         (strstr): New strong alias of __libc_strstr.
2342         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
2343         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
2344         __redirect_time.
2345         Include <time.h>.
2346         (__libc_time): New prototype.
2347         (time_ifunc): Replace time with __libc_time.
2348         (time): New strong alias and hidden definition of __libc_time.
2349         (__GI_time): Remove strong alias.
2350         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
2351         Include <stddef.h>.
2352         (memmove): Redefined to __redirect_memmove.
2353         (__memmove_sse2): Use typeof __redirect_memmove.
2354         (__memmove_ssse3): Likewise.
2355         (__memmove_ssse3_back): Likewise.
2356         (__libc_memmove): New prototype.
2357         (memmove): Renamed to ...
2358         (__libc_memmove): This.
2359         (memmove): New strong alias of __libc_memmove.
2360
2361 2012-08-08  Mark Salter  <msalter@redhat.com>
2362
2363         * elf/elf.h
2364         (R_MN10300_TLS_GD): Define.
2365         (R_MN10300_TLS_LD): Likewise.
2366         (R_MN10300_TLS_LDO): Likewise.
2367         (R_MN10300_TLS_GOTIE): Likewise.
2368         (R_MN10300_TLS_IE): Likewise.
2369         (R_MN10300_TLS_LE): Likewise.
2370         (R_MN10300_TLS_DTPMOD): Likewise.
2371         (R_MN10300_TLS_DTPOFF): Likewise.
2372         (R_MN10300_TLS_TPOFF): Likewise.
2373         (R_MN10300_SYM_DIFF): Likewise.
2374         (R_MN10300_ALIGN): Likewise.
2375         (R_MN10300_NUM): Update.
2376
2377 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
2378
2379         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
2380         Remove.
2381
2382 2012-08-08  Roland McGrath  <roland@hack.frob.com>
2383
2384         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
2385
2386         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
2387         sysdeps/unix -> sysdeps/posix move.
2388         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
2389
2390 2012-08-07      Allan McRae     <allan@archlinux.org>
2391
2392         [BZ #14303]
2393         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
2394         (SUNOS_CPP): Likewise.
2395         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
2396         not found.
2397         (open_input): Call CPP using execvp.
2398
2399 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
2400
2401         * sysdeps/unix/sysv/linux/kernel-features.h
2402         (__ASSUME_PROT_GROWSUPDOWN): Remove.
2403         (__ASSUME_NO_CLONE_DETACHED): Likewise.
2404         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
2405         (__ASSUME_WAITID_SYSCALL): Likewise.
2406         * sysdeps/unix/sysv/linux/dl-execstack.c
2407         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
2408         code unconditional.
2409         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
2410         conditional code.
2411         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
2412         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
2413         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
2414         code.
2415         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
2416         unconditional.
2417         [__ASSUME_WAITID_SYSCALL]: Likewise.
2418         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
2419
2420 2012-08-07  Roland McGrath  <roland@hack.frob.com>
2421
2422         * sysdeps/unix/closedir.c: Renamed to ...
2423         * sysdeps/posix/closedir.c: ... here.
2424         * sysdeps/unix/dirfd.c: Renamed to ...
2425         * sysdeps/posix/dirfd.c: ... here.
2426         * sysdeps/unix/dirstream.h: Renamed to ...
2427         * sysdeps/posix/dirstream.h: ... here.
2428         * sysdeps/unix/fdopendir.c: Renamed to ...
2429         * sysdeps/posix/fdopendir.c: ... here.
2430         * sysdeps/unix/opendir.c: Renamed to ...
2431         * sysdeps/posix/opendir.c: ... here.
2432         * sysdeps/unix/readdir.c: Renamed to ...
2433         * sysdeps/posix/readdir.c: ... here.
2434         * sysdeps/unix/readdir_r.c: Renamed to ...
2435         * sysdeps/posix/readdir_r.c: ... here.
2436         * sysdeps/unix/rewinddir.c: Renamed to ...
2437         * sysdeps/posix/rewinddir.c: ... here.
2438         * sysdeps/unix/seekdir.c: Renamed to ...
2439         * sysdeps/posix/seekdir.c: ... here.
2440         * sysdeps/unix/telldir.c: Renamed to ...
2441         * sysdeps/posix/telldir.c: ... here.
2442         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
2443         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
2444         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
2445         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
2446
2447         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
2448         * bits/fcntl.h: ... here.
2449
2450         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
2451         not 0.
2452         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
2453         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
2454         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
2455         (struct flock): Move l_start, l_len to the beginning.
2456         Use __pid_t for l_pid.
2457         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
2458         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
2459         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
2460         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
2461         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
2462         [__USE_LARGEFILE64] (struct flock64): New type.
2463         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
2464
2465         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
2466         * bits/dirent.h: ... here.
2467
2468         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
2469         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
2470
2471 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
2472
2473         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
2474         Change from 2.6.0 to 2.6.16.
2475         * sysdeps/unix/sysv/linux/configure: Regenerated.
2476         * sysdeps/unix/sysv/linux/kernel-features.h
2477         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
2478         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
2479         version.
2480         (__ASSUME_UTIMES): Likewise.
2481         (__ASSUME_CLONE_STOPPED): Remove.
2482         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
2483         architectures, not kernel version.
2484         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
2485         (__ASSUME_NO_CLONE_DETACHED): Likewise.
2486         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
2487         (__ASSUME_WAITID_SYSCALL): Likewise.
2488         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
2489         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
2490         * README: State 2.6.16 as minimum Linux kernel version.  Do not
2491         refer to older versions.
2492
2493 2012-08-06  Roland McGrath  <roland@hack.frob.com>
2494
2495         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
2496         Define alphasort64 as an alias.
2497         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
2498         Define versionsort64 as an alias.
2499         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
2500         Define scandir64 as an alias.
2501         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
2502         Define scandirat64 as an alias.
2503         * dirent/alphasort64.c (alphasort64):
2504         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
2505         * dirent/versionsort64.c: Likewise.
2506         * dirent/scandir64.c: Likewise.
2507         * dirent/scandirat64.c: Likewise.
2508         * sysdeps/wordsize-64/alphasort.c: File removed.
2509         * sysdeps/wordsize-64/alphasort64.c: File removed.
2510         * sysdeps/wordsize-64/scandir.c: File removed.
2511         * sysdeps/wordsize-64/scandir64.c: File removed.
2512         * sysdeps/wordsize-64/scandirat.c: File removed.
2513         * sysdeps/wordsize-64/scandirat64.c: File removed.
2514         * sysdeps/wordsize-64/versionsort.c: File removed.
2515         * sysdeps/wordsize-64/versionsort64.c: File removed.
2516         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
2517         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
2518         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
2519         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
2520         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
2521         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
2522         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
2523         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
2524
2525         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
2526         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
2527         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
2528         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
2529         [defined __arch64__ || defined __sparcv9]
2530         (__INO_T_MATCHES_INO64_T): New macro.
2531         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
2532         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
2533         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
2534         * sysdeps/unix/sysv/linux/bits/dirent.h
2535         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
2536         (_DIRENT_MATCHES_DIRENT64): New macro.
2537
2538         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
2539         Define lockf64 as an alias.
2540         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
2541         Define fseeko64 as an alias.
2542         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
2543         Define ftello64 as an alias.
2544         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
2545         Define _IO_fgetpos64 and fgetpos64 as aliases.
2546         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
2547         Define _IO_fsetpos64 and fsetpos64 as aliases.
2548         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
2549         Conditionalize body on this.
2550         * libio/fseeko64.c: Likewise.
2551         * libio/ftello64.c: Likewise.
2552         * libio/iofgetpos64.c: Likewise.
2553         * libio/iofsetpos64.c: Likewise.
2554         * sysdeps/wordsize-64/lockf.c: File removed.
2555         * sysdeps/wordsize-64/lockf64.c: File removed.
2556         * sysdeps/wordsize-64/fseeko.c: File removed.
2557         * sysdeps/wordsize-64/fseeko64.c: File removed.
2558         * sysdeps/wordsize-64/ftello.c: File removed.
2559         * sysdeps/wordsize-64/ftello64.c: File removed.
2560         * sysdeps/wordsize-64/iofgetpos.c: File removed.
2561         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
2562         * sysdeps/wordsize-64/iofsetpos.c: File removed.
2563         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
2564         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
2565         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
2566         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
2567         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
2568         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
2569         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
2570         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
2571         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
2572         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
2573         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
2574
2575         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
2576         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
2577         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
2578         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
2579         [defined __arch64__ || defined __sparcv9]
2580         (__OFF_T_MATCHES_OFF64_T): New macro.
2581         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
2582         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
2583         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
2584         (__OFF_T_MATCHES_OFF64_T): New macro.
2585
2586 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
2587
2588         * stdlib/secure-getenv.c (__secure_getenv): Replace
2589         GLIBC_2_16 with GLIBC_2_17.
2590
2591 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
2592
2593         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
2594         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
2595
2596 2012-08-03  David S. Miller  <davem@davemloft.net>
2597
2598         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2599
2600 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
2601
2602         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
2603         Remove.
2604         (__ASSUME_CORRECT_SI_PID): Likewise.
2605         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
2606         (__ASSUME_TMPFS_NAME): Likewise.
2607         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
2608         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
2609         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
2610         (HAVE_AUX_SECURE): Make definition unconditional.
2611         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
2612         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
2613
2614 2012-08-03  Roland McGrath  <roland@hack.frob.com>
2615
2616         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
2617         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
2618         * sysdeps/mach/hurd/eloop-threshold.h: New file.
2619         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
2620         __eloop_threshold instead of SYMLOOP_MAX.
2621
2622         * sysdeps/generic/eloop-threshold.h: New file.
2623         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
2624         of MAXSYMLINKS.
2625         * elf/chroot_canon.c (chroot_canon): Likewise.
2626
2627 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
2628
2629         [BZ #13717]
2630         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
2631         Change to 2.6.0 everywhere.
2632         * sysdeps/unix/sysv/linux/configure: Regenerated.
2633         * sysdeps/unix/sysv/linux/kernel-features.h
2634         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
2635         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
2636         kernel versions.
2637         (__ASSUME_POSIX_TIMERS): Define unconditionally.
2638         (__ASSUME_FUTEX_REQUEUE): Remove.
2639         (__ASSUME_STATFS64): Define unconditionally.
2640         (__ASSUME_AT_SECURE): Likewise.
2641         (__ASSUME_CORRECT_SI_PID): Likewise.
2642         (__ASSUME_TGKILL): Define without depending on kernel version for
2643         i386.
2644         (__ASSUME_UTIMES): Likewise.
2645         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
2646         kernel version.
2647         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
2648         (__ASSUME_TMPFS_NAME): Likewise.
2649         * README: Update reference to Linux kernel versions.
2650
2651 2012-08-02  Marek Polacek  <polacek@redhat.com>
2652
2653         [BZ# 14150]
2654         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
2655         libc_cv_asm_type_prefix with %.
2656         * configure: Regenerated.
2657         * include/libc-symbols.h: Remove comment about
2658         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
2659         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
2660         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
2661         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
2662         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
2663         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
2664         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
2665         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
2666         * elf/tst-unique2mod1.c: Likewise.
2667         * elf/tst-unique1mod2.c: Likewise.
2668         * elf/tst-unique1mod1.c: Likewise.
2669         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
2670         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
2671         Replace ASM_TYPE_DIRECTIVE with .type.
2672         * sysdeps/s390/s390-64/sysdep.h: Likewise.
2673         * sysdeps/i386/sysdep.h: Likewise.
2674         * sysdeps/x86_64/sysdep.h: Likewise.
2675         * sysdeps/sh/sysdep.h: Likewise.
2676         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
2677         Do not define ASM_TYPE_DIRECTIVE.
2678         * sysdeps/powerpc/sysdep.h: Likewise.
2679         * sysdeps/powerpc/powerpc32/sysdep.h:
2680         Replace ASM_TYPE_DIRECTIVE with .type.
2681         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
2682         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
2683         * sysdeps/i386/fpu/e_powf.S: Likewise.
2684         * sysdeps/i386/fpu/e_expl.S: Likewise.
2685         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
2686         * sysdeps/i386/fpu/e_acosh.S: Likewise.
2687         * sysdeps/i386/fpu/e_pow.S: Likewise.
2688         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
2689         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
2690         * sysdeps/i386/fpu/s_expm1.S: Likewise.
2691         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
2692         * sysdeps/i386/fpu/e_log2.S: Likewise.
2693         * sysdeps/i386/fpu/e_log2l.S: Likewise.
2694         * sysdeps/i386/fpu/e_scalb.S: Likewise.
2695         * sysdeps/i386/fpu/e_powl.S: Likewise.
2696         * sysdeps/i386/fpu/e_log10f.S: Likewise.
2697         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
2698         * sysdeps/i386/fpu/e_logl.S: Likewise.
2699         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
2700         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
2701         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
2702         * sysdeps/i386/fpu/e_log2f.S: Likewise.
2703         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
2704         * sysdeps/i386/fpu/e_log.S: Likewise.
2705         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
2706         * sysdeps/i386/fpu/e_logf.S: Likewise.
2707         * sysdeps/i386/fpu/e_log10l.S: Likewise.
2708         * sysdeps/i386/fpu/e_atanh.S: Likewise.
2709         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
2710         * sysdeps/i386/fpu/e_log10.S: Likewise.
2711         * sysdeps/i386/fpu/s_frexp.S: Likewise.
2712         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
2713         * sysdeps/i386/fpu/s_asinh.S: Likewise.
2714         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
2715         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
2716         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
2717         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
2718         * sysdeps/i386/i686/strtok.S: Likewise.
2719         * sysdeps/i386/i386-mcount.S: Likewise.
2720         * sysdeps/i386/strtok.S: Likewise.
2721         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
2722         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
2723         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
2724         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
2725         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
2726         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
2727         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
2728         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
2729         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
2730         * sysdeps/x86_64/_mcount.S: Likewise.
2731         * sysdeps/x86_64/strtok.S: Likewise.
2732         * sysdeps/sh/_mcount.S: Likewise.
2733
2734 2012-08-01  Roland McGrath  <roland@hack.frob.com>
2735
2736         * libio/iofopen.c: Include <fcntl.h>.
2737         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
2738         (_IO_fopen64, fopen64): Define as aliases.
2739         * libio/iofopen64.c: Include <fcntl.h>.
2740         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
2741         Conditionalize body on this.
2742         * sysdeps/wordsize-64/iofopen.c: File removed.
2743         * sysdeps/wordsize-64/iofopen64.c: File removed.
2744
2745 2012-08-01  Marek Polacek  <polacek@redhat.com>
2746
2747         * libc/Makeconfig: Use elf in place of binfmt-subdir.
2748         Use dlfcn directly instead of a variable.
2749         (binfmt-subdir): Do not define.
2750         (dlfcn): Likewise.
2751
2752 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
2753
2754         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
2755         Remove all definitions.
2756         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
2757         <kernel-features.h>.
2758         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
2759         (miss_F_GETOWN_EX): Remove all definitions.
2760         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
2761         macro definition.
2762         [!__ASSUME_FCNTL64]: Remove conditional code.
2763         [__ASSUME_FCNTL64]: Make code unconditional.
2764         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
2765         <kernel-features.h>.
2766         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
2767         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
2768         (lockf64) [__NR_fcntl64]: Make code unconditional.
2769         (lockf64) [__ASSUME_FCNTL64]: Likewise.
2770
2771         * sysdeps/unix/sysv/linux/kernel-features.h
2772         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
2773         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
2774         Make code unconditional.
2775         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
2776         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
2777         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
2778         [__NR_vfork]: Make code unconditional.
2779         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
2780         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
2781         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
2782         [__NR_vfork]: Make code unconditional.
2783         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
2784         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
2785
2786 2012-08-01  Roland McGrath  <roland@hack.frob.com>
2787
2788         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
2789         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
2790
2791         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
2792         Define mkstemp64 as an alias.
2793         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
2794         Define mkstemps64 as an alias.
2795         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
2796         Define mkostemp64 as an alias.
2797         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
2798         Define mkostemps64 as an alias.
2799         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
2800         Conditionalize body on this.
2801         * misc/mkostemp64.c: Likewise.
2802         * misc/mkostemps64.c: Likewise.
2803         * misc/mkstemps64.c: Likewise.
2804         * sysdeps/wordsize-64/mkstemp64.c: File removed.
2805         * sysdeps/wordsize-64/mkostemp64.c: File removed.
2806         * sysdeps/wordsize-64/mkostemp.c: File removed.
2807         * sysdeps/wordsize-64/mkstemp.c: File removed.
2808         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
2809         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
2810         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
2811         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
2812
2813         [BZ #14138]
2814         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
2815         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
2816         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
2817         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
2818
2819         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
2820         compat_symbol macros from <shlib-compat.h> rather than the underlying
2821         default_symbol_version and symbol_version macros, so that DEFAULT
2822         lines in shlib-versions are respected.
2823         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
2824
2825 2012-08-01  Florian Weimer  <fweimer@redhat.com>
2826
2827         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
2828         Declare with warn_unused_result.
2829         (setgid, setregid, setegid, setresgid): Likewise.
2830         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
2831         Likewise.
2832         * WUR-REPORT: Remove set*id functions.
2833
2834 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
2835
2836         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
2837
2838 2012-07-31  Roland McGrath  <roland@hack.frob.com>
2839
2840         * include/sys/socket.h (__libc_accept, __libc_accept4):
2841         Add attribute_hidden.
2842         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
2843
2844         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
2845         use of PTR_MANGLE.
2846         * inet/getnetgrent_r.c (setup): Likewise.
2847
2848         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
2849
2850 2012-07-31  David S. Miller  <davem@davemloft.net>
2851
2852         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2853
2854 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
2855
2856         [BZ #13629]
2857         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
2858         value between 1.0 and 2.0 and smaller part has absolute value less
2859         than 1.0.
2860         * math/s_clog10.c (__clog10): Likewise.
2861         * math/s_clog10f.c (__clog10f): Likewise.
2862         * math/s_clog10l.c (__clog10l): Likewise.
2863         * math/s_clogf.c (__clogf): Likewise.
2864         * math/s_clogl.c (__clogl): Likewise.
2865         * math/libm-test.inc (clog_test): Add more tests.
2866         (clog10_test): Likewise.
2867         * sysdeps/i386/fpu/libm-test-ulps: Update.
2868         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2869
2870 2012-07-31  Florian Weimer  <fweimer@redhat.com>
2871
2872         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
2873         Exit with zero in case no suitable GID is found, and write a
2874         message to standard error.
2875
2876 2012-07-30  Roland McGrath  <roland@hack.frob.com>
2877
2878         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
2879         rather than to 1.
2880         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
2881         (MAXPATHLEN): Removed.
2882         (NOGROUP, NODEV): New macros.
2883         (setbit, clrbit, isset, isclr): New macros.
2884         (howmany, roundup, powerof2): New macros.
2885         (DEV_BSIZE): New macro.
2886
2887         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
2888         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
2889
2890         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
2891         definition on [!__NO_LONG_DOUBLE_MATH].
2892
2893         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
2894         PTR_MANGLE and PTR_DEMANGLE.
2895
2896         * socket/accept4.c (accept4): Rename to __libc_accept4.
2897         Define accept4 as a weak alias.
2898
2899         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
2900         on [_DIRENT_HAVE_D_TYPE].
2901         * io/ftw.c (ftw_dir): Likewise.
2902
2903         * io/xmknod.c (__xmknod): Don't check PATH for being null.
2904
2905         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
2906
2907         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
2908         Use the BSD numbers rather than the arbitrary ones we had.
2909         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
2910         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
2911         (SIGXCPU, SIGXFSZ): New macros.
2912         (_NSIG): Now 32.
2913
2914         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
2915         initializer on [_LIBC_REENTRANT].
2916
2917         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
2918         definitions inside [_POSIX_MAPPED_FILES].
2919
2920         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
2921
2922         * dirent/opendir.c: Include <fcntl.h>.
2923
2924         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
2925         (__libc_getspecific): Likewise.
2926         (__libc_key_create): Likewise.
2927
2928         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
2929         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
2930         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
2931         (tmpfile64): Define as alias.
2932         * sysdeps/wordsize-64/tmpfile.c: File removed.
2933         * sysdeps/wordsize-64/tmpfile64.c: File removed.
2934         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
2935         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
2936
2937         * stdio-common/vfscanf.c: Include <stdbool.h>.
2938         * nss/makedb.c: Likewise.
2939         * stdio-common/_i18n_number.h: Likewise.
2940         * argp/argp-help.c: Likewise.
2941         * posix/wordexp.c: Likewise.
2942         * sysdeps/posix/spawni.c: Likewise.
2943         * nss/nss_files/files-initgroups.c: Likewise.
2944         * stdio-common/reg-modifier.c: Include <stdlib.h>.
2945         * nss/nss_files/files-initgroups.c: Likewise.
2946         * nss/nss_db/db-netgrp.c: Likewise.
2947         * nss/nss_db/db-initgroups.c: Likewise.
2948         * io/fchmodat.c: Include <sys/stat.h>.
2949
2950         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
2951         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
2952
2953         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
2954         [HAVE_MMAP].
2955
2956         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
2957         Add multiple inclusion protection.
2958
2959 2012-07-27  David S. Miller  <davem@davemloft.net>
2960
2961         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2962
2963 2012-07-27  Gary Benson  <gbenson@redhat.com>
2964
2965         [BZ #14298]
2966         * elf/rtld.c: Include <stap-probe.h>.
2967         (dl_main): Added static probes "init_start" and "init_complete".
2968         * elf/dl-load.c: Include <stap-probe.h>.
2969         (lose): Take new parameter "nsid".
2970         Added static probe "map_failed".
2971         (_dl_map_object_from_fd): Pass namespace id to lose.
2972         Added static probe "map_start".
2973         (open_verify): Pass namespace id to lose.
2974         * elf/dl-open.c: Include <stap-probe.h>.
2975         (dl_open_worker) Added static probes "map_complete", "reloc_start"
2976         and "reloc_complete".
2977         * elf/dl-close.c: Include <stap-probe.h>.
2978         (_dl_close_worker): Added static probes "unmap_start" and
2979         "unmap_complete".
2980         * elf/rtld-debugger-interface.txt: New file documenting the above.
2981
2982 2012-07-26  Roland McGrath  <roland@hack.frob.com>
2983
2984         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
2985         rather than a string variable.
2986         * sunrpc/rpc_main.c (h_output): Likewise.
2987         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
2988
2989 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
2990
2991         * inet/check_native.c: New file.
2992
2993 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
2994
2995         [BZ #13629]
2996         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
2997         if larger part has absolute value 1.0.
2998         * math/s_clog10.c (__clog10): Likewise.
2999         * math/s_clog10f.c (__clog10f): Likewise.
3000         * math/s_clog10l.c (__clog10l): Likewise.
3001         * math/s_clogf.c (__clogf): Likewise.
3002         * math/s_clogl.c (__clogl): Likewise.
3003         * math/libm-test.inc (clog_test): Add more tests.
3004         (clog10_test): Likewise.
3005         * sysdeps/i386/fpu/libm-test-ulps: Update.
3006         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3007
3008         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
3009         (pltexit): Likewise.
3010         (La_regs): Likewise.
3011         (La_retval): Likewise.
3012         (int_retval): Likewise.
3013         Update #error for removed macros to refer only to definitions in
3014         tst-audit.h.
3015         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
3016         macro.
3017         (pltexit): Likewise.
3018         (La_regs): Likewise.
3019         (La_retval): Likewise.
3020         (int_retval): Likewise.
3021         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
3022         macro.
3023         (pltexit): Likewise.
3024         (La_regs): Likewise.
3025         (La_retval): Likewise.
3026         (int_retval): Likewise.
3027         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
3028         macro.
3029         (pltexit): Likewise.
3030         (La_regs): Likewise.
3031         (La_retval): Likewise.
3032         (int_retval): Likewise.
3033         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
3034         macro.
3035         (pltexit): Likewise.
3036         (La_regs): Likewise.
3037         (La_retval): Likewise.
3038         (int_retval): Likewise.
3039         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
3040         macro.
3041         (pltexit): Likewise.
3042         (La_regs): Likewise.
3043         (La_retval): Likewise.
3044         (int_retval): Likewise.
3045         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
3046         macro.
3047         (pltexit): Likewise.
3048         (La_regs): Likewise.
3049         (La_retval): Likewise.
3050         (int_retval): Likewise.
3051         * sysdeps/generic/tst-audit.h: Update comment to refer only to
3052         macro definitions in tst-audit.h.
3053         * sysdeps/i386/tst-audit.h: New file.
3054         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
3055         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
3056         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
3057         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
3058         * sysdeps/sh/tst-audit.h: Likewise.
3059         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
3060         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
3061         * sysdeps/x86_64/tst-audit.h: Likewise.
3062
3063 2012-07-26  Andreas Jaeger  <aj@suse.de>
3064
3065         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
3066         ptrace.
3067
3068         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
3069         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
3070         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
3071         PTRACE_O_MASK.
3072         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
3073         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
3074         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
3075
3076         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
3077         value.
3078
3079         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
3080         _sigsys.
3081         (si_call_addr, si_syscall, si_arch): Define new macro.
3082         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
3083         _sigsys.
3084         (si_call_addr, si_syscall, si_arch): Define new marcro.
3085         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
3086         _sigsys.
3087         (si_call_addr, si_syscall, si_arch): Define new macro.
3088         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
3089         _sigsys.
3090         (si_call_addr, si_syscall, si_arch): Define new macro.
3091
3092 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
3093
3094         [BZ #13717]
3095         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
3096         Change to 2.4.21 where previously 2.4.1.
3097         * sysdeps/unix/sysv/linux/configure: Regenerated.
3098         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
3099         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
3100         Linux kernel version.
3101         (__ASSUME_STD_AUXV): Remove.
3102         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
3103         kernel version.
3104         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
3105         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
3106         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
3107         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
3108         (__ASSUME_NETLINK_SUPPORT): Likewise.
3109         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
3110         (__no_netlink_support): Remove conditional definition.
3111         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
3112         Remove.
3113         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
3114         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
3115         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
3116         (if_nameindex_ioctl): Remove.
3117         (if_nameindex_netlink): Do not handle __no_netlink_support.
3118         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
3119         code.
3120         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
3121         Remove conditional code.
3122         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
3123         code.
3124         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
3125         unconditional.
3126         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
3127         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
3128         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
3129         Remove.
3130         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
3131         [!__ASSUME_STD_AUXV]: Remove conditional code.
3132         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
3133         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
3134         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
3135         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
3136         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
3137         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
3138         code.
3139         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
3140         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
3141         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
3142         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
3143         conditional code.
3144         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
3145         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
3146         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
3147         code.
3148         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
3149         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
3150         conditional code.
3151         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
3152         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
3153         code unconditional.
3154         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3155         conditional code.
3156         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
3157         unconditional.
3158         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3159         conditional code.
3160         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
3161         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
3162         unconditional.
3163         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3164         conditional code.
3165         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
3166         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
3167         code unconditional.
3168         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3169         conditional code.
3170         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
3171         unconditional.
3172         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3173         conditional code.
3174         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
3175         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
3176         code unconditional.
3177         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3178         conditional code.
3179         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
3180         unconditional.
3181         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3182         conditional code.
3183
3184 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
3185
3186         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
3187         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
3188         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
3189         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
3190         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
3191         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
3192         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
3193         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
3194         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
3195         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
3196         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
3197         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
3198         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
3199         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
3200         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
3201         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
3202         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
3203         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
3204         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
3205         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
3206         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
3207         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
3208         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
3209
3210 2012-07-25  Florian Weimer  <fweimer@redhat.com>
3211
3212         * Versions.def: Add GLIBC_2.17.
3213         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
3214         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
3215         Introduce __libc_secure_getenv.
3216         * stdlib/Versions (2.17): Add secure_getenv
3217         (GLIBC_PRIVATE): Add __libc_secure_getenv.
3218         * stdlib/secure-getenv.c: Rename __secure_getenv to
3219         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
3220         symbol __secure_getenv for GLIBC_2.0.
3221         * stdlib/tst-secure-getenv.c: New.
3222         * stdlib/Makefile (tests): Add testcase.
3223         * manual/startup.texi (Environment Access): Document
3224         secure_getenv.
3225         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
3226         __libc_secure_getenv.
3227         * inet/ruserpass.c (ruserpass): Likewise.
3228         * malloc/mtrace.c (mtrace): Likewise.
3229         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
3230         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
3231         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
3232         * sysdeps/posix/tempname.c: Likewise.  Evaluate
3233         HAVE_SECURE_GETENV.
3234         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
3235         __secure_getenv to __libc_secure_getenv.
3236         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
3237         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
3238         Likewise.
3239         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
3240         Likewise.
3241         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
3242         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
3243         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
3244         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
3245         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
3246         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
3247         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
3248
3249 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
3250
3251         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
3252         (struct La_i86_retval): Likewise.
3253         (struct La_x86_64_regs): Likewise.
3254         (struct La_x86_64_retval): Likewise.
3255         (struct La_x32_regs): Likewise.
3256         (struct La_x32_retval): Likewise.
3257         (struct La_ppc32_regs): Likewise.
3258         (struct La_ppc32_retval): Likewise.
3259         (struct La_ppc64_regs): Likewise.
3260         (struct La_ppc64_retval): Likewise.
3261         (struct La_sh_regs): Likewise.
3262         (struct La_sh_retval): Likewise.
3263         (struct La_s390_32_regs): Likewise.
3264         (struct La_s390_32_retval): Likewise.
3265         (struct La_s390_64_regs): Likewise.
3266         (struct La_s390_64_retval): Likewise.
3267         (struct La_sparc32_regs): Likewise.
3268         (struct La_sparc32_retval): Likewise.
3269         (struct La_sparc64_regs): Likewise.
3270         (struct La_sparc64_retval): Likewise.
3271         (struct audit_ifaces): Remove architecture-specific pltenter and
3272         pltexit members.
3273         * sysdeps/i386/ldsodefs.h: New file.
3274         * sysdeps/powerpc/ldsodefs.h: Likewise.
3275         * sysdeps/s390/ldsodefs.h: Likewise.
3276         * sysdeps/sh/ldsodefs.h: Likewise.
3277         * sysdeps/sparc/ldsodefs.h: Likewise.
3278         * sysdeps/x86_64/ldsodefs.h: Likewise.
3279
3280 2012-07-25  Marek Polacek  <polacek@redhat.com>
3281
3282         [BZ #6808]
3283         * math/libm-test.inc (yn_test): Add another test.
3284         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
3285         to ERANGE when the result is +-Inf.
3286         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
3287         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
3288         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
3289         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
3290
3291 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
3292
3293         * conform/data/time.h-data (NULL): Use macro-constant.  Require
3294         equal to 0.
3295         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
3296         clock_t.
3297         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
3298
3299 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
3300
3301         * configure.in <sysdeps resolving>: Correct printing
3302         Implies_before.
3303         * configure: Regenerate.
3304
3305 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
3306
3307         * math/w_ilogb.c: Include <limits.h>.
3308         * math/w_ilogbl.c: Likewise.
3309
3310 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
3311
3312         * manual/lang.texi (__va_copy): Document primarily as ISO C99
3313         va_copy.  Document allowing for unavailable va_copy only as
3314         pre-C99 compatibility.
3315         * manual/string.texi (Copying and Concatenation): Use va_copy
3316         instead of __va_copy in concat example.
3317
3318 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
3319
3320         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
3321         (__sendto): Use create_address_port.  Initialize APORT and deallocate
3322         it if not null.
3323
3324         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
3325         with O_NOLINK passed to __file_name_lookup.
3326
3327         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
3328         with O_NOLINK passed to __file_name_lookup.
3329
3330         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
3331         negative N or less than NGIDS.
3332
3333         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
3334         type to string_t.  Set ERANGE as errno and return it if NAME is not big
3335         enough.  Use memcpy instead of strncpy.
3336
3337 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
3338
3339         * elf/Makefile (check-data): Remove.
3340         (localplt.data): New vpath directive.
3341         ($(objpfx)check-localplt.out): Use localplt.data from vpath
3342         instead of $(check-data).
3343         * scripts/data/localplt-generic.data: Move to ...
3344         * sysdeps/generic/localplt.data: ... here.
3345         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
3346         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
3347         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
3348         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
3349         ... here.
3350         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
3351         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
3352         ... here.
3353         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
3354         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
3355         ... here.
3356         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
3357         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
3358         ... here.
3359         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
3360         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
3361         ... here.
3362         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
3363         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
3364         ... here.
3365
3366 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3367
3368         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
3369         PPC32 and PPC64 files.
3370         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
3371         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
3372
3373 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3374
3375         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
3376         __makecontext_ret to ...
3377         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
3378         ... here and call exit if uc_link is NULL.  New file.
3379         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
3380         __makecontext_ret.S.
3381         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
3382         __makecontext_ret to ...
3383         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
3384         ... here and call exit if uc_link is NULL.  New file.
3385         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
3386         __makecontext_ret.S.
3387
3388 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3389
3390         * elf/elf.h (R_390_IRELATIVE): New definition.
3391         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
3392         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
3393         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
3394         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
3395         (elf_machine_lazy_rel): Likewise.
3396         * sysdeps/s390/dl-irel.h: New file.
3397         * sysdeps/s390/s390-64/memcpy.S: New asm code.
3398         * sysdeps/s390/s390-64/memset.S: New asm code.
3399         * sysdeps/s390/s390-64/memcmp.S: New asm code.
3400         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
3401         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
3402         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
3403         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
3404         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
3405         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
3406         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
3407         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
3408         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
3409         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
3410         * sysdeps/s390/s390-32/memcpy.S: New asm code.
3411         * sysdeps/s390/s390-32/memset.S: New asm code.
3412         * sysdeps/s390/s390-32/memcmp.S: New asm code.
3413
3414 2012-07-17  Marek Polacek  <polacek@redhat.com>
3415
3416         [BZ #14349]
3417         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
3418         * sysdeps/s390/s390-64/configure.in: Likewise.
3419         * sysdeps/sparc/configure.in: Likewise.
3420         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
3421         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
3422         * sysdeps/i386/configure.in: Likewise.
3423         * sysdeps/x86_64/configure.in: Likewise.
3424         * sysdeps/sh/configure.in: Likewise.
3425         * sysdeps/s390/s390-32/configure: Regenerated.
3426         * sysdeps/s390/s390-64/configure: Likewise.
3427         * sysdeps/x86_64/configure: Likewise.
3428         * sysdeps/sh/configure: Likewise.
3429         * sysdeps/powerpc/powerpc64/configure: Likewise.
3430         * sysdeps/powerpc/powerpc32/configure: Likewise.
3431         * sysdeps/sparc/configure: Likwise.
3432         * sysdeps/i386/configure: Likewise.
3433
3434         * elf/dl-open.c: Comment fixes.
3435
3436 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
3437
3438         * Makefile [CXX] (check-data): Remove.
3439         [CXX] (c++-types.data): New vpath directive.
3440         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
3441         vpath.  Do not allow for C++ type data being missing.
3442         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
3443         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
3444         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
3445         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
3446         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
3447         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
3448         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
3449         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
3450         ... here.
3451         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
3452         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
3453         ... here.
3454         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
3455         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
3456         ... here.
3457         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
3458         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
3459         ... here.
3460         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
3461         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
3462         ... here.
3463         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
3464         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
3465         ... here.
3466         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
3467         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
3468         ... here.
3469         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
3470         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
3471
3472         * elf/tls-macros.h (TLS_LE): Move architecture-specific
3473         definitions to architecture-specific files.
3474         (TLS_IE): Likewise.
3475         (TLS_LD): Likewise.
3476         (TLS_GD): Likewise.
3477         * sysdeps/i386/tls-macros.h: New file.
3478         * sysdeps/powerpc/tls-macros.h: Likewise.
3479         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
3480         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
3481         * sysdeps/sh/tls-macros.h: Likewise.
3482         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
3483         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
3484         * sysdeps/x86_64/tls-macros.h: Likewise.
3485
3486 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
3487
3488         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
3489         zero value for regular exit case.
3490
3491         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
3492         (__start_context): Preserve zero value for regular exit case.
3493
3494 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
3495             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3496
3497         * manual/setjmp.texi (setcontext): Clarify normal process
3498         termination when uc_link is the null pointer.
3499         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
3500         exit call.
3501
3502 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
3503
3504         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
3505         preprocessor.  Test for each exception mask separately.
3506
3507 2012-07-16  Andreas Jaeger  <aj@suse.de>
3508
3509         * po/ru.po: Update from translation team.
3510
3511 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
3512
3513         * conform/data/string.h-data (NULL): Use macro-constant.  Require
3514         equal to 0.
3515         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
3516         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
3517         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
3518         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
3519         [ISO || ISO99 || ISO11] (*_t): Do not allow.
3520
3521 2012-07-13  Andreas Jaeger  <aj@suse.de>
3522
3523         * po/fr.po: Update from translation team.
3524
3525 2012-07-12  Marek Polacek  <polacek@redhat.com>
3526
3527         [BZ #14173]
3528         * math/libm-test.inc (yn_test): Add test for BZ #14173.
3529         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
3530         loop condition.
3531
3532 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
3533
3534         [BZ #13717]
3535         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
3536         Change to 2.4.1 where previously 2.4.0.
3537         * sysdeps/unix/sysv/linux/configure: Regenerated.
3538         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
3539         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
3540         version.
3541         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
3542         (__ASSUME_AT_CLKTCK): Remove.
3543         (__ASSUME_AT_PAGESIZE): Likewise.
3544         (__ASSUME_AT_XID): Likewise.
3545         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
3546         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
3547         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
3548         unconditionally.
3549         (HAVE_AUX_PAGESIZE): Likewise.
3550         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
3551         [__ASSUME_AT_CLKTCK]: Make code unconditional.
3552         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
3553
3554 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
3555
3556         [BZ #14307]
3557         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
3558         the temporary buffer used to invoke __gethostbyname2_r,
3559         __gethostbyaddr_r and gethostbyname4_r to make room for struct
3560         host_data / struct gaih_addrtuple.
3561         * resolv/nss_dns/dns-host.c (global scope): Move definition of
3562         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
3563         header file nss/nsswitch.h.
3564         * nss/nsswitch.h (global scope): Add definition of implementation
3565         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
3566         resolv/nss_dns/dns-host.c).
3567
3568 2012-07-11  Andreas Jaeger  <aj@suse.de>
3569
3570         * po/fr.po: Update from translation team.
3571
3572         * po/sv.po: Update from translation team
3573         * po/fr.po: Another update from translation team.
3574
3575 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3576
3577         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
3578         for subnormals or multiply small sinh result by itself.
3579         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
3580         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3581
3582 2012-07-11  David S. Miller  <davem@davemloft.net>
3583
3584         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3585
3586 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
3587
3588         [BZ #14347]
3589         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
3590         (INTERNAL_MARK): Shift it here.
3591
3592 2012-07-10  Marek Polacek  <polacek@redhat.com>
3593
3594         [BZ #14151]
3595         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
3596         libc_cv_asm_global_directive with .globl.
3597         * configure: Regenerated.
3598         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
3599         with .globl.
3600         * sysdeps/i386/configure: Regenerated.
3601         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
3602         with .globl.
3603         * sysdeps/x86_64/configure: Regenerated.
3604         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
3605         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
3606         * elf/tst-unique2mod2.c: Likewise.
3607         * elf/tst-unique2mod1.c: Likewise.
3608         * elf/tst-unique1mod2.c: Likewise.
3609         * elf/tst-unique1mod1.c: Likewise.
3610         * sysdeps/s390/s390-32/sysdep.h: Likewise.
3611         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
3612         * sysdeps/s390/s390-64/sysdep.h: Likewise.
3613         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
3614         * sysdeps/mach/sysdep.h: Likewise.
3615         * sysdeps/i386/sysdep.h: Likewise.
3616         * sysdeps/i386/i386-mcount.S: Likewise.
3617         * sysdeps/x86_64/_mcount.S: Likewise.
3618         * sysdeps/x86_64/sysdep.h: Likewise.
3619         * sysdeps/sh/_mcount.S: Likewise.
3620         * sysdeps/sh/sysdep.h: Likewise.
3621         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
3622         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
3623         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
3624         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
3625         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
3626         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
3627         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
3628         * locale/localeinfo.h: Likewise.
3629         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
3630         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
3631
3632 2012-07-09  Roland McGrath  <roland@hack.frob.com>
3633
3634         [BZ #14336]
3635         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
3636         system".
3637         * manual/message.texi (The Uniforum approach): Likewise.
3638         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
3639         (glibc iconv Implementation): Likewise.
3640
3641 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
3642
3643         [BZ #14337]
3644         * math/s_clog.c (__clog): Avoid scaling a value down where that
3645         could result in underflow.
3646         * math/s_clog10.c (__clog10): Likewise.
3647         * math/s_clog10f.c (__clog10f): Likewise.
3648         * math/s_clog10l.c (__clog10l): Likewise.
3649         * math/s_clogf.c (__clogf): Likewise.
3650         * math/s_clogl.c (__clogl): Likewise.
3651         * math/libm-test.inc (clog_test): Add more tests.
3652         (clog10_test): Likewise.
3653         * sysdeps/i386/fpu/libm-test-ulps: Update.
3654         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3655
3656 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
3657
3658         [BZ #14283]
3659         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
3660         by 7 not 8 to examine high bit of fractional part.
3661
3662         [BZ #14042]
3663         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
3664         for call to __mcount_internal.
3665         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
3666         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
3667         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
3668
3669 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
3670
3671         [BZ #14154]
3672         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
3673         approximation for values within 0x1p-13f of an odd multiple of
3674         pi/4.
3675         * math/libm-test.inc (tan_test): Do not allow spurious underflow
3676         exception.  Add more tests.
3677         * sysdeps/i386/fpu/libm-test-ulps: Update.
3678
3679         [BZ #6778]
3680         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
3681         inputs and return -1 for them.  Do not check for +Inf in case not
3682         reachable for +Inf.
3683         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
3684         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
3685         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
3686         and return -1 for them.  Do not check for +Inf in case not
3687         reachable for +Inf.
3688         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
3689         define.
3690         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
3691         and return -1 for them.  Do not check for +Inf in case not
3692         reachable for +Inf.
3693         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
3694         spurious underflow.
3695         * sysdeps/i386/fpu/libm-test-ulps: Update.
3696         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3697
3698 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
3699
3700         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
3701
3702 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
3703
3704         [BZ #14157]
3705         [BZ #14331]
3706         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
3707         could result in spurious underflow.  Scale down values above
3708         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
3709         * math/s_csqrtf.c (__csqrtf): Likewise.
3710         * math/s_csqrtl.c (__csqrtl): Likewise.
3711         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
3712         spurious underflow.
3713         * sysdeps/i386/fpu/libm-test-ulps: Update.
3714         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3715
3716 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
3717
3718         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
3719         xopen-msg.sed.
3720         * catgets/xopen-msg.awk: New file.
3721         * catgets/xopen-msg.sed: Removed.
3722
3723         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
3724         po2text.sed.
3725         * intl/po2test.awk: New file.
3726         * intl/po2test.sed: Removed.
3727
3728 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
3729
3730         [BZ #14328]
3731         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
3732         or multiply small sinh result by itself.
3733         * math/s_ctanf.c (__ctanf): Likewise.
3734         * math/s_ctanh.c (__ctanh): Likewise.
3735         * math/s_ctanhf.c (__ctanhf): Likewise.
3736         * math/s_ctanhl.c (__ctanhl): Likewise.
3737         * math/s_ctanl.c (__ctanl): Likewise.
3738         * math/libm-test.inc (ctan_test_tonearest): New function.
3739         (ctan_test_towardzero): Likewise.
3740         (ctan_test_downward): Likewise.
3741         (ctan_test_upward): Likewise.
3742         (ctanh_test_tonearest): Likewise.
3743         (ctanh_test_towardzero): Likewise.
3744         (ctanh_test_downward): Likewise.
3745         (ctanh_test_upward): Likewise.
3746         (main): Call these new functions.
3747         * sysdeps/i386/fpu/libm-test-ulps: Update.
3748         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3749
3750 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
3751
3752         * .gitignore: Delete /ports entry.
3753
3754 2012-07-03  Andreas Jaeger  <aj@suse.de>
3755
3756         * po/bg.po: Update from translation team.
3757         * po/cs.po: Likewise.
3758         * po/de.po: Likewise.
3759         * po/hr.po: Likewise.
3760         * po/nl.pl: Likewise.
3761         * po/pl.po: Likewise.
3762         * po/vi.po: Likewise.
3763
3764 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
3765
3766         * Makeconfig [!+link] (+link-before-libc): New variable.
3767         [!+link] (+link-after-libc): Likewise.
3768         [!+link] (+link-tests): Likewise.
3769         [!+link] (+link): Define in terms of $(+link-before-libc) and
3770         $(+link-after-libc).
3771         [!+link-static] (+link-static-before-libc): New variable.
3772         [!+link-static] (+link-static-after-libc): Likewise.
3773         [!+link-static] (+link-static-tests): Likewise.
3774         [!+link-static] (+link-static): Define in terms of
3775         $(+link-static-before-libc) and $(+link-static-after-libc).
3776         [build-shared] (link-libc-before-gnulib): New variable.
3777         [build-shared] (link-libc-tests): Likewise.
3778         [build-shared] (link-libc): Define in terms of
3779         $(link-libc-before-gnulib).
3780         [!build-shared] (link-libc-tests): New variable.
3781         (link-libc-static-tests): New variable.
3782         [!gnulib] (gnulib-arch): New variable.
3783         [!gnulib] (gnulib-tests): Likewise.
3784         [!gnulib] (static-gnulib-arch): Likewise.
3785         [!gnulib] (static-gnulib-tests): Likewise.
3786         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
3787         Define with "=" instead of ":=".
3788         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
3789         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
3790         * Rules (binaries-all-notests): New variable.
3791         (binaries-all-tests): Likewise.
3792         (binaries-static-notests): Likewise.
3793         (binaries-static-tests): Likewise.
3794         (binaries-all): Define using $(binaries-all-notests) and
3795         $(binaries-all-tests).
3796         (binaries-static): Define using $(binaries-static-notests) and
3797         $(binaries-static-tests).
3798         (binaries-shared-tests): New variable.
3799         (binaries-shared-notests): Likewise.
3800         (binaries-shared): Remove variable.
3801         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
3802         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
3803         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
3804         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
3805         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
3806         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
3807         * elf/Makefile (sln-modules): New variable.
3808         (extra-objs): Add $(sln-modules:=.o).
3809         (ldconfig-modules): Add static-stubs.
3810         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
3811         * elf/static-stubs.c: New file.
3812
3813         [BZ #14283]
3814         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
3815         by 7 not 8 to examine high bit of fractional part.  Use volatile
3816         variables when splitting into final array of floats if
3817         __FLT_EVAL_METHOD__ != 0.
3818         * math/libm-test.inc (cos_test): Add another test.
3819         (sin_test): Likewise.
3820         * sysdeps/i386/fpu/libm-test-ulps: Update.
3821
3822         [BZ #14273]
3823         * math/libm-test.inc (cosh_test): Add more tests.
3824
3825         * version.h (RELEASE): Set to "development".
3826         (VERSION): Set to "2.16.90".
3827
3828 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
3829
3830         * NEWS: Update copyright. Remove last-updated date.
3831         Mention math library bug fixes and timezone data changes.
3832         * README: Mention GNU/Hurd, x32, and HPPA support status.
3833
3834 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
3835
3836         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
3837
3838 2012-06-27  Andreas Jaeger  <aj@suse.de>
3839
3840         * manual/contrib.texi (Contributors): Add Samuel Thibault.
3841
3842 2012-06-25  Andreas Jaeger  <aj@suse.de>
3843
3844         * sysdeps/s390/fpu/libm-test-ulps: Update.
3845
3846 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
3847             Thomas Schwinge  <thomas@codesourcery.com>
3848
3849         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
3850         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
3851         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
3852         fanotify_mark.
3853
3854 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
3855
3856         * sysdeps/mach/start.c: Remove file.
3857         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
3858         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
3859         * sysdeps/sh/init-first.c: Likewise.
3860
3861         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
3862         registers for frame unwinding purposes, add CFI directives.
3863         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
3864         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
3865         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
3866         Likewise.
3867
3868         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
3869         __fortify_fail returning.
3870         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
3871
3872         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
3873         sysdeps/sh/____longjmp_chk.S.
3874         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
3875         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
3876         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
3877         (gen-as-const-headers): Append sigaltstack-offsets.sym.
3878
3879         * sysdeps/sh/abort-instr.h: New file.
3880         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
3881         process in case exit returns.
3882
3883         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
3884         initialize the GOT register before use.
3885
3886         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
3887         calculation of ARGC > 4.
3888
3889         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
3890         meaningful names to some local labels.
3891
3892 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
3893             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3894
3895         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
3896         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
3897         (__arch_compare_and_exchange_val_16_acq): Likewise.
3898         (__arch_compare_and_exchange_val_32_acq): Likewise.
3899         (atomic_exchange_and_add): Fix gUSA sequence.
3900         (atomic_add): Likewise.
3901         (atomic_add_negative): Likewise.
3902         (atomic_add_zero): Likewise.
3903         (atomic_bit_test_set): Likewise.
3904
3905 2012-06-22  Andreas Schwab  <schwab@redhat.com>
3906
3907         [BZ #13579]
3908         * include/link.h (struct link_map): Add l_free_initfini.
3909         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
3910         l_initfini.
3911         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
3912         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
3913         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
3914         set.
3915
3916 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
3917
3918         * configure.in: Use AC_LANG_SOURCE.
3919         * configure: Regenerate.
3920
3921 2012-06-22  Roland McGrath  <roland@hack.frob.com>
3922
3923         * configure.in (libc_cv_localstatedir): New substituted variable.
3924         * configure: Regenerated.
3925         * config.make.in (localstatedir): New variable, substituted from
3926         libc_cv_localstatedir.
3927         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
3928         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
3929         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
3930         * sysdeps/gnu/configure: Regenerated.
3931
3932 2012-06-21  Jeff Law  <law@redhat.com>
3933
3934         [BZ #14277]
3935         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
3936         free.  Simplify list management for _LIBC case.
3937
3938 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
3939
3940         [BZ #14273]
3941         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
3942         Clear sign bit of 64-bit integer value before comparing against
3943         overflow value.
3944
3945         * sysdeps/mach/configure: Regenerated.
3946
3947 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
3948
3949         [BZ #14278]
3950         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
3951
3952 2012-06-21  Jeff Law  <law@redhat.com>
3953
3954         [BZ #13882]
3955         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
3956         uint16_t for elements in the "seen" array to avoid char overflows.
3957         * elf/dl-fini.c (_dl_sort_fini): Likewise.
3958         * elf/dl-open.c (dl_open_worker): Likewise.
3959
3960 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
3961
3962         * scripts/list-sources.sh: Scan PORTS for translations.
3963         * po/libc.pot: Regenerated.
3964
3965 2012-06-21  Andreas Jaeger  <aj@suse.de>
3966
3967         [BZ #12194]
3968         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
3969         warning.
3970         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
3971         * bits/byteswap-16.h (__bswap_16): Likewise.
3972         * bits/byteswap.h (__bswap_constant_16): Likewise.
3973
3974 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
3975
3976         [BZ #14117]
3977         * sysdeps/i386/fpu_control.h: Removed.
3978         * sysdeps/x86_64/fpu_control.h: Moved to ...
3979         * sysdeps/x86/fpu_control.h: Here.
3980
3981         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
3982         (_FPU_SETCW): Likewise.
3983
3984 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
3985
3986         [BZ #14117]
3987         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
3988         * sysdeps/x86/fpu/bits/mathinline.h: This.
3989         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
3990
3991         [BZ #14050]
3992         [BZ #14117]
3993         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
3994         functions if __x86_64__ is defined.
3995
3996 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
3997
3998         * string/endian.h: Add !__ASSEMBLER__ condition for including
3999         conversion interfaces.
4000
4001 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
4002
4003         [BZ #14241]
4004         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
4005         of ABS(x) in calculating zero to negative powers other than odd
4006         integers.
4007         * math/libm-test.inc (pow_test): Add more tests.
4008
4009 2012-06-15  Andreas Jaeger  <aj@suse.de>
4010
4011         * manual/contrib.texi (Contributors): Update entry of Liubov
4012         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
4013         Machado Filho.
4014
4015 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
4016
4017         * string/string.h: Add __wur to GNU version of strerror_r.
4018
4019 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
4020
4021         [BZ #14229]
4022         * string/Makefile (tests): Add tst-strtok_r.
4023         * string/tst-strtok_r.c: New file.
4024         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
4025         RAX_LP/RDX_LP on SAVE_PTR.
4026
4027 2012-06-14  Roland McGrath  <roland@hack.frob.com>
4028
4029         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
4030
4031 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
4032
4033         * libm_test.inc (csqrt_test): Allow more spurious underflow
4034         exceptions.
4035         (j0_test): Likewise.
4036         (j1_test): Likewise.
4037         (y0_test): Likewise.
4038         (y1_test): Likewise.
4039
4040 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
4041
4042         * po/Makefile (libc.pot): Use UTF-8 charset.
4043
4044 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
4045
4046         [BZ #14210]
4047         Suppress sign-conversion warning from FD_SET.
4048         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
4049         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
4050         not unsigned long int.
4051         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
4052
4053 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
4054
4055         [BZ #14050]
4056         [BZ #14117]
4057         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
4058         __extern_always_inline instead of __extern_inline.
4059         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
4060         (__signbit): Likewise.
4061         (__signbitl): Support C++ namespace.
4062         (lrintf): New inline function.
4063         (lrint): Likewise.
4064         (llrintf): Likewise.
4065         (llrint): Likewise.
4066         (fmaxf): Likewise.
4067         (fmax): Likewise.
4068         (fminf): Likewise.
4069         (fmin): Likewise.
4070         (rint): Likewise.
4071         (rintf): Likewise.
4072         (ceil): Likewise.
4073         (ceilf): Likewise.
4074         (floor): Likewise.
4075         (floorf): Likewise.
4076         (nearbyint): Likewise.
4077         (nearbyintf): Likewise.
4078
4079 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
4080
4081         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
4082         non-default versions.
4083
4084 2012-06-11  Roland McGrath  <roland@hack.frob.com>
4085
4086         [BZ #14218]
4087         * manual/argp.texi (Argp): Reword argp_parse description slightly.
4088
4089 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
4090
4091         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
4092         (FE_UPWARD, FE_DOWNWARD): Don't define.
4093         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
4094         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
4095
4096         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
4097         reading it.
4098         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
4099         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
4100
4101 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4102
4103         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
4104         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
4105         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
4106         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
4107
4108 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
4109
4110         [BZ #14117]
4111         * sysdeps/i386/fpu/bits/fenv.h: Removed.
4112         * sysdeps/i386/fpu/Implies: New file.
4113         * sysdeps/x86_64/fpu/Implies: Likewise.
4114         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
4115         * sysdeps/x86/fpu/bits/fenv.h: This.
4116
4117         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
4118         __SSE_MATH__.
4119
4120 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
4121
4122         [BZ #14134]
4123         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
4124         character 0xffff that matches the last element of the
4125         conversion table.
4126
4127 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4128
4129         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
4130         fmodl commit.
4131
4132 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4133
4134         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
4135         values higher than 25.6283.
4136
4137 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4138
4139         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
4140         subnormal exponent extraction and add some __builtin_expect.
4141         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
4142         Fix for subnormal mantissa calculation.
4143
4144 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
4145
4146         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
4147         cpu2 is -1 and errno is not ENOSYS.
4148
4149 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
4150
4151         [BZ #14117]
4152         * sysdeps/i386/i486/bits/string.h: Renamed to ...
4153         * sysdeps/x86/bits/string.h: This.
4154         * sysdeps/x86_64/bits/string.h: Removed.
4155
4156         * sysdeps/i386/i486/bits/string.h: Define inline functions only
4157         if not compiling for x86-64, but compiling for >= i486.
4158
4159         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
4160         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
4161
4162         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
4163         New macro from Linux kernel 3.4.0.
4164         (FP_XSTATE_MAGIC2): Likewise.
4165         (FP_XSTATE_MAGIC2_SIZE): Likewise.
4166         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
4167         (struct _fpx_sw_bytes): New struct.
4168         (struct _xsave_hdr): Likewise.
4169         (struct _ymmh_state): Likewise.
4170         (struct _xstate): Likewise.
4171
4172         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
4173         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
4174         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
4175         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
4176         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
4177         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
4178
4179         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
4180         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
4181         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
4182         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
4183         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
4184         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
4185
4186 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
4187
4188         [BZ #13743]
4189         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
4190         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
4191         (sysdep_headers): Include sys/platform/ppc.h.
4192         * sysdeps/powerpc/test-gettimebase.c: Test for
4193         __ppc_get_timebase() to catch future ISA opcode/insn changes.
4194         * manual/Makefile (appendices): Include platform.texi.
4195         * manual/contrib.texi (Contributors): Update @node pointers.
4196         * manual/maint.texi (Maintenance): Likewise.
4197         (Platform): New node.
4198         * manual/platform.texi: New file.  Document the new features.
4199
4200 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
4201             Jakub Jelinek  <jakub@redhat.com>
4202
4203         [BZ #14188]
4204         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
4205         where __builtin_expect is unavailable.
4206
4207 2012-06-03  David S. Miller  <davem@davemloft.net>
4208
4209         * stdlib/longlong.h: Updated from GCC.
4210
4211 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
4212
4213         [BZ #14042]
4214         * sysdeps/powerpc/powerpc32/mcount.c: New file.
4215         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
4216         __mcount_internal.
4217         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
4218         (GLIBC_2.16): Likewise.
4219
4220 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
4221
4222         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
4223
4224 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
4225
4226         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
4227         (default-abi): New variable.
4228         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
4229         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
4230         variable.
4231         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
4232         Likewise.
4233         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
4234         Likewise.
4235         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
4236         Likewise.
4237
4238         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
4239         definition.  Document in comment.
4240
4241 2012-06-01  David S. Miller  <davem@davemloft.net>
4242
4243         * stdlib/longlong.h: Updated from GCC.
4244
4245 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
4246
4247         [BZ #14117]
4248         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
4249         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
4250         sys/debugreg.h sys/io.h here.
4251         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
4252         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
4253         sys/io.h.
4254         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
4255         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
4256         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
4257         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
4258         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
4259         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
4260
4261         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
4262         Define only if __x86_64__ is defined.
4263
4264 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
4265
4266         [BZ #14048]
4267         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
4268         Use int64_t for variable i.
4269         * math/libm-test.inc (fmod_test): Add more tests.
4270
4271         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
4272         z computation is not scheduled after fetestexcept.
4273         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
4274         Use math_force_eval instead of asm to ensure calculation scheduled
4275         before exception test.
4276         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
4277         Ensure a1 + u.d computation is not scheduled after fetestexcept.
4278
4279 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
4280
4281         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
4282         computation is not scheduled after fetestexcept.
4283
4284 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
4285
4286         [BZ #14117]
4287         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
4288         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
4289
4290 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4291
4292         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
4293         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
4294
4295 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
4296
4297         [BZ #14117]
4298         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
4299         <bits/wordsize.h>.
4300         (__WCHAR_MIN): Support __WORDSIZE == 64.
4301         (__WCHAR_MAX): Likewise.
4302
4303         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
4304         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
4305
4306         [BZ #14183]
4307         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
4308         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
4309
4310         [BZ #14117]
4311         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
4312         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
4313
4314         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
4315         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
4316
4317         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
4318         Defined to 1 if __x86_64__ isn't defined.
4319         (_STAT_VER_LINUX_OLD): New.
4320         (st_atime): Remove duplicate.
4321         (st_mtime): Likewise.
4322         (st_ctime): Likewise.
4323
4324 2012-05-31  David S. Miller  <davem@davemloft.net>
4325
4326         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
4327         entries.
4328
4329 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
4330
4331         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
4332         gen-libm-test.pl.
4333
4334         [BZ #14132]
4335         * elf/dl-reloc.c: Include <_itoa.h>.
4336         (_dl_reloc_bad_type): Remove use of INTUSE.
4337         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
4338         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
4339         * stdio-common/psiginfo.c (psiginfo): Likewise.
4340         * stdio-common/psignal.c (psignal): Likewise.
4341         * string/strsignal.c (strsignal): Likewise.
4342         * include/signal.h (_sys_siglist): Declare hidden proto.
4343         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
4344         INTVARDEF with libc_hidden_data_def.
4345         * stdio-common/itoa-udigits.c: Likewise.
4346         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
4347         (_itoa_lower_digits_internal): Remove declaration.
4348         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
4349         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
4350         (_sys_sigabbrev_internal): Remove aliases.
4351         (_sys_siglist): Define hidden alias.
4352
4353 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
4354
4355         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4356         bits/sysctl.h.
4357
4358 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
4359
4360         [BZ #14117]
4361         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
4362         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
4363
4364         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
4365         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
4366         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
4367         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
4368         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
4369         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
4370
4371         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
4372         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
4373         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
4374
4375         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
4376         with __addr.
4377         (insw): Likewise.
4378         (insl): Likewise.
4379         (outsb): Likewise.
4380         (outsw): Likewise.
4381         (outsl): Likewise.
4382
4383         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
4384         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
4385         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
4386
4387         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
4388         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
4389         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
4390         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
4391         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
4392         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
4393
4394         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
4395         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
4396
4397         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
4398         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
4399
4400         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
4401         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
4402         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
4403
4404         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
4405         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
4406         to ...
4407         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
4408
4409         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
4410         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
4411         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
4412
4413         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
4414         for x86-64.
4415         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
4416
4417 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
4418
4419         * math/math.h (M_El): Use two more decimal places.
4420         (M_LOG2El): Likewise.
4421         (M_LOG10El): Likewise.
4422         (M_LN2l): Likewise.
4423         (M_LN10l): Likewise.
4424         (M_PIl): Likewise.
4425         (M_PI_2l): Likewise.
4426         (M_PI_4l): Likewise.
4427         (M_1_PIl): Likewise.
4428         (M_2_PIl): Likewise.
4429         (M_2_SQRTPIl): Likewise.
4430         (M_SQRT2l): Likewise.
4431         (M_SQRT1_2l): Likewise.
4432
4433 2012-05-31  David S. Miller  <davem@davemloft.net>
4434
4435         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
4436         values between float registers.
4437         * sysdeps/sparc/sparc64/memset.S: Likewise.
4438         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
4439
4440 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
4441
4442         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
4443         -D_FORTIFY_SOURCE=1.
4444         (CPPFLAGS-tst-longjmp_chk.c): Define.
4445         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
4446         (CPPFLAGS-tst-longjmp_chk2.c): Define.
4447         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
4448         CFLAGS-tst-wchar-h.c.
4449
4450 2012-05-31  Marek Polacek  <polacek@redhat.com>
4451
4452         [BZ #14132]
4453         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
4454         __endmntent_internal): Remove declaration.
4455         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
4456         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
4457         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
4458
4459 2012-05-30  David S. Miller  <davem@davemloft.net>
4460
4461         * sysdeps/sparc/sparc32/soft-fp/q_util.c
4462         (___Q_simulate_exceptions): Use real FP ops rather than writing
4463         into the %fsr.
4464         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
4465         Likewise.
4466
4467 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
4468
4469         [BZ #14117]
4470         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
4471         * sysdeps/x86/bits/xtitypes.h: This.
4472
4473         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
4474         * sysdeps/x86/bits/wordsize.h: This.
4475
4476         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
4477         * sysdeps/x86/bits/huge_vall.h: This.
4478
4479         * sysdeps/i386/bits/select.h: Removed.
4480         * sysdeps/x86_64/bits/select.h: Renamed to ...
4481         * sysdeps/x86/bits/select.h: This.
4482
4483         * sysdeps/i386/bits/setjmp.h: Removed.
4484         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
4485         * sysdeps/x86/bits/setjmp.h: This.
4486
4487         * sysdeps/i386/bits/mathdef.h: Removed.
4488         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
4489         * sysdeps/x86/bits/mathdef.h: This.
4490
4491 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
4492
4493         [BZ #14132]
4494         * include/sys/socket.h (__connect_internal)
4495         (__libc_sa_len_internal): Remove declaration.
4496         (__connect, __libc_sa_len): Declare hidden_proto.
4497         (SA_LEN): Remove use of INTUSE.
4498         * socket/connect.c: Add libc_hidden_def.
4499         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
4500         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
4501         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
4502         alias.
4503         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
4504         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
4505         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
4506         of adding _internal alias.
4507
4508 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
4509
4510         [BZ #14117]
4511         * sysdeps/i386/bits/link.h: Removed.
4512         * sysdeps/i386/bits/linkmap.h: Likewise.
4513         * sysdeps/x86_64/bits/link.h: Renamed to ...
4514         * sysdeps/x86/bits/link.h: This.
4515         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
4516         * sysdeps/x86/bits/linkmap.h: This.
4517
4518         * sysdeps/i386/bits/endian.h: Removed.
4519         * sysdeps/x86_64/bits/endian.h: Renamed to ...
4520         * sysdeps/x86/bits/endian.h: This.
4521
4522         * sysdeps/i386/bits/byteswap.h: Removed.
4523         * sysdeps/i386/bits/byteswap-16.h: Likewise.
4524         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
4525         * sysdeps/x86/bits/byteswap.h: This.
4526         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
4527         * sysdeps/x86/bits/byteswap-16.h: This.
4528         * sysdeps/i386/Implies: Add x86.
4529         * sysdeps/x86_64/Implies: Likewise.
4530
4531 2012-05-30  David S. Miller  <davem@davemloft.net>
4532
4533         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
4534         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
4535         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
4536         (FP_TRAPPING_EXCEPTIONS): Define.
4537         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
4538         (FP_TRAPPING_EXCEPTIONS): Define.
4539         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
4540         subnormals only when inexact has been signalled or underflow
4541         exceptions are enabled.
4542         (_FP_PACK_CANONICAL): Likewise.
4543
4544 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
4545
4546         [BZ #14183]
4547         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
4548         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
4549
4550 2012-05-30  Richard Henderson  <rth@twiddle.net>
4551
4552         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
4553         with #ifndef NOT_IN_libc.
4554
4555         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
4556         marked to avoid plt entry.
4557
4558 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
4559
4560         [BZ #14112]
4561         * Makeconfig (default-abi): New macro.
4562         (abi-includes): Likewise.
4563         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
4564         $(abi-$(default-abi)-lib-soname) for soname if defined.
4565         ($(common-objpfx)gnu/lib-names.stmp): Generate from
4566         abi-variants.
4567         * Makefile (installed-stubs): Likewise.
4568         * include/stubs-biarch.h: Removed.
4569         * scripts/lib-names.awk: Only handle one library at a time.
4570         * scripts/soversions.awk: Remove WORDSIZE support.
4571         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
4572         entries.
4573         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
4574         Removed.
4575         (syscall-list-default-condition): Likewise.
4576         (syscall-list-default-condition): Likewise.
4577         (syscall-list-includes): Likewise.
4578         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
4579         syscall-list-* with abi-*.  Handle undefined abi-variants.
4580         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
4581         * sysdeps/unix/sysv/linux/i386/Implies: New file.
4582         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
4583         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
4584         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
4585         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
4586         Removed.
4587         (syscall-list-32-options): Likewise.
4588         (syscall-list-32-condition): Likewise.
4589         (syscall-list-64-options): Likewise.
4590         (syscall-list-64-condition): Likewise.
4591         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
4592         macro.
4593         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
4594         Renamed to ...
4595         (abi-*): This.
4596         (abi-64-ld-soname): New macro.
4597         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
4598         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
4599         Renamed to ...
4600         (abi-*): This.
4601         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
4602         * sysdeps/x86_64/x32/shlib-versions: Likewise.
4603
4604 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
4605
4606         * sysdeps/unix/sysv/linux/kernel-features.h
4607         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
4608         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
4609         include <kernel-features.h>.
4610         [!__NR_ftruncate64]: Remove conditional code.
4611         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4612         [__NR_ftruncate64]: Make code unconditional.
4613         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4614         * sysdeps/unix/sysv/linux/truncate64.c: Do not
4615         include <kernel-features.h>.
4616         [!__NR_ftruncate64]: Remove conditional code.
4617         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4618         [__NR_ftruncate64]: Make code unconditional.
4619         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4620         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
4621         include <kernel-features.h>.
4622         [!__NR_ftruncate64]: Remove conditional code.
4623         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4624         [__NR_ftruncate64]: Make code unconditional.
4625         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4626         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
4627         include <kernel-features.h>.
4628         [!__NR_ftruncate64]: Remove conditional code.
4629         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4630         [__NR_ftruncate64]: Make code unconditional.
4631         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4632
4633         * configure.in (libc_cv_fpie): Weaken to a compile test using
4634         LIBC_TRY_CC_OPTION.
4635         * configure: Regenerated.
4636
4637 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4638
4639         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
4640         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
4641         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
4642         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
4643         Refreshed.
4644         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
4645         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
4646         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
4647         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
4648         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
4649         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
4650         Refreshed.
4651
4652 2012-05-27  David S. Miller  <davem@davemloft.net>
4653
4654         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
4655         (___Q_zero): New.
4656         (__Q_simulate_exceptions): Return void.  Change to simulate
4657         exceptions by writing into the %fsr.
4658         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
4659         (__Qp_handle_exceptions): Likewise.
4660         (numbers): Delete.
4661         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
4662         __Qp_handle_exceptions.
4663         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
4664         __Qp_handle_exceptions.
4665         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
4666         as unused and give dummy FP_RND_NEAREST initializer.
4667         (FP_INHIBIT_RESULTS): Define.
4668         (___Q_simulate_exceptions): Update declaration.
4669         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
4670         formatting.
4671         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
4672         as unused and give dummy FP_RND_NEAREST initializer.
4673         (__Qp_handle_exceptions): Update declaration.
4674         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
4675         formatting.
4676
4677 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
4678
4679         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
4680         the temporary FPU control word.
4681         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
4682         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
4683         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
4684         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
4685         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
4686         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
4687         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
4688         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
4689         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
4690         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
4691         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
4692
4693 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4694
4695         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
4696         fields.
4697
4698 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
4699
4700         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
4701         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
4702         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
4703         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
4704         Likewise.
4705         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
4706         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
4707         Likewise.
4708
4709 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
4710
4711         * po/h.po: Update from translation team.
4712
4713 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
4714
4715         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
4716
4717         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
4718         handling of denormals.
4719         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
4720         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
4721         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
4722         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
4723         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
4724         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
4725         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
4726         Likewise.
4727
4728 2012-05-26  Marek Polacek  <polacek@redhat.com>
4729
4730         [BZ #14152]
4731         * math/libm-test.inc (fma_test): Don't always expect underflow
4732         exception.
4733
4734 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
4735
4736         [BZ #12416]
4737         * elf/tst-execstack.c: Include stackinfo.h.
4738         (do_test): Adjust test case to ensure that pthread_getattr_np
4739         behaviour remains the same after marking stack executable.
4740
4741 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
4742
4743         * sysdeps/unix/sysv/linux/kernel-features.h
4744         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
4745         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
4746         kernel-features.h.
4747         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
4748         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
4749         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
4750         kernel-features.h.
4751         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
4752         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
4753
4754 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
4755
4756         * configure.in: Define the default includes to being none.
4757         * configure: Regenerated.
4758
4759 2012-05-25  Roland McGrath  <roland@hack.frob.com>
4760
4761         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
4762         * sysdeps/x86_64/setjmp.S: Likewise.
4763         * sysdeps/i386/bsd-setjmp.S: Likewise.
4764         * sysdeps/i386/bsd-_setjmp.S: Likewise.
4765         * sysdeps/i386/setjmp.S: Likewise.
4766         * sysdeps/i386/__longjmp.S: Likewise.
4767         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
4768         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
4769
4770         * include/stap-probe.h: New file.
4771         * configure.in: Handle --enable-systemtap.
4772         * configure: Regenerated.
4773         * config.h.in (USE_STAP_PROBE): New #undef.
4774         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
4775         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
4776         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
4777
4778 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
4779
4780         [BZ #13717]
4781         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
4782         to 2.4.0 where earlier.
4783         * sysdeps/unix/sysv/linux/configure: Regenerated.
4784         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
4785         <kernel-features.h>.
4786         [__ASSUME_32BITUIDS]: Make code unconditional.
4787         [!__ASSUME_32BITUIDS]: Remove conditional code.
4788         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
4789         <kernel-features.h>.
4790         [__ASSUME_32BITUIDS]: Make code unconditional.
4791         [!__ASSUME_32BITUIDS]: Remove conditional code.
4792         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
4793         [__ASSUME_32BITUIDS]: Make code unconditional.
4794         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
4795         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
4796         <kernel-features.h>.
4797         [__ASSUME_32BITUIDS]: Make code unconditional.
4798         [!__ASSUME_32BITUIDS]: Remove conditional code.
4799         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
4800         <kernel-features.h>.
4801         [__ASSUME_32BITUIDS]: Make code unconditional.
4802         [!__ASSUME_32BITUIDS]: Remove conditional code.
4803         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
4804         <kernel-features.h>.
4805         [__ASSUME_32BITUIDS]: Make code unconditional.
4806         [!__ASSUME_32BITUIDS]: Remove conditional code.
4807         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
4808         <kernel-features.h>.
4809         [__ASSUME_32BITUIDS]: Make code unconditional.
4810         [!__ASSUME_32BITUIDS]: Remove conditional code.
4811         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
4812         <kernel-features.h>.
4813         [__ASSUME_32BITUIDS]: Make code unconditional.
4814         [!__ASSUME_32BITUIDS]: Remove conditional code.
4815         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
4816         <kernel-features.h>.
4817         [__ASSUME_32BITUIDS]: Make code unconditional.
4818         [!__ASSUME_32BITUIDS]: Remove conditional code.
4819         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
4820         <kernel-features.h>.
4821         [__ASSUME_32BITUIDS]: Make code unconditional.
4822         [!__ASSUME_32BITUIDS]: Remove conditional code.
4823         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
4824         <kernel-features.h>.
4825         [__ASSUME_32BITUIDS]: Make code unconditional.
4826         [!__ASSUME_32BITUIDS]: Remove conditional code.
4827         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
4828         <kernel-features.h>.
4829         [__ASSUME_32BITUIDS]: Make code unconditional.
4830         [!__ASSUME_32BITUIDS]: Remove conditional code.
4831         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
4832         <kernel-features.h>.
4833         [__ASSUME_32BITUIDS]: Make code unconditional.
4834         [!__ASSUME_32BITUIDS]: Remove conditional code.
4835         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
4836         <kernel-features.h>.
4837         [__NR_setresgid] (__setresgid): Do not declare.
4838         [__ASSUME_32BITUIDS]: Make code unconditional.
4839         [!__ASSUME_32BITUIDS]: Remove conditional code.
4840         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
4841         <kernel-features.h>.
4842         [__NR_setresuid] (__setresuid): Do not declare.
4843         [__ASSUME_32BITUIDS]: Make code unconditional.
4844         [!__ASSUME_32BITUIDS]: Remove conditional code.
4845         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
4846         <kernel-features.h>.
4847         [__ASSUME_32BITUIDS]: Make code unconditional.
4848         [!__ASSUME_32BITUIDS]: Remove conditional code.
4849         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
4850         <kernel-features.h>.
4851         [__ASSUME_32BITUIDS]: Make code unconditional.
4852         [!__ASSUME_32BITUIDS]: Remove conditional code.
4853         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
4854         <kernel-features.h>.
4855         [__ASSUME_32BITUIDS]: Make code unconditional.
4856         [!__ASSUME_32BITUIDS]: Remove conditional code.
4857         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
4858         <kernel-features.h>.
4859         [__ASSUME_32BITUIDS]: Make code unconditional.
4860         [!__ASSUME_32BITUIDS]: Remove conditional code.
4861         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
4862         <kernel-features.h>.
4863         [__ASSUME_32BITUIDS]: Make code unconditional.
4864         [!__ASSUME_32BITUIDS]: Remove conditional code.
4865         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
4866         <kernel-features.h>.
4867         [__ASSUME_32BITUIDS]: Make code unconditional.
4868         [!__ASSUME_32BITUIDS]: Remove conditional code.
4869         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
4870         <kernel-features.h>.
4871         [__ASSUME_32BITUIDS]: Make code unconditional.
4872         [!__ASSUME_32BITUIDS]: Remove conditional code.
4873         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
4874         <kernel-features.h>.
4875         [__ASSUME_32BITUIDS]: Make code unconditional.
4876         [!__ASSUME_32BITUIDS]: Remove conditional code.
4877         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
4878         <kernel-features.h>.
4879         [__ASSUME_32BITUIDS]: Make code unconditional.
4880         [!__ASSUME_32BITUIDS]: Remove conditional code.
4881         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
4882         <kernel-features.h>.
4883         [__ASSUME_32BITUIDS]: Make code unconditional.
4884         [!__ASSUME_32BITUIDS]: Remove conditional code.
4885         * sysdeps/unix/sysv/linux/kernel-features.h
4886         (__ASSUME_SETRESUID_SYSCALL): Remove.
4887         (__ASSUME_SETRESGID_SYSCALL): Likewise.
4888         (__ASSUME_32BITUIDS): Likewise.
4889         (__ASSUME_LDT_WORKS): Likewise.
4890         (__ASSUME_O_DIRECTORY): Likewise.
4891         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
4892         architecture but not kernel version.
4893         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
4894         (__ASSUME_MMAP2_SYSCALL): Likewise.
4895         (__ASSUME_STAT64_SYSCALL): Likewise.
4896         (__ASSUME_IPC64): Likewise.
4897         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
4898         <kernel-features.h>.
4899         [__ASSUME_32BITUIDS]: Make code unconditional.
4900         [!__ASSUME_32BITUIDS]: Remove conditional code.
4901         * sysdeps/unix/sysv/linux/opendir.c: Do not include
4902         <kernel-features.h>.
4903         [__ASSUME_O_DIRECTORY]: Make code unconditional.
4904         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
4905         132096]: Remove conditional code.
4906         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
4907         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
4908         <kernel-features.h>.
4909         [__ASSUME_32BITUIDS]: Make code unconditional.
4910         [!__ASSUME_32BITUIDS]: Remove conditional code.
4911         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
4912         <kernel-features.h>.
4913         [__ASSUME_32BITUIDS]: Make code unconditional.
4914         [!__ASSUME_32BITUIDS]: Remove conditional code.
4915         * sysdeps/unix/sysv/linux/setegid.c: Do not include
4916         <kernel-features.h>.
4917         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
4918         unconditional.
4919         (__setresgid): Do not declare.
4920         [__ASSUME_32BITUIDS]: Make code unconditional.
4921         [!__ASSUME_32BITUIDS]: Remove conditional code.
4922         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
4923         <kernel-features.h>.
4924         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
4925         unconditional.
4926         (__setresuid): Do not declare.
4927         [__ASSUME_32BITUIDS]: Make code unconditional.
4928         [!__ASSUME_32BITUIDS]: Remove conditional code.
4929         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
4930         <kernel-features.h>.
4931         [__ASSUME_32BITUIDS]: Make code unconditional.
4932         [!__ASSUME_32BITUIDS]: Remove conditional code.
4933         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
4934         <kernel-features.h>.
4935         [__ASSUME_32BITUIDS]: Make code unconditional.
4936         [!__ASSUME_32BITUIDS]: Remove conditional code.
4937
4938 2012-05-25  Richard Henderson  <rth@twiddle.net>
4939
4940         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
4941         dl_hwcap to ifunc resolver.
4942         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
4943         elf_ifunc_invoke.
4944         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
4945         dl_hwcap to ifunc resolver.
4946         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
4947
4948 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
4949
4950         [BZ #14153]
4951         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
4952         for |x| <= 2**-26, not 2**-57.
4953         * math/libm-test.inc (acos_test): Do not allow spurious underflow
4954         exception.
4955
4956 2012-05-24  Jeff Law  <law@redhat.com>
4957
4958         * stdio-common/Makefile (tests): Add bug25.
4959         * stdio-common/bug25.c: New test.
4960
4961 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
4962
4963         [BZ #13576]
4964         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
4965         multiple of MALLOC_ALIGNMENT in size.
4966         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
4967
4968 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
4969
4970         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
4971         Require >= 256.
4972         (FILENAME_MAX): Use macro-int-constant.
4973         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
4974         (_IOFBF): Use macro-int-constant.
4975         (_IOLBF): Likewise.
4976         (_IONBF): Likewise.
4977         (SEEK_CUR): Likewise.
4978         (SEEK_END): Likewise.
4979         (SEEK_SET): Likewise.
4980         (TMP_MAX): Likewise.
4981         (EOF): Use macro-int-constant.  Require < 0.
4982         (NULL): Use macro-constant.  Require == 0.
4983         (stdin): Require type to be FILE *.
4984         (stdout): Likewise.
4985         (stderr): Likewise.
4986         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
4987         macro-int-constant.
4988         (EXIT_SUCCESS): Likewise.
4989         (NULL): Use macro-constant.  Require == 0.
4990         (RAND_MAX): Use macro-int-constant.
4991         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
4992         [C99-based standards] (strtof): Require function.
4993         [C99-based standards] (strtold): Likewise.
4994         [C99-based standards] (strtoll): Likewise.
4995         [C99-based standards] (strtoull): Likewise.
4996         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
4997         [ISO || ISO99 || ISO11] (limits.h): Likewise.
4998         [ISO || ISO99 || ISO11] (math.h): Likewise.
4999         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
5000         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
5001         [ISO || ISO99 || ISO11] (*_t): Do not allow.
5002
5003 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
5004
5005         [BZ #14132]
5006         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
5007         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
5008         * intl/dgettext.c (DCGETTEXT): Likewise.
5009         * intl/gettext.c (DCGETTEXT): Likewise.
5010         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
5011         * posix/regex_internal.h (gettext): Likewise.
5012         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
5013         Remove declaration.
5014         * include/argz.h (__argz_count_internal)
5015         (__argz_stringify_internal): Remove declaration.
5016         (__argz_count, __argz_stringify): Declare hidden proto.
5017         * intl/dcgettext.c: Remove use of INTDEF.
5018         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
5019         * string/argz-stringify.c: Likewise.
5020         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
5021         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
5022         Declare hidden proto.
5023         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
5024         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
5025         Declare hidden proto.
5026         * include/stdio.h (__asprintf_internal): Don't declare.
5027         (__asprintf): Don't define as macro.  Declare hidden proto.
5028         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
5029         (__fsetlocking): Declare hidden proto.
5030         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
5031         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
5032         hidden proto.
5033         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
5034         (_IO_setlinebuf): Remove use of INTUSE.
5035         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
5036         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
5037         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
5038         Remove declaration.
5039         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
5040         (_IO_do_flush): Remove use of INTUSE.
5041         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
5042         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
5043         (_IO_adjust_column, _IO_least_wmarker)
5044         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
5045         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
5046         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
5047         (_IO_default_doallocate, _IO_wdefault_doallocate)
5048         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
5049         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
5050         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
5051         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
5052         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
5053         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
5054         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
5055         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
5056         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
5057         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
5058         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
5059         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
5060         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
5061         proto.
5062         (_IO_flush_all_internal, _IO_adjust_column_internal)
5063         (_IO_default_uflow_internal, _IO_default_finish_internal)
5064         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
5065         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
5066         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
5067         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
5068         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
5069         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
5070         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
5071         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
5072         (_IO_file_close_internal, _IO_file_close_it_internal)
5073         (_IO_file_underflow_internal, _IO_file_overflow_internal)
5074         (_IO_file_init_internal, _IO_file_attach_internal)
5075         (_IO_file_fopen_internal, _IO_file_read_internal)
5076         (_IO_file_sync_internal, _IO_file_seek_internal)
5077         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
5078         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
5079         (_IO_str_underflow_internal, _IO_str_overflow_internal)
5080         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
5081         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
5082         (_IO_list_all_internal, _IO_link_in_internal)
5083         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
5084         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
5085         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
5086         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
5087         (_IO_do_write_internal, _IO_padn_internal)
5088         (_IO_getline_info_internal, _IO_getline_internal)
5089         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
5090         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
5091         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
5092         (_IO_vfscanf_internal, _IO_vfprintf_internal)
5093         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
5094         (_IO_init_internal, _IO_un_link_internal): Don't declare.
5095         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
5096         with libc_hidden_ver, remove use of INTUSE.
5097         * libio/genops.c: Likewise.
5098         * libio/freopen.c: Likewise.
5099         * libio/freopen64.c: Likewise.
5100         * libio/iofclose.c: Likewise.
5101         * libio/iofdopen.c: Likewise.
5102         * libio/iofflush.c: Likewise.
5103         * libio/iofflush_u.c: Likewise.
5104         * libio/iofgets.c: Likewise.
5105         * libio/iofgets_u.c: Likewise.
5106         * libio/iofopen.c: Likewise.
5107         * libio/iofopncook.c: Likewise.
5108         * libio/iofread.c: Likewise.
5109         * libio/iofread_u.c: Likewise.
5110         * libio/ioftell.c: Likewise.
5111         * libio/iofwrite.c: Likewise.
5112         * libio/iogetline.c: Likewise.
5113         * libio/iogets.c: Likewise.
5114         * libio/iogetwline.c: Likewise.
5115         * libio/iopadn.c: Likewise.
5116         * libio/iopopen.c: Likewise.
5117         * libio/ioseekoff.c: Likewise.
5118         * libio/ioseekpos.c: Likewise.
5119         * libio/iosetbuffer.c: Likewise.
5120         * libio/iosetvbuf.c: Likewise.
5121         * libio/ioungetc.c: Likewise.
5122         * libio/ioungetwc.c: Likewise.
5123         * libio/iovdprintf.c: Likewise.
5124         * libio/iovsprintf.c: Likewise.
5125         * libio/iovsscanf.c: Likewise.
5126         * libio/memstream.c: Likewise.
5127         * libio/obprintf.c: Likewise.
5128         * libio/oldfileops.c: Likewise.
5129         * libio/oldiofclose.c: Likewise.
5130         * libio/oldiofdopen.c: Likewise.
5131         * libio/oldiofopen.c: Likewise.
5132         * libio/oldiopopen.c: Likewise.
5133         * libio/oldstdfiles.c: Likewise.
5134         * libio/putc.c: Likewise.
5135         * libio/setbuf.c: Likewise.
5136         * libio/setlinebuf.c: Likewise.
5137         * libio/stdfiles.c: Likewise.
5138         * libio/strops.c: Likewise.
5139         * libio/vasprintf.c: Likewise.
5140         * libio/vscanf.c: Likewise.
5141         * libio/vsnprintf.c: Likewise.
5142         * libio/vswprintf.c: Likewise.
5143         * libio/wfiledoalloc.c: Likewise.
5144         * libio/wfileops.c: Likewise.
5145         * libio/wgenops.c: Likewise.
5146         * libio/wmemstream.c: Likewise.
5147         * libio/wstrops.c: Likewise.
5148         * libio/__fpurge.c: Likewise.
5149         * libio/__fsetlocking.c: Likewise.
5150         * assert/assert.c: Likewise.
5151         * debug/fgets_chk.c: Likewise.
5152         * debug/fgets_u_chk.c: Likewise.
5153         * debug/fread_chk.c: Likewise.
5154         * debug/fread_u_chk.c: Likewise.
5155         * debug/gets_chk.c: Likewise.
5156         * debug/obprintf_chk.c: Likewise.
5157         * debug/vasprintf_chk.c: Likewise.
5158         * debug/vdprintf_chk.c: Likewise.
5159         * debug/vsnprintf_chk.c: Likewise.
5160         * debug/vsprintf_chk.c: Likewise.
5161         * malloc/mtrace.c: Likewise.
5162         * misc/error.c: Likewise.
5163         * misc/syslog.c: Likewise.
5164         * stdio-common/asprintf.c: Likewise.
5165         * stdio-common/fxprintf.c: Likewise.
5166         * stdio-common/getw.c: Likewise.
5167         * stdio-common/isoc99_fscanf.c: Likewise.
5168         * stdio-common/isoc99_scanf.c: Likewise.
5169         * stdio-common/isoc99_vfscanf.c: Likewise.
5170         * stdio-common/isoc99_vscanf.c: Likewise.
5171         * stdio-common/isoc99_vsscanf.c: Likewise.
5172         * stdio-common/printf-prs.c: Likewise.
5173         * stdio-common/printf_fp.c: Likewise.
5174         * stdio-common/printf_fphex.c: Likewise.
5175         * stdio-common/printf_size.c: Likewise.
5176         * stdio-common/putw.c: Likewise.
5177         * stdio-common/scanf.c: Likewise.
5178         * stdio-common/sprintf.c: Likewise.
5179         * stdio-common/tmpfile.c: Likewise.
5180         * stdio-common/vfprintf.c: Likewise.
5181         * stdio-common/vfscanf.c: Likewise.
5182         * stdlib/strfmon_l.c: Likewise.
5183         * sunrpc/openchild.c: Likewise.
5184         * sunrpc/xdr_stdio.c: Likewise.
5185         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
5186         * sysdeps/mach/hurd/tmpfile.c: Likewise.
5187
5188 2012-05-24  Roland McGrath  <roland@hack.frob.com>
5189
5190         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
5191
5192         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
5193         in the third column, to generate for the shared library an IFUNC
5194         that uses _dl_vdso_vsym.
5195         * Makerules (COMPILE.c, compile-stdin.c): New variables.
5196         * Makeconfig (object-suffixes-noshared): New variable.
5197
5198         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
5199         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
5200         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
5201         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
5202
5203         [BZ #14132]
5204         * include/sys/time.h (__gettimeofday): Remove macro.
5205         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
5206         * time/gettimeofday.c (__gettimeofday): Remove #undef.
5207         Remove INTDEF.
5208         (__gettimeofday): Add libc_hidden_def.
5209         (gettimeofday): Add libc_hidden_weak.
5210         * sysdeps/mach/gettimeofday.c: Likewise.
5211         * sysdeps/posix/gettimeofday.c: Likewise.
5212         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
5213         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
5214         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
5215         (__gettimeofday_internal): Remove strong_alias.
5216         (__gettimeofday): Add libc_hidden_def.
5217         (gettimeofday): Add libc_hidden_weak.
5218         * sysdeps/unix/syscalls.list (gettimeofday):
5219         Remove __gettimeofday_internal alias.
5220
5221 2012-05-24  Daniel Jacobowitz  <drow@false.org>
5222             H.J. Lu  <hongjiu.lu@intel.com>
5223
5224         [BZ #12495]
5225         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
5226         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
5227         (largebin_index_32_big): New.
5228         (largebin_index): Use it for 16-byte alignment.
5229         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
5230         correction with front_misalign.
5231
5232 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
5233
5234         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
5235         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
5236         Likewise.
5237         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
5238         Likewise.
5239         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
5240         Likewise.
5241         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
5242         Likewise.
5243         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
5244         Likewise.
5245         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
5246         Likewise.
5247         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
5248         Likewise.
5249         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
5250         Likewise.
5251         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
5252         Likewise.
5253         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
5254         Likewise.
5255         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
5256         Likewise.
5257         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
5258         Likewise.
5259
5260         * scripts/data/c++-types-x32-linux-gnu.data: New file.
5261         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
5262
5263 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
5264
5265         [BZ #10846]
5266         [BZ #14036]
5267         * math/libm-test.inc (exp_test): Add test from bug 14036.
5268         (pow_test): Add test from bug 10846.
5269
5270         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
5271         and other flags.
5272         (special_function): Do not include flags in test name.
5273         (parse_args): Likewise.
5274         * sysdeps/i386/fpu/libm-test-ulps: Update.
5275         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
5276         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
5277         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
5278         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5279
5280         * math/gen-libm-test.pl (%beautify): Add entries for underflow
5281         exceptions.
5282         * math/libm-test.inc ("Philosophy"): Update comment about
5283         exception testing.
5284         (UNDERFLOW_EXCEPTION): New macro.
5285         (UNDERFLOW_EXCEPTION_OK): Likewise.
5286         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
5287         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
5288         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
5289         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
5290         (INVALID_EXCEPTION_OK): Update value.
5291         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
5292         (OVERFLOW_EXCEPTION_OK): Likewise.
5293         (IGNORE_ZERO_INF_SIGN): Likewise.
5294         (test_exceptions): Handle underflow exceptions.
5295         (acos_test): Update for underflow exception expectations.
5296         (cexp_test): Likewise.
5297         (clog_test): Likewise.
5298         (clog10_test): Likewise.
5299         (csqrt_test): Likewise.
5300         (ctan_test): Likewise.
5301         (ctanh_test): Likewise.
5302         (exp_test): Likewise.
5303         (exp10_test): Likewise.
5304         (exp2_test): Likewise.
5305         (expm1_test): Likewise.
5306         (fma_test): Likewise.
5307         (j0_test): Likewise.
5308         (jn_test): Likewise.
5309         (nexttoward_test): Likewise.
5310         (pow_test): Likewise.
5311         (scalbn_test): Likewise.
5312         (scalbln_test): Likewise.
5313         (tan_test): Likewise.
5314         (y1_test): Likewise.
5315         * sysdeps/i386/fpu/libm-test-ulps: Update.
5316         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5317
5318 2012-05-23  David S. Miller  <davem@davemloft.net>
5319
5320         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
5321         (__libc_sigaction): Remove unused local variables.
5322
5323 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
5324
5325         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
5326
5327 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
5328
5329         mktime: avoid signed integer overflow
5330         * time/mktime.c (__mktime_internal): Do not mishandle the case
5331         where diff == INT_MIN.
5332
5333         mktime: simplify computation of average
5334         * time/mktime.c (ranged_convert): Use new time_t_avg function
5335         instead of rolling our own (probably-slower) code.
5336
5337         mktime: do not assume signed right shift propagates sign bit
5338         * time/mktime.c (isdst_differ): New static function.
5339         (__mktime_internal): No need to normalize tm_isdst now.
5340         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
5341         tm_isdst values.
5342
5343         mktime: merge another wrapv change from gnulib
5344         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
5345         from some compilers.
5346
5347         mktime: remove incorrect attempt at unusual arithmetics
5348         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
5349         The code didn't really work on such machines anyway.
5350         (TYPE_MINIMUM): Assume two's complement.
5351         (twos_complement_arithmetic): Verify that long_int and time_t
5352         are two's complement (or unsigned, in the latter case).
5353
5354         mktime: check signed shifts on long_int and time_t, too
5355         * time/mktime.c (SHR): Check that shifts work as desired
5356         on the types long_int and time_t too, as SHR is used on
5357         such types.
5358
5359         mktime: do not assume 'long' is wide enough
5360         * time/mktime.c (verify): Move decl up.
5361         (long_int): New type.
5362         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
5363         to remove assumption in the code that 'long' is wide enough to
5364         store year values.  This assumption is not true on x32 and on
5365         some non-glibc platforms.
5366
5367         mktime: merge wrapv change from gnulib
5368         * time/mktime.c (WRAPV): New macro.
5369         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
5370         (guess_time_tm, __mktime_internal): Do not assume that signed
5371         integer overflow wraps around; modern compilers generate code
5372         where this assumption is no longer valid.
5373
5374 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
5375
5376         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
5377         Replace "jmp L(pseudo_end)" with "ret".
5378         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
5379         Likewise.
5380
5381 2012-05-23  Andreas Jaeger  <aj@suse.de>
5382
5383         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
5384         * sysdeps/unix/sysv/linux/poll.c: Remove file.
5385
5386 2012-05-23  Andreas Jaeger  <aj@suse.de>
5387             Maximilian Attems  <max@stro.at>
5388
5389         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
5390         New macros.
5391
5392 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
5393
5394         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
5395         code so that pseudo_end is just ret and the stack pointer is
5396         correct also for static library in error case.
5397
5398 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
5399
5400         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
5401         move to syscalls.list.
5402         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
5403         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
5404         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
5405         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
5406
5407         * manual/install.texi (Running make install): Do not mention Linux
5408         kernel version for which pt_chown is not needed.
5409         (Linux): Do not mention problems with nscd with 2.0 kernels.
5410         * INSTALL: Regenerated.
5411
5412 2012-05-23  Andreas Jaeger  <aj@suse.de>
5413
5414         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
5415         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
5416         macro.
5417         * sysdeps/unix/sysv/linux/s390/bits/mman.h
5418         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5419         * sysdeps/unix/sysv/linux/sh/bits/mman.h
5420         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5421         * sysdeps/unix/sysv/linux/i386/bits/mman.h
5422         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5423         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
5424         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5425         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
5426         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5427         * sysdeps/unix/sysv/linux/bits/in.h
5428         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
5429
5430 2012-05-22  Roland McGrath  <roland@hack.frob.com>
5431
5432         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
5433         (PREPARE_VERSION): Just use assert instead, it will be elided
5434         under [NDEBUG] anyway.
5435
5436 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
5437
5438         * sysdeps/unix/sysv/linux/Makefile: Include
5439         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
5440         (sysdep_routines): Remove sysctl.
5441         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
5442         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
5443         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
5444         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
5445         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
5446
5447 2012-05-22  Andreas Jaeger  <aj@suse.de>
5448
5449         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
5450         that pseudo_end is just ret and the stack pointer is correct also
5451         for static library in error case.
5452
5453 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
5454
5455         [BZ #14122]
5456         * nss/nsswitch.c (defconfig_entries): New variable.
5457         (__nss_database_lookup): Don't leak defconfig entries.
5458         (nss_parse_service_list): Don't leak on error paths.
5459         (free_database_entries): New function.
5460         (free_defconfig): New function.
5461         (free_mem): Move common code to free_database_entries.
5462
5463 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
5464
5465         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
5466         Add arch_prctl.
5467         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
5468
5469         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
5470         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
5471         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
5472         New macro.
5473         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
5474         (INTERNAL_SYSCALL_TYPES): Likewise.
5475         (LOAD_ARGS_TYPES_[1-6]): Likewise.
5476         (LOAD_REGS_TYPES_[1-6]): Likewise.
5477         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
5478         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
5479
5480 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5481
5482         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
5483         copysignl for GLIBC_2_0.
5484         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
5485         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
5486         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
5487         logbl for GLIBC_2_0.
5488         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
5489         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
5490
5491 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
5492
5493         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
5494         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
5495
5496         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
5497         Use "neg %eax".
5498
5499         * time/mktime.c: Update copyright years.
5500
5501 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
5502
5503         mktime: merge comment-quoting-style change from gnulib
5504         * time/mktime.c: Quote 'like this' in comments.
5505         The GNU coding standards suggest that we no longer quote `like this',
5506         as "`" and "'" are typically rendered asymmetrically nowadays.
5507         The typical gnulib style is to quote 'like this' when quoting
5508         code, and "like this" when quoting English.
5509
5510         * time/mktime.c (compile-command): Add "-I.".
5511
5512         mktime: merge mktime-internal.h change from gnulib
5513         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
5514
5515         mktime: merge time_r change from gnulib
5516         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
5517
5518         mktime: merge DEBUG change from gnulib
5519         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
5520         case system <time.h> has a #define.
5521
5522         mktime: merge <sys/types.h> change from gnulib
5523         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
5524         since <time.t> is now guaranteed to define time_t.
5525
5526         mktime: merge HAVE_CONFIG_H change from gnulib
5527         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
5528
5529 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
5530
5531         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
5532         Use "neg %eax".
5533
5534         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
5535         __rlim_t cast.
5536         (struct rusage): Use anonymous union to pad each field to
5537         __syscall_slong_t.
5538
5539 2012-05-21  David S. Miller  <davem@davemloft.net>
5540
5541         * Makefules (o-iterator): Remove .s cases.
5542         (compile-command.s): Delete.
5543         (COMPILE.s): Delete.
5544         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
5545
5546 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
5547
5548         * configure.in (libc_cv_predef_stack_protector): Only consider
5549         "foobar" and "__stack_chk_fail" lines in libc_undefs.
5550         * configure: Regenerated.
5551
5552 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
5553
5554         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
5555         New macro.  Use R*LP on int and pointer.
5556         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
5557         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
5558         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
5559         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
5560
5561         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
5562         [__WORDSIZE_TIME64_COMPAT32] instead of
5563         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
5564         (struct utmp): Likewise.
5565         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
5566         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
5567         Renamed to ...
5568         (__WORDSIZE_TIME64_COMPAT32): This.
5569         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
5570         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
5571         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
5572         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
5573         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
5574         (__WORDSIZE_TIME64_COMPAT32): New macro.
5575
5576 2012-05-21  Andreas Jaeger  <aj@suse.de>
5577
5578         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
5579         only if [SHARED]. Add prototype for __wcschr_ia32.
5580
5581 2012-05-21  Roland McGrath  <roland@hack.frob.com>
5582
5583         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
5584         of %rbp unmolested in the jmp_buf while mangling the low bits.
5585         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
5586         unmolested high bits of %rbp while demangling the low bits.
5587         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
5588
5589 2012-05-21  Andreas Jaeger  <aj@suse.de>
5590
5591         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
5592         * sunrpc/svc_simple.c: Use it for registerrpc.
5593         * sunrpc/xcrypt.c: Use it for passwd2des.
5594
5595         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
5596
5597 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
5598
5599         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
5600         Don't define if [__SYSCALL_WORDSIZE != 32].
5601         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
5602         New macro.
5603
5604 2012-05-21  Bruno Haible  <bruno@clisp.org>
5605             Andreas Jaeger  <aj@suse.de>
5606
5607         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
5608         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
5609         inptr and inend for must_buffer_ch.
5610         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
5611         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
5612         * stdio-common/Makefile (tests): Remove bug15.
5613         (bug15-ENV): Remove macro.
5614         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
5615         anymore.
5616
5617 2012-05-19  Andreas Jaeger  <aj@suse.de>
5618             Roland McGrath  <roland@hack.frob.com>
5619
5620         * manual/contrib.texi: Completely rewritten. It contains now an
5621         alphabetical list of contributors and their contributions.
5622
5623 2012-05-21  Richard Henderson  <rth@twiddle.net>
5624
5625         * misc/getauxval.c (__getauxval): Use unsigned long int.
5626         * misc/sys/auxv.h: Include <sys/cdefs.h>.
5627         (getauxval): Use unsigned long int.
5628
5629 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
5630
5631         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
5632
5633 2012-05-21  Roland McGrath  <roland@hack.frob.com>
5634
5635         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
5636         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
5637         __alignof__ (long double).
5638
5639 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5640
5641         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5642
5643 2012-05-20  Richard Henderson  <rth@twiddle.net>
5644
5645         * misc/getauxval.c: New file.
5646         * misc/sys/auxv.h: New file.
5647         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
5648         (routines): Add getauxval.
5649         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
5650         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
5651         * elf/dl-sysdep.c (_dl_auxv): Remove.
5652         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
5653         * elf/dl-support.c (_dl_auxv): New variable.
5654         (_dl_aux_init): Initialize it.
5655         * manual/startup.texi (Auxiliary Vector): New node.
5656         * sysdeps/generic/bits/hwcap.h: New file.
5657         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
5658         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
5659         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
5660         * sysdeps/sparc/sysdep.h: ... here.  Include it.
5661         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
5662         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
5663         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
5664         Update.
5665         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
5666         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
5667         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
5668         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
5669         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
5670         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
5671         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
5672         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
5673
5674 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5675
5676         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5677
5678 2012-05-19  David S. Miller  <davem@davemloft.net>
5679
5680         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5681
5682 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
5683
5684         [BZ #14123]
5685         * math/s_ccosh.c: Include <float.h>
5686         (__ccosh): Avoid internal overflow calculating sinh and cosh
5687         values before multiplying by sin and cos values.
5688         * math/s_ccoshf.c: Likewise.
5689         * math/s_ccoshl.c: Likewise.
5690         * math/s_csin.c: Likewise.
5691         * math/s_csinf.c: Likewise.
5692         * math/s_csinl.c: Likewise.
5693         * math/s_csinh.c: Likewise.
5694         * math/s_csinhf.c: Likewise.
5695         * math/s_csinhl.c: Likewise.
5696         * math/libm-test.inc (ccos_test): Add more tests.
5697         (ccosh_test): Likewise.
5698         (csin_test): Likewise.
5699         (csinh_test): Likewise.
5700         * sysdeps/i386/fpu/libm-test-ulps: Update.
5701         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5702
5703 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
5704
5705         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
5706         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
5707
5708         * sysdeps/x86_64/x32/_itoa.h: Add comment.
5709
5710 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
5711
5712         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
5713         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
5714         * sysdeps/powerpc/soft-fp/Versions: Likewise.
5715         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
5716         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
5717         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
5718         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
5719         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
5720         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
5721         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
5722         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
5723         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
5724         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
5725         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
5726         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
5727         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
5728         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
5729         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
5730         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
5731         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
5732         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
5733         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
5734         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
5735         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
5736         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
5737         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
5738         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
5739         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
5740         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
5741         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
5742         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
5743
5744 2012-05-18  Andreas Jaeger  <aj@suse.de>
5745
5746         * csu/.gitignore: Delete.
5747
5748 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
5749
5750         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
5751         (timex): Use __syscall_slong_t.
5752
5753 2012-05-18  Andreas Jaeger  <aj@suse.de>
5754             Carlos O'Donell  <carlos_odonell@mentor.com>
5755
5756         * manual/install.texi (Configuring and compiling): Update
5757         description about files modified in the source directory.
5758         * INSTALL: Regenerated.
5759
5760 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
5761
5762         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
5763         value.  Use "or" to set return value to -1.
5764         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
5765         negate return value.
5766
5767 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5768
5769         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
5770         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
5771         failure if the compiler has Graphite support disabled.
5772         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
5773         Likewise.
5774         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
5775         CFLAGS-memmove.c): Likewise.
5776         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
5777         Likewise.
5778
5779 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
5780
5781         * sysdeps/x86_64/x32/_itoa.h: New file.
5782
5783         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
5784         getdents system call only if kernel and user dirents have the
5785         same d_ino and d_off.
5786
5787         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
5788         LLONG_MAX != LONG_MAX.
5789         (_itoa_word): Use _ITOA_WORD_TYPE on value.
5790         (_fitoa_word): Likewise.
5791
5792         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
5793         years.
5794         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
5795         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
5796         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
5797
5798         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
5799         include <bits/wordsize.h>.  Check __x86_64__ instead of
5800         __WORDSIZE.
5801         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
5802         if __x86_64__ is defined.  Use anonymous union on fpstate.
5803
5804         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
5805         anonymous union.
5806
5807 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
5808
5809         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
5810         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
5811         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
5812         Refer to _rtld_local_ro instead of _rtld_global_ro.
5813         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
5814         Likewise.
5815         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
5816         Likewise.
5817         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
5818         Likewise.
5819         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
5820         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
5821         of _rtld_global, and rtld_progname instead of _dl_argv[0].
5822
5823         * sysdeps/powerpc/powerpc32/dl-machine.c
5824         (__elf_machine_runtime_setup) [PROF]: Don't reference
5825         _dl_prof_resolve.
5826
5827 2012-05-18  Andreas Jaeger  <aj@suse.de>
5828
5829         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
5830         function only available for GCCs before 3.4 since GCC 3.4
5831         introduced a builtin.
5832         (lrint): Likewise.
5833         (llrintf): Likewise.
5834         (llrint): Likewise.
5835         (fmaxf): Likewise.
5836         (fmax): Likewise.
5837         (fminf): Likewise.
5838         (fmin): Likewise.
5839         (rint): Likewise.
5840         (rintf): Likewise.
5841         (nearbyint): Likewise.
5842         (nearbyintf): Likewise.
5843         (ceil): Likewise.
5844         (ceilf): Likewise.
5845         (floor): Likewise.
5846         (floorf): Likewise.
5847
5848 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
5849
5850         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
5851         on both fields and cast pointer to __syscall_ulong_t.
5852
5853         * bits/types.h (__fsword_t): New type.
5854         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
5855         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
5856         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
5857         (__FSWORD_T_TYPE): Likewise.
5858         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
5859         (__FSWORD_T_TYPE): Likewise.
5860         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
5861         (__FSWORD_T_TYPE): Likewise.
5862         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
5863         (__FSWORD_T_TYPE): Likewise.
5864         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
5865         __SWORD_TYPE with __fsword_t.
5866         (statfs64): Likewise.
5867
5868 2012-05-17  David S. Miller  <davem@davemloft.net>
5869
5870         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
5871
5872 2012-05-17  Andreas Jaeger  <aj@suse.de>
5873
5874         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
5875         warning.
5876
5877 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
5878
5879         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
5880
5881 2012-05-17  Andreas Jaeger  <aj@suse.de>
5882
5883         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
5884         when it is used.
5885
5886 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
5887
5888         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
5889
5890 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
5891
5892         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
5893         * sysdeps/x86_64/tst-mallocalign1.c: New file.
5894
5895 2012-05-17  Andreas Jaeger  <aj@suse.de>
5896             Carlos O'Donell  <carlos_odonell@mentor.com>
5897
5898         [BZ #14059]
5899         * sysdeps/x86_64/multiarch/init-arch.h
5900         (bit_YMM_Usable): Rename to...
5901         (bit_AVX_Usable): ... this.
5902         (bit_FMA4_Usable): New macro.
5903         (bit_XMM_state): New macro.
5904         (bit_YMM_state): New macro.
5905         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
5906         [__ASSEMBLER__] (index_AVX_Usable): ... this.
5907         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
5908         (CPUID_OSXSAVE): New macro.
5909         (CPUID_AVX): New macro.
5910         (CPUID_FMA4): New macro.
5911         (index_YMM_Usable): Rename to...
5912         (index_AVX_Usable): ... this.
5913         (HAS_AVX): Use HAS_ARCH_FEATURE.
5914         (HAS_FMA4): Likewise.
5915         (HAS_YMM_USABLE): Remove.
5916         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
5917         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
5918         are present.
5919         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
5920         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
5921         * sysdeps/x86_64/multiarch/Makefile: Likewise.
5922         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
5923         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
5924
5925 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
5926
5927         * math/libm-test.c: Support platforms without multiple rounding modes.
5928         * math/bug-nextafter.c: Support platforms without FP exceptions.
5929         * math/bug-nexttoward.c: Likewise.
5930         * math/test-fenv.c: Likewise.
5931         * math/test-misc.c: Likewise.
5932         * stdlib/bug-getcontext.c: Likewise.
5933
5934 2012-05-17  Andreas Jaeger  <aj@suse.de>
5935
5936         * manual/examples/search.c (critter_cmp): Change signature to
5937         avoid warnings.
5938         * manual/string.texi (Collation Functions): Likewise.
5939
5940 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5941
5942         * bits/types.h: Fold copyright years.
5943         * bits/typesizes.h: Likewise.
5944         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
5945         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
5946         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
5947         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
5948         * time/time.h: Likewise.
5949
5950 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
5951
5952         [BZ #208]
5953         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
5954         in instead of returning them.  Return void.
5955         (__libc_mallinfo): Accumulate over all arenas.
5956         (__malloc_stats): Adjust for change in int_mallinfo interface.
5957
5958 2012-05-16  Roland McGrath  <roland@hack.frob.com>
5959
5960         [BZ #10375]
5961         * configure.in (NM): Add AC_CHECK_TOOL for it.
5962         (libc_extra_cflags): New substituted variable.
5963         Check for -fstack-protector being used implicitly.
5964         * configure: Regenerated.
5965         * config.make.in (config-extra-cflags): New variable,
5966         gets @libc_extra_cflags@.
5967         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
5968
5969         [BZ #10375]
5970         * configure.in: Check for _FORTIFY_SOURCE being predefined.
5971         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
5972         * configure: Regenerated.
5973         * config.make.in (CPPUNDEFS): New substituted variable.
5974         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
5975         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
5976         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
5977
5978 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5979
5980         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
5981         (mq_attr): Use __syscall_slong_t.
5982
5983 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5984
5985         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
5986         Check __x86_64__ instead of __WORDSIZE.
5987         (_STAT_VER_LINUX): Likewise.
5988         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
5989         __syscall_ulong_t and __syscall_slong_t.
5990         (stat64): Likewise.
5991
5992 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5993
5994         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
5995
5996 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
5997
5998         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
5999
6000 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6001
6002         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
6003         __syscall_ulong_t.
6004
6005         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
6006         include <bits/wordsize.h>.  Check __x86_64__ instead of
6007         __WORDSIZE.
6008         (greg_t): Use "__extension__ long long int" if __x86_64__ is
6009         defined.
6010         (mcontext_t): Replace "unsigned long" with "unsigned long long".
6011
6012         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
6013         include <bits/wordsize.h>.  Check __x86_64__ instead of
6014         __WORDSIZE.
6015         (user_regs_struct): Use "__extension__ unsigned long long"
6016         instead of "unsigned long" if __x86_64__ is defined.
6017         (user): Likewise.  Pad after pointer field if __ILP32__ is
6018         defined.
6019
6020 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
6021
6022         * configure.in (makeinfo): Require version 4.5 or later.  Allow
6023         versions 5 to 9.
6024         * configure: Regenerated.
6025         * manual/install.texi (texinfo): Increase version requirement to
6026         4.5 or later.
6027         * INSTALL: Regenerated.
6028
6029         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
6030
6031 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6032
6033         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
6034
6035         * sysdeps/x86_64/x32/ffs.c: New file.
6036
6037         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
6038         __syscall_ulong_t.
6039         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
6040         defined.  Use __syscall_ulong_t.
6041         (shminfo): Use __syscall_ulong_t.
6042         (shm_info): Likewise.
6043
6044         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
6045         __syscall_ulong_t.
6046
6047         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
6048         <bits/wordsize.h>.
6049         (msgqnum_t): Use __syscall_ulong_t.
6050         (msglen_t): Likewise.
6051         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
6052         __syscall_ulong_t.
6053
6054         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
6055         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
6056
6057         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
6058
6059         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
6060         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
6061
6062         * sysvipc/sys/msg.h (msgbuf): Replace long int with
6063         __syscall_slong_t.
6064
6065         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
6066         include <bits/wordsize.h>.  Check __x86_64__ instead of
6067         __WORDSIZE.
6068
6069         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
6070         "unsigned long long int" if __x86_64__ is defined.
6071         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
6072
6073         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
6074         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
6075         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
6076
6077         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
6078         <stdint.h>.
6079         (GET_PC): Cast to uintptr_t first.
6080         (GET_FRAME): Likewise.
6081         (GET_STACK): Likewise.
6082
6083         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
6084         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
6085         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
6086         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
6087         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
6088         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
6089         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
6090         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
6091         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
6092         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
6093         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
6094         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
6095         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
6096         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
6097         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
6098         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
6099         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
6100         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
6101         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
6102         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
6103         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
6104         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
6105         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
6106         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
6107         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
6108         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
6109         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
6110         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
6111         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
6112
6113 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
6114
6115         * Makerules (+depfiles): Also collect depfiles from .oS in
6116         $(extra-objs).
6117         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
6118         .oS, $(libnldbl-routines)).
6119
6120         * Makerules (native-compile-mkdep-flags): Define.
6121         * sunrpc/Makefile (extra-objs): Add $(addprefix
6122         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
6123         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
6124         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
6125         calling $(make-target-directory).
6126
6127 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6128
6129         * bits/types.h (__snseconds_t): Removed.
6130         * time/time.h (struct timespec): Replace __snseconds_t with
6131         __syscall_slong_t.
6132         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
6133         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
6134         Likewise.
6135         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
6136         (__SNSECONDS_T_TYPE): Likewise.
6137         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
6138         (__SNSECONDS_T_TYPE): Likewise.
6139         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
6140         (__SNSECONDS_T_TYPE): Likewise.
6141
6142 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6143
6144         * sysdeps/mach/hurd/bits/typesizes.h
6145         (__SYSCALL_SLONG_TYPE): New macro.
6146         (__SYSCALL_ULONG_TYPE): Likewise.
6147
6148 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6149
6150         * bits/types.h (__syscall_slong_t): New type.
6151         (__syscall_ulong_t): Likewise.
6152
6153         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
6154         (__SYSCALL_ULONG_TYPE): Likewise.
6155         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
6156         (__SYSCALL_SLONG_TYPE): Likewise.
6157         (__SYSCALL_ULONG_TYPE): Likewise.
6158         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
6159         (__SYSCALL_SLONG_TYPE): Likewise.
6160         (__SYSCALL_ULONG_TYPE): Likewise.
6161         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
6162         (__SYSCALL_SLONG_TYPE): Likewise.
6163         (__SYSCALL_ULONG_TYPE): Likewise.
6164
6165 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6166
6167         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
6168         Add sigaltstack-offsets.sym.
6169         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
6170         <sigaltstack-offsets.h>.
6171         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
6172         longjmp_msg pointer.
6173         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
6174         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
6175         signal stack.
6176         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
6177
6178 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
6179
6180         * elf/stackguard-macros.h: Remove file.
6181         * sysdeps/generic/stackguard-macros.h: New file.
6182         * sysdeps/i386/stackguard-macros.h: Likewise.
6183         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
6184         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
6185         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
6186         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
6187         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
6188         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
6189         * sysdeps/x86_64/stackguard-macros.h: Likewise.
6190         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
6191         <elf/stackguard-macros.h>.
6192
6193         [BZ #14109]
6194         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
6195         __aligned__ in attribute.
6196         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
6197         (gregset_t): Likewise.
6198
6199 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6200
6201         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
6202         * sysdeps/x86_64/64/Implies-after: Here.  New file.
6203         * sysdeps/x86_64/x32/Implies-after: New file.
6204
6205 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6206
6207         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
6208         and access return value for _dl_profile_fixup.  Use R10_LP to
6209         load frame size.
6210
6211 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6212
6213         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
6214
6215 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6216
6217         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
6218         * sysdeps/x86_64/x32/sysdep.h: New file.
6219
6220 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6221
6222         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
6223         * sysdeps/x86_64/setjmp.S: Likewise.
6224
6225 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6226
6227         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
6228         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
6229         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
6230         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
6231         remove unused global constant.
6232
6233 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
6234
6235         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
6236         include of <not-cancel.h>.
6237
6238 2012-05-15  Roland McGrath  <roland@hack.frob.com>
6239
6240         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
6241
6242 2012-05-15  Jeff Law  <law@redhat.com>
6243             Andreas Jaeger  <aj@suse.de>
6244
6245         [BZ #13594]
6246         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
6247         out from...
6248         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
6249         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
6250         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
6251         code changing __hst_map_handle.map.
6252
6253 2012-05-15  Roland McGrath  <roland@hack.frob.com>
6254
6255         * configure.in (sysnames): Look for Implies-before and Implies-after
6256         files.
6257         * configure: Regenerated.
6258
6259 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6260
6261         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
6262         8-byte data alignment with LP_SIZE alignment.
6263
6264 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6265
6266         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
6267         into R10_LP.
6268
6269 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6270
6271         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
6272
6273 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6274
6275         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
6276         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
6277         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
6278         Likewise.
6279         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
6280
6281 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6282
6283         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
6284         (stackinfo_sub_sp): Likewise.
6285
6286 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6287
6288         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
6289         RAX_LP.
6290
6291 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6292
6293         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
6294         into R*_LP.
6295
6296 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6297
6298         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
6299         sizes into R*_LP.
6300
6301 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6302
6303         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
6304
6305 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6306
6307         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
6308         into R11_LP and load __x86_64_shared_cache_size_half into
6309         R8_LP.
6310
6311 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6312
6313         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
6314         R8_LP.
6315
6316 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6317
6318         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
6319         logb for POWER7.
6320         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
6321         logbf for POWER7.
6322         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
6323         logbl for POWER7.
6324         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
6325         powerpc32/power7/fpu/s_logb.c via #include.
6326         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
6327         powerpc32/power7/fpu/s_logbf.c via #include.
6328         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
6329         powerpc32/power7/fpu/s_logbl.c via #include.
6330
6331 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
6332
6333         * README.libm: Remove file.
6334
6335 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6336
6337         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
6338         count for x32.  Use R*_LP and omit operand-size suffix.
6339
6340 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6341
6342         * shlib-versions: Move x86_64-.*-linux.* entries to ...
6343         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
6344         * sysdeps/x86_64/x32/shlib-versions: New file.
6345
6346 2012-05-14  Roland McGrath  <roland@hack.frob.com>
6347
6348         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
6349         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
6350         Use _dl_fatal_printf instead.
6351
6352 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
6353
6354         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
6355         set if not set by the user.  Do not allow for being unset.
6356         * sysdeps/unix/sysv/linux/configure: Regenerated.
6357
6358 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6359
6360         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
6361         the `q' suffix from lea and replace .quad with ASM_ADDR.
6362
6363 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6364
6365         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
6366         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
6367         instead of $17.
6368         (PTR_DEMANGLE): Likewise.
6369
6370 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6371
6372         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
6373         (LP_OP): Likewise.
6374         (ASM_ADDR): Likewise.
6375         (RAX_LP): Likewise.
6376         (RBP_LP): Likewise.
6377         (RBX_LP): Likewise.
6378         (RCX_LP): Likewise.
6379         (RDI_LP): Likewise.
6380         (RSI_LP): Likewise.
6381         (RSP_LP): Likewise.
6382         (R8_LP): Likewise.
6383         (R9_LP): Likewise.
6384         (R10_LP): Likewise.
6385         (R10_LP): Likewise.
6386         (R11_LP): Likewise.
6387         (R12_LP): Likewise.
6388         (R13_LP): Likewise.
6389         (R14_LP): Likewise.
6390         (R15_LP): Likewise.
6391
6392 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6393
6394         * sysdeps/x86_64/x32/dl-machine.h: New file.
6395
6396 2012-05-14  Andreas Jaeger  <aj@suse.de>
6397
6398         * manual/Makefile (subdir): Remove export of subdir.
6399         (all): Remove target.
6400         (.PHONY): Remove all from list.
6401         (mkinstalldirs): Remove.
6402         (.PHONY): Remove installdirs from list.
6403         ($(inst_infodir)/libc.info): Use make-target-directory.
6404         (installdirs): Remove.
6405         (subdir_%): Remove.
6406         (glibc-targets): Remove.
6407         (lib): Remove.
6408         (stubs): Remove.
6409         ($(objpfx)stubs ../po/manual.pot): Remove.
6410         ($(objpfx)stamp%): Remove.
6411         (make-target-directory): Remove.
6412         (subdir_install): Remove.
6413         (routines): Remove.
6414         (aux): Remove.
6415         (sources): Remove.
6416         (objects): Remove.
6417         (headers): Remove.
6418
6419         [BZ #13750]
6420         * manual/.gitignore: Remove, it's not needed anymore.
6421         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
6422         all files in it.
6423         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
6424         directory.
6425         (texis): Renamed to $(objpfx)texis.
6426         (texis-path): New, contains path to generated files.
6427         (chapters.%): Use texis-path for complete path, add extra argument
6428         libc-texinfo.sh.
6429         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
6430         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
6431         (summary,texi, stamp-summary): Use complete path of
6432         files. Generate files in build dir.
6433         (dir-add.texi): Build in build dir.
6434         (libm-err.texi,stamp-libm-err): Likewise.
6435         (version.texi, stamp-version): Likewise.
6436         (.%c.texi): Likewise.
6437         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
6438         (mostlyclean): Remove target.
6439         (realclean): Remove target.
6440         (generated): Add new variable with contents from mostlyclean and
6441         realclean, remove entries duplicated in common-mostlyclean, add
6442         stamp-libm-err and stamp-version.
6443         (generated-dirs): Add libc directory.
6444         ($(inst_infodir)/libc.info): Install files from build dir.
6445
6446         * manual/install.texi (Configuring and compiling): Adjust since
6447         the info files are not part of the tar ball anymore.
6448
6449 2012-05-14  Andreas Jaeger  <aj@suse.de>
6450
6451         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
6452         variable.
6453
6454 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
6455
6456         [BZ #13717]
6457         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
6458         to 2.2.0 where earlier.
6459         * sysdeps/unix/sysv/linux/configure: Regenerated.
6460         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
6461         Remove conditional code.
6462         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
6463         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
6464         Remove conditional code.
6465         [!__NR_lchown]: Likewise.
6466         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
6467         [__NR_lchown]: Likewise.
6468         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
6469         comment referencing __ASSUME_LCHOWN_SYSCALL.
6470         * sysdeps/unix/sysv/linux/i386/sigaction.c
6471         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
6472         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
6473         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
6474         Remove conditional code.
6475         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
6476         (__protocol_available): Remove #if 0 code.
6477         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
6478         conditional code.
6479         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
6480         * sysdeps/unix/sysv/linux/kernel-features.h
6481         (__ASSUME_GETCWD_SYSCALL): Don't define.
6482         (__ASSUME_REALTIME_SIGNALS): Likewise.
6483         (__ASSUME_PREAD_SYSCALL): Likewise.
6484         (__ASSUME_PWRITE_SYSCALL): Likewise.
6485         (__ASSUME_POLL_SYSCALL): Likewise.
6486         (__ASSUME_LCHOWN_SYSCALL): Likewise.
6487         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
6488         non-SPARC.
6489         (__ASSUME_SIOCGIFNAME): Don't define.
6490         (__ASSUME_MSG_NOSIGNAL): Likewise.
6491         (__ASSUME_SENDFILE): Define unconditionally.
6492         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
6493         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
6494         conditional code.
6495         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
6496         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
6497         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
6498         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
6499         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
6500         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
6501         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
6502         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
6503         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
6504         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6505         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
6506         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
6507         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6508         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
6509         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
6510         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6511         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
6512         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
6513         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6514         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
6515         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
6516         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6517         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
6518         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
6519         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6520         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
6521         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
6522         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6523         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
6524         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
6525         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6526         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
6527         Remove conditional code.
6528         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6529         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
6530         Remove conditional code.
6531         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6532         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
6533         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
6534         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
6535         Remove conditional code.
6536         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6537         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
6538         Remove conditional code.
6539         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6540         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
6541         Remove conditional code.
6542         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6543         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
6544         Remove conditional code.
6545         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6546         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
6547         Remove conditional code.
6548         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6549         * sysdeps/unix/sysv/linux/sh/pwrite64.c
6550         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
6551         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6552         * sysdeps/unix/sysv/linux/sigaction.c
6553         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
6554         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
6555         * sysdeps/unix/sysv/linux/sigpending.c
6556         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
6557         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
6558         * sysdeps/unix/sysv/linux/sigprocmask.c
6559         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
6560         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
6561         * sysdeps/unix/sysv/linux/sigsuspend.c
6562         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
6563         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
6564         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
6565         (__libc_missing_rt_sigs): Remove.
6566         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
6567         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
6568         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
6569         Remove conditional code.
6570         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
6571         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
6572         return 1.
6573         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
6574         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
6575         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
6576         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
6577
6578 2012-05-14  Andreas Jaeger  <aj@suse.de>
6579
6580         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
6581         it's not used in glibc.
6582         (__coshm1): Likewise.
6583         (__acosh1p): Likewise.
6584         (__sgn): Likewise.
6585
6586         * manual/string.texi (Copying and Concatenation): Add missing
6587         variable in concat example.
6588         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
6589
6590 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6591
6592         [BZ #14103]
6593         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
6594         __builtin_clzl with __builtin_clzll.
6595
6596 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6597
6598         [BZ #14104]
6599         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
6600         libc_freeres_ptr.
6601
6602 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6603
6604         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
6605         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
6606         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
6607         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
6608
6609 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
6610
6611         * NEWS: Update ia64 info.
6612
6613 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
6614
6615         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
6616         used as bcopy.
6617
6618 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
6619
6620         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
6621         * sysdeps/unix/syscalls.list (dup3): Likewise.
6622         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
6623         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
6624
6625 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
6626
6627         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
6628         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
6629
6630 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
6631
6632         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
6633         thread pointer.
6634         (TLS_IE): Use mov/add instead of movq/addq to load thread
6635         pointer.
6636         (TLS_GD_PREFIX): New.
6637         (TLS_GD): Use it.
6638
6639 2012-05-11  David S. Miller  <davem@davemloft.net>
6640
6641         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
6642         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
6643         (_FPU_SETCW): Likewise.
6644
6645 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
6646
6647         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
6648         is 32-byte aligned.
6649
6650 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
6651
6652         [BZ #11837]
6653         * iconvdata/gb18030.c: Update tables.
6654         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
6655         characters specially.
6656         (BODY for TO_LOOP): Add encoding of missing ranges.
6657
6658 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
6659
6660         [BZ #13673]
6661         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
6662         * sysdeps/mach/hurd/dup3.c: Likewise.
6663         * sysdeps/mach/hurd/readlinkat.c: Likewise.
6664         * sysdeps/powerpc/memmove.c:: Likewise.
6665
6666 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
6667
6668         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
6669         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
6670
6671 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
6672
6673         * elf/elf.h (R_X86_64_RELATIVE64): New.
6674         (R_X86_64_NUM): Updated.
6675         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
6676         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
6677         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
6678         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
6679         tst-quad1pie tst-quad2pie
6680         (modules-names): Add tst-quadmod1 tst-quadmod2.
6681         ($(objpfx)tst-quad1): New dependency.
6682         ($(objpfx)tst-quad2): Likewise.
6683         ($(objpfx)tst-quad1pie): Likewise.
6684         ($(objpfx)tst-quad2pie): Likewise.
6685         * sysdeps/x86_64/tst-quad1.c: New file.
6686         * sysdeps/x86_64/tst-quad1pie.c: New file.
6687         * sysdeps/x86_64/tst-quad2.c: Likewise.
6688         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
6689         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
6690         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
6691         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
6692         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
6693
6694 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6695
6696         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
6697         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
6698         * streams/stropts.h (t_scalar_t): Define type.
6699
6700         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
6701         (_PATH_PRESERVE): Set to "/var/lib".
6702         (_PATH_RWHODIR): Set to "/var/spool/rwho".
6703
6704         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
6705         instead of int.
6706
6707         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
6708         if __dir_mkfile succeeded.
6709
6710         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
6711         checking for _hurd_dtablesize.  Unlock it right after having
6712         finished _hurd_dtable allocation.
6713
6714 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6715
6716         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
6717         * sysdeps/mach/hurd/configure: Regenerated.
6718         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
6719         special-casing to...
6720         * sysdeps/gnu/configure.in: ... this new file.
6721         * sysdeps/unix/sysv/linux/configure: Regenerated.
6722         * sysdeps/gnu/configure: New generated file.
6723
6724         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
6725         for Linux: use nsec instead of usec, as well as:
6726         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
6727         members of type struct timespec.
6728         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
6729         New macros.
6730         (struct stat64): Likewise.
6731         (_STATBUF_ST_NSEC): New macro.
6732         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
6733
6734         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
6735         __strtoul_internal rather than strtoul.
6736
6737 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
6738
6739         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
6740         and reject them.
6741
6742 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6743
6744         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
6745         which preserves existing values.
6746         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
6747
6748 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
6749
6750         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
6751         TIMEOUT values.  Return EINVAL for NFDS values either negative or
6752         greater than FD_SETSIZE.
6753
6754 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6755
6756         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
6757         allocated, call __vm_protect to finish enabling the existing space, and
6758         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
6759         allocate the remainder.
6760
6761 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
6762
6763         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
6764         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
6765
6766 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6767
6768         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
6769         sysdeps/mach/hurd/readlink.c.
6770
6771         * posix/tst-sysconf.c (posix_options): Only use
6772         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
6773         _POSIX_SYNCHRONIZED_IO when they are defined
6774         * sysdeps/mach/hurd/bits/posix_opt.h:
6775         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
6776         (_XOPEN_REALTIME): Undefine macro.
6777         (_XOPEN_REALTIME_THREADS): Undefine macro.
6778         (_XOPEN_SHM): Undefine macro.
6779         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
6780         macro to -1.
6781         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
6782         macro to -1.
6783         (_POSIX_ASYNC_IO): Undefine macro.
6784         (_POSIX_PRIORITIZED_IO): Undefine macro.
6785         (_POSIX_SPIN_LOCKS): Define macro to -1.
6786
6787         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
6788         SA_NODEFER, SA_RESETHAND.
6789         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
6790         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
6791         F_DUPFD_CLOEXEC.
6792
6793 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6794
6795         * elf/Makefile (pldd-modules): Define unconditionally.
6796
6797 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6798
6799         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
6800
6801 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6802
6803         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
6804         Return ENOENT when name is empty.
6805         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
6806
6807 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6808
6809         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
6810
6811         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
6812
6813 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6814
6815         Fix mlock in all cases except non-readable pages.
6816         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
6817         instead of VM_PROT_ALL as parameter to __vm_wire function.
6818
6819         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
6820         (__mkdir): When path is `/', just fail with EEXIST.
6821         * sysdeps/mach/hurd/mkdirat.c: Likewise.
6822
6823 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6824
6825         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
6826         <sys/uio.h> (for writev).
6827         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
6828         and <sys/param.h> (for MIN).
6829
6830 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
6831
6832         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
6833         REQUESTED_TIME.  Properly set the remaining time and return EINTR
6834         if interrupted.
6835
6836 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6837
6838         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
6839         Depend on against $(link-rpcuserlibs).
6840
6841 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6842
6843         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
6844         (__libc_stack_end): Do not use attribute_relro.
6845         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
6846         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
6847         to libthread-provided value.
6848         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
6849         attribute_relro.
6850
6851 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6852
6853         [BZ #3748]
6854         * bits/libc-lock.h (__libc_once_get): New macro.
6855         * sysdeps/mach/bits/libc-lock.h: Likewise.
6856         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
6857         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
6858         instead of using implementation details.
6859
6860         * libio/fileops.c: Unconditionally include <kernel-features.h>.
6861         * libio/freopen.c: Likewise.
6862         * libio/freopen64.c: Likewise.
6863         * misc/syslog.c: Likewise.
6864         * nscd/connections.c: Likewise.
6865         * nscd/netgroupcache.c: Likewise.
6866         * sysdeps/posix/getcwd.c: Likewise.
6867
6868 2012-05-10  Roland McGrath  <roland@hack.frob.com>
6869
6870         * math/w_ilogbf.c: Add #include <limits.h>.
6871
6872 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6873
6874         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
6875         path instead of returning without unlocking.
6876
6877         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
6878         immediate-write ioctls.
6879         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
6880
6881 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6882
6883         * sysdeps/mach/hurd/i386/init-first.c (init): Use
6884         __builtin_frame_address instead of making assumptions about the
6885         location of the return address relative to DATA.  Force early load of
6886         the return address.
6887         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
6888         __builtin_frame_address.
6889
6890         dup3 for GNU Hurd.
6891         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
6892         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
6893         implement dup3 and do some further code clean-ups.
6894         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
6895         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
6896
6897 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6898
6899         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
6900
6901         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
6902         HURD_CRITICAL_END around holding _hurd_dtable_lock.
6903         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
6904         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
6905         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
6906         d->port.lock.
6907
6908         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
6909         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
6910         when handler == SIG_ERR, not when handler != SIG_ERR.
6911
6912 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6913
6914         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
6915         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
6916         definitions.
6917
6918         accept4 for GNU Hurd.
6919         * include/sys/socket.h (__libc_accept4): New prototype.
6920         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
6921         to implement __libc_accept4.
6922         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
6923         __libc_accept4.
6924         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
6925
6926         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
6927         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
6928         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
6929         signal-defines.sym.
6930
6931 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6932
6933         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
6934
6935 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6936
6937         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
6938         assertion on O_CLOEXEC flag.
6939         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
6940         * hurd/intern-fd.c: Likewise.
6941         * hurd/port2fd.c: Likewise.
6942
6943 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6944
6945         [BZ #3906]
6946         * bits/in.h (IPV6_PKTINFO): Define new macro.
6947         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
6948
6949 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6950
6951         [BZ #13954]
6952         [BZ #13955]
6953         [BZ #13956]
6954         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
6955         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
6956         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
6957         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
6958         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
6959         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
6960         * math/libm-test.inc (logb_test) : Additional logb tests.
6961
6962 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
6963             Andreas Jaeger  <aj@suse.de>
6964
6965         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
6966         * configure: Regenerated.
6967         * config.h.in (LINK_OBSOLETE_RPC): New macro.
6968         * config.make.in (link-obsolete-rpc): New substituted variable.
6969         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
6970         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
6971         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
6972         (shared-only-routines): Don't set it under [link-obsolete-rpc],
6973         so that libc.a contains the symbols.
6974         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
6975         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
6976         * sunrpc/auth_none.c: Likewise.
6977         * sunrpc/auth_unix.c: Likewise.
6978         * sunrpc/authdes_prot.c: Likewise.
6979         * sunrpc/authuxprot.c: Likewise.
6980         * sunrpc/clnt_gen.c: Likewise.
6981         * sunrpc/clnt_perr.c: Likewise.
6982         * sunrpc/clnt_raw.c: Likewise.
6983         * sunrpc/clnt_simp.c: Likewise.
6984         * sunrpc/clnt_tcp.c: Likewise.
6985         * sunrpc/clnt_udp.c: Likewise.
6986         * sunrpc/clnt_unix.c: Likewise.
6987         * sunrpc/des_crypt.c: Likewise.
6988         * sunrpc/des_soft.c: Likewise.
6989         * sunrpc/get_myaddr.c: Likewise.
6990         * sunrpc/key_call.c: Likewise.
6991         * sunrpc/key_prot.c: Likewise.
6992         * sunrpc/netname.c: Likewise.
6993         * sunrpc/pm_getmaps.c: Likewise.
6994         * sunrpc/pm_getport.c: Likewise.
6995         * sunrpc/pmap_clnt.c: Likewise.
6996         * sunrpc/pmap_prot.c: Likewise.
6997         * sunrpc/pmap_prot2.c: Likewise.
6998         * sunrpc/pmap_rmt.c: Likewise.
6999         * sunrpc/publickey.c: Likewise.
7000         * sunrpc/rpc_cmsg.c: Likewise.
7001         * sunrpc/rpc_common.c: Likewise.
7002         * sunrpc/rpc_dtable.c: Likewise.
7003         * sunrpc/rpc_prot.c: Likewise.
7004         * sunrpc/rpc_thread.c: Likewise.
7005         * sunrpc/rtime.c: Likewise.
7006         * sunrpc/svc.c: Likewise.
7007         * sunrpc/svc_auth.c: Likewise.
7008         * sunrpc/svc_raw.c: Likewise.
7009         * sunrpc/svc_run.c: Likewise.
7010         * sunrpc/svc_tcp.c: Likewise.
7011         * sunrpc/svc_udp.c: Likewise.
7012         * sunrpc/svc_unix.c: Likewise.
7013         * sunrpc/svcauth_des.c: Likewise.
7014         * sunrpc/xcrypt.c: Likewise.
7015         * sunrpc/xdr.c: Likewise.
7016         * sunrpc/xdr_array.c: Likewise.
7017         * sunrpc/xdr_float.c: Likewise.
7018         * sunrpc/xdr_intXX_t.c: Likewise.
7019         * sunrpc/xdr_mem.c: Likewise.
7020         * sunrpc/xdr_rec.c: Likewise.
7021         * sunrpc/xdr_ref.c: Likewise.
7022         * sunrpc/xdr_sizeof.c: Likewise.
7023         * sunrpc/xdr_stdio.c: Likewise.
7024
7025 2012-05-10  Roland McGrath  <roland@hack.frob.com>
7026
7027         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
7028         change.  Update copyright years.
7029
7030 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
7031
7032         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
7033
7034 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
7035             Joseph Myers  <joseph@codesourcery.com>
7036             Paul Pluzhnikov  <ppluzhnikov@google.com>
7037
7038         [BZ #14012]
7039         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
7040         requiring rpcgen.
7041         [cross-compiling] (extra-libs): Likewise.
7042         [cross-compiling] (extra-libs-others): Likewise.
7043         [cross-compiling] (librpcsvc-routines): Likewise.
7044         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
7045         [cross-compiling] (omit-deps): Likewise.
7046         (sunrpc-CPPFLAGS): New variable.
7047         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
7048         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
7049         (cross-rpcgen-objs): New variable.
7050         (extra-objs): Append $(cross-rpcgen-objs).
7051         ($(cross-rpcgen-objs)): New rule.
7052         ($(objpfx)cross-rpcgen): Likewise.
7053         (rpcgen-cmd): Define to use $(built-program-file).  Expand
7054         comment.
7055         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
7056         ($(objpfx)x%.stmp): Likewise.
7057         * sunrpc/proto.h [IS_IN_build] (_): Define.
7058         [IS_IN_build] (_libc_intl_domainname): Likewise.
7059
7060 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
7061
7062         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
7063         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
7064         and R_X86_64_TPOFF64.
7065
7066 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
7067
7068         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
7069         sysdeps/unix/sysv/syscalls.list.
7070         (stime): Likewise.
7071         (utime): Likewise.
7072         * sysdeps/unix/sysv/syscalls.list: Remove file.
7073
7074 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
7075
7076         [BZ #3440]
7077         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
7078         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
7079         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
7080         (__LC_IDENTIFICATION): Make these macros useful in #if
7081         expressions, as required by C99.
7082
7083 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
7084
7085         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
7086         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
7087         after this.
7088
7089 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
7090
7091         * stdlib/longlong.h: Updated from GCC.
7092
7093 2012-05-09  Andreas Jaeger  <aj@suse.de>
7094
7095         * nscd/nscd.c (run_modes): Make named enum, reorder so that
7096         default is first entry.
7097         (run_mode): Set type.
7098         (main): Remove informal message about syslog.
7099         (options): Fix typo.
7100
7101         [BZ #14053]
7102         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
7103         to asm.
7104         (lrint): Likewise.
7105         (llrintf): Likewise.
7106         (llrint): Likewise.
7107         (rint): Likewise.
7108         (rintf): Likewise.
7109         (nearbyint): Likewise.
7110         (nearbyintf): Likewise.
7111
7112 2012-05-09  Andreas Jaeger  <aj@suse.de>
7113             Pedro Alves  <palves@redhat.com>
7114
7115         * nscd/nscd.c (run_mode): Use enum.
7116         (main): Cleanup coding style issue.
7117
7118 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
7119             Andreas Jaeger  <aj@suse.de>
7120
7121         * nscd/nscd.c (go_background): Replaced with...
7122         (run_mode): ... this.
7123         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
7124         (options): Add -F --foreground.
7125         (main): Implement it.
7126         (parse_opt): Parse it.
7127
7128 2012-05-09  Andreas Jaeger  <aj@suse.de>
7129
7130         [BZ #14083]
7131         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
7132         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
7133         -Wconversion warning.
7134         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
7135         Likewise.
7136
7137 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
7138
7139         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
7140         == 0.
7141         (LC_ALL): Use macro-int-constant.
7142         (LC_COLLATE): Likewise.
7143         (LC_CTYPE): Likewise.
7144         (LC_MESSAGES): Likewise.
7145         (LC_MONETARY): Likewise.
7146         (LC_NUMERIC): Likewise.
7147         (LC_TIME): Likewise.
7148         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
7149         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
7150         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7151         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
7152         Specify type.
7153         [C99-based standards] (float_t): Expect type.
7154         [C99-based standards] (double_t): Expect type.
7155         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
7156         type.
7157         [C99-based standards] (HUGE_VALL): Likewise.
7158         [C99-based standards] (INFINITY): Likewise.
7159         [C99-based standards] (NAN): Likewise.
7160         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
7161         [C99-based standards] (FP_NAN): Likewise.
7162         [C99-based standards] (FP_NORMAL): Likewise.
7163         [C99-based standards] (FP_SUBNORMAL): Likewise.
7164         [C99-based standards] (FP_ZERO): Likewise.
7165         [C99-based standards] (FP_FAST_FMA): Use
7166         optional-macro-int-constant.  Specify type.  Require == 1.
7167         [C99-based standards] (FP_FAST_FMAF): Likewise.
7168         [C99-based standards] (FP_FAST_FMAL): Likewise.
7169         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
7170         [C99-based standards] (FP_ILOGBNAN): Likewise.
7171         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
7172         Specify type.
7173         [C99-based standards] (MATH_ERREXCEPT): Likewise.
7174         [C99-based standards] (math_errhandling): Specify type.
7175         [ISO99 || ISO11] (signgam): Do not allow.
7176         [non-C99-based standards] (copysignf): Do not allow.
7177         [non-C99-based standards] (exp2f): Likewise.
7178         [non-C99-based standards] (log2f): Likewise.
7179         [non-C99-based standards] (modff): Allow.
7180         [non-C99-based standards] (erff): Do not allow.
7181         [non-C99-based standards] (erfcf): Likewise.
7182         [non-C99-based standards] (gammaf): Likewise.
7183         [non-C99-based standards] (hypotf): Likewise.
7184         [non-C99-based standards] (j0f): Likewise.
7185         [non-C99-based standards] (j1f): Likewise.
7186         [non-C99-based standards] (jnf): Likewise.
7187         [non-C99-based standards] (lgammaf): Likewise.
7188         [non-C99-based standards] (tgammaf): Likewise.
7189         [non-C99-based standards] (y0f): Likewise.
7190         [non-C99-based standards] (y1f): Likewise.
7191         [non-C99-based standards] (ynf): Likewise.
7192         [non-C99-based standards] (isnanf): Likewise.
7193         [non-C99-based standards] (acoshf): Likewise.
7194         [non-C99-based standards] (asinhf): Likewise.
7195         [non-C99-based standards] (atanhf): Likewise.
7196         [non-C99-based standards] (cbrtf): Likewise.
7197         [non-C99-based standards] (expm1f): Likewise.
7198         [non-C99-based standards] (ilogbf): Likewise.
7199         [non-C99-based standards] (log1pf): Likewise.
7200         [non-C99-based standards] (logbf): Likewise.
7201         [non-C99-based standards] (nextafterf): Likewise.
7202         [non-C99-based standards] (remainderf): Likewise.
7203         [non-C99-based standards] (rintf): Likewise.
7204         [non-C99-based standards] (scalbf): Likewise.
7205         [non-C99-based standards] (copysignl): Likewise.
7206         [non-C99-based standards] (exp2l): Likewise.
7207         [non-C99-based standards] (log2l): Likewise.
7208         [non-C99-based standards] (modfl): Allow.
7209         [non-C99-based standards] (erfl): Do not allow.
7210         [non-C99-based standards] (erfcl): Likewise.
7211         [non-C99-based standards] (gammal): Likewise.
7212         [non-C99-based standards] (hypotl): Likewise.
7213         [non-C99-based standards] (j0l): Likewise.
7214         [non-C99-based standards] (j1l): Likewise.
7215         [non-C99-based standards] (jnl): Likewise.
7216         [non-C99-based standards] (lgammal): Likewise.
7217         [non-C99-based standards] (tgammal): Likewise.
7218         [non-C99-based standards] (y0l): Likewise.
7219         [non-C99-based standards] (y1l): Likewise.
7220         [non-C99-based standards] (ynl): Likewise.
7221         [non-C99-based standards] (isnanl): Likewise.
7222         [non-C99-based standards] (acoshl): Likewise.
7223         [non-C99-based standards] (asinhl): Likewise.
7224         [non-C99-based standards] (atanhl): Likewise.
7225         [non-C99-based standards] (cbrtl): Likewise.
7226         [non-C99-based standards] (expm1l): Likewise.
7227         [non-C99-based standards] (ilogbl): Likewise.
7228         [non-C99-based standards] (log1pl): Likewise.
7229         [non-C99-based standards] (logbl): Likewise.
7230         [non-C99-based standards] (nextafterl): Likewise.
7231         [non-C99-based standards] (remainderl): Likewise.
7232         [non-C99-based standards] (rintl): Likewise.
7233         [non-C99-based standards] (scalbl): Likewise.
7234         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7235         [non-C99-based standards] (FP_*): Do not allow.
7236         [C99-based standards] (FP_*): Change to
7237         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
7238         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
7239         allow.
7240         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
7241         (SIG_ERR): Likewise.
7242         [X/Open-based standards] (SIG_HOLD): Likewise.
7243         (SIG_IGN): Likewise.
7244         (SIGABRT): Use macro-int-constant.  Specify type.  Require
7245         positive value.
7246         (SIGFPE): Likewise.
7247         (SIGILL): Likewise.
7248         (SIGINT): Likewise.
7249         (SIGSEGV): Likewise.
7250         (SIGTER): Likewise.
7251         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
7252         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
7253         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
7254         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
7255         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
7256         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
7257         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
7258         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
7259         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
7260         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
7261         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
7262         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
7263         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
7264         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
7265         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
7266         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
7267         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
7268         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
7269         [X/Open-based standards] (SIGTRAP): Likewise.
7270         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
7271         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
7272         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
7273         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
7274         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
7275         allow.
7276
7277 2012-05-08  Ian Wienand  <ianw@vmware.com>
7278
7279         [BZ #14080]
7280         * time/tzset.c (__tzset_parse_tz): Update default rules for
7281         daylight time changes in the Energy Policy Act of 2005.
7282
7283 2012-05-09  Andreas Jaeger  <aj@suse.de>
7284
7285         [BZ #13983]
7286         * elf/ldconfig.c (parse_conf): Change string to make clear that
7287         ldconfig only issued a warning if ld.so.conf does not exist.
7288
7289 2012-05-08  David S. Miller  <davem@davemloft.net>
7290
7291         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
7292         movxtod instead of popping the value on the stack.
7293
7294         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7295
7296 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
7297
7298         * config.h.in: Add HAVE_ARM_PCS_VFP.
7299
7300 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
7301
7302         [BZ #13979]
7303         * include/features.h: Warn if user requests __FORTIFY_SOURCE
7304         checking but the checks are disabled for any reason.
7305
7306 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
7307
7308         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
7309         and ELF64_R_TYPE with ELFW(R_TYPE).
7310
7311 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
7312
7313         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
7314         (ulimit): Likewise.
7315
7316         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
7317         (settimeofday): Likewise.
7318
7319 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
7320
7321         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
7322         a struct th_u2 inside the union, and move tu_block/tu_code into
7323         a new th_u3 union of tu_block/tu_code inside of that.  Move
7324         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
7325         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
7326         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
7327         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
7328         (th_stuff): Change to th_u1.tu_stuff.
7329         (th_data): Define.
7330         (th_msg): Change to th_u1.th_u2.tu_data.
7331
7332 2012-05-07  David S. Miller  <davem@davemloft.net>
7333
7334         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7335
7336         [BZ #14074]
7337         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
7338         (SETUP_PIC_REG): Use it.
7339         (SETUP_PIC_REG_LEAF): Use it.
7340
7341 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
7342
7343         [BZ #13885]
7344         [BZ #13923]
7345         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7346         USE_AS_EXPM1L.
7347         (EXPL_FINITE): Likewise.
7348         (FLDLOG): Likewise.
7349         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
7350         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
7351         e_expl.S.
7352         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7353         USE_AS_EXPM1L.
7354         (EXPL_FINITE): Likewise.
7355         (FLDLOG): Likewise.
7356         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
7357         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
7358         e_expl.S.
7359         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
7360         test of -max_value argument for long double.
7361         * sysdeps/i386/fpu/libm-test-ulps: Update.
7362         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7363
7364 2012-05-06  David S. Miller  <davem@davemloft.net>
7365
7366         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
7367         quad soft-float symbols whose references which are compiler
7368         generated.
7369         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
7370
7371 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
7372
7373         [BZ #13884]
7374         [BZ #13914]
7375         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7376         USE_AS_EXP10L.
7377         (EXPL_FINITE): Likewise.
7378         (FLDLOG): Likewise.
7379         (c0): Likewise.
7380         (c1): Likewise.
7381         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
7382         Adjust comments for base varying.
7383         (__expl_finite): Change alias to EXPL_FINITE.
7384         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
7385         e_expl.S.
7386         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
7387         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
7388         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
7389         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
7390         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7391         USE_AS_EXP10L.
7392         (EXPL_FINITE): Likewise.
7393         (FLDLOG): Likewise.
7394         (c0): Likewise.
7395         (c1): Likewise.
7396         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
7397         Adjust comments for base varying.
7398         (__expl_finite): Change alias to EXPL_FINITE.
7399         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
7400         tests for bugs.
7401         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7402
7403         [BZ #14064]
7404         * math/libm-test.inc (check_float_internal): Correct ulp
7405         calculation for subnormal expected results.
7406
7407 2012-05-06  Andreas Jaeger  <aj@suse.de>
7408
7409         * Makeconfig (+math-flags): New, set to -frounding-math.
7410         (+cflags): Add +math-flags so that all of glibc gets compiled with
7411         it.
7412
7413         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
7414
7415 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
7416
7417         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
7418         Disable one test.
7419
7420         [BZ #13787]
7421         [BZ #13922]
7422         [BZ #14036]
7423         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
7424         (__ieee754_expl): Allow for and saturate large arguments.
7425         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
7426         (u_threshold): Likewise.
7427         (__exp): Call __ieee754_exp before checking for overflow and
7428         underflow.
7429         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
7430         (u_threshold): Likewise.
7431         (__expf): Call __ieee754_expf before checking for overflow and
7432         underflow.
7433         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
7434         (u_threshold): Likewise.
7435         (__expl): Call __ieee754_expl before checking for overflow and
7436         underflow.
7437         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
7438         (__ieee754_expl): Allow for and saturate large arguments.
7439         * math/libm-test.inc (exp_test): Add another test.  Do not allow
7440         missing overflow exception on overflow.
7441         (expm1_test): Do not allow missing overflow exception on overflow.
7442
7443         * sysdeps/i386/fpu/e_expl.c: Move to ...
7444         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
7445         rather than using inline asm.
7446         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
7447         * sysdeps/x86_64/fpu/e_expl.S: Copy from
7448         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
7449
7450         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
7451         (nice): Likewise.
7452         (poll): Likewise.
7453         (signal): Likewise.
7454         (time): Likewise.
7455         (times): Likewise.
7456
7457 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
7458
7459         * sysdeps/unix/syscalls.list (adjtime): Add entry from
7460         sysdeps/unix/common/syscalls.list.
7461         (fchmod): Likewise.
7462         (fchown): Likewise.
7463         (ftruncate): Likewise.
7464         (getrusage): Likewise.
7465         (gettimeofday): Likewise.
7466         (setpgid): Likewise.
7467         (setregid): Likewise.
7468         (setreuid): Likewise.
7469         (sigaction): Likewise.
7470         (truncate): Likewise.
7471         (vhangup): Likewise.
7472         * sysdeps/unix/common/syscalls.list: Remove file.
7473         * sysdeps/unix/bsd/Implies: Don't include unix/common.
7474         * sysdeps/unix/sysv/linux/Implies: Likewise.
7475
7476 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
7477
7478         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
7479         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
7480         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
7481         Moved to ...
7482         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
7483         Here.
7484         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
7485         to ...
7486         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
7487         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
7488         to ...
7489         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
7490         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
7491         to ...
7492         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
7493         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
7494         to ...
7495         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
7496         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
7497         to ...
7498         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
7499         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
7500         to ...
7501         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
7502         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
7503         to ...
7504         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
7505         Here.
7506         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
7507         to ...
7508         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
7509         Here.
7510         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
7511         to ...
7512         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
7513         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
7514         Moved to ...
7515         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
7516         Here.
7517         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
7518         to ...
7519         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
7520
7521 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
7522
7523         * sysdeps/unix/common/bits/dirent.h: Remove file.
7524         * sysdeps/unix/common/bits/fcntl.h: Likewise.
7525
7526         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
7527         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
7528         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
7529         * sysdeps/unix/bsd/isatty.c: Likewise.
7530         * sysdeps/unix/bsd/tcdrain.c: Likewise.
7531         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
7532         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
7533
7534 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7535
7536         [BZ #13563]
7537         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
7538         long double comparison inaccuracies.
7539         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
7540         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7541
7542 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
7543
7544         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
7545         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
7546
7547 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
7548
7549         [BZ #14049]
7550         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
7551         nonzero digits before rounding a hex value.
7552         * stdlib/tst-strtod.c (tests): Add another test.
7553
7554 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7555
7556         * sysdeps/s390/fpu/libm-test-ulps: Update.
7557
7558 2012-05-03  Andreas Jaeger  <aj@suse.de>
7559
7560         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
7561         does not get optimized out.
7562         (malloc_opt_barrier): New.
7563
7564 2012-05-03  Andreas Jaeger  <aj@suse.de>
7565             Roland McGrath  <roland@hack.frob.com>
7566
7567         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
7568         intermediate file deletion.
7569         (generated): Add .symlist files.
7570
7571 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
7572
7573         [BZ #13775]
7574         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
7575         Redirect under this condition.
7576         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
7577         [__USE_GNU] (__dprintf_chk): Not under this condition.
7578         [__USE_GNU] (__vdprintf_chk): Likewise.
7579         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
7580         under this condition.
7581         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
7582         [__USE_XOPEN2K8] (dprintf): Define under this condition.
7583         [__USE_XOPEN2K8] (vdprintf): Likewise.
7584         [__USE_GNU] (__dprintf_chk): Not under this condition.
7585         [__USE_GNU] (__vdprintf_chk): Likewise.
7586         [__USE_GNU] (dprintf): Likewise.
7587         [__USE_GNU] (vdprintf): Likewise.
7588
7589 2012-05-03  Roland McGrath  <roland@hack.frob.com>
7590
7591         * elf/Makefile (common-generated): Set this instead of generated for
7592         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
7593         $(all-built-dso)-derived lists.
7594
7595 2012-05-03  Andreas Jaeger  <aj@suse.de>
7596
7597         * sysdeps/i386/fpu/libm-test-ulps: Update.
7598
7599         * FAQ: Removed.
7600         * FAQ.in: Likewise.
7601         * scripts/gen-FAQ.pl: Likewise.
7602         * manual/install.texi (Installation): Point to online location of
7603         FAQ.
7604         * Makefile (files-for-dist): Remove FAQ.
7605         (FAQ): Remove.
7606
7607 2012-05-02  Allan McRae  <allan@archlinux.org>
7608
7609         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
7610         (LDFLAGS-reldepmod5.so): Likewise.
7611         (LDFLAGS-reldep6mod1.so): Likewise.
7612         (LDFLAGS-reldep6mod4.so): Likewise.
7613         (LDFLAGS-reldep8mod3.so): Likewise.
7614         (LDFLAGS-unload4mod1.so): Likewise.
7615         (LDFLAGS-unload4mod2.so): Likewise.
7616         (LDFLAGS-tst-initorder): Likewise.
7617         (LDFLAGS-tst-initordera2.so): Likewise.
7618         (LDFLAGS-tst-initordera3.so): Likewise.
7619         (LDFLAGS-tst-initordera4.so): Likewise.
7620         (LDFLAGS-tst-initorderb2.so): Likewise.
7621         (LDFLAGS-noload): Likewise.
7622         (LDFLAGS-next): Likewise.
7623         (LDFLAGS-order2mod1.so): Likewise.
7624         (LDFLAGS-order2mod2.so): Likewise.
7625         (LDFLAGS-tst-initorder2): Likewise.
7626         (LDFLAGS-tst-initorder2a.so): Likewise.
7627         (LDFLAGS-tst-initorder2b.so): Likewise.
7628         (LDFLAGS-tst-initorder2c.so): Likewise.
7629         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
7630
7631 2012-05-02  David S. Miller  <davem@davemloft.net>
7632
7633         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7634
7635 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
7636
7637         [BZ #14055]
7638         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
7639
7640 2012-05-02  Andreas Jaeger  <aj@suse.de>
7641
7642         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
7643         since we manipulate rounding mode.
7644         (CPPFLAGS-test-idouble.c): Likewise.
7645         (CPPFLAGS-test-ifloat.c): Likewise.
7646         (CFLAGS-test-ldouble.c): Likewise.
7647         (CFLAGS-test-double.c): Likewise.
7648         (CFLAGS-test-float.c): Likewise.
7649         (CFLAGS-test-misc.c): Likewise.
7650         (CFLAGS-test-test-fenv.c): Likewise.
7651
7652 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7653
7654         [BZ #2550]
7655         [BZ #2570]
7656         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
7657         comparisons to determine direction to adjust input.
7658
7659 2012-05-01  Roland McGrath  <roland@hack.frob.com>
7660
7661         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
7662         output to the target.
7663
7664         * scripts/localplt.awk: New file.
7665         * elf/Makefile ($(objpfx)check-localplt): Target removed.
7666         (check-localplt-CFLAGS): Variable removed.
7667         ($(all-built-dso:=.jmprel)): New static pattern rule.
7668         (generated): Add those targets.
7669         (localplt-built-dso): New variable.
7670         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
7671
7672         * elf/check-localplt.c: File removed.
7673
7674         * scripts/check-execstack.awk: New file.
7675         * elf/Makefile ($(objpfx)check-execstack): Target removed.
7676         (check-execstack-CFLAGS): Variable removed.
7677         ($(objpfx)check-execstack.h): Target removed.
7678         ($(objpfx)execstack-default): New target.
7679         (generated): Add that instead of check-execstack.h.
7680         ($(all-built-dso:=.phdr)): New static pattern rule.
7681         (generated): Add those targets.
7682         * elf/check-execstack.c: File removed.
7683
7684         * scripts/check-textrel.awk: New file.
7685         * elf/Makefile ($(objpfx)check-textrel): Target removed.
7686         (check-textrel-CFLAGS): Variable removed.
7687         (all-built-dso): Use := to define.o
7688         ($(all-built-dso:=.dyn)): New static pattern rule.
7689         (generated): Add those targets.
7690         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
7691         * config.make.in (READELF): New substituted variable.
7692         * elf/check-textrel.c: File removed.
7693
7694 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
7695
7696         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
7697         allow.
7698         * conform/data/ctype.h-data [C99-based standards] (isblank):
7699         Expect function.
7700         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
7701         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
7702         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7703         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
7704         Specify type.  Require positive value.
7705         (EILSEQ): Likewise.
7706         (ERANGE): Likewise.
7707         [ISO || POSIX] (EILSEQ): Do not expect.
7708         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
7709         Specify type.  Require positive value.
7710         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
7711         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
7712         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
7713         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
7714         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
7715         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
7716         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
7717         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
7718         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
7719         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
7720         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
7721         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
7722         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
7723         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
7724         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
7725         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
7726         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
7727         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
7728         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
7729         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
7730         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
7731         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
7732         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
7733         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
7734         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
7735         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
7736         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
7737         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
7738         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
7739         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
7740         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
7741         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
7742         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
7743         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
7744         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
7745         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
7746         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
7747         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
7748         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
7749         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
7750         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
7751         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
7752         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
7753         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
7754         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
7755         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
7756         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
7757         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
7758         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
7759         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
7760         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
7761         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
7762         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
7763         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
7764         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
7765         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
7766         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
7767         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
7768         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
7769         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
7770         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
7771         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
7772         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
7773         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
7774         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
7775         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
7776         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
7777         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
7778         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
7779         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
7780         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
7781         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
7782         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
7783         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
7784         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
7785         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
7786         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
7787         Require >= 2.
7788         (FLT_ROUNDS): Expect as macro, not constant.
7789         (FLT_MANT_DIG): Use macro-int-constant.
7790         (DBL_MANT_DIG): Likewise.
7791         (LDBL_MANT_DIG): Likewise.
7792         (FLT_DIG): Likewise.
7793         (DBL_DIG): Likewise.
7794         (LDBL_DIG): Likewise.
7795         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
7796         (DBL_MIN_EXP): Likewise.
7797         (LDBL_MIN_EXP): Likewise.
7798         (FLT_MAX_EXP): Use macro-int-constant.
7799         (DBL_MAX_EXP): Likewise.
7800         (LDBL_MAX_EXP): Likewise.
7801         (FLT_MAX_10_EXP): Likewise.
7802         (DBL_MAX_10_EXP): Likewise.
7803         (LDBL_MAX_10_EXP): Likewise.
7804         (FLT_MAX): Use macro-constant.
7805         (DBL_MAX): Likewise.
7806         (LDBL_MAX): Likewise.
7807         (FLT_EPSILON): Use macro-constant.  Give upper bound.
7808         (DBL_EPSILON): Likewise.
7809         (LDBL_EPSILON): Likewise.
7810         (FLT_MIN): Likewise.
7811         (DBL_MIN): Likewise.
7812         (LDBL_MIN): Likewise.
7813         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
7814         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
7815         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
7816         [ISO11] (FLT_HAS_SUBNORM): Likewise.
7817         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
7818         [ISO11] (DBL_DECIMAL_DIG): Likewise.
7819         [ISO11] (FLT_DECIMAL_DIG): Likewise.
7820         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
7821         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
7822         [ISO11] (FLT_TRUE_MIN): Likewise.
7823         [ISO11] (LDBL_TRUE_MIN): Likewise.
7824         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7825         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
7826         (SCHAR_MIN): Use macro-int-constant.  Specify type.
7827         (SCHAR_MAX): Likewise.
7828         (UCHAR_MAX): Likewise.
7829         (CHAR_MIN): Likewise.
7830         (CHAR_MAX): Likewise.
7831         (MB_LEN_MAX): Use macro-int-constant.
7832         (SHRT_MIN): Use macro-int-constant.  Specify type.
7833         (SHRT_MAX): Likewise.
7834         (USHRT_MAX): Likewise.
7835         (INT_MAX): Likewise.
7836         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
7837         bound negative.
7838         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
7839         bound with "U".
7840         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
7841         bound with "L".
7842         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
7843         bound negative.  Suffix upper bound with "L".
7844         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
7845         bound with "UL".
7846         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
7847         Specify type.
7848         [C99-based standards] (LLONG_MAX): Likewise.
7849         [C99-based standards] (ULLONG_MAX): Likewise.
7850         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
7851         == 0.
7852         [ISO11] (max_align_t): Require type.
7853         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7854
7855         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
7856         from $CFLAGS, without defining away __attribute__ calls.
7857         (checknamespace): Use $CFLAGS_namespace.
7858
7859         * conform/conformtest.pl (@keywords): Only include C99 keywords
7860         for standards based on C99 or C11.
7861
7862         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
7863         Disable tests.
7864         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
7865         UNIX98]: Likewise.
7866
7867         * conform/conformtest.pl: Handle "macro-int-constant" and test for
7868         usability of symbols in #if.
7869
7870         * conform/conformtest.pl: If macro or constant types start
7871         "promoted:", expect the symbol to be of the following type
7872         promoted by the integer promotions.
7873
7874         * conform/conformtest.pl: Parse all "constant" and "macro" lines
7875         in one place.  Also handle "macro-constant".
7876
7877         * conform/conformtest.pl: Only accept expected macro values with
7878         "==".  Parse all "macro" lines in one place.
7879         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
7880
7881         * conform/conformtest.pl: Handle braced types on "constant" lines
7882         instead of handling "typed-constant".
7883         * conform/data/signal.h-data: Use "constant" instead of
7884         "typed-constant".
7885
7886         * conform/conformtest.pl: Handle "optional-" at start of lines in
7887         one place rather than duplicating several cases.  Handle each
7888         format of "macro" line with initial "optional-".
7889
7890         * conform/conformtest.pl: Only accept expected constant or
7891         optional-constant values with "==".  Parse all "constant" lines in
7892         one place.  Parse all "optional-constant" lines in one place.
7893         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
7894         * conform/data/fmtmsg.h-data: Likewise.
7895         * conform/data/netinet/in.h-data: Likewise.
7896         * conform/data/tar.h-data: Likewise.
7897         * conform/data/limits.h-data: Use "==" form on "constant" and
7898         "optional-constant" lines.
7899
7900         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
7901         Use -std=c99 for XOPEN2K.
7902         (@knownproblems): Remove.
7903         (newtoken): Don't check %isknown.
7904
7905         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
7906         Do not expect macro.
7907         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
7908         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
7909         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
7910         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
7911         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
7912         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
7913         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
7914         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
7915         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
7916         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
7917         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
7918         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
7919         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
7920         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
7921         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
7922         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
7923         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
7924         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
7925         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
7926         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
7927         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
7928         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
7929         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
7930         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
7931         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
7932         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
7933         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
7934         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
7935         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
7936         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
7937         [XPG3] (acosh): Likewise.
7938         [XPG3] (asinh): Likewise.
7939         [XPG3] (atanh): Likewise.
7940         [XPG3] (cbrt): Likewise.
7941         [XPG3] (expm1): Likewise.
7942         [XPG3] (ilogb): Likewise.
7943         [XPG3] (log1p): Likewise.
7944         [XPG3] (logb): Likewise.
7945         [XPG3] (nextafter): Likewise.
7946         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
7947         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
7948         [XPG3] (remainder): Likewise.
7949         [XPG3] (rint): Likewise.
7950         [XPG3 || XPG4 || UNIX98] (round): Likewise.
7951         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
7952         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
7953         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
7954         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
7955         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
7956         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
7957         [UNIX98 || XOPEN2K] (scalb): Expect.
7958         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
7959         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
7960         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
7961         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
7962         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
7963         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
7964         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
7965         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
7966         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
7967         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
7968         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
7969         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
7970         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
7971         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
7972         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
7973         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
7974         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
7975         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
7976         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
7977         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
7978         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
7979         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
7980         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
7981         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
7982         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
7983         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
7984         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
7985         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
7986         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
7987         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
7988         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
7989         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
7990         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
7991         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
7992         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
7993         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
7994         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
7995         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
7996         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
7997         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
7998         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
7999         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
8000         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
8001         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
8002         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
8003         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
8004         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
8005         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
8006         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
8007         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
8008         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
8009         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
8010         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
8011         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
8012         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
8013         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
8014         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
8015         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
8016         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
8017         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
8018         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
8019         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
8020         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
8021         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
8022         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
8023         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
8024         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
8025         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
8026         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
8027         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
8028         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
8029         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
8030         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
8031         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
8032         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
8033         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
8034         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
8035         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
8036         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
8037         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
8038         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
8039         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
8040         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
8041         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
8042         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
8043         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
8044         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
8045         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
8046         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
8047         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
8048         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
8049         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
8050         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
8051         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
8052         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
8053         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
8054         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
8055         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
8056         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
8057         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
8058         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
8059         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
8060         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
8061         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
8062         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
8063         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
8064         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
8065         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
8066         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
8067         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
8068         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
8069         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
8070         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
8071         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
8072         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
8073         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
8074         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
8075         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
8076         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
8077         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
8078         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
8079         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
8080         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
8081         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
8082         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
8083         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
8084         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
8085         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
8086         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
8087         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
8088         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
8089         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
8090         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
8091         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
8092         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
8093         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
8094         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
8095
8096         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
8097         _XOPEN_SOURCE_EXTENDED for XPG4.
8098
8099         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
8100
8101         * Makeconfig (localtime): Remove variable.
8102         (inst_localtime-file): Likewise.
8103
8104 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
8105
8106         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
8107         Update.
8108         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
8109         Update.
8110         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
8111         Update.
8112         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
8113         Update.
8114         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
8115         Update.
8116         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
8117         Update.
8118         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
8119         Update.
8120         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
8121         Update.
8122         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
8123         Update.
8124
8125 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
8126
8127         [BZ #2550]
8128         [BZ #2570]
8129         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
8130         comparisons to determine direction to adjust input.
8131         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
8132         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
8133         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
8134         Likewise.
8135         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
8136         Likewise.
8137         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
8138         Likewise.
8139         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
8140         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
8141         Likewise.
8142         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
8143         Likewise.
8144         * math/libm-test.inc (nexttoward_test): Add more tests.
8145
8146 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
8147
8148         [BZ #14040]
8149         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
8150         in version GLIBC_2.1, not GLIBC_2.0.
8151         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
8152         Likewise.
8153
8154 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
8155
8156         [BZ #13942]
8157         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
8158         (1 - x) * (1 + x).
8159         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
8160         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
8161         * math/libm-test.inc (acos_test): Add more tests.
8162         (asin_test): Likewise.
8163         * sysdeps/i386/fpu/libm-test-ulps: Update.
8164         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8165
8166         [BZ #14034]
8167         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
8168         of square root.
8169         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
8170         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
8171         * math/libm-test.inc (acos_test_tonearest): New function.
8172         (acos_test_towardzero): Likewise.
8173         (acos_test_downward): Likewise.
8174         (acos_test_upward): Likewise.
8175         (asin_test_tonearest): Likewise.
8176         (asin_test_towardzero): Likewise.
8177         (asin_test_downward): Likewise.
8178         (asin_test_upward): Likewise.
8179         (main): Call the new functions.
8180         * sysdeps/i386/fpu/libm-test-ulps: Update.
8181         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8182
8183         [BZ #13884]
8184         [BZ #13924]
8185         * math/e_exp10.c: Include <float.h>.
8186         (__ieee754_exp10): Handle underflow here rather than multiplying
8187         large negative argument by M_LN10.
8188         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
8189         of __ieee754_expf.
8190         * math/e_exp10l.c: Include <float.h>.
8191         (__ieee754_exp10l): Handle underflow here rather than multiplying
8192         large negative argument by M_LN10l.
8193         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
8194         spurious overflow exception on underflow.
8195
8196 2012-04-29  Marek Polacek  <polacek@redhat.com>
8197
8198         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
8199         (__fortify_function): New macro.
8200         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
8201         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
8202         __extern_always_inline.
8203         * libio/bits/stdio2.h: Likewise.
8204         * libio/bits/stdio.h: Likewise.
8205         * string/string.h: Likewise.
8206         * string/bits/string3.h: Likewise.
8207         * include/stdio.h: Likewise.
8208         * stdlib/bits/stdlib.h: Likewise.
8209         * stdlib/stdlib.h: Likewise.
8210         * rt/bits/mqueue2.h: Likewise.
8211         * rt/mqueue.h: Likewise.
8212         * posix/bits/unistd.h: Likewise.
8213         * posix/unistd.h: Likewise.
8214         * io/bits/poll2.h: Likewise.
8215         * io/bits/fcntl2.h: Likewise.
8216         * io/fcntl.h: Likewise.
8217         * io/sys/poll.h: Likewise.
8218         * misc/bits/syslog.h: Likewise.
8219         * misc/bits/syslog-ldbl.h: Likewise.
8220         * misc/sys/syslog.h: Likewise.
8221         * socket/bits/socket2.h: Likewise.
8222         * socket/sys/socket.h: Likewise.
8223         * debug/tst-chk1.c: Likewise.
8224         * wcsmbs/bits/wchar2.h: Likewise.
8225         * wcsmbs/bits/wchar-ldbl.h: Likewise.
8226         * wcsmbs/wchar.h: Likewise.
8227
8228 2012-04-29  Andreas Jaeger  <aj@suse.de>
8229
8230         * Makerules (tests): Remove enable-check-abi protection.
8231         (check-abi-warn): Remove.
8232         (check-abi-%): Remove check-abi-warn usage.
8233
8234         * configure.in: Remove check-abi configure option.
8235         * configure: Regenerated.
8236         * config.make.in (enable-check-abi): Remove.
8237
8238 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
8239
8240         [BZ #14033]
8241         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
8242         double functions to double *_finite functions.
8243
8244         [BZ #13941]
8245         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
8246         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
8247         LDBL_MIN_EXP.
8248         * stdio-common/Makefile (tests): Add tst-sprintf3.
8249         * stdio-common/tst-sprintf3.c: New file.
8250
8251         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
8252         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
8253
8254 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
8255
8256         * conform/conformtest.pl: Remove duplicate typed-constant
8257         handling.
8258
8259 2012-04-28  David S. Miller  <davem@davemloft.net>
8260
8261         * Makerules (%.abilist): Add vpath on sysdep_dirs.
8262         (check-abi-%): Remove AWK script prerequisite and explicit
8263         abilist directory.
8264         (check-abi): Rewrite to just diff the symlist with the abilist.
8265         (config-tls, config-abi-config): Delete, no longer used.
8266         (update-abi-%): Remove AWK script and explicit abilist directory.
8267         (update-abi): Rewrite to simply compare and conditionally copy the
8268         symlist and the sysdep abilist file.  Remove update-abi-config
8269         checks.
8270         * abilist/ld.abilist: Remove.
8271         * abilist/libBrokenLocale.abilist: Remove.
8272         * abilist/libanl.abilist: Remove.
8273         * abilist/libcrypt.abilist: Remove.
8274         * abilist/libdl.abilist: Remove.
8275         * abilist/librt.abilist: Remove.
8276         * abilist/libthread_db.abilist: Remove.
8277         * abilist/libutil.abilist: Remove.
8278         * scripts/extract-abilist.awk: Remove.
8279         * scripts/merge-abilist.awk: Remove.
8280         * sysdeps/generic/libcidn.abilist: New file.
8281         * sysdeps/generic/libnss_compat.abilist: New file.
8282         * sysdeps/generic/libnss_db.abilist: New file.
8283         * sysdeps/generic/libnss_dns.abilist: New file.
8284         * sysdeps/generic/libnss_files.abilist: New file.
8285         * sysdeps/generic/libnss_hesiod.abilist: New file.
8286         * sysdeps/generic/libnss_nis.abilist: New file.
8287         * sysdeps/generic/libnss_nisplus.abilist: New file.
8288         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
8289         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
8290         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
8291         file.
8292         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
8293         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
8294         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
8295         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
8296         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
8297         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
8298         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
8299         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
8300         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
8301         file.
8302         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
8303         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
8304         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
8305         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
8306         file.
8307         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
8308         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
8309         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
8310         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
8311         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
8312         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
8313         file.
8314         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
8315         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
8316         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
8317         file.
8318         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
8319         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
8320         New file.
8321         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
8322         New file.
8323         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
8324         New file.
8325         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
8326         New file.
8327         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
8328         New file.
8329         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
8330         New file.
8331         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
8332         New file.
8333         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
8334         New file.
8335         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
8336         New file.
8337         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
8338         New file.
8339         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
8340         New file.
8341         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
8342         New file.
8343         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
8344         New file.
8345         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
8346         file.
8347         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
8348         New file.
8349         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
8350         New file.
8351         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
8352         file.
8353         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
8354         New file.
8355         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
8356         New file.
8357         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
8358         file.
8359         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
8360         New file.
8361         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
8362         New file.
8363         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
8364         New file.
8365         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
8366         New file.
8367         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
8368         New file.
8369         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
8370         New file.
8371         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
8372         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
8373         file.
8374         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
8375         New file.
8376         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
8377         file.
8378         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
8379         file.
8380         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
8381         file.
8382         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
8383         file.
8384         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
8385         file.
8386         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
8387         New file.
8388         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
8389         file.
8390         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
8391         file.
8392         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
8393         New file.
8394         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
8395         file.
8396         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
8397         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
8398         file.
8399         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
8400         New file.
8401         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
8402         file.
8403         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
8404         file.
8405         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
8406         file.
8407         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
8408         file.
8409         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
8410         file.
8411         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
8412         New file.
8413         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
8414         file.
8415         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
8416         file.
8417         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
8418         New file.
8419         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
8420         file.
8421         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
8422         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
8423         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
8424         file.
8425         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
8426         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
8427         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
8428         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
8429         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
8430         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
8431         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
8432         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
8433         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
8434         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
8435         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
8436         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
8437         file.
8438         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
8439         New file.
8440         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
8441         file.
8442         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
8443         file.
8444         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
8445         file.
8446         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
8447         file.
8448         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
8449         file.
8450         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
8451         New file.
8452         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
8453         New file.
8454         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
8455         file.
8456         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
8457         New file.
8458         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
8459         file.
8460         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
8461         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
8462         file.
8463         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
8464         New file.
8465         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
8466         file.
8467         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
8468         file.
8469         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
8470         file.
8471         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
8472         file.
8473         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
8474         file.
8475         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
8476         New file.
8477         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
8478         New file.
8479         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
8480         file.
8481         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
8482         New file.
8483         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
8484         file.
8485
8486 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
8487
8488         * conform/conformtest.pl: Fix typo in handling typed-constant from
8489         allow-header.
8490
8491 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
8492
8493         * README: Cut down references to pre-2.6 Linux kernels and
8494         Linuxthreads.  Update lists of configurations in libc and ports
8495         and sort alphabetically.  Say "or newer" with Linux kernel version
8496         requirements.
8497
8498         * config.h.in [IS_IN_build]: Allow compiling without optimization.
8499
8500 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
8501
8502         [BZ #887]
8503         * math/libm-test.inc (logb_test_downward): New test to expose
8504         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
8505         rounding mode.
8506
8507 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
8508
8509         [BZ #14027]
8510         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
8511         to be done.
8512         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
8513         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
8514
8515 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
8516
8517         * sysdeps/unix/i386/brk.S: Remove file.
8518         * sysdeps/unix/i386/dl-brk.S: Likewise.
8519         * sysdeps/unix/i386/pipe.S: Likewise.
8520         * sysdeps/unix/i386/sigreturn.S: Likewise.
8521         * sysdeps/unix/i386/syscall.S: Likewise.
8522         * sysdeps/unix/i386/vfork.S: Likewise.
8523         * sysdeps/unix/i386/wait.S: Likewise.
8524
8525         * sysdeps/unix/common/tcsendbrk.c: Move to ...
8526         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
8527
8528         * configure.in (arm*-none*): Do not allow without
8529         --enable-hacker-mode.
8530         (netbsd*): Remove case setting base_os.
8531         (386bsd*): Likewise.
8532         (freebsd*): Likewise.
8533         (bsdi*): Likewise.
8534         (osf*): Likewise.
8535         (sunos*): Likewise.
8536         (ultrix*): Likewise.
8537         (newsos*): Likewise.
8538         (dynix*): Likewise.
8539         (*bsd*): Likewise.
8540         (sysv*): Likewise.
8541         (isc*): Likewise.
8542         (esix*): Likewise.
8543         (sco*): Likewise.
8544         (minix*): Likewise.
8545         (irix4*): Likewise.
8546         (irix6*): Likewise.
8547         (solaris[2-9]*): Likewise.
8548         (none): Likewise.
8549         * configure: Regenerated.
8550
8551 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8552
8553         [BZ #11521]
8554         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
8555         overflow or cancellation in calculating denominator.
8556         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
8557         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
8558         down expression to avoid unexpected rounding in newer GCCs.
8559         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
8560
8561 2012-04-26  David S. Miller  <davem@davemloft.net>
8562
8563         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
8564         long-double compat symbols.
8565         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
8566         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
8567         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
8568         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
8569         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
8570         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
8571         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
8572         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
8573         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
8574         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
8575         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
8576         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
8577         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
8578
8579 2012-04-25  David S. Miller  <davem@davemloft.net>
8580
8581         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
8582         HWCAP_* values only after the memory barriers have been defined.
8583         (atomic_full_barrier): Define.
8584         (atomic_read_barrier): Define.
8585         (atomic_write_barrier): Define.
8586
8587 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
8588
8589         * shlib-versions: Add libgcc_s version information.
8590         * sysdeps/generic/libgcc_s.h: Remove.
8591         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
8592         libgcc_s.h.
8593         * sysdeps/gnu/unwind-resume.c: Likewise.
8594         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
8595
8596 2012-04-25  David S. Miller  <davem@davemloft.net>
8597
8598         * sysdeps/unix/sparc/brk.S: Delete.
8599         * sysdeps/unix/sparc/dl-brk.S: Delete.
8600         * sysdeps/unix/sparc/pipe.S: Delete.
8601         * sysdeps/unix/sparc/sysdep.S: Delete.
8602         * sysdeps/unix/sparc/sysdep.h: Delete.
8603         * sysdeps/unix/sparc/vfork.S: Delete.
8604         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
8605         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
8606         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
8607         ret_ERRVAL, r0, r1, MOVE): Define.
8608         (JUMPTARGET): Remove.
8609         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
8610         sysdeps/unix/sparc/sysdep.h
8611         (ENTRY, END): Remove.
8612         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
8613
8614 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
8615
8616         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
8617         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
8618         -DIS_IN_build.
8619
8620         * timezone/README: Update upstream location and email address for
8621         tzcode and tzdata.
8622         * timezone/zdump.c: Update from tzcode 2012b.
8623         * timezone/zic.c: Likewise.
8624
8625         * configure.in (libc_cv_as_needed): Remove test.
8626         * configure: Regenerated.
8627         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
8628         conditional definition.
8629         [$(have-as-needed) != yes] (no-as-needed): Likewise.
8630         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
8631         * config.make.in (have-as-needed): Remove variable.
8632
8633 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
8634             Paul Pluzhnikov  <ppluzhnikov@google.com>
8635
8636         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
8637         strings correctly.
8638
8639 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
8640
8641         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
8642         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
8643         * sysdeps/sh/strlen.S: Likewise.
8644
8645 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
8646
8647         * sysdeps/unix/fork.S: Remove file.
8648         * sysdeps/unix/i386/fork.S: Likewise.
8649         * sysdeps/unix/sparc/fork.S: Likewise.
8650
8651         * sysdeps/unix/system.c: Remove file.
8652         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
8653
8654         * sysdeps/unix/getegid.S: Remove file.
8655         * sysdeps/unix/geteuid.S: Likewise.
8656
8657 2012-04-24  Roland McGrath  <roland@hack.frob.com>
8658
8659         * scripts/check-localplt.awk: New file.
8660         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
8661         of diff.
8662         * scripts/data/localplt-generic.data: Add a comment.
8663
8664         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
8665         NODE when __dir_mkfile failed.
8666         * sysdeps/mach/hurd/symlinkat.c: Likewise.
8667         Reported by Ludovic Courtès <ludo@gnu.org>.
8668
8669 2012-04-24  Andreas Jaeger  <aj@suse.de>
8670
8671         * Makerules (common-clean): Also remove gen-as-const-headers
8672         files.
8673
8674 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
8675
8676         * Makerules (native-compile): Do not change working directory for
8677         build.  Use $(OUTPUT_OPTION) in command.
8678         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
8679
8680 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8681
8682         [BZ #13886]
8683         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
8684         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
8685         * math/libm-test.inc (floor_test): Add more tests.
8686         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
8687
8688 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
8689
8690         * sysdeps/unix/getdents.c: Remove file.
8691         * sysdeps/unix/sysv/getdents.c: Likewise.
8692         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
8693
8694         * sysdeps/unix/syscalls.list (madvise): Add syscall from
8695         sysdeps/unix/mman/syscalls.list.
8696         (mmap): Likewise.
8697         (mprotect): Likewise.
8698         (msync): Likewise.
8699         (munmap): Likewise.
8700         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
8701         * sysdeps/unix/mman/syscalls.list: Remove.
8702         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
8703
8704         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
8705         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
8706         * configure: Regenerated.
8707         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
8708         $(libgcc_s_suffix).
8709         * config.make.in (libgcc_s_suffix): Remove variable.
8710
8711 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
8712
8713         * sysdeps/unix/sysv/gethostname.c: Move to ...
8714         * sysdeps/posix/gethostname.c: ... here.
8715
8716         * sysdeps/unix/execve.S: Remove file.
8717
8718         * sysdeps/unix/_exit.S: Remove file.
8719
8720 2012-04-23  Andreas Jaeger  <aj@suse.de>
8721
8722         [BZ #13739]
8723         * manual/Makefile: Remove make dist support, there's no
8724         need for a stand-alone documentation tar ball.
8725         (TEXI2DVI): Define always, it's not in Makeconfig.
8726         (dist): Removed.
8727         (tar-it): Removed.
8728         (edition): Removed.
8729         (glibc-doc-$(edition).tar): Removed
8730         (%.Z): Removed.
8731         (%.gz): Removed.
8732         (%.uu): Removed.
8733         (ETAGS): Remove, it's in Makeconfig.
8734         (move-if-change): Remove, it's in Makeconfig.
8735
8736 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
8737
8738         [BZ #13970]
8739         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
8740         (strtod, strtof, strtold, strtol, strtoul, strtoq)
8741         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
8742         (strtod_l, strtof_l, strtold_l): Remove __wur.
8743         It is not necessarily an error to ignore strtol's return value.
8744         One can reliably look at the stored endptr to decide whether
8745         the number had valid syntax.
8746
8747 2012-04-21  Andreas Jaeger  <aj@suse.de>
8748
8749         [BZ #13739]
8750         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
8751
8752 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
8753
8754         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
8755         * sysdeps/unix/sysv/Versions: Remove file.
8756
8757 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
8758
8759         [BZ #13927]
8760         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8761
8762 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
8763
8764         [BZ #7064]
8765         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
8766         version from __vm86.
8767
8768 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
8769
8770         * sysdeps/unix/common/lxstat.c: Remove file.
8771         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
8772
8773         * sysdeps/unix/sysv/Makefile: Remove file.
8774
8775         * sysdeps/unix/sysv/direct.h: Remove file.
8776
8777         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
8778         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
8779         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
8780         * sysdeps/unix/sysv/bits/signum.h: Likewise.
8781         * sysdeps/unix/sysv/bits/stat.h: Likewise.
8782         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
8783         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
8784
8785         * sysdeps/unix/sysv/setrlimit.c: Remove file.
8786
8787         * sysdeps/unix/xmknod.c: Remove file.
8788         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
8789
8790         * sysdeps/unix/sysv/settimeofday.c: Remove file.
8791
8792         * sysdeps/unix/sysv/i386/time.S: Remove file.
8793
8794         * sysdeps/unix/fxstat.c: Remove file.
8795         * sysdeps/unix/xstat.c: Likewise.
8796         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
8797
8798         * sysdeps/unix/sysv/sigaction.c: Remove file.
8799
8800         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
8801         (sysdep_headers): Remove variable.
8802         [termio.h not in sysdep_headers] (generated): Likewise.
8803         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
8804         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
8805         * sysdeps/unix/sysv/tcdrain.c: Likewise.
8806         * sysdeps/unix/sysv/tcflow.c: Likewise.
8807         * sysdeps/unix/sysv/tcflush.c: Likewise.
8808         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
8809         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
8810         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
8811         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
8812         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
8813
8814         * sysdeps/unix/siglist.c: Remove file.
8815
8816         * sysdeps/unix/getppid.S: Remove file.
8817
8818         * sysdeps/unix/mkdir.c: Remove file.
8819         * sysdeps/unix/rmdir.c: Likewise.
8820
8821 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
8822
8823         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
8824         ERR_MAX value.
8825         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
8826         errlist-compat value.
8827
8828 2012-04-18  David S. Miller  <davem@davemloft.net>
8829
8830         * sysdeps/generic/memcopy.h (reg_char): Delete.
8831         * debug/strcat_chk.c: Use char, not reg_char.
8832         * debug/strcpy_chk.c: Likewise.
8833         * debug/strncat_chk.c: Likewise.
8834         * debug/strncpy_chk.c: Likewise.
8835         * string/memchr.c: Likewise.
8836         * string/memrchr.c: Likewise.
8837         * string/rawmemchr.c: Likewise.
8838         * string/strcat.c: Likewise.
8839         * string/strchr.c: Likewise.
8840         * string/strchrnul.c: Likewise.
8841         * string/strcmp.c: Likewise.
8842         * string/strcpy.c: Likewise.
8843         * string/strncat.c: Likewise.
8844         * string/strncmp.c: Likewise.
8845         * string/strncpy.c: Likewise.
8846
8847 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
8848
8849         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
8850         __builtin_memcopy is called when src and dest ranges are known to not
8851         overlap.
8852
8853 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
8854
8855         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
8856         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
8857         fwd_align_merge macro call.
8858         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
8859         bwd_align_merge macro call.
8860         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
8861
8862 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
8863
8864         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
8865         bwd_align_merge macros.
8866         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
8867         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
8868         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
8869
8870 2012-04-18  David S. Miller  <davem@davemloft.net>
8871
8872         * sysdeps/sparc/sparc64/memcopy.h: Delete.
8873
8874 2012-04-18  Andreas Jaeger  <aj@suse.de>
8875
8876         [BZ# 6794]
8877         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
8878         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
8879         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
8880
8881         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
8882         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
8883         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
8884
8885         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
8886         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
8887         Adjust for changed ldbl-128 files.
8888
8889         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
8890         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
8891         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
8892
8893 2012-04-17  David S. Miller  <davem@davemloft.net>
8894
8895         * sysdeps/sparc/sparc32/memcopy.h: Delete.
8896
8897 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
8898
8899         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
8900         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
8901         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
8902         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
8903         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
8904         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
8905
8906 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8907
8908         [BZ #6794]
8909         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
8910         * math/libm-test.inc: Add ilogb errno and exception tests.
8911         * math/w_ilogb.c: New file: ilogb wrapper.
8912         * math/w_ilogbf.c: New file: ilogbf wrapper.
8913         * math/w_ilogbl.c: New file: ilogbl wrapper.
8914         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
8915         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
8916         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
8917         exception being thrown with 0.0 as argument.
8918         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
8919         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
8920         exception being thrown with 0.0 as argument.
8921         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
8922         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
8923         exception being thrown with 0.0 as argument.
8924         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
8925         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
8926         exception being thrown with 0.0 as argument.
8927         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
8928         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
8929         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
8930         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
8931         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
8932         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
8933         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
8934         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
8935         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
8936
8937 2012-04-17  Petr Baudis  <pasky@ucw.cz>
8938
8939         * include/sys/uio.h: Change __vector to __iovec to avoid clash
8940         with altivec.
8941
8942 2012-04-16  Marek Polacek  <polacek@redhat.com>
8943
8944         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
8945
8946 2012-04-16  Marek Polacek  <polacek@redhat.com>
8947
8948         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
8949         operands of fdivp instruction.
8950
8951 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
8952
8953         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
8954         * elf/tst-auditmod3b.c: Likewise.
8955         * elf/tst-auditmod4b.c: Likewise.
8956         * elf/tst-auditmod5b.c: Likewise.
8957         * elf/tst-auditmod6b.c: Likewise.
8958         * elf/tst-auditmod6c.c: Likewise.
8959         * elf/tst-auditmod7b.c: Likewise.
8960         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
8961         * sysdeps/x86_64/preconfigure.in: Likewise.
8962         * sysdeps/x86_64/preconfigure: Regenerated.
8963
8964 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
8965
8966         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
8967         __ILP32__.
8968
8969 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
8970
8971         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
8972         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
8973
8974 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
8975
8976         [BZ #13973]
8977         * locale/iso-639.def: Fix gl language name. Spotted by
8978         Yaron Shahrabani.
8979
8980 2012-04-12  Roland McGrath  <roland@hack.frob.com>
8981
8982         [BZ #2074]
8983         * libio/libio.h (__io_write_fn): Update comment.
8984
8985 2012-04-12  Petr Baudis  <pasky@ucw.cz>
8986
8987         [BZ #2074]
8988         * stdio.texi (Hook Functions): The user provided writer function
8989         is not allowed to return -1.
8990
8991 2012-04-11  David S. Miller  <davem@davemloft.net>
8992
8993         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8994
8995 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
8996
8997         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
8998         Add a leading slash to rtkaio.
8999
9000 2012-04-11  Jim Meyering  <meyering@redhat.com>
9001
9002         [BZ #11959]
9003         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
9004         It is not necessarily an error to ignore fwrite's return
9005         value.  One can reliably use ferror to test for errors after
9006         the fact.
9007
9008 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
9009
9010         * bits/types.h (__snseconds_t): New type.
9011         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
9012
9013         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
9014         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
9015         (__SNSECONDS_T_TYPE): Likewise.
9016         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
9017         (__SNSECONDS_T_TYPE): Likewise.
9018         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
9019         (__SNSECONDS_T_TYPE): Likewise.
9020
9021 2012-04-10  Andreas Jaeger  <aj@suse.de>
9022
9023         [BZ #2636]
9024         * manual/time.texi (Processor Time): Return type of times is
9025         elapsed real time since an arbitrary point in the past.
9026         (CPU Time): Move CLK_TCK from here...
9027         (Processor Time): ...to here.  Correct description.
9028         * manual/conf.texi (Constants for Sysconf): Correct description of
9029         _SC_CLK_TCK.
9030
9031 2012-04-10  David S. Miller  <davem@davemloft.net>
9032
9033         [BZ #13967]
9034         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
9035         where the is a gap between DT_REL(A) and DT_JMPREL.
9036
9037 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
9038
9039         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
9040         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
9041         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
9042
9043 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
9044
9045         * elf/dl-support.c (_dl_inhibit_cache): New variable.
9046         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
9047         (dl_main): Handle --inhibit-cache.
9048         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
9049         _dl_inhibit_cache.
9050         * elf/dl-load.c (_dl_map_object): Use it.
9051         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
9052
9053 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
9054
9055         [BZ #13872]
9056         * sysdeps/i386/fpu/e_powl.S (p78): New object.
9057         (__ieee754_powl): Saturate large exponents rather than testing for
9058         overflow of y*log2(x).
9059         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
9060         * math/libm-test.inc (pow_test): Do not permit spurious overflow
9061         exceptions.
9062
9063         [BZ #11521]
9064         * math/s_ctan.c: Include <float.h>.
9065         (__ctan): Avoid internal overflow or cancellation in calculating
9066         denominator.
9067         * math/s_ctanf.c: Likewise.
9068         * math/s_ctanl.c: Likewise.
9069         * math/s_ctanh.c: Likewise.
9070         * math/s_ctanhf.c: Likewise.
9071         * math/s_ctanhl.c: Likewise.
9072         * math/libm-test.inc (ctan_test): Add more tests.
9073         (ctanh_test): Likewise.
9074         * sysdeps/i386/fpu/libm-test-ulps: Update.
9075         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9076
9077 2012-04-09  Andreas Jaeger  <aj@suse.de>
9078
9079         [BZ #6894]
9080         * manual/filesys.texi (Directory Entries): Mention that d_namlen
9081         is an optional BSD extension.
9082
9083         [BZ #10254]
9084         * manual/stdio.texi (Opening Streams): Document additional fopen
9085         parameters.
9086
9087 2012-04-09  Roland McGrath  <roland@hack.frob.com>
9088
9089         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
9090         %eax without telling the compiler.
9091
9092 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
9093
9094         [BZ # 13963]
9095         * manual/install.texi: Use sourceware.org.
9096
9097 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
9098
9099         [BZ #13873]
9100         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
9101         (__ieee754_pow): Generate overflow and underflow using huge*huge
9102         and tiny*tiny rather than just returning constant infinity or zero
9103         for large exponents.
9104         * math/libm-test.inc (pow_test): Require overflow exceptions for
9105         applicable cases of large exponents.
9106
9107         [BZ #706]
9108         * sysdeps/i386/fpu/e_pow.S (p10): New object.
9109         (__ieee754_pow): Use iterative multiplication algorithm only for
9110         integer exponents with absolute value below 1024.  Check for odd
9111         integer exponents when using algorithm for real exponents.
9112         * math/libm-test.inc (pow_test): Add more tests.
9113         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9114
9115 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
9116
9117         [BZ #13705]
9118         * math/libm-test.inc (exp_test): Do not allow overflow exception
9119         on underflow test.
9120
9121 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
9122
9123         [BZ #13705]
9124         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
9125         instead of __kernel_standard_f.
9126
9127 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
9128
9129         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
9130         * sysdeps/x86_64/memset_chk.S: Likewise.
9131
9132 2012-04-08  Andreas Jaeger  <aj@suse.de>
9133
9134         [BZ #10153]
9135         * manual/startup.texi (Environment Access): Describe return value
9136         for putenv and setenv.
9137
9138         [BZ #6895]
9139         * manual/filesys.texi (Directory Entries): Add description for
9140         DT_LNK.
9141
9142         [BZ #6890]
9143         * manual/filesys.texi (Directory Entries): Clarify that it's file
9144         system not operating system in the description of DT_UNKNOWN.
9145
9146         [BZ #6578]
9147         * manual/syslog.texi (closelog): Fix reference, it's openlog.
9148
9149 2012-04-08  Stephen Compall  <s11@member.fsf.org>
9150
9151         [BZ #6649]
9152         * manual/llio.texi (Opening and Closing Files): Add cross
9153         reference to explain mode argument.
9154
9155 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
9156
9157         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
9158         * sysdeps/x86_64/memset_chk.S: Likewise.
9159
9160 2012-04-07  David S. Miller  <davem@davemloft.net>
9161
9162         * elf/elf.h (R_SPARC_WDISP10): Define.
9163         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
9164         R_SPARC_SIZE32.
9165         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
9166         R_SPARC_SIZE64 and R_SPARC_H34.
9167
9168 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
9169
9170         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
9171         conditions and remove no longer applicable assertion.
9172
9173 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
9174
9175         * bits/byteswap.h: Include <features.h>.
9176         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
9177         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
9178
9179 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
9180
9181         * bits/byteswap.h (__bswap_16): Removed.
9182         Include <bits/byteswap-16.h> to get __bswap_16.
9183         * sysdeps/i386/bits/byteswap.h: Likewise.
9184         * sysdeps/s390/bits/byteswap.h: Likewise.
9185         * sysdeps/x86_64/bits/byteswap.h: Likewise.
9186         * bits/byteswap-16.h: New file.
9187         * sysdeps/i386/bits/byteswap-16.h: Likewise.
9188         * sysdeps/s390/bits/byteswap-16.h: Likewise.
9189         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
9190         * string/Makefile (headers): Add bits/byteswap-16.h.
9191
9192 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
9193
9194         [BZ #13895]
9195         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
9196         extra indirection.
9197         * nss/Makefile (tests-static, tests): Add tst-nss-static.
9198         * nss/tst-nss-static.c: New.
9199
9200 2012-04-06  Robert Millan  <rmh@gnu.org>
9201
9202         [BZ #6486]
9203         * manual/llio.texi (File Position Primitive): lseek
9204         refers to WHENCE when it really means OFFSET.
9205
9206 2012-04-06  Andreas Jaeger  <aj@suse.de>
9207
9208         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
9209         strncmp declarations.
9210
9211         * abilist/libc.abilist: Add __poll and __ppoll.
9212
9213 2012-04-05  David S. Miller  <davem@davemloft.net>
9214
9215         * scripts/check-local-headers.sh: Accept a host triplet in the
9216         path matched by the exclude regexp.
9217
9218         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
9219         definition.
9220         * sysdeps/powerpc/powerpc32/dl-machine.h
9221         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
9222         * sysdeps/s390/s390-32/dl-machine.h
9223         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
9224         * sysdeps/sparc/sparc32/dl-machine.h
9225         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
9226         * sysdeps/sparc/sparc64/dl-machine.h
9227         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
9228
9229         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
9230         lazy binding.
9231         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
9232         undefined symbol errors.
9233
9234         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
9235         DT_NEEDED entries.
9236
9237 2012-04-05  Michael Matz  <matz@suse.de>
9238
9239         [BZ #13592]
9240         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
9241
9242 2012-04-05  Andreas Jaeger  <aj@suse.de>
9243
9244         [BZ #13908]
9245         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
9246         comment.
9247
9248 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9249
9250         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
9251         which ROUND is no valid rounding mode.
9252
9253 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9254
9255         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
9256         read again.
9257         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
9258
9259 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9260
9261         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
9262         an exception using FPU order intentionally.
9263
9264 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9265
9266         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
9267         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
9268         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
9269         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
9270
9271 2012-04-05  Simon Josefsson  <simon@josefsson.org>
9272
9273         [BZ #12340]
9274         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
9275         EINVAL when BUFLEN is too smal.
9276
9277 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
9278
9279         [BZ #13553]
9280         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
9281         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
9282
9283 2012-04-03  Andreas Jaeger  <aj@suse.de>
9284
9285         [BZ #13938]
9286         * manual/setjmp.texi (System V contexts): Fix sentence.
9287
9288         [BZ #13926]
9289         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
9290         New macro for this case.
9291         [!__GNUC__] (__bswap_64): New inline function for this case.
9292         * sysdeps/x86_64/bits/byteswap.h: Likewise.
9293         * bits/byteswap.h: Likewise.
9294         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
9295         ull, guard with __GLIBC_HAVE_LONG_LONG.
9296
9297         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
9298         __GLIBC_HAVE_LONG_LONG.
9299
9300         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
9301         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
9302
9303 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
9304
9305         [BZ #13691]
9306         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
9307         inptr and inend, rather than using last_ch.
9308
9309 2012-04-02  David S. Miller  <davem@davemloft.net>
9310
9311         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
9312         * stdio-common/printf-parse.h (read_int): Change return type to
9313         'int', return -1 on INT_MAX overflow.
9314         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
9315         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
9316         overflows INT_MAX.  Check for overflow of in-format-string precision
9317         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
9318         SIZE_MAX not INT_MAX for integer overflow test.
9319         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
9320         skip the construct in the format string but do not record anything.
9321         * stdio-common/bug22.c: Adjust to test both width/prevision
9322         INT_MAX overflow as well as total length INT_MAX overflow.  Check
9323         explicitly for proper errno values.
9324
9325 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
9326
9327         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
9328         CHAR_MAX.
9329         * string/test-strcmp.c [! WIDE]: Likewise.
9330         * time/tst-mktime2.c: Likewise for INT_MAX.
9331         * string/test-string.h: #include <sys/param.h> for MIN.
9332
9333         * csu/init-first.c (__libc_init_first): Call __ctype_init.
9334         * sysdeps/i386/init-first.c (init): Likewise.
9335         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
9336         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
9337         * sysdeps/sh/init-first.c (init): Likewise.
9338
9339 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
9340
9341         * po/ru.po: Update from translation team.
9342         * po/vi.po: Likewise.
9343
9344 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
9345
9346         * resolv/nss_dns/dns-host.c: Merge copyright years.
9347
9348 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9349
9350         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
9351         Optimize memcpy with prefetch if
9352         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
9353         src, dst pointers have unequal 16 byte alignments.
9354
9355 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
9356
9357         [BZ #13928]
9358         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
9359         from a CNAME entry and return the minimum ttl for the query.
9360         (gaih_getanswer_slice): Likewise.
9361
9362 2012-03-30  Jeff Law  <law@redhat.com>
9363
9364         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
9365         due to long keys.
9366         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
9367         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
9368
9369         * resolv/nss_dns/dns-host.c: Update copyright year.
9370
9371 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
9372
9373         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
9374         requests to save a system call.  Fix check that all bytes are sent.
9375
9376         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
9377         comments for sendmmsg.
9378
9379 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
9380
9381         [BZ #13691]
9382         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
9383         with only 1 character between 0x0041 and 0x01b0.
9384         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
9385         * wcsmbs/tst-mbsnrtowcs.c: New file.
9386
9387 2012-03-29  David S. Miller  <davem@davemloft.net>
9388
9389         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
9390         small copies by hand.
9391
9392 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
9393
9394         [BZ #13761]
9395         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
9396         _nss_compat_initgroups_dyn): Fall back to malloc/free
9397         for large group memberships.
9398
9399 2012-03-28  David S. Miller  <davem@davemloft.net>
9400
9401         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
9402         that branches into memcpy.
9403         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
9404         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
9405         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
9406         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
9407         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
9408         bits.
9409         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
9410         implementation too.
9411         * sysdeps/sparc/mempcpy.S: New file.
9412
9413         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
9414         the IFUNC routine in the libc case.
9415         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
9416
9417         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
9418         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
9419         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
9420         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
9421         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
9422         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
9423         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
9424         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
9425
9426         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
9427         loop to 256 bytes instead of 64 bytes and fix test signedness.
9428
9429         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
9430         * sysdeps/sparc/sparc32/Makefile: rather than here...
9431         * sysdeps/sparc/sparc64/Makefile: and here.
9432
9433 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
9434
9435         * malloc/mallocbug.c: Avoid warnings about unused variables.
9436
9437 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
9438
9439         [BZ #13760]
9440         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
9441         in the right place. Discard and retry query if response is
9442         larger than input buffer size.
9443
9444 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
9445
9446         [BZ #369]
9447         [BZ #2678]
9448         [BZ #3866]
9449         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
9450         x for large integer exponent.
9451         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
9452         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
9453         sign of result as needed afterwards.
9454         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
9455         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
9456         result for underflowing pow the same as for overflow.
9457         (__kernel_standard_l): Handle powl overflow and underflow here
9458         rather than calling __kernel_standard.
9459         * math/libm-test.inc (pow_test): Add more tests.
9460
9461         [BZ #3868]
9462         [BZ #13879]
9463         [BZ #13910]
9464         [BZ #13911]
9465         [BZ #13912]
9466         [BZ #13913]
9467         [BZ #13915]
9468         [BZ #13916]
9469         [BZ #13917]
9470         [BZ #13918]
9471         [BZ #13919]
9472         [BZ #13920]
9473         [BZ #13921]
9474         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
9475         * sysdeps/ieee754/k_standard.c: Include <float.h>.
9476         (__kernel_standard_l): New function.
9477         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
9478         __kernel_standard.
9479         * math/w_acosl.c (__acosl): Likewise.
9480         * math/w_asinl.c (__asinl): Likewise.
9481         * math/w_atan2l.c (__atan2l): Likewise.
9482         * math/w_atanhl.c (__atanhl): Likewise.
9483         * math/w_coshl.c (__coshl): Likewise.
9484         * math/w_exp10l.c (__exp10l): Likewise.
9485         * math/w_exp2l.c (__exp2l): Likewise.
9486         * math/w_fmodl.c (__fmodl): Likewise.
9487         * math/w_hypotl.c (__hypotl): Likewise.
9488         * math/w_j0l.c (__j0l, __y0l): Likewise.
9489         * math/w_j1l.c (__j1l, __y1l): Likewise.
9490         * math/w_jnl.c (__jnl, __ynl): Likewise.
9491         * math/w_lgammal.c (__lgammal): Likewise.
9492         * math/w_log10l.c (__log10l): Likewise.
9493         * math/w_log2l.c (__log2l): Likewise.
9494         * math/w_logl.c (__logl): Likewise.
9495         * math/w_powl.c (__powl): Likewise.
9496         * math/w_remainderl.c (__remainderl): Likewise.
9497         * math/w_scalbl.c (sysv_scalbl): Likewise.
9498         * math/w_sinhl.c (__sinhl): Likewise.
9499         * math/w_sqrtl.c (__sqrtl): Likewise.
9500         * math/w_tgammal.c (__tgammal): Likewise.
9501         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
9502         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
9503         * math/libm-test.inc (acos_test): Add more tests.
9504         (acosh_test): Likewise.
9505         (asin_test): Likewise.
9506         (atanh_test): Likewise.
9507         (exp_test): Likewise.
9508         (exp10_test): Likewise.
9509         (exp2_test): Likewise.
9510         (expm1_test): Likewise.
9511         (lgamma_test): Likewise.
9512         (log_test): Likewise.
9513         (log10_test): Likewise.
9514         (log1p_test): Likewise.
9515         (log2_test): Likewise.
9516         (pow_test): Do not allow some spurious overflow exceptions.
9517         (sqrt_test): Add more tests.
9518         (tgamma_test): Likewise.
9519         (y0_test): Likewise.
9520         (y1_test): Likewise.
9521         (yn_test): Likewise.
9522
9523 2012-03-27  Anton Blanchard  <anton@samba.org>
9524
9525         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
9526         MAP_HUGETLB.
9527         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
9528         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
9529         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
9530
9531 2012-03-27  David S. Miller  <davem@davemloft.net>
9532
9533         * conform/Makefile: Run run-conformtest.sh using $(BASH).
9534
9535         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
9536         have-as-vis3 check.
9537
9538 2012-03-27  Andreas Jaeger  <aj@suse.de>
9539
9540         * sysdeps/x86_64/elf/configure.in: Moved to ...
9541         * sysdeps/x86_64/configure.in: ... here.
9542         * sysdeps/x86_64/elf/start.S: Moved to ...
9543         * sysdeps/x86_64/start.S: ... here.
9544         * sysdeps/x86_64/elf/configure: Delete.
9545
9546         * sysdeps/x86_64/configure.in: Merge contents from
9547         sysdeps/i386/configure.in (without i686 check).
9548
9549         * sysdeps/i386/elf/Versions: Merge into ...
9550         * sysdeps/i386/Versions: ... this.
9551         * sysdeps/i386/elf/Versions: Delete file.
9552         * sysdeps/i386/elf/start.S: Moved to ...
9553         * sysdeps/i386/start.S: ...here.
9554         * sysdeps/i386/elf/configure.in: Merge into...
9555         * sysdeps/i386/configure.in: ...here.
9556         * sysdeps/i386/elf/configure.in: Delete file.
9557         * sysdeps/i386/elf/configure: Delete file.
9558
9559         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
9560         * debug/backtracesyms.c: ... here.
9561         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
9562         * debug/backtracesymsfd.c: ... here.
9563         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
9564         * sysdeps/generic/ifunc-sel.h: ... here.
9565
9566         * sysdeps/unix/i386/start.c: Delete file.
9567         * sysdeps/unix/sparc/start.c: Delete file.
9568         * sysdeps/unix/start.c: Delete file.
9569
9570         * sysdeps/sh/elf/configure.in: Moved to ...
9571         * sysdeps/sh/configure.in: ... here.
9572         * sysdeps/sh/elf/start.S: Moved to ...
9573         * sysdeps/sh/start.S: ... here.
9574         * sysdeps/sh/elf/configure: Delete file.
9575
9576         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
9577         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
9578         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
9579         * sysdeps/powerpc/powerpc64/entry.h: ... here.
9580         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
9581         * sysdeps/powerpc/powerpc64/start.S: here.
9582         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
9583         * sysdeps/powerpc/powerpc64/Makefile: ... this.
9584         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
9585         * sysdeps/powerpc/powerpc64/configure.in: ... this.
9586         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
9587
9588         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
9589         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
9590         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
9591         * sysdeps/powerpc/powerpc32/start.S: ... here.
9592         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
9593         * sysdeps/powerpc/powerpc32/configure.in: ... this.
9594         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
9595
9596         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
9597         * sysdeps/powerpc/ifunc-sel.h: ... here.
9598         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
9599         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
9600
9601         * sysdeps/sparc/elf/configure.in: Moved to ...
9602         * sysdeps/sparc/configure.in: ... here.
9603         * sysdeps/sparc/elf/configure: Delete file.
9604         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
9605         * sysdeps/sparc/sparc32/start.S: ... here.
9606         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
9607         * sysdeps/sparc/sparc64/start.S: ... here.
9608         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
9609         * sysdeps/sparc/sparc32/Makefile: ... this.
9610         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
9611         * sysdeps/sparc/sparc64/Makefile: ... this.
9612
9613         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
9614         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
9615         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
9616         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
9617         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
9618         * sysdeps/s390/s390-32/setjmp.S: ... here.
9619         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
9620         * sysdeps/s390/s390-32/configure.in: ... here.
9621         * sysdeps/s390/s390-32/elf/configure: Delete file.
9622         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
9623         * sysdeps/s390/s390-32/start.S: ... here.
9624
9625         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
9626         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
9627         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
9628         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
9629         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
9630         * sysdeps/s390/s390-64/setjmp.S: ... here.
9631         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
9632         * sysdeps/s390/s390-64/configure.in: ... here
9633         * sysdeps/s390/s390-64/elf/configure: Delete file.
9634         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
9635         * sysdeps/s390/s390-64/start.S: ... here.
9636         * sysdeps/s390/s390-64/elf/configure: Delete.
9637
9638         * configure.in: Remove support for elf directories in sysdeps.
9639
9640         * configure: Regenerated.
9641         * sysdeps/i386/configure: Regenerated.
9642         * sysdeps/powerpc/powerpc32/configure: Regenerated.
9643         * sysdeps/powerpc/powerpc64/configure: Regenerated.
9644         * sysdeps/s390/s390-32/configure: Regenerated.
9645         * sysdeps/s390/s390-64/configure: Regenerated.
9646         * sysdeps/sh/configure: Regenerated.
9647         * sysdeps/sparc/configure: Regenerated.
9648         * sysdeps/x86_64/configure: Regenerated.
9649
9650 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
9651
9652         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9653
9654         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
9655         denormal result into account.
9656
9657 2012-03-25  Roland McGrath  <roland@hack.frob.com>
9658
9659         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
9660         Reported by Allan McRae <allan@archlinux.org>.
9661
9662 2012-03-23  Jeff Law  <law@redhat.com>
9663
9664         * nss/getnssent.c (__nss_getent): Fix typo.
9665
9666 2012-03-23  David S. Miller  <davem@davemloft.net>
9667
9668         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9669
9670 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
9671
9672         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
9673         to pad to uint64_t for each field.
9674         (dl_tls_index): Replace unsigned long with uint64_t.
9675
9676 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
9677         Paul Pluzhnikov  <ppluzhnikov@google.com>
9678
9679         [BZ #6528]
9680         * grp/Makefile (otherlibs): Don't set it.
9681         * inet/Makefile (otherlibs): Likewise.
9682         * login/Makefile (otherlibs): Likewise.
9683         * nscd/Makefile (otherlibs): Likewise.
9684         * posix/Makefile (otherlibs): Likewise.
9685         * pwd/Makefile (otherlibs): Likewise.
9686         * rt/Makefile (otherlibs): Likewise.
9687         * sunrpc/Makefile (otherlibs): Likewise.
9688         * nss/Makefile (otherlibs): Likewise.
9689         Add libnss_files to routines and static-only-routines.
9690         ($(objpfx)getent): Remove rule.
9691         * resolv/Makefile: Add libnss_dns and libresolv to routines and
9692         static-only-routines.
9693
9694 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
9695
9696         [BZ #13892]
9697         * math/s_cexp.c: Include <float.h>.
9698         (__cexp): Handle exp result overflowing not necessarily
9699         overflowing both real and imaginary parts of result.
9700         * math/s_cexpf.c: Likewise.
9701         * math/s_cexpl.c: Likewise.
9702         * math/libm-test.inc (cexp_test): Add more tests.
9703         * sysdeps/i386/fpu/libm-test-ulps: Update.
9704         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9705
9706 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
9707
9708         * include/link.h (ELFW): New macro.
9709         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
9710         Replace ELF64_R_TYPE with ELFW(R_TYPE).
9711
9712 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
9713
9714         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
9715         with uint64_t.
9716
9717 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
9718
9719         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
9720         declaration.
9721         (struct La_x32_retval): Likewise.
9722
9723 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
9724
9725         * sysdeps/x86_64/preconfigure.in: New file.
9726         * sysdeps/x86_64/preconfigure: New generated file.
9727
9728 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
9729
9730         [BZ #13824]
9731         * math/e_exp2l.c: Include <float.h>.
9732         (__ieee754_exp2l): Handle overflow and underflow cases
9733         separately.  Only pass fractional part of argument to
9734         __ieee754_expl.
9735         * math/libm-test.inc (exp2_test): Add more tests.
9736
9737         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
9738         negating x to take absolute value.
9739         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
9740         Likewise.
9741         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
9742         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
9743         Likewise.
9744         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
9745         computing low part if x was negated.
9746         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
9747
9748 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
9749
9750         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
9751         la_x32_gnu_pltexit.
9752         (pltexit): Cast int_retval to ptrdiff_t.
9753         * elf/tst-auditmod3b.c: Likewise.
9754         * elf/tst-auditmod4b.c: Likewise.
9755         * elf/tst-auditmod5b.c: Likewise.
9756         * elf/tst-auditmod6b.c: Likewise.
9757         * elf/tst-auditmod6c.c: Likewise.
9758         * elf/tst-auditmod7b.c: Likewise.
9759
9760         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
9761         and x32_gnu_pltexit.
9762
9763         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
9764         __ELF_NATIVE_CLASS.
9765         (La_x32_regs): New macro.
9766         (La_x32_retval): Likewise.
9767         (la_x32_gnu_pltenter): New function prototype.
9768         (la_x32_gnu_pltexit): Likewise.
9769
9770 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
9771
9772         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
9773         exponent.
9774
9775         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9776
9777         * configure.in (libc_cv_cc_nofma): Check for option to disable
9778         generation of FMA instructions.
9779         * configure: Regenerate.
9780         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
9781         * sysdeps/ieee754/dbl-64/Makefile: New file.
9782         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
9783         Remove brandred-fma4.
9784         (CFLAGS-brandred-fma4.c): Remove.
9785         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
9786         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
9787         define.
9788         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
9789         define.
9790
9791 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
9792
9793         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
9794         LLONG_MAX != LONG_MAX.
9795         (_itoa_word): Use _ITOA_WORD_TYPE on value.
9796         (_fitoa_word): Likewise.
9797         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
9798         LLONG_MAX != LONG_MAX.
9799         * stdio-common/_itowa.h: Include <_itoa.h>.
9800         (_itowa_word): Use _ITOA_WORD_TYPE on value.
9801         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
9802         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
9803         only if not defined.
9804         (_ITOA_WORD_TYPE): Likewise.
9805         (_itoa_word): Use _ITOA_WORD_TYPE on value.
9806         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
9807
9808 2012-03-21  David S. Miller  <davem@davemloft.net>
9809
9810         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9811
9812 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
9813
9814         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
9815         of x86_64 when setting libc_cv_slibdir, libdir and
9816         libc_cv_localedir.
9817         * sysdeps/unix/sysv/linux/configure: Regenerated.
9818
9819 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
9820
9821         * manual/lang.texi (Old Varargs): Remove section.
9822         (How Variadic): Update menu.
9823         (va_start): Do not mention varargs.h.
9824
9825 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
9826             Joseph Myers  <joseph@codesourcery.com>
9827
9828         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
9829         link test.
9830         * configure: Regenerated.
9831
9832 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
9833
9834         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
9835         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
9836         conformtest.pl
9837
9838 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
9839
9840         * NOTES: Remove.
9841         * Makefile (files-for-dist): Remove NOTES.
9842         (NOTES): Remove rule.
9843         * README: Don't refer to NOTES.
9844         * manual/creature.texi: Don't include macros.texi.
9845         * manual/intro.texi (creature.texi): Remove comment referring to
9846         NOTES.
9847
9848         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
9849         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
9850         * configure: Regenerated.
9851         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
9852         LIBC_TRY_CC_OPTION.
9853         (libc_cv_as_i686): Likewise.
9854         (libc_cv_cc_avx): Likewise.
9855         (libc_cv_cc_sse2avx): Likewise.
9856         (libc_cv_cc_fma4): Likewise.
9857         (libc_cv_cc_novzeroupper): Likewise.
9858         * sysdeps/i386/configure: Regenerated.
9859
9860         [BZ #13883]
9861         * sysdeps/i386/fpu/s_cexp.S: Remove.
9862         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
9863         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
9864         * math/libm-test.inc (cexp_test): Add more tests.
9865         * sysdeps/i386/fpu/libm-test-ulps: Update.
9866         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9867
9868 2012-03-21  Allan McRae  <allan@archlinux.org>
9869
9870         * timezone/Makefile: Do not install iso3166.tab and zone.tab
9871
9872 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
9873
9874         [BZ #13871]
9875         * math/w_exp2.c: Do not include <float.h>.
9876         (o_threshold, u_threshold): Remove.
9877         (__exp2): Calculate result before checking finiteness and calling
9878         __kernel_standard.
9879         * math/w_exp2f.c: Likewise.
9880         * math/w_exp2l.c: Likewise.
9881         * math/libm-test.inc (exp2_test): Require overflow exception for
9882         1e6 input.
9883
9884         [BZ #3866]
9885         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
9886         range of signed 64-bit integers before using fistpll.  Remove
9887         checks for whether integers fit in mantissa bits.
9888         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
9889         the range of signed 32-bit integers before using fistpl.  Remove
9890         checks for whether integers fit in mantissa bits.
9891         * sysdeps/i386/fpu/e_powl.S (p64): New object.
9892         (__ieee754_powl): Test for y outside the range of signed 64-bit
9893         integers before using fistpll.  Reduce 64-bit values to 63-bit
9894         ones as needed.
9895         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
9896         divide-by-zero is raised for zero to large negative powers.
9897         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
9898         (__ieee754_powl): Test for y outside the range of signed 64-bit
9899         integers before using fistpll.  Reduce 64-bit values to 63-bit
9900         ones as needed.
9901         * math/libm-test.inc (pow_test): Add more tests.
9902
9903 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
9904
9905         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
9906         <stdio-common/_itoa.h>.
9907         * debug/segfault.c: Likewise.
9908         * elf/dl-cache.c: Likewise.
9909         * elf/dl-minimal.c: Likewise.
9910         * elf/dl-misc.c: Likewise.
9911         * elf/dl-sysdep.c: Likewise.
9912         * elf/dl-version.c: Likewise.
9913         * elf/rtld.c: Likewise.
9914         * hurd/hurdsock.c: Likewise.
9915         * hurd/lookup-retry.c: Likewise.
9916         * malloc/malloc.c: Likewise.
9917         * malloc/mtrace.c: Likewise.
9918         * nscd/nscd_getgr_r.c: Likewise.
9919         * nscd/nscd_getpw_r.c: Likewise.
9920         * nscd/nscd_getserv_r.c: Likewise.
9921         * posix/getopt_init.c: Likewise.
9922         * posix/wordexp.c: Likewise.
9923         * stdio-common/_itoa.c: Likewise.
9924         * stdio-common/printf_fphex.c: Likewise.
9925         * stdio-common/vfprintf.c: Likewise.
9926         * string/_strerror.c: Likewise.
9927         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
9928         * sysdeps/i386/i686/hp-timing.h: Likewise.
9929         * sysdeps/mach/_strerror.c: Likewise.
9930         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
9931         * sysdeps/mach/hurd/sethostid.c: Likewise.
9932         * sysdeps/mach/hurd/xmknodat.c: Likewise.
9933         * sysdeps/mach/xpg-strerror.c: Likewise.
9934         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
9935         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
9936         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
9937         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
9938         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
9939         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
9940         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
9941         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
9942         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
9943         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
9944         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
9945         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
9946         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
9947         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
9948         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
9949         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
9950         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
9951         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
9952         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
9953         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
9954         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
9955
9956         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
9957
9958         * stdio-common/_itoa.h: Moved to ...
9959         * sysdeps/generic/_itoa.h: Here.
9960
9961         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
9962
9963         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
9964         instead of "_itoa.h" and "_itowa.h".
9965         * stdio-common/vfprintf.: Likewise.
9966
9967 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
9968
9969         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
9970         <bits/wordsize.h>.
9971         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
9972         (__signbit): Likwise.
9973         (llrintf): Likwise.
9974         (llrint): Likwise.
9975
9976 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
9977
9978         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
9979         __WORDSIZE != 64.
9980
9981 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
9982
9983         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
9984         OVERFLOW_EXCEPTION_OK.
9985         * math/libm-test.inc ("Philosophy"): Update comment about
9986         exception testing.
9987         (OVERFLOW_EXCEPTION): Define.
9988         (OVERFLOW_EXCEPTION_OK): Likewise.
9989         (INVALID_EXCEPTION_OK): Renumber.
9990         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
9991         (IGNORE_ZERO_INF_SIGN): Likewise.
9992         (test_exceptions): Handle FE_OVERFLOW.
9993         (exp10_test): Expect overflow exceptions.
9994         (exp2_test): Likewise.
9995         (expm1_test): Likewise.
9996         (nextafter_test): Likewise.
9997         (pow_test): Likewise.
9998         (scalbn_test): Likewise.
9999         (scalbln_test): Likewise.
10000
10001 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10002
10003         * sysdeps/x86_64/bits/atomic.h
10004         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
10005         64bit integer.
10006         (atomic_exchange_acq): Likewise.
10007         (__arch_exchange_and_add_body): Likewise.
10008         (__arch_add_body): Likewise.
10009         (atomic_add_negative): Likewise.
10010         (atomic_add_zero): Likewise.
10011
10012 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10013
10014         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
10015         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
10016
10017 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10018
10019         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
10020         Check __x86_64__ instead of __WORDSIZE.
10021
10022 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10023
10024         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
10025
10026 2012-03-19  David S. Miller  <davem@davemloft.net>
10027
10028         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10029
10030         * sysdeps/sparc/fpu/fenv_private.h: New file.
10031         * sysdeps/sparc/fpu/math_private.h: Use it.
10032         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
10033         Remove.
10034         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
10035         (libc_feholdexcept_setroundl): Remove.
10036         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
10037         Remove.
10038         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
10039         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
10040
10041 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10042
10043         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
10044         int64_t instead of long int.
10045         (INSERT_WORDS64): Likwise.
10046
10047 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10048
10049         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
10050         _Unwind_GetCFA return to _Unwind_Ptr first.
10051
10052 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
10053
10054         [BZ #13629]
10055         * math/s_clog.c: Include <float.h>.
10056         (__clog): Scale large or subnormal inputs.
10057         * math/s_clogf.c: Likewise.
10058         * math/s_clogl.c: Likewise.
10059         * math/s_clog10.c: Include <float.h>.
10060         (M_LOG10_2): Define.
10061         (__clog10): Scale large or subnormal inputs.
10062         * math/s_clog10f.c: Likewise.
10063         * math/s_clog10l.c: Likewise.
10064         * math/libm-test.inc (clog_test): Add more tests.
10065         (clog10_test): Likewise.
10066         * sysdeps/i386/fpu/libm-test-ulps: Update.
10067         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10068
10069         [BZ #11451]
10070         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
10071         x and y.
10072         * math/libm-test.inc (atan2_test): Add another test.
10073
10074         * Makerules (common-objdir-compile): Remove.
10075         * sysdeps/unix/Makefile (config-generated): Do not add
10076         $(unix-generated) to variable.
10077         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
10078         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
10079         Remove rule.
10080         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
10081         Likewise.
10082         [generic bits/local_lim.h] (before-compile): Do not append to
10083         variable.
10084         [generic bits/local_lim.h] (common-generated): Likewise.
10085         [generic sys/param.h] (before-compile): Do not append to variable.
10086         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
10087         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
10088         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
10089         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
10090         include.
10091         [generic sys/param.h] (sys/param.h-includes): Remove variable.
10092         [generic sys/param.h] (sys/param.h-includes): Remove rule.
10093         [generic sys/param.h] ($(addprefix
10094         $(common-objpfx),$(sys/param.h-includes))): Likewise.
10095         [generic sys/param.h] (common-generated): Do not append to
10096         variable.
10097         [generic sys/param.h] (sysdep_headers): Likewise.
10098         [generic bits/errno.h] (before-compile): Do not append to
10099         variable.
10100         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
10101         rule.
10102         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
10103         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
10104         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
10105         [generic bits/errno.h] (common-generated): Do not append to
10106         variable.
10107         [generic bits/ioctls.h] (before-compile): Do not append to
10108         variable.
10109         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
10110         rule.
10111         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
10112         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
10113         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
10114         rule.
10115         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
10116         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
10117         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
10118         [generic bits/ioctls.h] (common-generated): Do not append to
10119         variable.
10120         [generic sys/syscall.h] (syscall.h): Remove variable.
10121         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
10122         rule.
10123         [generic sys/syscall.h] (before-compile): Do not append to
10124         variable.
10125         [generic sys/syscall.h] (common-generated): Likewise.
10126         * sysdeps/unix/errnos-tmpl.c: Remove file.
10127         * sysdeps/unix/errnos.awk: Likewise.
10128         * sysdeps/unix/ioctls-tmpl.c: Likewise.
10129         * sysdeps/unix/ioctls.awk: Likewise.
10130         * sysdeps/unix/mk-local_lim.c: Likewise.
10131         * sysdeps/unix/snarf-ioctls: Likewise.
10132
10133 2012-03-19  Richard Henderson  <rth@twiddle.net>
10134
10135         * sysdeps/i386/fpu/fenv_private.h: New file.
10136         * sysdeps/i386/fpu/math_private.h: Use it.
10137         (math_opt_barrier, math_force_eval): Remove.
10138         (libc_feholdexcept_setround_53bit): Remove.
10139         (libc_feupdateenv_53bit): Remove.
10140         * sysdeps/x86_64/fpu/math_private.h: Likewise.
10141         (math_opt_barrier, math_force_eval): Remove.
10142         (libc_feholdexcept): Remove.
10143         (libc_feholdexcept_setround): Remove.
10144         (libc_fetestexcept, libc_fesetenv): Remove.
10145         (libc_feupdateenv_test): Remove.
10146         (libc_feupdateenv, libc_feholdsetround): Remove.
10147         (libc_feresetround): Remove.
10148
10149         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
10150         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
10151
10152         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
10153         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
10154         (libc_feupdateenv_testl): New.
10155         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
10156         (libc_feupdateenv_testf): New.
10157         (libc_feupdateenv): Use libc_feupdateenv_test.
10158         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
10159         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
10160
10161         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
10162         (libc_feholdsetroundf, libc_feholdsetroundl): New.
10163         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
10164         (libc_feresetround_noex): New.
10165         (libc_feresetround_noexf): New.
10166         (libc_feresetround_noexl): New.
10167         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
10168         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
10169         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
10170         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
10171         SET_RESTORE_ROUND.
10172         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
10173         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
10174         (__cos): Likewise.
10175         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
10176         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
10177         SET_RESTORE_ROUND_NOEX.
10178         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
10179         SET_RESTORE_ROUND_NOEXF.
10180         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
10181         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
10182         (libc_feholdsetroundf): New.
10183         (libc_feresetround, libc_feresetroundf): New.
10184
10185         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
10186         (libc_feholdexcept_setround_53bit): Convert from macro to function.
10187         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
10188
10189         * sysdeps/generic/math_private.h: Include <fenv.h>.
10190         (default_libc_feholdexcept): New.
10191         (default_libc_feholdexcept_setround): New.
10192         (default_libc_fesetenv, default_libc_feupdateenv): New.
10193         (libc_feholdexcept): Only define if undefined.
10194         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
10195         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
10196         (libc_feholdexcept_setroundl): Likewise.
10197         (libc_feholdexcept_setround_53bit): Likewise.
10198         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
10199         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
10200         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
10201         (libc_feupdateenv_53bit): Likewise.
10202         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
10203         (libc_feholdexcept): Convert from macro to inline function.
10204         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
10205         (libc_fesetenv, libc_feupdateenv): Likewise.
10206
10207         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
10208         not previously defined.
10209         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
10210         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
10211         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
10212         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
10213         * sysdeps/ieee754/flt-32/math_private.h: New file.
10214         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
10215         math_private.h below SET_FLOAT_WORD.
10216         (__isnan, __isinf_ns, __finite): Remove.
10217         (__isnanf, __isinf_nsf, __finitef): Remove.
10218
10219 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
10220
10221         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10222
10223 2012-03-17  David S. Miller  <davem@davemloft.net>
10224
10225         [BZ #6471]
10226         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
10227         for 2.16.
10228
10229 2012-03-16  David S. Miller  <davem@davemloft.net>
10230
10231         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
10232         warnings.
10233
10234         [BZ #6471]
10235         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
10236         properly.
10237         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
10238         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
10239         sysdep_routines when subdir is sysvipc.
10240         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
10241         __getshmlba helper.
10242
10243         * sysdeps/sparc/fpu/libm-test/ulps: Update.
10244
10245 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10246
10247         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
10248         [__LP64__].
10249
10250 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10251
10252         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
10253         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
10254         (__lround): Renamed to ...
10255         (__llround): This.  Replace long int with long long int.
10256         Define lround functions as aliases of llround functions.
10257         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
10258
10259 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10260
10261         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
10262         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
10263         adresses to uintptr_t.  Replace "long int" and "unsigned long
10264         int" with "greg_t" on va_arg.
10265
10266 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10267
10268         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
10269         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
10270
10271         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
10272         Move e_machine check before EI_CLASS check.  Handle x32
10273         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
10274         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
10275         SKIP_EM_IA_64 and include
10276         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
10277
10278         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
10279         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
10280         (add_system_dir): New macro.
10281
10282         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
10283         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
10284
10285 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
10286
10287         [BZ #2551]
10288         [BZ #2552]
10289         [BZ #2553]
10290         [BZ #2554]
10291         [BZ #2562]
10292         [BZ #2563]
10293         [BZ #2565]
10294         [BZ #2566]
10295         [BZ #2576]
10296         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
10297         (y0): Likewise.
10298         * math/w_j0f.c (j0f): Likewise.
10299         (y0f): Likewise.
10300         * math/w_j0l.c (__j0l): Likewise.
10301         (__y0l): Likewise.
10302         * math/w_j1.c (j1): Likewise.
10303         (y1): Likewise.
10304         * math/w_j1f.c (j1f): Likewise.
10305         (y1f): Likewise.
10306         * math/w_j1l.c (__j1l): Likewise.
10307         (__y1l): Likewise.
10308         * math/w_jn.c (jn): Likewise.
10309         (yn): Likewise.
10310         * math/w_jnf.c (jnf): Likewise.
10311         (ynf): Likewise.
10312         * math/w_jnl.c (__jnl): Likewise.
10313         (__ynl): Likewise.
10314         * math/libm-test.inc (j0_test): Add more tests.
10315         (j1_test): Likewise.
10316         (jn_test): Likewise.  Add trailing semicolon to existing test.
10317         (y0_test): Likewise.
10318         (y1_test): Likewise.
10319         * sysdeps/i386/fpu/libm-test-ulps: Update.
10320         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10321
10322         [BZ #13851]
10323         [BZ #13854]
10324         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
10325         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
10326         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
10327         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
10328         (__tanl): Set errno for infinite argument.
10329         * sysdeps/i386/fpu/mptan.c: Remove.
10330         * sysdeps/i386/fpu/s_tan.S: Likewise.
10331         * sysdeps/i386/fpu/s_tanl.S: Likewise.
10332         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
10333         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
10334         * math/libm-test.inc (tan_test): Add more tests and enable more
10335         tests for double and long double.
10336         * sysdeps/i386/fpu/libm-test-ulps: Update.
10337         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10338
10339 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
10340
10341         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
10342         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
10343
10344 2012-03-16  Roland McGrath  <roland@hack.frob.com>
10345
10346         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
10347         * configure.in: Use it for both main tree and add-ons.
10348         * configure: Regenerated.
10349
10350 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10351
10352         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
10353
10354 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
10355
10356         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
10357         in comment.
10358
10359         [BZ #13851]
10360         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
10361         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
10362         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
10363         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
10364         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
10365         infinite argument.
10366         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
10367         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
10368         != 0 for prec == 2.
10369         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
10370         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
10371         * sysdeps/i386/fpu/s_cosl.S: Likewise.
10372         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
10373         * sysdeps/i386/fpu/s_sinl.S: Likewise.
10374         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
10375         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
10376         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
10377         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
10378         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
10379         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
10380         * math/libm-test.inc (cos_test): Add more tests and enable more
10381         tests for long double.
10382         (sin_test): Likewise.
10383         (sincos_test): Likewise.
10384         * sysdeps/i386/fpu/libm-test-ulps: Update.
10385         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10386
10387 2012-03-16  David S. Miller  <davem@davemloft.net>
10388
10389         * sysdeps/sparc/fpu/math_private.h: New file.
10390
10391 2012-03-15  David S. Miller  <davem@davemloft.net>
10392
10393         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
10394         file.
10395         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
10396         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
10397         file.
10398         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
10399         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
10400         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
10401         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
10402         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
10403         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
10404         sysdep routines.
10405         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
10406
10407         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
10408         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
10409
10410         * sysdeps/sparc/sparc-ifunc.h: New file.
10411         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
10412         sparc-ifunc.h
10413         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
10414         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
10415         Likewise.
10416         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
10417         Likewise.
10418         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
10419         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
10420         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
10421         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
10422         Likewise.
10423         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
10424         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
10425         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
10426         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
10427         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
10428         Likewise.
10429         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
10430         Likewise.
10431         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
10432         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
10433         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
10434         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
10435         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
10436         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
10437         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
10438         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
10439         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
10440         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
10441         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
10442         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
10443         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
10444         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
10445         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
10446         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
10447         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
10448         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
10449         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
10450         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
10451         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
10452         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
10453         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
10454         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
10455
10456 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
10457
10458         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
10459         scaling.
10460         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10461
10462 2012-03-15  Andreas Jaeger  <aj@suse.de>
10463
10464         [BZ #13852]
10465         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
10466         ieee754/flt-32 implementation for sin, cos and sincos.
10467         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
10468         * sysdeps/i386/fpu/s_cosf.S: Likewise.
10469         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
10470         * sysdeps/i386/fpu/s_sinf.S: Likewise.
10471         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
10472         ieee754/flt-32 implementation for tan.
10473
10474         * math/libm-test.inc (cos_test): Enable some large input tests for
10475         float as well
10476         (sin_test): Likewise.
10477         (sincos_test): Likewise.
10478         (tan_test): Add tests for large input.
10479
10480         * sysdeps/i386/fpu/libm-test-ulps: Update.
10481
10482 2012-03-15  Andreas Jaeger  <aj@suse.de>
10483
10484         [BZ #13658]
10485         * math/libm-test.inc (cos_test): Add more test cases.
10486         (sin_test): Likewise.
10487         (sincos_test): Likewise.
10488
10489 2012-03-15  Andreas Jaeger  <aj@suse.de>
10490
10491         [BZ #13837]
10492         * math/libm-test.inc (cos_test): Add a test case for large input
10493         value.
10494         (sin_test): Likewise.
10495         (sincos_test): Likewise.
10496
10497 2012-03-15  Andreas Jaeger  <aj@suse.de>,
10498         Joseph Myers  <joseph@codesourcery.com>
10499
10500         [BZ #13658]
10501         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
10502         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
10503         * sysdeps/i386/fpu/branred.c: Likewise.
10504         * sysdeps/i386/fpu/dosincos.c: Likewise.
10505         * sysdeps/i386/fpu/mpa.c: Likewise.
10506         * sysdeps/i386/fpu/s_cos.S: Likewise.
10507         * sysdeps/i386/fpu/s_sin.S: Likewise.
10508         * sysdeps/i386/fpu/s_sincos.S: Likewise.
10509         * sysdeps/i386/fpu/sincos32.c: Likewise.
10510
10511         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
10512         Define.
10513         (libc_feupdateenv_53bit): Define.
10514         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
10515         Define.
10516         (libc_feupdateenv_53bit): Define.
10517
10518         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
10519         53 bit (without extend i386 double precision).
10520
10521         * math/libm-test.inc (sincos_test): Add tests for large input.
10522         (sin): Likewise.
10523         (cos): Likewise.
10524
10525         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
10526
10527 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
10528
10529         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10530
10531 2012-03-15  David S. Miller  <davem@davemloft.net>
10532
10533         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
10534         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
10535         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
10536         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
10537         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
10538         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
10539         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
10540         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
10541         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
10542         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
10543         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
10544         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
10545         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
10546         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
10547         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
10548         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
10549         file.
10550         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
10551         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
10552         file.
10553         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
10554         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
10555         file.
10556         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
10557         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
10558         file.
10559         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
10560         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
10561         fmin/fmax sysdep routines.
10562         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
10563
10564 2012-03-14  David S. Miller  <davem@davemloft.net>
10565
10566         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
10567         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
10568         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
10569         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
10570         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
10571         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
10572         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
10573         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
10574         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
10575         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
10576         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
10577         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
10578         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
10579         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
10580         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
10581         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
10582         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
10583         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
10584         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
10585         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
10586         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
10587         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
10588         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
10589         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
10590         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
10591         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
10592         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
10593         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
10594         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
10595         routines.
10596         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
10597         file.
10598         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
10599         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
10600         file.
10601         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
10602         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
10603         file.
10604         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
10605         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
10606         file.
10607         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
10608         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
10609         file.
10610         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
10611         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
10612         file.
10613         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
10614         file.
10615         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
10616         file.
10617         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
10618         file.
10619         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
10620         New file.
10621         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
10622         file.
10623         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
10624         file.
10625         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
10626         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
10627         file.
10628         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
10629         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
10630         file.
10631         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
10632         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
10633         file.
10634         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
10635         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
10636         VIS3 routines.
10637
10638         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
10639         New file.
10640
10641         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10642
10643         * sysdeps/sparc/configure.in: New file.
10644         * sysdeps/sparc/configure: Generate.
10645         * configure.in (libc_cv_sparc_as_vis3): Substitute.
10646         * configure: Regenerate.
10647         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
10648         * config.make.in (have-as-vis3): New.
10649         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
10650         available use -Av9d instead of -Av9a.
10651         * sysdeps/sparc/sparc64/Makefile: Likewise.
10652         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
10653         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
10654         New file.
10655         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
10656         file.
10657         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
10658         New file.
10659         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
10660         file.
10661         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
10662         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
10663         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
10664         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
10665         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
10666
10667         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
10668         fzeros/fnegs to load 0x80000000 into a float register instead of
10669         using the stack.
10670         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
10671
10672 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
10673
10674         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
10675         bits/syscall.h.
10676         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
10677         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
10678         ($(inst_includedir)/bits/syscall.h): Remove rule.
10679         ($(objpfx)bits/syscall.d): Include instead of
10680         $(objpfx)syscall-list.d.
10681         (generated): Change syscall-list.h and syscall-list.d to
10682         bits/syscall.h and bits/syscall.d.
10683
10684 2012-03-14  Roland McGrath  <roland@hack.frob.com>
10685
10686         [BZ #13846]
10687         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
10688
10689 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
10690
10691         [BZ #13841]
10692         * math/s_csqrt.c: Include <float.h>.
10693         (__csqrt): Scale large or subnormal inputs.
10694         * math/s_csqrtf.c: Likewise.
10695         * math/s_csqrtl.c: Likewise.
10696         * math/libm-test.inc (csqrt_test): Add more tests.
10697         * sysdeps/i386/fpu/libm-test-ulps: Update.
10698         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10699
10700         [BZ #13840]
10701         * math/libm-test.inc (hypot_test): Add more tests.
10702
10703 2012-03-13  David S. Miller  <davem@davemloft.net>
10704
10705         [BZ #13840]
10706         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
10707         double-precision for the calculation instead of scaling.
10708
10709 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
10710
10711         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
10712         manipulate bits before adding and subtracting TWO52[sx].
10713         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
10714         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
10715         Likewise.
10716         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
10717
10718 2012-03-13  David S. Miller  <davem@davemloft.net>
10719
10720         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
10721         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
10722         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
10723         rtld-global-offsets.h
10724         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
10725
10726         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
10727         large parameters.
10728
10729         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
10730
10731         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
10732         'err' in the ifdef scope in which it is actually used.
10733
10734         * nss/nss_db/db-init.c: Include string.h
10735
10736 2012-03-12  David S. Miller  <davem@davemloft.net>
10737
10738         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
10739         masking out of the most significant byte of random value used.
10740         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
10741         Fix coding style in previous change.
10742
10743         * sysdeps/unix/sysv/linux/kernel-features.h
10744         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
10745         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
10746         expression.
10747         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
10748         later.
10749
10750 2012-03-11  David S. Miller  <davem@davemloft.net>
10751
10752         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
10753         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
10754         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
10755         for 'resultvar' otherwise things get truncated on 64-bit.
10756
10757         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
10758         Fix masking out of the most significant byte of random value used.
10759
10760         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10761
10762 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
10763
10764         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10765
10766 2012-03-09  David S. Miller  <davem@davemloft.net>
10767
10768         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
10769         variables with appropriate CPP guards.
10770         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
10771         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
10772         on resulting framesize and the management of the outregs buffer for pltexit.
10773         Preserve floating point return values across _dl_call_pltexit call.
10774         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
10775         framesize and the management of the outregs buffer for pltexit.
10776         Preserve floating point return values across _dl_call_pltexit
10777         call.
10778         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
10779         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
10780         (print_exit): Fix format string for return register value.
10781
10782 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
10783
10784         * sunrpc/Makefile (others): Add rpcgen.
10785         ($(objpfx)rpcgen): Remove special build rule and dependency on
10786         libc.
10787         * sunrpc/rpcgen.c: New file.
10788
10789 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
10790
10791         [BZ #13673]
10792         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
10793         * stdio-common/bug-vfprintf-nargs.c: Likewise.
10794         * sysdeps/i386/crti.S: Likewise.
10795         * sysdeps/i386/crtn.S: Likewise.
10796         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
10797         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
10798         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
10799         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
10800         * sysdeps/sh/crti.S: Likewise.
10801         * sysdeps/sh/crtn.S: Likewise.
10802         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
10803
10804         [BZ #13673]
10805         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
10806         with URL.
10807         * locale/programs/locfile-kw.gperf: Likewise.
10808         * locale/programs/charmap-kw.h: Regenerated.
10809         * locale/programs/locfile-kw.h: Likewise.
10810
10811         [BZ #13673]
10812         * intl/plural.y: Replace FSF snail mail address with URL.
10813         * intl/plural.c: Regenerated.
10814
10815 2012-03-09  Richard Henderson  <rth@twiddle.net>
10816
10817         * include/math_private.h: Remove file.
10818         * math/math_private.h: Move file ...
10819         * sysdeps/generic/math_private.h: ... here.
10820
10821         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
10822         * sysdeps/powerpc/fpu/math_private.h: Likewise.
10823         * sysdeps/x86_64/fpu/math_private.h: Likewise.
10824
10825         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
10826         and <math_private.h>.
10827         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
10828         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
10829         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
10830         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
10831         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
10832         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
10833         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
10834         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
10835         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
10836         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
10837         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
10838         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
10839         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
10840         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
10841         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
10842         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
10843         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
10844         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
10845         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
10846         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
10847         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
10848         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
10849         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
10850         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
10851         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
10852         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
10853         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
10854         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
10855         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
10856         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
10857         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
10858         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
10859         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
10860         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
10861         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
10862         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
10863         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
10864         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
10865         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
10866         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
10867         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
10868         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
10869         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
10870         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
10871         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
10872         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
10873         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
10874         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
10875         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
10876         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
10877         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
10878         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
10879         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
10880         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
10881         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
10882         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
10883         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
10884         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
10885         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
10886         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
10887         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
10888         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
10889         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
10890         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
10891         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
10892         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
10893         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
10894         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
10895         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
10896         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
10897         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
10898         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
10899         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
10900         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
10901         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
10902         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
10903         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
10904         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
10905         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
10906         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
10907         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
10908         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
10909         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
10910         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
10911         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
10912         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
10913         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
10914         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
10915         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
10916         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
10917         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
10918         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
10919         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
10920         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
10921         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
10922         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
10923         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
10924         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
10925         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
10926         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
10927         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
10928         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
10929         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
10930         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
10931         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
10932         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
10933         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
10934         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
10935         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
10936         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
10937         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
10938         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
10939         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
10940         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
10941         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
10942         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
10943         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
10944         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
10945         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
10946         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
10947         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
10948         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
10949         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
10950         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
10951         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
10952         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
10953         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
10954         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
10955         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
10956         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
10957         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
10958         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
10959         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
10960         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
10961         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
10962         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
10963         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
10964         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
10965         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
10966         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
10967         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
10968         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
10969         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
10970         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
10971         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
10972         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
10973         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
10974         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
10975         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
10976         * sysdeps/ieee754/k_standard.c: Likewise.
10977         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
10978         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
10979         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
10980         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
10981         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
10982         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
10983         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
10984         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
10985         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
10986         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
10987         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
10988         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
10989         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
10990         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
10991         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
10992         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
10993         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
10994         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
10995         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
10996         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
10997         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
10998         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
10999         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
11000         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
11001         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
11002         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
11003         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
11004         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
11005         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
11006         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
11007         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
11008         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
11009         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
11010         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
11011         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
11012         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
11013         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
11014         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
11015         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
11016         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
11017         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
11018         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
11019         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
11020         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
11021         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
11022         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
11023         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
11024         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
11025         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
11026         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
11027         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
11028         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
11029         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
11030         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
11031         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
11032         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
11033         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
11034         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
11035         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
11036         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
11037         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
11038         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
11039         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
11040         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
11041         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
11042         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
11043         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
11044         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
11045         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
11046         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
11047         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
11048         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
11049         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
11050         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
11051         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
11052         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
11053         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
11054         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
11055         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
11056         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
11057         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
11058         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
11059         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
11060         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
11061         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
11062         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
11063         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
11064         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
11065         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
11066         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
11067         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
11068         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
11069         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
11070         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
11071         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
11072         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
11073         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
11074         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
11075         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
11076         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
11077         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
11078         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
11079         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
11080         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
11081         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
11082         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
11083         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
11084         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
11085         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
11086         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
11087         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
11088         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
11089         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
11090         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
11091         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
11092         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
11093         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
11094         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
11095         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
11096         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
11097         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
11098         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
11099         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
11100         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
11101         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
11102         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
11103         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
11104         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
11105         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
11106         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
11107         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
11108         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
11109         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
11110         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
11111         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
11112         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
11113         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
11114         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
11115         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
11116         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
11117         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
11118         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
11119         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
11120         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
11121         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
11122         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
11123         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
11124         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
11125         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
11126         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
11127         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
11128         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
11129         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
11130         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
11131         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
11132         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
11133         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
11134         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
11135         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
11136         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
11137         * sysdeps/ieee754/s_lib_version.c: Likewise.
11138         * sysdeps/ieee754/s_matherr.c: Likewise.
11139         * sysdeps/ieee754/s_signgam.c: Likewise.
11140         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
11141         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
11142         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
11143         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
11144         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
11145         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
11146         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
11147         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
11148         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
11149         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
11150         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
11151         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
11152         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
11153         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
11154         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
11155         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
11156         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
11157         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
11158         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
11159         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
11160         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
11161
11162 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
11163
11164         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
11165         * sunrpc/rpc_main.c: Likewise.
11166         * sunrpc/rpc_svcout.c: Likewise.
11167
11168 2012-03-09  David S. Miller  <davem@davemloft.net>
11169
11170         * include/math_private.h: New file.
11171
11172 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
11173
11174         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
11175         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
11176         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
11177         from <bits/socket_type.h>.
11178         (enum __socket_type): Don't define here.
11179         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
11180         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11181         bits/socket_type.h.
11182
11183         [BZ #13566]
11184         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
11185         checking __USE_GNU.
11186
11187         * Makerules ($(inst_includedir)/%.h): New rule.
11188         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
11189         (install-others): Remove variable setting.
11190         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
11191
11192 2012-03-08  Richard Henderson  <rth@twiddle.net>
11193
11194         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
11195         from macro to inline function; merge with the
11196         !__LIBC_INTERNAL_MATH_INLINES version.
11197         (__ieee754_sqrtf): Likewise.
11198
11199         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
11200         to inline function.
11201         (__rintf, __floor, __floorf): Likewise.
11202
11203         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
11204         macro to inline function.
11205         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
11206
11207         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
11208         not <math/math_private.h>.
11209
11210 2012-03-08  David S. Miller  <davem@davemloft.net>
11211
11212         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
11213         copyright year.
11214         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
11215
11216 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
11217
11218         * resolv/gai_misc.c (handle_requests): Fix struct timespec
11219         normalization.
11220         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
11221         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
11222
11223 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
11224
11225         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
11226         be defined individually, they must be defined as a block.  Define
11227         S for printing a string instead of hidint the different by using a
11228         macro for adding the 'l'.
11229         * stdio-common/tst-fphex-wide.c: Adjust.
11230
11231 2012-03-07  Marek Polacek  <polacek@redhat.com>
11232
11233         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
11234
11235 2012-03-08  Marek Polacek  <polacek@redhat.com>
11236
11237         [BZ #13806]
11238         * stdio-common/Makefile (tests): Add tst-fphex-wide.
11239         * stdio-common/tst-fphex.c: Define a few macros to make the
11240         test reusable.  Use them.
11241         * stdio-common/tst-fphex-wide.c: New file.
11242
11243 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
11244
11245         [BZ #6911]
11246         * manual/macros.texi (gnusystems): New macro.
11247         (nongnusystems): Likewise.
11248         (gnulinuxhurdsystems): Likewise.
11249         (gnuhurdsystems): Likewise..
11250         (gnulinuxsystems): Likewise.
11251         * manual/charset.texi: Use new macros or @theglibc{} to refer to
11252         variants of the GNU system, not "GNU system".
11253         * manual/conf.texi: Likewise.
11254         * manual/errno.texi: Likewise.  Update example of errno macro
11255         expansion.
11256         * manual/filesys.texi: Likewise.
11257         (getumask): Document as specific to GNU/Hurd.
11258         * manual/install.texi: Likewise.  Reword some references to
11259         GNU/Linux.
11260         * manual/intro.texi: Likewise.
11261         * manual/io.texi: Likewise.
11262         (File Name Portability): Detail which constraints are inapplicable
11263         to all GNU systems and which are only inapplicable to GNU/Hurd.
11264         * manual/job.texi: Likewise.
11265         * manual/llio.texi: Likewise.
11266         (O_NOCTTY): Document as present on GNU/Linux.
11267         * manual/maint.texi: Likewise.
11268         * manual/memory.texi: Likewise.
11269         * manual/pattern.texi: Likewise.
11270         * manual/pipe.texi: Likewise.
11271         * manual/process.texi: Likewise.
11272         * manual/resource.texi: Likewise.
11273         (RUSAGE_CHILDREN): Remove statement about specifying a particular
11274         child on GNU/Hurd.
11275         * manual/setjmp.texi: Likewise.
11276         * manual/signal.texi: Likewise.
11277         * manual/startup.texi: Likewise.
11278         * manual/stdio.texi: Likewise.
11279         * manual/terminal.texi: Likewise.
11280         (ONLCR): Document as POSIX.
11281         (OXTABS): Document availability on GNU/Linux as XTABS.
11282         (ONOEOT): Document availability separately from other bits.
11283         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
11284         * manual/time.texi: Likewise.
11285         * manual/users.texi: Likewise.
11286         * INSTALL: Regenerated.
11287         * sysdeps/gnu/errlist.c: Regenerated.
11288
11289         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
11290         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
11291         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
11292         puts.
11293         * configure: Regenerated.
11294
11295 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
11296
11297         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
11298         default includes instead of AC_HEADER_CHECK.
11299         * sysdeps/i386/configure: Regenerated.
11300
11301         [BZ #10716]
11302         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
11303         * math/s_cacoshf.c (__cacoshf): Likewise.
11304         * math/s_cacoshl.c (__cacoshl): Likewise.
11305         * math/s_casinh.c (__casinh): Set signs of result from argument.
11306         * math/s_casinhf.c (__casinhf): Likewise.
11307         * math/s_casinhl.c (__casinhl): Likewise.
11308         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
11309         (casinh_test): Add more tests.
11310         * sysdeps/i386/fpu/libm-test-ulps: Update.
11311         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11312
11313 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
11314
11315         * po/zh_TW.po: Update from translation team.
11316
11317         * login/Makefile (distribute): Remove variable.
11318         * catgets/Makefile: Likewise.
11319         * mach/Makefile: Likewise.
11320         * malloc/Makefile: Likewise.
11321         * misc/Makefile: Likewise.
11322         * iconv/Makefile: Likewise.
11323         * nscd/Makefile: Likewise.
11324         * hurd/Makefile: Likewise.
11325         * manual/Makefile: Likewise.
11326         * locale/Makefile: Likewise.
11327         * intl/Makefile: Likewise.
11328         * conform/Makefile: Likewise.
11329         * nss/Makefile: Likewise.
11330         * time/Makefile: Likewise.
11331         * soft-fp/Makefile: Likewise.
11332         * dirent/Makefile: Likewise.
11333         * gmon/Makefile: Likewise.
11334         * po/Makefile: Likewise.
11335         * rt/Makefile: Likewise.
11336         * socket/Makefile: Likewise.
11337         * math/Makefile: Likewise.
11338         * signal/Makefile: Likewise.
11339         * debug/Makefile: Likewise.
11340         * elf/Makefile: Likewise.
11341         * timezone/Makefile: Likewise.
11342         * stdlib/Makefile: Likewise.
11343         * iconvdata/Makefile: Likewise.
11344         * sunrpc/Makefile: Likewise.
11345         * io/Makefile: Likewise.
11346         * argp/Makefile: Likewise.
11347         * inet/Makefile: Likewise.
11348         * hesiod/Makefile: Likewise.
11349         * grp/Makefile: Likewise.
11350         * csu/Makefile: Likewise.
11351         * wctype/Makefile: Likewise.
11352         * crypt/Makefile: Likewise.
11353         * libio/Makefile: Likewise.
11354         * string/Makefile: Likewise.
11355         * nis/Makefile: Likewise.
11356         * resolv/Makefile: Likewise.
11357         * stdio-common/Makefile: Likewise.
11358         * wcsmbs/Makefile: Likewise.
11359         * dlfcn/Makefile: Likewise.
11360         * posix/Makefile: Likewise.
11361
11362         [BZ #6959]
11363         * timezone/Makefile: Don't install timezone files, just the programs
11364         and scripts.
11365
11366 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
11367
11368         * nss/databases.def: Add missing gshadow entry.
11369
11370         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
11371
11372 2012-03-06  Marek Polacek  <polacek@redhat.com>
11373
11374         [BZ #13726]
11375         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
11376         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
11377         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
11378         * stdio-common/tst-long-dbl-fphex.c: New file.
11379
11380 2012-03-06  David S. Miller  <davem@davemloft.net>
11381
11382         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
11383         (set_obp_int): New function.
11384         (get_obp_int): New function.
11385         (__get_clockfreq_via_dev_openprom): Likewise.
11386         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
11387         Avoid unused variable warnings on 'val' and use builtin_expect.
11388         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
11389         __builtin_expect.
11390         (INLINE_CLONE_SYSCALL): Likewise.
11391
11392 2012-03-05  David S. Miller  <davem@davemloft.net>
11393
11394         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11395
11396 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
11397
11398         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11399
11400         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
11401         only for |x| >= 40.
11402         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
11403
11404 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
11405
11406         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
11407         Replace gettimeofday with __vdso_gettimeofday.
11408
11409         * sysdeps/unix/sysv/linux/x86_64/init-first.c
11410         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
11411         __vdso_clock_gettime and __vdso_getcpu.
11412
11413         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
11414         time with __vdso_time.
11415
11416 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
11417
11418         * manual/lang.texi (size_t): Note types to which size_t may be
11419         equivalent with the GNU C Library, but do not describe when
11420         differences between them are significant.
11421
11422 2012-03-05  Andreas Jaeger  <aj@suse.de>
11423
11424         * sysdeps/i386/fpu/libm-test-ulps: Update.
11425
11426 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
11427
11428         [BZ #3976]
11429         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
11430         (__ieee754_pow): Save and restore rounding mode and use
11431         round-to-nearest for main computations.
11432         * math/libm-test.inc (pow_test_tonearest): New function.
11433         (pow_test_towardzero): Likewise.
11434         (pow_test_downward): Likewise.
11435         (pow_test_upward): Likewise.
11436         (main): Call the new functions.
11437         * sysdeps/i386/fpu/libm-test-ulps: Update.
11438         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11439
11440         [BZ #3976]
11441         * math/libm-test.inc (cosh_test_tonearest): New function.
11442         (cosh_test_towardzero): Likewise.
11443         (cosh_test_downward): Likewise.
11444         (cosh_test_upward): Likewise.
11445         (sinh_test_tonearest): Likewise.
11446         (sinh_test_towardzero): Likewise.
11447         (sinh_test_downward): Likewise.
11448         (sinh_test_upward): Likewise.
11449         (main): Call the new functions.
11450         * sysdeps/i386/fpu/libm-test-ulps: Update.
11451         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11452
11453 2012-03-05  Tom de Vries  <tom@codesourcery.com>
11454
11455         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
11456         default stack guard is set in last bytes.
11457         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
11458
11459 2012-03-05  Kees Cook  <keescook@chromium.org>
11460
11461         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
11462
11463         [BZ #13656]
11464         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
11465         possibly allocate from heap instead of stack.
11466         * stdio-common/bug-vfprintf-nargs.c: New file.
11467         * stdio-common/Makefile (tests): Add nargs overflow test.
11468
11469 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
11470
11471         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11472
11473 2012-03-03  Marek Polacek  <polacek@redhat.com>
11474
11475         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
11476         * math/math_private.h: Likewise.
11477         * stdlib/tst-strtod.c: Likewise.
11478         * sysdeps/i386/i486/bits/atomic.h: Likewise.
11479         * sysdeps/x86_64/bits/atomic.h: Likewise.
11480
11481 2012-03-02  David S. Miller  <davem@davemloft.net>
11482
11483         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
11484         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
11485         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
11486         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
11487         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
11488         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
11489         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
11490         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
11491
11492 2012-03-02  Roland McGrath  <roland@hack.frob.com>
11493
11494         [BZ #13792]
11495         * manual/examples/README: New file, says the example source files
11496         can be used under GPL>=2.
11497         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
11498         line containing just "*/".
11499         * manual/examples/add.c: Add copyright header (GPL>=2).
11500         * manual/examples/argp-ex1.c: Likewise.
11501         * manual/examples/argp-ex2.c: Likewise.
11502         * manual/examples/argp-ex3.c: Likewise.
11503         * manual/examples/argp-ex4.c: Likewise.
11504         * manual/examples/atexit.c: Likewise.
11505         * manual/examples/db.c: Likewise.
11506         * manual/examples/dir.c: Likewise.
11507         * manual/examples/dir2.c: Likewise.
11508         * manual/examples/execinfo.c: Likewise.
11509         * manual/examples/filecli.c: Likewise.
11510         * manual/examples/filesrv.c: Likewise.
11511         * manual/examples/fmtmsgexpl.c: Likewise.
11512         * manual/examples/genpass.c: Likewise.
11513         * manual/examples/inetcli.c: Likewise.
11514         * manual/examples/inetsrv.c: Likewise.
11515         * manual/examples/isockad.c: Likewise.
11516         * manual/examples/longopt.c: Likewise.
11517         * manual/examples/memopen.c: Likewise.
11518         * manual/examples/memstrm.c: Likewise.
11519         * manual/examples/mkfsock.c: Likewise.
11520         * manual/examples/mkisock.c: Likewise.
11521         * manual/examples/mygetpass.c: Likewise.
11522         * manual/examples/pipe.c: Likewise.
11523         * manual/examples/popen.c: Likewise.
11524         * manual/examples/rprintf.c: Likewise.
11525         * manual/examples/search.c: Likewise.
11526         * manual/examples/select.c: Likewise.
11527         * manual/examples/setjmp.c: Likewise.
11528         * manual/examples/sigh1.c: Likewise.
11529         * manual/examples/sigusr.c: Likewise.
11530         * manual/examples/stpcpy.c: Likewise.
11531         * manual/examples/strdupa.c: Likewise.
11532         * manual/examples/strftim.c: Likewise.
11533         * manual/examples/strncat.c: Likewise.
11534         * manual/examples/subopt.c: Likewise.
11535         * manual/examples/swapcontext.c: Likewise.
11536         * manual/examples/termios.c: Likewise.
11537         * manual/examples/testopt.c: Likewise.
11538         * manual/examples/testpass.c: Likewise.
11539         * manual/examples/timeval_subtract.c: Likewise.
11540
11541         [BZ #13792]
11542         * manual/time.texi (Elapsed Time): Move timeval_subtract example
11543         function to ...
11544         * manual/timeval_subtract.c.texi: ... here, new file.
11545
11546 2012-03-02  David S. Miller  <davem@davemloft.net>
11547
11548         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
11549
11550 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
11551
11552         [BZ #3976]
11553         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
11554         (__sin): Save and restore rounding mode and use round-to-nearest
11555         for all computations.
11556         (__cos): Save and restore rounding mode and use round-to-nearest
11557         for all computations.
11558         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
11559         <fenv.h>.
11560         (tan): Save and restore rounding mode and use round-to-nearest for
11561         all computations.
11562         * math/libm-test.inc (cos_test_tonearest): New function.
11563         (cos_test_towardzero): Likewise.
11564         (cos_test_downward): Likewise.
11565         (cos_test_upward): Likewise.
11566         (sin_test_tonearest): Likewise.
11567         (sin_test_towardzero): Likewise.
11568         (sin_test_downward): Likewise.
11569         (sin_test_upward): Likewise.
11570         (tan_test_tonearest): Likewise.
11571         (tan_test_towardzero): Likewise.
11572         (tan_test_downward): Likewise.
11573         (tan_test_upward): Likewise.
11574         (main): Call the new functions.
11575         * sysdeps/i386/fpu/libm-test-ulps: Update.
11576         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11577
11578         [BZ #10135]
11579         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
11580         small n, then large n, before computing and testing k+n.
11581         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
11582         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
11583         Likewise.
11584         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
11585         Likewise.
11586         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
11587         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
11588         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
11589         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
11590         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
11591         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
11592         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
11593         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
11594         * math/libm-test.inc (scalbn_test): Add more tests.
11595         (scalbln_test): Likewise.
11596
11597         * manual/filesys.texi (mode_t): Describe constraints on size and
11598         signedness, not exact equivalence to a particular type.
11599         (ino_t): Likewise.
11600         (ino64_t): Likewise.
11601         (dev_t): Likewise.
11602         (nlink_t): Likewise.
11603         (blkcnt_t): Likewise.
11604         (blkcnt64_t): Likewise.
11605         * manual/llio.texi (off_t): Likewise.
11606
11607         [BZ #3976]
11608         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
11609         (__ieee754_exp): Save and restore rounding mode and use
11610         round-to-nearest for all computations.
11611         * math/libm-test.inc (exp_test_tonearest): New function.
11612         (exp_test_towardzero): Likewise.
11613         (exp_test_downward): Likewise.
11614         (exp_test_upward): Likewise.
11615         (main): Call the new functions.
11616         * sysdeps/i386/fpu/libm-test-ulps: Update.
11617         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11618
11619 2012-03-01  Chris Demetriou  <cgd@google.com>
11620
11621         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
11622         have predictable order.
11623
11624 2012-03-01  David S. Miller  <davem@davemloft.net>
11625
11626         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
11627
11628         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
11629         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
11630         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
11631         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
11632
11633         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
11634         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
11635         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
11636         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
11637         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
11638         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
11639         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
11640         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
11641         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
11642
11643         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11644
11645         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
11646         * sysdeps/sparc/fpu/libm-test-ulps: to here.
11647         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
11648
11649         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
11650         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
11651         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
11652         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
11653         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
11654         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
11655         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
11656         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
11657         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
11658         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
11659         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
11660         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
11661         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
11662         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
11663         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
11664         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
11665         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
11666         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
11667         * sysdeps/sparc/elf/configure: Regenerated.
11668
11669 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
11670
11671         * configure.in (AS, LD): Require binutils 2.20 or later.
11672         * configure: Regenerated.
11673         * manual/install.texi (Tools for Compilation): Give binutils 2.20
11674         as required minimum version.
11675         * INSTALL: Regenerated.
11676
11677         [BZ #2541]
11678         [BZ #4108]
11679         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
11680         before squaring exponent.
11681         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
11682         bottom long double and 27 bits of top long double before squaring
11683         exponent.
11684         * math/libm-test.inc (erfc_test): Add more tests.
11685         * sysdeps/i386/fpu/libm-test-ulps: Update.
11686         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
11687         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11688
11689 2012-03-01  Kai Tietz  <ktietz@redhat.com>
11690
11691         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
11692         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
11693         containing bit-fields.
11694         * soft-fp/extended.h (_FP_UNION_E): Likewise.
11695         * soft-fp/single.h (_FP_UNION_S): Likewise.
11696         * soft-fp/double.h (_FP_UNION_D): Likewise.
11697
11698 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
11699
11700         [BZ #13786]
11701         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
11702         not include ../strcmp.S.
11703         [USE_AS_STRNCASECMP_L]: Likewise.
11704         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
11705         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
11706         * sysdeps/i386/i686/multiarch/strncase_l-c.c
11707         (__strncasecmp_l_ia32): Define as alias to
11708         __strncasecmp_l_nonascii.
11709
11710         [BZ #5794]
11711         * math/libm-test.inc (expm1_test): Add test for bug 5794.
11712         * sysdeps/i386/fpu/libm-test-ulps: Update.
11713         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11714
11715         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
11716         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11717
11718 2012-02-29  Jeff Law  <law@redhat.com>
11719
11720         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
11721         out of bounds read.
11722
11723 2012-02-29  Marek Polacek  <polacek@redhat.com>
11724
11725         [BZ #13706]
11726         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
11727         * elf/Makefile: Add rules to run tst-unused-dep.out.
11728
11729 2012-02-28  David S. Miller  <davem@davemloft.net>
11730
11731         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
11732         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
11733         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
11734         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
11735         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
11736         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
11737
11738 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
11739
11740         * math/libm-test.inc (llround_test): Move one test from
11741         lround_test.  Use TEST_f_L in moved test.
11742         (lround_test): Move misplaced test to llround_test.  Add testcase
11743         from bug 2561.
11744
11745 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
11746
11747         * sysdeps/x86_64/fpu/e_expf.S: New file.
11748         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
11749
11750 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
11751
11752         [BZ #13637]
11753         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
11754         of remain_len that may cause incomplete multi-byte character and
11755         false match.
11756         * posix/bug-regex33.c: New file.
11757         * posix/Makefile (tests): Add bug-regex33.
11758
11759 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
11760
11761         * manual/macros.texi: New file.
11762         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
11763         * manual/libc.texinfo: Include macros.texi.
11764         * manual/creatute.texi: Likewise.
11765         * manual/install.texi: Likewise.
11766         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
11767         @glibcadj{} in references to the GNU C Library.
11768         * manual/charset.texi: Likewise.
11769         * manual/conf.texi: Likewise.
11770         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
11771         when not using those macros.
11772         * manual/creature.texi: Likewise.
11773         * manual/crypt.texi: Likewise.
11774         * manual/errno.texi: Likewise.
11775         * manual/filesys.texi: Likewise.
11776         * manual/header.texi: Likewise.
11777         * manual/install.texi: Likewise.
11778         * manual/intro.texi: Likewise.
11779         * manual/io.texi: Likewise.
11780         * manual/job.texi: Likewise.
11781         * manual/lang.texi: Likewise.
11782         * manual/libc.texiinfo: Likewise.
11783         * manual/llio.texi: Likewise.
11784         * manual/locale.texi: Likewise.
11785         * manual/maint.texi: Likewise.
11786         * manual/math.texi: Likewise.
11787         * manual/memory.texi: Likewise.
11788         * manual/message.texi: Likewise.
11789         * manual/nss.texi: Likewise.
11790         * manual/pattern.texi: Likewise.
11791         * manual/process.texi: Likewise.
11792         * manual/resource.texi: Likewise.
11793         * manual/search.texi: Likewise.
11794         * manual/setjmp.texi: Likewise.
11795         * manual/signal.texi: Likewise.
11796         * manual/socket.texi: Likewise.
11797         * manual/startup.texi: Likewise.
11798         * manual/stdio.texi: Likewise.
11799         * manual/string.texi: Likewise.
11800         * manual/sysinfo.texi: Likewise.
11801         * manual/syslog.texi: Likewise.
11802         * manual/terminal.texi: Likewise.
11803         * manual/time.texi: Likewise.
11804         * manual/users.texi: Likewise.
11805         * INSTALL: Regenerated.
11806         * NOTES: Regenerated.
11807         * sysdeps/gnu/errlist.c: Regenerated.
11808
11809 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
11810
11811         * include/dirent.h: Include <dirstream.h> before
11812         <dirent/dirent.h>.
11813
11814 2012-02-28  David S. Miller  <davem@davemloft.net>
11815
11816         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
11817         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
11818         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
11819         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
11820
11821 2012-02-27  David S. Miller  <davem@davemloft.net>
11822
11823         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
11824         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
11825         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
11826         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
11827
11828         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
11829         frame pointer instead of stack pointer relative arg slot.
11830         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
11831         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
11832         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
11833
11834 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
11835
11836         [BZ #3992]
11837         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
11838
11839 2012-02-27  David S. Miller  <davem@davemloft.net>
11840
11841         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
11842         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
11843         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
11844         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
11845         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
11846         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
11847         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
11848         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
11849
11850 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
11851
11852         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
11853         later.  Allow versions 5-9.
11854         * configure: Regenerated.
11855         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
11856         required minimum version and 4.6 as recommended version.  Do not
11857         mention bugs in GCC 2.7 and 2.8.
11858         * INSTALL: Regenerated.
11859
11860 2012-02-27  David S. Miller  <davem@davemloft.net>
11861
11862         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
11863         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
11864         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
11865         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
11866         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
11867         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
11868         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
11869         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
11870
11871         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
11872         manipulate bits before adding and subtracting TWO112[sx].
11873         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
11874
11875 2012-02-27  Roland McGrath  <roland@hack.frob.com>
11876
11877         [BZ #13775]
11878         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
11879         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
11880         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
11881         being in POSIX, because they are in 1003.1-2008.
11882
11883         * rt/tst-aio.c: Include <fcntl.h>.
11884         * rt/tst-aio7.c: Likewise.
11885         * rt/tst-aio64.c: Likewise.
11886
11887         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
11888
11889 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
11890
11891         * manual/install.texi (--with-headers): Describe headers as
11892         interface headers, not private headers.
11893         (Specific advice for GNU/Linux systems): Describe use of headers
11894         from "make headers_install", not private headers from older
11895         kernels.
11896         * INSTALL: Regenerated.
11897         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
11898         Change to 2.6.19.
11899         * sysdeps/unix/sysv/linux/configure: Regenerated.
11900
11901         * manual/llio.texi (fclean): Remove documentation.
11902
11903         * manual/Makefile (libc-texi-generated): New variable.  Include
11904         version.texi.
11905         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
11906         $(libc-texi-generated), not duplicated list of files.
11907         (version.texi, stamp-version): New rules.
11908         (realclean): Remove $(libc-texi-generated), not individual files
11909         from that list.  Do not remove dir-add.texinfo.
11910         * manual/libc.texinfo: Comment out uses of edition numbers and
11911         references to printed manual.  Remove last-updated dates.
11912         (EDITION): Comment out.
11913         (ISBN): Likewise.
11914         (VERSION, UPDATED): Remove.
11915         (version.texi): Include.
11916
11917 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
11918
11919         * sysdeps/posix/spawni.c: Include <signal.h>.
11920         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
11921         * sysdeps/pthread/aio_fsync.c: Likewise.
11922
11923 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
11924
11925         * conform/Makefile (tests): Run only when not cross-compiling and
11926         when fast-check is not defined.
11927
11928         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
11929         * conform/data/limits.h-data: Fixes for POSIX2008.
11930         * conform/run-conformtest.sh: Run all tests.
11931         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
11932         headers.
11933         * include/bits/dlfcn.h: Likewise.
11934         * include/langinfo.h: Likewise.
11935         * include/monetary.h: Likewise.
11936         * include/sys/poll.h: Likewise.
11937
11938         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
11939         for __USE_GNU.
11940         * posix/spawn.h: Define __need_sigset_t.
11941         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
11942         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
11943         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
11944         to get sigevent_t only.
11945         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
11946         only for __USE_GNU.
11947         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
11948         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
11949         process_vm_writev only for __USE_GNU.
11950         * termios/termios.h: Declare tcgetsid also for POSIX2008.
11951
11952         * conform/Makefile: For now ignore errors from run-conformtest.
11953         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
11954         POSIX to avoid namespace pollution.  Don't prepend headers.
11955         * conform/data/aio.h-data: Fixes for POSIX testing.
11956         * conform/data/fcntl.h-data: Likewise.
11957         * conform/data/glob.h-data: Likewise.
11958         * conform/data/grp.h-data: Likewise.
11959         * conform/data/pthread.h-data: Likewise.
11960         * conform/data/pwd.h-data: Likewise.
11961         * conform/data/signal.h-data: Likewise.
11962         * conform/data/spawn.h-data: Likewise.
11963         * conform/data/stdio.h-data: Likewise.
11964         * conform/data/stdlib.h-data: Likewise.
11965         * conform/data/stropts.h-data: Likewise.
11966         * conform/data/sys/mman.h-data: Likewise.
11967         * conform/data/sys/stat.h-data: Likewise.
11968         * conform/data/sys/types.h-data: Likewise.
11969         * conform/data/sys/wait.h-data: Likewise.
11970         * conform/data/time.h-data: Likewise.
11971         * conform/data/unistd.h-data: Likewise.
11972         * conform/data/utime.h-data: Likewise.
11973
11974         * io/sys/stat.h: fchmod was always in POSIX.
11975         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
11976         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
11977         * rt/aio.h: Define __need_timespec before including <time.h>.
11978         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
11979         struct.  Add forward declaration of pthread_attr_t and use it in
11980         sigevent.
11981         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
11982         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
11983         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
11984         always remove CLK_TCK definition.
11985
11986 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
11987
11988         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
11989
11990 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
11991
11992         * conform/run-conformtest.sh: New file.
11993         * conform/Makefile: Run run-conformtest for tests.
11994         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
11995         support.
11996
11997         * conform/data/uchar.h-data: New file.
11998         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
11999         * conform/data/arpa/inet.h-data: Likewise.
12000         * conform/data/assert.h-data: Likewise.
12001         * conform/data/complex.h-data: Likewise.
12002         * conform/data/cpio.h-data: Likewise.
12003         * conform/data/ctype.h-data: Likewise.
12004         * conform/data/dirent.h-data: Likewise.
12005         * conform/data/dlfcn.h-data: Likewise.
12006         * conform/data/errno.h-data: Likewise.
12007         * conform/data/fcntl.h-data: Likewise.
12008         * conform/data/float.h-data: Likewise.
12009         * conform/data/fmtmsg.h-data: Likewise.
12010         * conform/data/fnmatch.h-data: Likewise.
12011         * conform/data/ftw.h-data: Likewise.
12012         * conform/data/glob.h-data: Likewise.
12013         * conform/data/grp.h-data: Likewise.
12014         * conform/data/iconv.h-data: Likewise.
12015         * conform/data/inttypes.h-data: Likewise.
12016         * conform/data/langinfo.h-data: Likewise.
12017         * conform/data/libgen.h-data: Likewise.
12018         * conform/data/limits.h-data: Likewise.
12019         * conform/data/locale.h-data: Likewise.
12020         * conform/data/math.h-data: Likewise.
12021         * conform/data/monetary.h-data: Likewise.
12022         * conform/data/mqueue.h-data: Likewise.
12023         * conform/data/ndbm.h-data: Likewise.
12024         * conform/data/net/if.h-data: Likewise.
12025         * conform/data/netdb.h-data: Likewise.
12026         * conform/data/netinet/in.h-data: Likewise.
12027         * conform/data/nl_types.h-data: Likewise.
12028         * conform/data/poll.h-data: Likewise.
12029         * conform/data/pthread.h-data: Likewise.
12030         * conform/data/pwd.h-data: Likewise.
12031         * conform/data/regex.h-data: Likewise.
12032         * conform/data/sched.h-data: Likewise.
12033         * conform/data/search.h-data: Likewise.
12034         * conform/data/semaphore.h-data: Likewise.
12035         * conform/data/setjmp.h-data: Likewise.
12036         * conform/data/signal.h-data: Likewise.
12037         * conform/data/spawn.h-data: Likewise.
12038         * conform/data/stdarg.h-data: Likewise.
12039         * conform/data/stdio.h-data: Likewise.
12040         * conform/data/stdlib.h-data: Likewise.
12041         * conform/data/string.h-data: Likewise.
12042         * conform/data/strings.h-data: Likewise.
12043         * conform/data/stropts.h-data: Likewise.
12044         * conform/data/sys/ipc.h-data: Likewise.
12045         * conform/data/sys/mman.h-data: Likewise.
12046         * conform/data/sys/msg.h-data: Likewise.
12047         * conform/data/sys/resource.h-data: Likewise.
12048         * conform/data/sys/select.h-data: Likewise.
12049         * conform/data/sys/sem.h-data: Likewise.
12050         * conform/data/sys/shm.h-data: Likewise.
12051         * conform/data/sys/socket.h-data: Likewise.
12052         * conform/data/sys/stat.h-data: Likewise.
12053         * conform/data/sys/statvfs.h-data: Likewise.
12054         * conform/data/sys/time.h-data: Likewise.
12055         * conform/data/sys/timeb.h-data: Likewise.
12056         * conform/data/sys/times.h-data: Likewise.
12057         * conform/data/sys/types.h-data: Likewise.
12058         * conform/data/sys/uio.h-data: Likewise.
12059         * conform/data/sys/un.h-data: Likewise.
12060         * conform/data/sys/utsname.h-data: Likewise.
12061         * conform/data/sys/wait.h-data: Likewise.
12062         * conform/data/syslog.h-data: Likewise.
12063         * conform/data/tar.h-data: Likewise.
12064         * conform/data/termios.h-data: Likewise.
12065         * conform/data/utime.h-data: Likewise.
12066         * conform/data/utmpx.h-data: Likewise.
12067         * conform/data/varargs.h-data: Likewise.
12068         * conform/data/wchar.h-data: Likewise.
12069         * conform/data/wctype.h-data: Likewise.
12070         * conform/data/wordexp.h-data: Likewise.
12071
12072         * include/stropts.h: New file.
12073         * include/uchar.h: New file.
12074         * include/aio.h: Changes to allow conformtest.pl to use the headers.
12075         * include/assert.h: Likewise.
12076         * include/ctype.h: Likewise.
12077         * include/dirent.h: Likewise.
12078         * include/dlfcn.h: Likewise.
12079         * include/fcntl.h: Likewise.
12080         * include/fnmatch.h: Likewise.
12081         * include/glob.h: Likewise.
12082         * include/grp.h: Likewise.
12083         * include/libio.h: Likewise.
12084         * include/locale.h: Likewise.
12085         * include/math.h: Likewise.
12086         * include/net/if.h: Likewise.
12087         * include/netdb.h: Likewise.
12088         * include/netinet/in.h: Likewise.
12089         * include/pthread.h: Likewise.
12090         * include/pwd.h: Likewise.
12091         * include/regex.h: Likewise.
12092         * include/sched.h: Likewise.
12093         * include/search.h: Likewise.
12094         * include/setjmp.h: Likewise.
12095         * include/signal.h: Likewise.
12096         * include/stdio.h: Likewise.
12097         * include/stdlib.h: Likewise.
12098         * include/string.h: Likewise.
12099         * include/sys/cdefs.h: Likewise.
12100         * include/sys/mman.h: Likewise.
12101         * include/sys/msg.h: Likewise.
12102         * include/sys/resource.h: Likewise.
12103         * include/sys/select.h: Likewise.
12104         * include/sys/socket.h: Likewise.
12105         * include/sys/stat.h: Likewise.
12106         * include/sys/statvfs.h: Likewise.
12107         * include/sys/time.h: Likewise.
12108         * include/sys/times.h: Likewise.
12109         * include/sys/uio.h: Likewise.
12110         * include/sys/utsname.h: Likewise.
12111         * include/sys/wait.h: Likewise.
12112         * include/termios.h: Likewise.
12113         * include/time.h: Likewise.
12114         * include/ulimit.h: Likewise.
12115         * include/unistd.h: Likewise.
12116         * include/utime.h: Likewise.
12117         * include/wchar.h: Likewise.
12118         * include/wctype.h: Likewise.
12119         * include/wordexp.h: Likewise.
12120
12121         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
12122
12123         * time/time.h: TIME_UTC must be a macro.
12124         Make timespec_get available for ISO C11 only as well.
12125
12126 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
12127
12128         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
12129         Reported by Peng Haitao <penght@cn.fujitsu.com>.
12130
12131 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
12132
12133         * configure.in: Use -o not -a in test for unsupported multi-arch.
12134
12135 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
12136
12137         * manual/texinfo.tex: Update to version 2012-01-19.16.
12138
12139 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
12140
12141         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
12142
12143 2012-02-24  Roland McGrath  <roland@hack.frob.com>
12144
12145         [BZ #13738]
12146         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
12147         * manual/fdl-1.3.texi: New file.
12148         * manual/fdl-1.1.texi: File removed.
12149
12150         [BZ #13738]
12151         * manual/libc.texinfo (FDL_VERSION): New @set.
12152         Use it for mention of FDL in cover text.
12153         (Documentation License): Use it in @include file name.
12154
12155 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12156             Roland McGrath  <roland@hack.frob.com>
12157
12158         [BZ #5461]
12159         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
12160         not LONG_LONG_MAX and LONG_LONG_MIN.
12161         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
12162         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
12163         name.
12164         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
12165
12166 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12167
12168         [BZ #2547]
12169         [BZ #11365]
12170         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
12171         manipulate bits before adding and subtracting TWO23[sx].
12172         * math/libm-test.inc (nearbyint_test): Add more tests.
12173
12174 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12175
12176         [BZ #2548]
12177         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
12178         bits before adding and subtracting TWO23[sx].
12179         * math/libm-test.inc (rint_test): Add more tests.
12180         (rint_test_tonearest): Likewise.
12181         (rint_test_towardzero): Likewise.
12182         (rint_test_downward): Likewise.
12183         (rint_test_upward: Likewise.
12184
12185 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12186
12187         [BZ #10110]
12188         * include/stdc-predef.h: New file.  Extracted from features.h.
12189         * include/features.h: Include stdc-predef.h.
12190         * Makefile (headers): Add stdc-predef.h.
12191         * CONFORMANCE (Compiler limitations): Update.
12192
12193 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12194
12195         * manual/libc.texinfo (VERSION, UPDATED): Revert.
12196
12197 2012-02-21  David S. Miller  <davem@davemloft.net>
12198
12199         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
12200         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
12201
12202 2012-02-20  David S. Miller  <davem@davemloft.net>
12203
12204         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
12205         using a normal save/restore sequence, rather than allocating a
12206         dummy stack frame just to store a frame pointer and restore.
12207         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
12208
12209 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
12210
12211         * manual/install.texi: Fix stray word in line-wrapped comment.
12212
12213 2012-02-20  David S. Miller  <davem@davemloft.net>
12214
12215         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
12216         both binutils and gcc support GOTDATA.
12217
12218         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
12219         "rd %pc" in the PIC register setup sequences.
12220
12221         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
12222         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
12223         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
12224         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
12225         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
12226         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
12227         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
12228         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
12229         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
12230         (SYSCALL_ERROR_HANDLER): Likewise.
12231         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
12232         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
12233         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
12234         (SYSCALL_ERROR_HANDLER): Likewise.
12235
12236         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
12237         (HAVE_GCC_GOTDATA): New.
12238         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
12239         relocation support in both binutils and gcc.
12240         * sysdeps/sparc/elf/configure: Regenerate.
12241
12242         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
12243         * sysdeps/sparc/sparc32/elf/configure: Delete.
12244         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
12245         * sysdeps/sparc/sparc64/elf/configure: Delete.
12246         * sysdeps/sparc/elf/configure.in: New file.
12247         * sysdeps/sparc/elf/configure: Generate.
12248
12249         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
12250         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
12251         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
12252         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
12253         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
12254
12255 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
12256
12257         * manual/install.texi: Do not mention specific glibc version
12258         numbers.
12259         * manual/libc.texinfo (VERSION, UPDATED): Update.
12260         (@copying): Use @copyright{} and range of years.
12261
12262 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
12263
12264         [BZ #13695]
12265         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
12266         [crti.S not in sysdirs] (generated): Do not append.
12267         [crti.S not in sysdirs] (omit-deps): Likewise.
12268         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
12269         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
12270         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
12271         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
12272         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
12273         Likewise.
12274         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
12275         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
12276         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
12277         * csu/defs.awk: Remove file.
12278         * sysdeps/generic/initfini.c: Likewise.
12279         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
12280         variable.
12281         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
12282         Likewise.
12283
12284 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
12285
12286         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
12287         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
12288         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
12289         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
12290         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
12291         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
12292         <bits/epoll.h>.
12293         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
12294         (__EPOLL_PACKED): Define to empty if not defined by
12295         <bits/epoll.h>.
12296         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
12297         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12298         bits/epoll.h.
12299
12300 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
12301
12302         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
12303         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
12304         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
12305         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
12306         <bits/timerfd.h>.
12307         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
12308         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12309         bits/timerfd.h.
12310
12311 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
12312
12313         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
12314         in C locale.
12315         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
12316         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
12317         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
12318         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12319
12320 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
12321
12322         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
12323         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
12324
12325 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
12326
12327         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
12328         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
12329         defined.
12330         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
12331         Likewise.
12332         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
12333         entry for 2.16.
12334
12335 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
12336
12337         * math/w_acos.c: Use non-signaling floating-point comparisons.
12338         * math/w_acosf.c: Likewise.
12339         * math/w_acosh.c: Likewise.
12340         * math/w_acoshf.c: Likewise.
12341         * math/w_acoshl.c: Likewise.
12342         * math/w_acosl.c: Likewise.
12343         * math/w_asin.c: Likewise.
12344         * math/w_asinf.c: Likewise.
12345         * math/w_asinl.c: Likewise.
12346         * math/w_atanh.c: Likewise.
12347         * math/w_atanhf.c: Likewise.
12348         * math/w_atanhl.c: Likewise.
12349         * math/w_exp2.c: Likewise.
12350         * math/w_exp2f.c: Likewise.
12351         * math/w_exp2l.c: Likewise.
12352         * math/w_j0.c: Likewise.
12353         * math/w_j0f.c: Likewise.
12354         * math/w_j0l.c: Likewise.
12355         * math/w_j1.c: Likewise.
12356         * math/w_j1f.c: Likewise.
12357         * math/w_j1l.c: Likewise.
12358         * math/w_jn.c: Likewise.
12359         * math/w_jnf.c: Likewise.
12360         * math/w_log.c: Likewise.
12361         * math/w_log10.c: Likewise.
12362         * math/w_log10f.c: Likewise.
12363         * math/w_log10l.c: Likewise.
12364         * math/w_log2.c: Likewise.
12365         * math/w_log2f.c: Likewise.
12366         * math/w_log2l.c: Likewise.
12367         * math/w_logf.c: Likewise.
12368         * math/w_logl.c: Likewise.
12369         * math/w_sqrt.c: Likewise.
12370         * math/w_sqrtf.c: Likewise.
12371         * math/w_sqrtl.c: Likewise.
12372         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
12373         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
12374         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
12375         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
12376         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
12377
12378 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
12379
12380         [BZ #9739]
12381         * manual/string.texi (strnlen): Use correct parameter name in
12382         equivalent expression.
12383
12384 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
12385
12386         [BZ #11174]
12387         * manual/users.texi (seteuid): Consistently use neweuid for
12388         argument name.
12389
12390 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
12391
12392         [BZ #13704]
12393         * manual/nss.texi (Services in the NSS configuration): Correct
12394         list of services in example configuration file.
12395
12396 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
12397
12398         [BZ #11322]
12399         * manual/arith.texi: Remove statements about negative zero
12400         behaving identically to zero.
12401
12402 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
12403
12404         [BZ #5993]
12405         * manual/install.texi: Do not document upgrading from libc5.
12406
12407 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
12408
12409         [BZ #4596]
12410         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
12411
12412 2012-02-18  David S. Miller  <davem@davemloft.net>
12413
12414         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
12415         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
12416         %o7 across the call.
12417         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
12418         instead.
12419         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
12420         SETUP_PIC_REG_LEAF.
12421         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
12422         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
12423         * sysdeps/sparc/crtn.S: Likewise.
12424
12425 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
12426
12427         * aout/Makefile: Remove.
12428
12429 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
12430
12431         [BZ #13058]
12432         * manual/examples/argp-ex1.c (main): Format definition in GNU
12433         style.
12434         * manual/examples/argp-ex2.c (main): Likewise.
12435         * manual/examples/argp-ex3.c (main): Likewise.
12436         * manual/examples/argp-ex4.c (main): Likewise.
12437         * manual/examples/longopt.c (main): Use new-style prototype
12438         definition.
12439         * manual/examples/strncat.c (main): Specify return type and use
12440         (void) for arguments.
12441         * manual/examples/subopt.c (main): Use char **argv argument.
12442
12443 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12444
12445         [BZ #5077]
12446         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
12447         rounding modes.
12448
12449 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
12450
12451         [BZ #6907]
12452         * manual/string.texi (strchr): Change when strchrnul is
12453         recommended.
12454
12455 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
12456
12457         [BZ #174]
12458         * manual/locale.texi (setlocale): Document LOCPATH.
12459
12460 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12461
12462         [BZ #10210]
12463         * manual/process.texi (execle): Move @dots{} before last argument.
12464
12465 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
12466
12467         [BZ #12047]
12468         * manual/charset.texi (Generic Charset Conversion): Fix typo
12469         (LC_TYPE -> LC_CTYPE).
12470
12471 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
12472
12473         [BZ #5805]
12474         * manual/arith.texi (scalbn): Use @var{} on parameter names.
12475         (scalbnf): Likewise.
12476         (scalbnl): Likewise.
12477         (scalbln): Likewise.
12478         (scalblnf): Likewise.
12479         (scalblnl): Likewise.
12480         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
12481         (vwarnx): Likewise.
12482         (verr): Likewise.
12483         (verrx): Likewise.
12484         * manual/filesys.texi (telldir): Use braces around return type.
12485         * manual/llio.texi (mmap): Add space after comma.
12486         (mmap64): Likewise.
12487         * manual/math.texi (jn): Use @var{} on parameter names.
12488         (jnf): Likewise.
12489         (jnl): Likewise.
12490         (yn): Likewise.
12491         (ynf): Likewise.
12492         (ynl): Likewise.
12493         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
12494         line.
12495         * manual/resource.texi (ulimit): Use @dots{} instead of literal
12496         "...".
12497         (sched_get_priority_min): Remove semicolon on @deftypefun line.
12498         (sched_get_priority_max): Likewise.
12499         * manual/signal.texi (sigvec): Add space after comma.
12500         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
12501         names.
12502         (if_indextoname): Likewise.
12503         (if_freenameindex): Likewise.
12504         (sendto): Use ',' instead of '.' in prototype.
12505         * manual/startup.texi (syscall): Use @dots{} instead of literal
12506         "...".
12507         * manual/stdio.texi (__fpending): Separate initial words of
12508         paragraph from @deftypefun line.
12509         * manual/syslog.texi (syslog): Use @dots{} instead of literal
12510         "...".
12511         (vsyslog): Use @var{} on parameter names.
12512         * manual/terminal.texi (stty): Use @var{} on parameter names.
12513         * manual/users.texi (getutmp): Use @var{} on parameter names.
12514         (getutmpx): Likewise.
12515
12516 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12517
12518         [BZ #6884]
12519         * manual/stdio.texi (fopen): Fix typos in description of
12520         ",ccs=STRING".
12521
12522 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
12523
12524         [BZ #4026]
12525         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
12526         get clock_id definition.
12527
12528 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
12529
12530         [BZ #4822]
12531         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
12532         (madvise): Cast every argument to void on its own.
12533
12534 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12535
12536         [BZ #9902]
12537         * manual/startup.texi (Exit Status): Fix typo.
12538
12539 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12540
12541         [BZ #10140]
12542         * manual/examples/argp-ex1.c: Include <stdlib.h>.
12543         * manual/examples/argp-ex2.c: Likewise.
12544         * manual/examples/argp-ex3.c: Likewise.
12545
12546 2012-02-16  Richard Henderson  <rth@redhat.com>
12547
12548         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
12549         * sysdeps/s390/s390-32/initfini.c: Remove.
12550         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
12551         * sysdeps/s390/s390-64/initfini.c: Remove.
12552
12553 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
12554
12555         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
12556         compiler output for sysdeps/generic/initfini.c.
12557         * sysdeps/sh/elf/initfini.c: Remove file.
12558
12559 2012-02-16  David S. Miller  <davem@davemloft.net>
12560
12561         [BZ #11494]
12562         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
12563
12564         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
12565         * sysdeps/sparc/crti.S: New file.
12566         * sysdeps/sparc/crtn.S: New file.
12567         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
12568         * sysdeps/sparc/sparc64/Makefile: Likewise.
12569
12570 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
12571
12572         [BZ #3335]
12573         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
12574
12575 2012-02-15  Roland McGrath  <roland@hack.frob.com>
12576
12577         [BZ #4822]
12578         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
12579
12580         * mach/devstream.c (cookie_io_functions_t): Macro removed.
12581         (write, read, close): Likewise.
12582         Patch by Aurelien Jarno <aurelien@aurel32.net>.
12583
12584 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
12585
12586         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
12587         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
12588         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
12589         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
12590         <bits/signalfd.h>.
12591         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
12592         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12593         bits/signalfd.h.
12594
12595 2012-02-14  Marek Polacek  <polacek@redhat.com>
12596
12597         * sysdeps/x86_64/crti.S: New file.
12598         * sysdeps/x86_64/crtn.S: New file.
12599         * sysdeps/x86_64/elf/initfini.c: Remove file.
12600
12601 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
12602
12603         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
12604         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
12605         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
12606         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
12607         <bits/inotify.h>.
12608         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
12609         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12610         bits/inotify.h.
12611
12612 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
12613
12614         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
12615         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
12616         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
12617         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
12618         <bits/eventfd.h>.
12619         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
12620         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12621         bits/eventfd.h.
12622
12623 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
12624
12625         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
12626         __feraiseexcept instead of feraiseexcept.
12627
12628         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
12629         nanosleep invocations.
12630         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
12631         strings, and add error checking for a nanosleep invocations.
12632
12633 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
12634
12635         Replace FSF snail mail address with URLs, as per GNU coding standards.
12636         Most of the snail mail addresses were wrong anyway, and omitting
12637         them makes the source code easier to maintain.  Almost all of the
12638         changes are to license notices and to locale LC_IDENTIFICATION
12639         addresses, except for this one:
12640         * manual/libc.texinfo: In "Published by", give the FSF's URL,
12641         not its snail mail address.
12642
12643 2012-02-09  Richard Henderson  <rth@twiddle.net>
12644
12645         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
12646         of kernel-features.h.
12647
12648         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
12649
12650 2012-02-08  Marek Polacek  <polacek@redhat.com>
12651
12652         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
12653         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
12654         * sysdeps/gnu/_G_config.h: Likewise.
12655         * sysdeps/generic/_G_config.h: Likewise.
12656
12657 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
12658
12659         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
12660         tests.
12661         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12662
12663         * sysdeps/powerpc/powerpc32/crti.S: New file.
12664         * sysdeps/powerpc/powerpc32/crtn.S: New file.
12665         * sysdeps/powerpc/powerpc64/crti.S: New file.
12666         * sysdeps/powerpc/powerpc64/crtn.S: New file.
12667
12668         * Makeconfig (have-initfini): Don't set.
12669         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
12670         * configure.in (nopic_initfini): Don't substitute.
12671         * config.h.in (HAVE_INITFINI): Don't #undef.
12672         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
12673         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
12674
12675 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
12676
12677         Support crti.S and crtn.S provided directly by architectures.
12678         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
12679         [crti.S in sysdirs] (omit-deps): Likewise.
12680         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
12681         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
12682         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
12683         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
12684         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
12685         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
12686         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
12687         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
12688         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
12689         compiler output for sysdeps/generic/initfini.c.
12690         * sysdeps/i386/elf/Makefile: Remove file.
12691         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
12692
12693 2012-02-07  Marek Polacek  <polacek@redhat.com>
12694
12695         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
12696         * sysdeps/gnu/_G_config.h: Likewise.
12697         * sysdeps/mach/hurd/_G_config.h: Likewise.
12698
12699 2012-02-07  Marek Polacek  <polacek@redhat.com>
12700
12701         * math/Makefile (tests): Add tst-CMPLX2.
12702         * math/tst-CMPLX2.c: New file.
12703
12704 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
12705
12706         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
12707
12708         * math/libm-test.inc (jn_test): Add missing L suffix.
12709
12710 2012-02-06  Marek Polacek  <polacek@redhat.com>
12711
12712         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
12713         * sysdeps/i386/fpu/e_powf.S: Likewise.
12714         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
12715         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
12716         * sysdeps/i386/fpu/e_acosh.S: Likewise.
12717         * sysdeps/i386/fpu/e_pow.S: Likewise.
12718         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
12719         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
12720         * sysdeps/i386/fpu/s_expm1.S: Likewise.
12721         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
12722         * sysdeps/i386/fpu/e_log2.S: Likewise.
12723         * sysdeps/i386/fpu/e_log2l.S: Likewise.
12724         * sysdeps/i386/fpu/e_scalb.S: Likewise.
12725         * sysdeps/i386/fpu/e_powl.S: Likewise.
12726         * sysdeps/i386/fpu/s_log1p.S: Likewise.
12727         * sysdeps/i386/fpu/e_log10f.S: Likewise.
12728         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
12729         * sysdeps/i386/fpu/e_logl.S: Likewise.
12730         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
12731         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
12732         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
12733         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
12734         * sysdeps/i386/fpu/e_log2f.S: Likewise.
12735         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
12736         * sysdeps/i386/fpu/e_log.S: Likewise.
12737         * sysdeps/i386/fpu/s_cexp.S: Likewise.
12738         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
12739         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
12740         * sysdeps/i386/fpu/e_logf.S: Likewise.
12741         * sysdeps/i386/fpu/e_log10l.S: Likewise.
12742         * sysdeps/i386/fpu/e_atanh.S: Likewise.
12743         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
12744         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
12745         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
12746         * sysdeps/i386/fpu/e_log10.S: Likewise.
12747         * sysdeps/i386/fpu/s_frexp.S: Likewise.
12748         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
12749         * sysdeps/i386/fpu/s_asinh.S: Likewise.
12750         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
12751         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
12752         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
12753         * sysdeps/i386/asm-syntax.h: Likewise.
12754         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
12755         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
12756         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
12757         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
12758         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
12759         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
12760         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
12761         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
12762         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
12763         * sysdeps/powerpc/sysdep.h: Likewise.
12764         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
12765         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
12766
12767 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
12768
12769         [BZ #411]
12770         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
12771
12772 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
12773
12774         * sysdeps/i386/sysdep.h: Include <features.h>.
12775         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
12776         version.
12777
12778 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
12779
12780         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
12781         Define.
12782         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
12783         LOAD_PIC_REG_STR.
12784
12785 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
12786
12787         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
12788         (SETUP_PIC_REG): Use GET_PC_THUNK.
12789         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
12790         macro.
12791
12792 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
12793
12794         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
12795         for non-PIC compilation.
12796         (SETUP_PIC_REG): Add .p2align directive.
12797         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
12798         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
12799         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
12800         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
12801         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
12802         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
12803         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
12804         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
12805         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
12806         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
12807         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
12808         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
12809         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
12810         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
12811         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
12812         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
12813         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
12814         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
12815         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
12816         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
12817         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
12818         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
12819         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
12820         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
12821         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
12822         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
12823         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
12824         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
12825         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
12826         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
12827         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
12828         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
12829         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
12830         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
12831         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
12832         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
12833         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
12834         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
12835         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
12836         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
12837         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
12838
12839 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
12840
12841         * math/tst-CMPLX.c: Include <stdio.h>.
12842
12843 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
12844
12845         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
12846         float.
12847         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
12848         * sysdeps/sparc/bits/mathdef.h: Likewise.
12849
12850 2012-01-31  Marek Polacek  <polacek@redhat.com>
12851
12852         * libio/libio.h: Don't define _PARAMS.
12853         * locale/programs/config.h: Don't define PARAMS.
12854         * stdlib/strtol_l.c: Likewise.
12855         (__strtol_l): Remove PARAMS from the prototype.
12856
12857 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
12858
12859         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
12860         names.  Just use the correct names.  Remove unnecessary wrapper
12861         functions.
12862         * malloc/arena.c: Likewise.
12863         * malloc/hooks.c: Likewise.
12864
12865         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
12866         ARENA_TEST says not to.  Simplify test for creation of a new arena.
12867         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
12868
12869 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
12870
12871         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
12872         into tail calls.
12873         (update_get_addr): New function.
12874         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
12875         GET_ADDR_MODULE parameter.
12876
12877 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
12878
12879         * crypt/cert.c: Remove __STDC__ conditionals.
12880         * crypt/crypt-entry.c: Likewise.
12881         * crypt/crypt_util.c: Likewise.
12882         * libio/filedoalloc.c: Likewise.
12883         * libio/fileops.c: Likewise.
12884         * libio/genops.c: Likewise.
12885         * libio/iofclose.c: Likewise.
12886         * libio/iofdopen.c: Likewise.
12887         * libio/iofopen.c: Likewise.
12888         * libio/iofopen64.c: Likewise.
12889         * libio/iogetdelim.c: Likewise.
12890         * libio/iopopen.c: Likewise.
12891         * libio/obprintf.c: Likewise.
12892         * libio/oldfileops.c: Likewise.
12893         * libio/oldiofclose.c: Likewise.
12894         * libio/oldiofdopen.c: Likewise.
12895         * libio/oldiofopen.c: Likewise.
12896         * libio/oldiopopen.c: Likewise.
12897         * libio/wfiledoalloc.c: Likewise.
12898         * libio/wgenops.c: Likewise.
12899         * locale/programs/xmalloc.c: Likewise.
12900         * misc/syslog.c: Likewise.
12901         * stdio-common/xbug.c: Likewise.
12902         * string/memchr.c: Likewise.
12903         * string/memcmp.c: Likewise.
12904         * string/memrchr.c: Likewise.
12905         * string/rawmemchr.c: Likewise.
12906         * sysdeps/posix/getcwd.c: Likewise.
12907         * time/strftime_l.c: Likewise.
12908
12909 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
12910
12911         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
12912         * config.make.in (config-cflags-sse2avx): Define.
12913         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
12914         Fix typo.
12915
12916 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
12917
12918         * scripts/config.guess: Update from upstream config git repository.
12919         * scripts/config.sub: Likewise.
12920
12921 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
12922
12923         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
12924         (EM_NUM): Update.
12925         (R_TILEPRO_*, R_TILEGX_*): New macros.
12926
12927         * scripts/firstversions.awk: Fix bug in version range handling.
12928
12929         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
12930
12931         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
12932
12933         * include/sys/epoll.h: New file.
12934         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
12935         libc_hidden_def.
12936
12937 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
12938
12939         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
12940         Avoid unnecessary __WORDSIZE == 64 test.
12941         (fmaxf): Use VEX format if possible.
12942         (fmax): Likewise.
12943         (fminf): Likewise.
12944         (fmin): Likewise.
12945
12946         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
12947         * math/math_private.h: Remove libc_fegetround* and
12948         libc_fesetround*.
12949         * sysdeps/i386/configure.in: Check for -msse2avx.
12950         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
12951         also if SSE2AVX is defined.
12952         Remove libc_fegetround* and libc_fesetround*.
12953         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
12954         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
12955         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
12956         of HAS_YMM_USABLE.
12957         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
12958         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
12959         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
12960         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
12961         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
12962
12963         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
12964
12965 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12966
12967         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
12968         size is not set.
12969         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
12970
12971 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
12972
12973         [BZ #13618]
12974         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
12975         relocation.
12976         * Makeconfig (libm): Define.
12977         * elf/Makefile: Add rules to build and run tst-relsort1.
12978         * elf/tst-relsort1.c: New file.
12979         * elf/tst-relsort1mod1.c: New file.
12980         * elf/tst-relsort1mod2.c: New file.
12981
12982 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
12983
12984         * math/s_ldexp.c: Remove __STDC__ conditionals.
12985         * math/s_ldexpf.c: Likewise.
12986         * math/s_ldexpl.c: Likewise.
12987         * math/s_nextafter.c: Likewise.
12988         * math/s_nexttowardf.c: Likewise.
12989         * math/s_significand.c: Likewise.
12990         * math/s_significandf.c: Likewise.
12991         * math/s_significandl.c: Likewise.
12992         * math/w_jnl.c: Likewise.
12993         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
12994         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
12995         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
12996         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
12997         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
12998         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
12999         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
13000         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
13001         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
13002         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
13003         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
13004         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
13005         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
13006         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
13007         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
13008         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
13009         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
13010         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
13011         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
13012         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
13013         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
13014         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
13015         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
13016         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
13017         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
13018         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
13019         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
13020         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
13021         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
13022         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
13023         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
13024         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
13025         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
13026         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
13027         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
13028         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
13029         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
13030         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
13031         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
13032         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
13033         * sysdeps/ieee754/k_standard.c: Likewise.
13034         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
13035         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
13036         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
13037         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
13038         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
13039         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
13040         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
13041         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
13042         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
13043         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
13044         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
13045         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
13046         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
13047         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
13048         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
13049         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
13050         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
13051         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
13052         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
13053         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
13054         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
13055         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
13056         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
13057         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
13058         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
13059         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
13060         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
13061         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
13062         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
13063         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
13064         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
13065         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
13066         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
13067         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
13068         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
13069         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
13070         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
13071         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
13072         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
13073         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
13074         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
13075         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
13076         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
13077         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
13078         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
13079         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
13080         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
13081         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
13082         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
13083         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
13084         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
13085         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
13086         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
13087         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
13088         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
13089         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
13090         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
13091         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
13092         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
13093         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
13094         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
13095         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
13096         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
13097         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
13098         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
13099         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
13100         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
13101         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
13102         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
13103         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
13104         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
13105         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
13106         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
13107         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
13108         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
13109         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
13110         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
13111         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
13112         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
13113         * sysdeps/ieee754/s_matherr.c: Likewise.
13114         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
13115         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
13116         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
13117         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
13118
13119 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
13120
13121         * crypt/md5.h: Remove __STDC__ conditionals.
13122         * libio/libioP.h: Likewise.
13123         * locale/programs/config.h: Likewise.
13124         * sysdeps/generic/sysdep.h: Likewise.
13125         * sysdeps/i386/asm-syntax.h: Likewise.
13126         * sysdeps/s390/asm-syntax.h: Likewise.
13127         * sysdeps/unix/sysdep.h: Likewise.
13128         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
13129         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
13130
13131 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
13132
13133         * libio/libio.h: Remove __STDC__ conditionals.
13134         * malloc/obstack.h: Likewise.
13135         * math/complex.h: Likewise.
13136         * math/math.h: Likewise.
13137         * sysdeps/generic/_G_config.h: Likewise.
13138         * sysdeps/gnu/_G_config.h: Likewise.
13139         * sysdeps/mach/hurd/_G_config.h: Likewise.
13140         * sysdeps/powerpc/bits/mathdef.h: Likewise.
13141         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
13142         * sysdeps/sparc/bits/mathdef.h: Likewise.
13143
13144 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
13145
13146         [BZ #13583]
13147         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
13148         Clean up HAS_* macros.
13149         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
13150         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
13151         possible.
13152         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
13153         HAS_AVX.
13154         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
13155         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
13156         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
13157         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
13158         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
13159
13160 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
13161
13162         * elf/tst-unique3.cc (gets): Remove declaration.
13163         * elf/tst-unique3lib.cc (gets): Likewise.
13164         * elf/tst-unique3lib2.cc (gets): Likewise.
13165         * elf/tst-unique4.cc (gets): Likewise.
13166
13167 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
13168
13169         * include/stdio.h: Add C++ protection.  Add gets declarations and
13170         definitions.
13171         * debug/tst-chk1.c: Don't declare gets here.
13172         * stdio-common/tst-gets.c: Likewise.
13173
13174 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
13175
13176         * posix/glob: Remove directory.
13177
13178 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
13179
13180         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
13181
13182 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
13183
13184         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
13185         of the non-standard EPFNOSUPPORT.
13186
13187 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13188
13189         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
13190         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
13191         ANYWHERE set to 1 only on KERN_NO_SPACE error.
13192
13193 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
13194
13195         * wcsmbs/uchar.h: Test __STDC_VERSION__.
13196
13197 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
13198
13199         * nscd/aicache.c (addhstaiX): Do not cache negative results of
13200         transient errors.
13201         * nscd/grpcache.c (cache_addgr): Likewise.
13202         * nscd/hstcache.c (cache_addhst): Likewise.
13203         * nscd/initgrcache.c (addinitgroupsX): Likewise.
13204         * nscd/pwdcache.c (cache_addpw): Likewise.
13205         * nscd/servicescache.c (cache_addserv): Likewise.
13206
13207 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
13208
13209         * malloc/malloc.c: Various cleanups.
13210         * malloc/hooks.c: Likewise.
13211
13212         * stdlib/Makefile (tests): Add bug-fmtmsg1.
13213         * stdlib/bug-fmtmsg1.c: New file.
13214
13215         * stdlib/fmtmsg.c (init): Add missing unlock.
13216         Patch by Peng Haitao <penght@cn.fujitsu.com>.
13217
13218 2012-01-12  Marek Polacek  <polacek@redhat.com>
13219
13220         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
13221         and _GNU_SOURCE.
13222
13223 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
13224
13225         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
13226         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
13227         macro to ensure uniqueness of label name.
13228         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
13229         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
13230
13231 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
13232
13233         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
13234
13235         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
13236         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
13237         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
13238         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
13239
13240 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
13241
13242         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
13243
13244         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
13245         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
13246         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
13247
13248         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
13249
13250         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
13251         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
13252         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
13253         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
13254
13255         * math/bits/math-finite.h: Add ldexp support.
13256
13257 2012-01-10  Marek Polacek  <polacek@redhat.com>
13258
13259         * locale/programs/localedef.h (show_archive_content): Add noreturn
13260         attribute.
13261
13262 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
13263
13264         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
13265
13266 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
13267
13268         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
13269
13270         * io/Makefile (headers): Add bits/poll2.h.
13271
13272 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
13273
13274         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
13275         typo #include statement.
13276
13277 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
13278
13279         * include/sys/cdefs.h: Define __attribute_alloc_size.
13280         * catgets/gencat.c: Add alloc_size attribute and apply consistently
13281         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
13282         * elf/pldd.c: Likewise.
13283         * iconv/iconv_charmap.c: Likewise.
13284         * iconv/iconvconfig.c: Likewise.
13285         * iconv/strtab.c: Likewise.
13286         * locale/programs/locale.c: Likewise.
13287         * locale/programs/localedef.h: Likewise.
13288         * locale/programs/simple-hash.c: Likewise.
13289         * nscd/nscd.h: Likewise.
13290         * nss/makedb.c: Likewise.
13291         * sysdeps/generic/ldconfig.h: Likewise.
13292         * locale/programs/localedef.c: Remove xmalloc prototype.
13293         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
13294
13295 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
13296
13297         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
13298         appropriate.
13299
13300 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
13301
13302         * math/Makefile (tests): Add tst-CMPLX.
13303         * math/tst-CMPLX.c: New file.
13304
13305         * math/complex.h (CMPLXL): Fix typo.
13306
13307         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
13308         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
13309         GLIBC_2.16.
13310         * debug/tst-chk1.c: Add poll and ppoll tests.
13311         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
13312         * include/sys/poll.h: Add hidden proto for ppoll.
13313         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
13314         * sysdeps/mach/hurd/ppoll.c: Likewise.
13315         * io/ppoll.c: Likewise.
13316         * debug/poll_chk.c: New file.
13317         * debug/ppoll_chk.c: New file.
13318         * include/bits/poll2.h: New file.
13319         * io/bits/poll2.h: New file.
13320
13321         [BZ #1350]
13322         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
13323
13324         * configure.in: static is always set to yes.  Remove.
13325         * config.make.in: Don't set build-static.
13326         * Makeconfig: Remove use of build-static.
13327         * dlfcn/Makefile: Likewise.
13328         * elf/Makefile: Likewise.
13329         * math/Makefile: Likewise.
13330         * misc/Makefile: Likewise.
13331         * nptl/Makefile: Likewise.
13332         * sysdeps/mach/hurd/Makefile: Likewise.
13333
13334         * configure.in: PWD_P is not used anymore.
13335         * config.make.in: Remove PWD_P entry.
13336
13337         * configure.in: Remove last remnants of RANLIB.
13338         No need to check for signed size_t anymore.
13339         Don't set libc_commonpagesize and libc_relro_required here for Alpha
13340         and IA-64.
13341         Remove __builtin_expect test because we require at least gcc 3.4.
13342         * aclocal.m4: Likewise.
13343
13344         * wcsmbs/mbrtoc16.c: Implement using towc function.
13345         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
13346         * wcsmbs/wcsmbsload.c: Likewise.
13347         * iconv/gconv_simple.c: Likewise.
13348         * iconv/gconv_int.h: Likewise.
13349         * iconv/gconv_builtin.h: Likewise.
13350         * iconv/iconv_prog.c: Remove CHAR16 handling.
13351
13352         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
13353
13354         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
13355
13356         * configure.in: Remove --with-elf and --enable-bounded options.
13357         Dont set base_machine for ia64.  More non-ELF conditions removed.
13358         Remove testing and setting of leading underscore information.
13359         * config.make.in (build-bounded): Set to no.
13360         * config.h.in: Remove NO_UNDERSCORES entry.
13361         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
13362         them.
13363         * csu/start.c: Remove !NO_UNDERSCORE code.
13364         * locale/localeinfo.h: Likewise.
13365         * sysdeps/generic/machine-gmon.h: Likewise.
13366         * sysdeps/generic/sysdep.h: Likewise.
13367         * sysdeps/i386/sysdep.h: Likewise.
13368         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
13369         * sysdeps/mach/sysdep.h: Likewise.
13370         * sysdeps/s390/s390-32/sysdep.h: Likewise.
13371         * sysdeps/s390/s390-64/sysdep.h: Likewise.
13372         * sysdeps/sh/sysdep.h: Likewise.
13373         * sysdeps/sparc/sparc32/alloca.S: Likewise.
13374         * sysdeps/unix/i386/sysdep.S: Likewise.
13375         * sysdeps/unix/sparc/start.c: Likewise.
13376         * sysdeps/unix/sparc/sysdep.S: Likewise.
13377         * sysdeps/unix/sparc/sysdep.h: Likewise.
13378         * sysdeps/unix/start.c: Likewise.
13379         * sysdeps/unix/x86_64/sysdep.S: Likewise.
13380         * sysdeps/x86_64/sysdep.h: Likewise.
13381
13382 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
13383
13384         [BZ #13553]
13385         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
13386         for non-gcc.
13387         * argp/argp-fmtstream.h: Use const instead __const.
13388         * argp/argp.h: Likewise.
13389         * assert/assert.h: Likewise.
13390         * bits/fenv.h: Likewise.
13391         * bits/sched.h: Likewise.
13392         * bits/sigset.h: Likewise.
13393         * bits/sigthread.h: Likewise.
13394         * catgets/nl_types.h: Likewise.
13395         * conform/data/pthread.h-data: Likewise.
13396         * crypt/crypt-private.h: Likewise.
13397         * crypt/crypt.h: Likewise.
13398         * crypt/crypt_util.c: Likewise.
13399         * ctype/ctype.h: Likewise.
13400         * debug/execinfo.h: Likewise.
13401         * debug/mbsnrtowcs_chk.c: Likewise.
13402         * debug/mbsrtowcs_chk.c: Likewise.
13403         * debug/wcsnrtombs_chk.c: Likewise.
13404         * debug/wcsrtombs_chk.c: Likewise.
13405         * debug/wcstombs_chk.c: Likewise.
13406         * dirent/dirent.h: Likewise.
13407         * dlfcn/dlfcn.h: Likewise.
13408         * elf/neededtest4.c: Likewise.
13409         * grp/grp.h: Likewise.
13410         * gshadow/gshadow.h: Likewise.
13411         * iconv/gconv.h: Likewise.
13412         * iconv/gconv_int.h: Likewise.
13413         * iconv/gconv_simple.c: Likewise.
13414         * iconv/iconv.h: Likewise.
13415         * iconv/loop.c: Likewise.
13416         * iconv/skeleton.c: Likewise.
13417         * include/aio.h: Likewise.
13418         * include/aliases.h: Likewise.
13419         * include/argz.h: Likewise.
13420         * include/arpa/inet.h: Likewise.
13421         * include/assert.h: Likewise.
13422         * include/dirent.h: Likewise.
13423         * include/dlfcn.h: Likewise.
13424         * include/execinfo.h: Likewise.
13425         * include/fcntl.h: Likewise.
13426         * include/fenv.h: Likewise.
13427         * include/glob.h: Likewise.
13428         * include/grp.h: Likewise.
13429         * include/libintl.h: Likewise.
13430         * include/mntent.h: Likewise.
13431         * include/netdb.h: Likewise.
13432         * include/pwd.h: Likewise.
13433         * include/rpc/netdb.h: Likewise.
13434         * include/sched.h: Likewise.
13435         * include/search.h: Likewise.
13436         * include/shadow.h: Likewise.
13437         * include/signal.h: Likewise.
13438         * include/stdio.h: Likewise.
13439         * include/stdlib.h: Likewise.
13440         * include/string.h: Likewise.
13441         * include/sys/socket.h: Likewise.
13442         * include/sys/stat.h: Likewise.
13443         * include/sys/statfs.h: Likewise.
13444         * include/sys/statvfs.h: Likewise.
13445         * include/sys/syslog.h: Likewise.
13446         * include/sys/time.h: Likewise.
13447         * include/sys/uio.h: Likewise.
13448         * include/time.h: Likewise.
13449         * include/unistd.h: Likewise.
13450         * include/utmp.h: Likewise.
13451         * include/wchar.h: Likewise.
13452         * include/wctype.h: Likewise.
13453         * inet/aliases.h: Likewise.
13454         * inet/arpa/inet.h: Likewise.
13455         * inet/netinet/ether.h: Likewise.
13456         * inet/netinet/in.h: Likewise.
13457         * intl/libintl.h: Likewise.
13458         * io/bits/fcntl2.h: Likewise.
13459         * io/fcntl.h: Likewise.
13460         * io/ftw.h: Likewise.
13461         * io/sys/poll.h: Likewise.
13462         * io/sys/stat.h: Likewise.
13463         * io/sys/statfs.h: Likewise.
13464         * io/sys/statvfs.h: Likewise.
13465         * io/utime.h: Likewise.
13466         * libio/bits/stdio.h: Likewise.
13467         * libio/bits/stdio2.h: Likewise.
13468         * libio/libio.h: Likewise.
13469         * libio/libioP.h: Likewise.
13470         * libio/stdio.h: Likewise.
13471         * locale/lc-ctype.c: Likewise.
13472         * locale/locale.h: Likewise.
13473         * login/utmp.h: Likewise.
13474         * malloc/arena.c: Likewise.
13475         * malloc/malloc.c: Likewise.
13476         * malloc/malloc.h: Likewise.
13477         * malloc/mcheck.c: Likewise.
13478         * malloc/mtrace.c: Likewise.
13479         * math/bits/mathcalls.h: Likewise.
13480         * math/fenv.h: Likewise.
13481         * math/math_private.h: Likewise.
13482         * misc/bits/error.h: Likewise.
13483         * misc/bits/syslog.h: Likewise.
13484         * misc/err.h: Likewise.
13485         * misc/error.h: Likewise.
13486         * misc/fstab.h: Likewise.
13487         * misc/mntent.h: Likewise.
13488         * misc/regexp.h: Likewise.
13489         * misc/search.h: Likewise.
13490         * misc/sgtty.h: Likewise.
13491         * misc/sys/mman.h: Likewise.
13492         * misc/sys/syslog.h: Likewise.
13493         * misc/sys/uio.h: Likewise.
13494         * misc/sys/xattr.h: Likewise.
13495         * misc/ttyent.h: Likewise.
13496         * nis/rpcsvc/ypclnt.h: Likewise.
13497         * nss/nss.h: Likewise.
13498         * posix/bits/unistd.h: Likewise.
13499         * posix/fnmatch.h: Likewise.
13500         * posix/glob.h: Likewise.
13501         * posix/sched.h: Likewise.
13502         * posix/spawn.h: Likewise.
13503         * posix/sys/wait.h: Likewise.
13504         * posix/unistd.h: Likewise.
13505         * posix/wordexp.h: Likewise.
13506         * pwd/pwd.h: Likewise.
13507         * resolv/netdb.h: Likewise.
13508         * resource/sys/resource.h: Likewise.
13509         * rt/aio.h: Likewise.
13510         * rt/bits/mqueue2.h: Likewise.
13511         * rt/mqueue.h: Likewise.
13512         * shadow/shadow.h: Likewise.
13513         * signal/signal.h: Likewise.
13514         * socket/send.c: Likewise.
13515         * socket/sendto.c: Likewise.
13516         * socket/sys/socket.h: Likewise.
13517         * stdio-common/printf.h: Likewise.
13518         * stdlib/bits/stdlib.h: Likewise.
13519         * stdlib/fmtmsg.h: Likewise.
13520         * stdlib/monetary.h: Likewise.
13521         * stdlib/stdlib.h: Likewise.
13522         * stdlib/ucontext.h: Likewise.
13523         * streams/stropts.h: Likewise.
13524         * string/argz.h: Likewise.
13525         * string/bits/string2.h: Likewise.
13526         * string/string.h: Likewise.
13527         * string/strings.h: Likewise.
13528         * sunrpc/rpc/auth.h: Likewise.
13529         * sunrpc/rpc/auth_des.h: Likewise.
13530         * sunrpc/rpc/clnt.h: Likewise.
13531         * sunrpc/rpc/netdb.h: Likewise.
13532         * sunrpc/rpc/pmap_clnt.h: Likewise.
13533         * sunrpc/rpc/xdr.h: Likewise.
13534         * sysdeps/generic/inttypes.h: Likewise.
13535         * sysdeps/generic/net/if.h: Likewise.
13536         * sysdeps/generic/sys/swap.h: Likewise.
13537         * sysdeps/gnu/net/if.h: Likewise.
13538         * sysdeps/gnu/utmpx.h: Likewise.
13539         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
13540         * sysdeps/i386/i486/bits/string.h: Likewise.
13541         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
13542         * sysdeps/s390/bits/string.h: Likewise.
13543         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
13544         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
13545         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
13546         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
13547         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
13548         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
13549         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
13550         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
13551         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
13552         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
13553         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
13554         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
13555         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
13556         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
13557         * sysdeps/unix/sysv/linux/readv.c: Likewise.
13558         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
13559         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
13560         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
13561         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
13562         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
13563         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
13564         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
13565         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
13566         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
13567         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
13568         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
13569         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
13570         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
13571         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
13572         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
13573         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
13574         * sysvipc/sys/ipc.h: Likewise.
13575         * sysvipc/sys/msg.h: Likewise.
13576         * sysvipc/sys/sem.h: Likewise.
13577         * sysvipc/sys/shm.h: Likewise.
13578         * termios/termios.h: Likewise.
13579         * time/sys/time.h: Likewise.
13580         * time/time.h: Likewise.
13581         * wcsmbs/bits/wchar2.h: Likewise.
13582         * wcsmbs/uchar.h: Likewise.
13583         * wcsmbs/wchar.h: Likewise.
13584         * wctype/wctype.h: Likewise.
13585
13586         [BZ #13551]
13587         * Makeconfig: Remove all but ELF support including AIX support.
13588         * Makerules: Likewise.
13589         * config.h.in: Likewise.
13590         * config.make.in: Likewise.
13591         * configure: Likewise.
13592         * configure.in: Likewise.
13593         * csu/Makefile: Likewise.
13594         * csu/version.c: Likewise.
13595         * debug/Makefile: Likewise.
13596         * dlfcn/Makefile: Likewise.
13597         * elf/Makefile: Likewise.
13598         * extra-lib.mk: Likewise.
13599         * iconv/Makefile: Likewise.
13600         * include/libc-symbols.h: Likewise.
13601         * include/shlib-compat.h: Likewise.
13602         * resolv/Makefile: Likewise.
13603         * resolv/res_libc.c: Likewise.
13604         * rt/Makefile: Likewise.
13605         * sysdeps/i386/asm-syntax.h: Likewise.
13606         * sysdeps/i386/sysdep.h: Likewise.
13607         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
13608         * sysdeps/mach/sysdep.h: Likewise.
13609         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
13610         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
13611         * sysdeps/s390/asm-syntax.h: Likewise.
13612         * sysdeps/s390/s390-32/sysdep.h: Likewise.
13613         * sysdeps/s390/s390-64/sysdep.h: Likewise.
13614         * sysdeps/sh/sysdep.h: Likewise.
13615         * sysdeps/unix/sparc/sysdep.h: Likewise.
13616         * sysdeps/wordsize-32/divdi3.c: Likewise.
13617         * sysdeps/x86_64/sysdep.h: Likewise.
13618
13619         * argp/Versions: Remove _argp_unlock_xxx.
13620
13621         [BZ #13559]
13622         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
13623         * abilist/libBrokenLocale.abilist: Likewise.
13624         * abilist/libanl.abilist: Likewise.
13625         * abilist/libc.abilist: Likewise.
13626         * abilist/libcrypt.abilist: Likewise.
13627         * abilist/libdl.abilist: Likewise.
13628         * abilist/libm.abilist: Likewise.
13629         * abilist/libnsl.abilist: Likewise.
13630         * abilist/libpthread.abilist: Likewise.
13631         * abilist/libresolv.abilist: Likewise.
13632         * abilist/librt.abilist: Likewise.
13633         * abilist/libthread_db.abilist: Likewise.
13634         * abilist/libutil.abilist: Likewise.
13635         * abilist/libnss_db.abilist: New file.
13636
13637         * scripts/abilist.awk: Add support for indirect functions.
13638
13639         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
13640
13641         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
13642
13643         * shlib-versions: Remove entries for ports architectures.
13644
13645         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
13646         files in ports.
13647         * elf/stackguard-macros.h: Remove support for IA-64.
13648         * elf/tst-auditmod1.c: Likewise.
13649         * sysdeps/generic/ldsodefs.h: Likewise.
13650
13651         * sysdeps/unix/sysv/linux/configure.in: Ports should define
13652         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
13653         configure files.
13654
13655         [BZ #13552]
13656         * configure.in: Remove --enable-omitfp support.
13657         * FAQ.in: Adjust.
13658         * config.make.in: Likewise.
13659         * Makeconfig: Likewise.
13660         * manual/install.texi: Likewise.
13661
13662         In case anyone cares, the IA-64 architecture could move to ports.
13663         * sysdeps/ia64/*: Removed.
13664         * sysdeps/unix/sysv/linux/ia64/*: Removed.
13665         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
13666
13667         [BZ #13555]
13668         * configure.in: Remove entries for unsupported architectures.
13669
13670         [BZ #13533]
13671         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
13672         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
13673         routines.
13674         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
13675         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
13676         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
13677         fall back to using wcrtomb.
13678         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
13679         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
13680         renaming.
13681         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
13682         * wcsmbs/tst-c16c32-1.c: New file.
13683
13684         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
13685         local variable.
13686
13687         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
13688
13689         * elf/tst-unique3.cc: Add explicit declaration of gets.
13690         * elf/tst-unique3lib.cc: Likewise.
13691         * elf/tst-unique3lib2.cc: Likewise.
13692         * elf/tst-unique4.cc: Likewise.
13693
13694         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
13695
13696 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
13697
13698         [BZ #13566]
13699         * assert/assert.h (static_assert): Don't define for C++.
13700         * libio/stdio.h (gets): Do declare for C++ <= C++11.
13701         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
13702
13703 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
13704
13705         * iconv/loop.c (single loop): Fix assertion in storing of
13706         remaining bytes.
13707
13708         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
13709
13710 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
13711
13712         * posix/getconf.c: Update copyright year.
13713         * nss/getent.c: Likewise.
13714         * nss/makedb.c: Likewise.
13715         * iconv/iconvconfig.c: Likewise.
13716         * iconv/iconv_prog.c: Likewise.
13717         * elf/ldconfig.c: Likewise.
13718         * elf/pldd.c: Likewise.
13719         * elf/sotruss.ksh: Likewise.
13720         * catgets/gencat.c: Likewise.
13721         * csu/version.c: Likewise.
13722         * elf/ldd.bash.in: Likewise.
13723         * elf/sprof.c (print_version): Likewise.
13724         * locale/programs/locale.c: Likewise.
13725         * locale/programs/localedef.c: Likewise.
13726         * login/programs/pt_chown.c: Likewise.
13727         * nscd/nscd.c (print_version): Likewise.
13728         * debug/xtrace.sh: Likewise.
13729         * malloc/memusage.sh: Likewise.
13730         * malloc/mtrace.pl: Likewise.
13731         * debug/catchsegv.sh: Likewise.
13732
13733 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
13734
13735         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
13736         pure attribute.
13737
13738 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
13739
13740         [BZ #13533]
13741         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
13742         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
13743         transformations.
13744         * iconv/gconv_int.h: Likewise.
13745         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
13746         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
13747         from libc for GLIBC_2.16.
13748         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
13749         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
13750         * wcsmbs/uchar.h: Really define mbstate_t.
13751         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
13752         * wcsmbs/c16rtomb.c: New file.
13753         * wcsmbs/mbrtoc16.c: New file.
13754         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
13755         for C/POSIX locale.
13756         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
13757         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
13758
13759         * wcsmbs/wchar.h: Add missing __restrict.
13760
13761 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
13762
13763         [BZ #13532]
13764         * time/Makefile (routines): Add timespec_get.
13765         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
13766         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
13767         timespec for ISO C11.
13768         * time/timespec_get.c: New file.
13769         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
13770         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
13771
13772         [BZ #13531]
13773         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
13774         * stdlib/stdlib.h: Declare aligned_alloc.
13775         * Versions.def: Add GLIBC_2.16 for libc.
13776         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
13777
13778         [BZ 13527]
13779         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
13780         ISO C11.
13781
13782         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
13783         code.
13784
13785         [BZ #13528]
13786         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
13787
13788         [BZ #13529]
13789         * assert/assert.h (static_assert): Define.
13790
13791         * version.h: Update for 2.16 development version.
13792
13793         [BZ #13526]
13794         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
13795         _ISOC11_SOURCE.
13796
13797         * version.h (RELEASE): Bump for 2.15 release.
13798         * include/features.h (__GLIBC_MINOR__): Bump to 15.
13799
13800         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
13801         Patch by Marek Polacek <mpolacek@redhat.com>.
13802
13803         * bits/byteswap.h: Protect long long constants with __extension__.
13804         * sysdeps/i386/bits/byteswap.h: Likewise.
13805         * sysdeps/ia64/bits/byteswap.h: Likewise.
13806         * sysdeps/s390/bits/byteswap.h: Likewise.
13807         * sysdeps/x86_64/bits/byteswap.h: Likewise.
13808
13809 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13810
13811         [BZ #13540]
13812         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
13813         destination buffer.
13814         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
13815
13816 2011-12-23  Marek Polacek  <polacek@redhat.com>
13817
13818         * elf/dl-addr.c (determine_info): Add inline keyword.
13819         * elf/tst-auditmod4b.c (check_avx): Likewise.
13820         * elf/tst-auditmod6b.c (check_avx): Likewise.
13821         * elf/tst-auditmod6c.c (check_avx): Likewise.
13822         * elf/tst-auditmod7b.c (check_avx): Likewise.
13823
13824 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
13825
13826         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
13827         !__SSE_MATH__.
13828
13829 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13830
13831         [BZ #13540]
13832         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
13833         processing for last bytes.
13834
13835 2011-08-06  Bruno Haible  <bruno@clisp.org>
13836
13837         [BZ #13061]
13838         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
13839         U+0385, not to U+1FEE.
13840
13841         [BZ #13062]
13842         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
13843         entry for U+00A5 U+0301.
13844
13845 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
13846
13847         [BZ #13166]
13848         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
13849         buffer for the output is too small.
13850
13851         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
13852         optimization.
13853
13854         [BZ #13185]
13855         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
13856         SSE flags if possible.
13857
13858 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13859
13860         [BZ #13540]
13861         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
13862         processing for last bytes.
13863
13864 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
13865
13866         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
13867         (syscall-list-default-options, syscall-list-default-condition)
13868         (syscall-list-includes): Define.
13869         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
13870         list of ABIs and options and #if conditions for each ABI.  Do not
13871         handle common syscalls between ABIs specially.
13872         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
13873         Remove.
13874         (syscall-list-variants, syscall-list-32bit-options)
13875         (syscall-list-32bit-condition, syscall-list-64bit-options)
13876         (syscall-list-64bit-condition): Define.
13877         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
13878         (syscall-list-variants, syscall-list-32bit-options)
13879         (syscall-list-32bit-condition, syscall-list-64bit-options)
13880         (syscall-list-64bit-condition): Define.
13881         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
13882         Remove.
13883         (syscall-list-variants, syscall-list-32bit-options)
13884         (syscall-list-32bit-condition, syscall-list-64bit-options)
13885         (syscall-list-64bit-condition): Define.
13886         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
13887         Remove.
13888         (syscall-list-variants, syscall-list-32bit-options)
13889         (syscall-list-32bit-condition, syscall-list-64bit-options)
13890         (syscall-list-64bit-condition): Define.
13891
13892 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
13893
13894         * locale/iso-639.def: Add brx entry.
13895
13896         [BZ #13328]
13897         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
13898         Proposed by Mariusz_Cukr <marcukr@op.pl>.
13899
13900         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
13901         __feraiseexcept_renamed.
13902
13903 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
13904
13905         [BZ #13538]
13906         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
13907         EPOLLET with unsigned values.
13908         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
13909         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
13910
13911         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
13912         to large cancellation.
13913         * math/s_cacoshf.c: Likewise.
13914         * math/s_cacoshl.c: Likewise.
13915
13916 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
13917
13918         [BZ #13305]
13919         [BZ #12786]
13920         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
13921         * math/s_cacoshf.c: Likewise.
13922         * math/s_cacoshl.c: Likewise.
13923
13924 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
13925
13926         [BZ #13439]
13927         * iconv/gconv.h: Define __GCONV_SWAP.
13928         * iconvdata/unicode.c: The swap bit must be stored in __flags.
13929         * iconvdata/utf-16.c: Likewise.
13930         * iconvdata/utf-32.c: Likewise.
13931
13932 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
13933
13934         [BZ #13524]
13935         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
13936         numerator after shifting it by one limb.
13937
13938 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
13939
13940         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
13941         under [__USE_EXTERN_INLINES].
13942
13943 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
13944
13945         [BZ #13446]
13946         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
13947
13948 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13949
13950         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
13951         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
13952         optimized code.
13953         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
13954         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
13955         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
13956         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
13957         for strncasecmp/strncasecmp_l compilation.
13958         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
13959         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
13960
13961 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
13962
13963         [BZ #13484]
13964         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
13965         of __asm__.
13966
13967 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
13968
13969         [BZ #13506]
13970         * time/tzfile.c (__tzfile_read): Check values from file header.
13971
13972 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
13973
13974         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
13975         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
13976         * powerpc/powerpc32/dl-start.S: Likewise.
13977         * powerpc/powerpc32/elf/start.S: Likewise.
13978         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
13979         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
13980         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
13981         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
13982         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
13983         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
13984         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
13985         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
13986         * powerpc/powerpc32/fpu/s_round.S: Likewise.
13987         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
13988         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
13989         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
13990         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
13991         * powerpc/powerpc32/memset.S: Likewise.
13992         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
13993         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
13994         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
13995         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
13996         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
13997         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
13998         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
13999         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
14000         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
14001         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
14002         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
14003         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
14004         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
14005
14006 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14007
14008         * math/libm-test.inc: Added more nearbyint tests.
14009         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
14010         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
14011         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
14012         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
14013
14014 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
14015
14016         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
14017         FD_CLOEXEC.
14018
14019 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14020
14021         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
14022         Add wcscpy-ssse3 wcscpy-c.
14023         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
14024         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
14025         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
14026         * sysdeps/x86_64/wcschr.S: New file.
14027         * sysdeps/x86_64/wcsrchr.S: New file.
14028         * string/test-strcmp.c: Remove checking of wcscmp function for
14029         wrong alignments.
14030         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
14031         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
14032         wcsrchr-sse2 wcsrchr-c.
14033         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
14034         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
14035         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
14036         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
14037         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
14038         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
14039         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
14040         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
14041         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
14042         * wcsmbc/wcschr.c (WCSCHR): New macro.
14043
14044 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14045
14046         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
14047         * wcsmbs/test-wcsrchr.c: New file.
14048         * string/test-strrchr.c: Add wcsrchr support.
14049         (WIDE): New macro.
14050         * wcsmbs/test-wcscpy.c: New file.
14051         * string/test-strcpy.c: Add wcscpy support.
14052         (WIDE): New macro.
14053
14054 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
14055
14056         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
14057         the inner loop.
14058
14059 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
14060
14061         [BZ #13472]
14062         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
14063
14064 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
14065
14066         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
14067         Minor optimizations.
14068
14069         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
14070         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
14071         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
14072
14073 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
14074
14075         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
14076         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
14077         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
14078         for gcc to avoid warnings.
14079         * inet/Makefile (tests): Add tst-checks.
14080         * inet/tst-checks.c: New file.
14081
14082         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
14083         warning.
14084
14085         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
14086         __wmemcmp_sse2.
14087
14088         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
14089         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
14090
14091         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
14092
14093 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
14094
14095         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
14096         problem.
14097
14098         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
14099
14100 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
14101
14102         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
14103         conditional on GCC version.
14104         (__arch_compare_and_exchange_val_8_acq)
14105         (__arch_compare_and_exchange_val_16_acq)
14106         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
14107         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
14108         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
14109
14110 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
14111
14112         * sysdeps/sh/backtrace.c: New file.
14113
14114 2011-12-02  Andreas Schwab  <schwab@redhat.com>
14115
14116         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
14117         parenthesis.
14118
14119 2011-12-01  Andreas Schwab  <schwab@redhat.com>
14120
14121         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
14122         falling back to utime.
14123
14124 2011-11-30  Andreas Schwab  <schwab@redhat.com>
14125
14126         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
14127         expectations for float.
14128
14129 2011-11-29  Andreas Schwab  <schwab@redhat.com>
14130
14131         * locale/weight.h (findidx): Add parameter len.
14132         * locale/weightwc.h (findidx): Likewise.
14133         * posix/fnmatch_loop.c (FCT): Adjust caller.
14134         * posix/regcomp.c (build_equiv_class): Likewise.
14135         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
14136         * posix/regexec.c (check_node_accept_bytes): Likewise.
14137         * string/strcoll_l.c (STRCOLL): Likewise.
14138         * string/strxfrm_l.c (STRXFRM): Likewise.
14139
14140 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
14141
14142         * Makefile.in: Remove CVSOPT handling.
14143         * configure.in: Remove use of AC_REVISION.
14144         * iconvdata/Makefile (distribute): No need to filter out CVS.
14145         * scripts/list-sources.sh: Remove CVS, subversion and monotone
14146         handling.
14147
14148 2011-11-16  Andreas Schwab  <schwab@redhat.com>
14149
14150         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
14151         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
14152         [USE_AS_STRNCASECMP_L]: Likewise.
14153         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
14154         NO_TLS_DIRECT_SEG_REFS.
14155         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
14156         Fix argument offsets for non-PIC.
14157         [USE_AS_STRNCASECMP_L]: Likewise.
14158         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
14159         NO_TLS_DIRECT_SEG_REFS.
14160
14161 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
14162
14163         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
14164         O_CLOEXEC.
14165         * locale/loadlocale.c (_nl_load_locale): Likewise.
14166
14167 2011-11-15  Andreas Schwab  <schwab@redhat.com>
14168
14169         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
14170         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
14171         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
14172         (SYSCALL_GETTIME): Set errno on error.
14173
14174         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
14175         count references to noai6ai_cached.
14176
14177 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
14178
14179         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
14180
14181         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
14182         FD_CLOEXEC for /proc/self/maps.
14183
14184         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
14185         FD_CLOEXEC for /proc/meminfo.
14186
14187         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
14188         gai.conf.
14189
14190         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
14191         FD_CLOEXEC for given file.
14192
14193         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
14194
14195         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
14196         FD_CLOEXEC for /etc/hosts.
14197         (_gethtent): Likewise.
14198
14199         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
14200
14201         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
14202         cancellation and set FD_CLOEXEC for /etc/netgroup.
14203
14204         * nss/nss_files/files-key.c (search): Don't allow cancellation when
14205         reading /etc/publickey.
14206
14207         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
14208         allow cancellation when reading /etc/group.
14209
14210         * nss/nss_files/files-alias.c (internal_setent): Don't allow
14211         cancellation.
14212         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
14213
14214         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
14215         when using data file.
14216
14217         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
14218
14219         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
14220         (write_nis_obj): Use "c" and "e" in fopen.
14221
14222         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
14223
14224         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
14225
14226         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
14227
14228         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
14229
14230         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
14231         locale.alias.
14232
14233         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
14234
14235         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
14236
14237         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
14238
14239         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
14240         file parsing and set FD_CLOEXEC.
14241
14242 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
14243
14244         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
14245
14246 2011-11-14  Andreas Schwab  <schwab@redhat.com>
14247
14248         * malloc/arena.c (arena_get2): Don't call reused_arena when
14249         _int_new_arena failed.
14250
14251 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
14252
14253         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
14254         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
14255         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
14256         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
14257         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
14258         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
14259         to compile strcasecmp and strncasecmp.
14260         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
14261         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
14262
14263         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
14264
14265 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
14266
14267         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
14268         locale-defines.sym to gen-as-const-headers.
14269         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
14270         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
14271         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
14272         to compile strcasecmp and strncasecmp.
14273         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
14274         strcasecmp_l and strncasecmp_l.
14275         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
14276         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
14277         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
14278         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
14279         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
14280         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
14281         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
14282         * sysdeps/i386/i686/multiarch/strncase.S: New file.
14283         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
14284         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
14285         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
14286
14287 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
14288
14289         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
14290         result of SYSDEP_GETTIME_CPU to retval.
14291         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
14292         parameter list to macro.  Remove trailing semicolon.  Adjust users.
14293
14294         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
14295         variable.
14296
14297         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
14298         mantissa words.
14299         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
14300
14301         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
14302         from unused variable.
14303
14304         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
14305         DWARF definitions.
14306         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
14307         for assembling.
14308
14309         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
14310         over namespaces.
14311
14312         * sunrpc/rpc_prot.c (rejected): Fix case value.
14313
14314         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
14315         unsigned long long int to avoid warnings in shift.
14316
14317         * posix/regex_internal.c (re_string_reconstruct): Actually use result
14318         of use of trans.
14319         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
14320         variable tmp.
14321
14322         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
14323         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
14324         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
14325
14326         * nis/nis_table.c (nis_list): Use variable of correct type for
14327         result of __follow_path call.
14328
14329 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14330
14331         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
14332         of math functions ceil, trunc, floor, round, and sqrt, when
14333         avaliable on the platform.
14334         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
14335         name clash.
14336         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
14337         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
14338         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
14339
14340 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
14341
14342         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
14343         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
14344
14345 2011-11-11  Roland McGrath  <roland@hack.frob.com>
14346
14347         * include/unistd.h: Fix __readlink return type.
14348         Reported by Chris Metcalf <cmetcalf@tilera.com>.
14349
14350 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
14351
14352         * stdlib/ucontext.h: Undo last change for makecontext.
14353
14354 2011-11-11  Andreas Schwab  <schwab@redhat.com>
14355
14356         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
14357
14358         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
14359         * setjmp/setjmp.h: Mark functions as non-leaf.
14360         * setjmp/bits/setjmp2.h: Likewise.
14361         * stdlib/ucontext.h: Likewise.
14362
14363 2011-11-10  Andreas Schwab  <schwab@redhat.com>
14364
14365         * malloc/arena.c (_int_new_arena): Don't increment narenas.
14366         (reused_arena): Don't check arena limit.
14367         (arena_get2): Atomically check arena limit.
14368
14369 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
14370
14371         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
14372         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
14373
14374         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
14375         instructions.
14376
14377 2011-11-07  Andreas Schwab  <schwab@redhat.com>
14378
14379         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
14380         handler when locking.
14381
14382         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
14383         Fix size of allocated buffer.
14384
14385 2011-11-04  Andreas Schwab  <schwab@redhat.com>
14386
14387         [BZ #10103]
14388         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
14389         declarations for long double functions.
14390         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
14391
14392         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
14393
14394 2011-11-03  Andreas Schwab  <schwab@redhat.com>
14395
14396         * nscd/nscd.c (main): Don't start AVC thread until credentials are
14397         installed.
14398
14399         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
14400         is disabled.
14401
14402 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14403
14404         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
14405
14406 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
14407
14408         * include/alloca.h (stackinfo_alloca_round): Define.
14409         (extend_alloca): Use it.
14410         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
14411         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
14412         here.
14413
14414         * scripts/check-local-headers.sh: Ignore libaudit.h.
14415
14416         * nscd/Makefile (extra-objs): Make recursively expanded.
14417
14418 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
14419
14420         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
14421         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
14422
14423         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
14424         * posix/tst-rfc3484-2.c: Likewise.
14425         * posix/tst-rfc3484-3.c: Likewise.
14426
14427         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
14428         process_vm_writev.
14429         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
14430         process_vm_writev.
14431         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
14432         process_vm_writev from libc using GLIBC_2.15 version.
14433
14434         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
14435
14436 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
14437
14438         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
14439         stack usage.
14440
14441 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
14442
14443         [BZ #13367]
14444         * nss/getent.c (initgroups_keys): Show error message in case no group
14445         names are given.
14446
14447         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
14448         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
14449         __bump_nl_timestamp.
14450         * nscd/connections (nscd_init): When host database is served open
14451         netlink socket and request notification about configuration changes.
14452         (main_loop_poll): Track netlink file descriptor and bump timestamp
14453         in case data becomes available.
14454         (main_loop_epoll): Likewise.
14455         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
14456         (database_pers_head): Add extra_data fileds.
14457         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
14458         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
14459         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
14460         Adjust caller.
14461         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
14462         in6ai data, call __free_in6ai.
14463         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
14464         Add -DHAVE_NETLINK.
14465         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
14466         interface information.  Reuse previous data if netlink timestamp
14467         is not changed.
14468         (__bump_nl_timestamp): New function.
14469         (__free_in6ai): New function.
14470
14471 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
14472
14473         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
14474         close_not_cancel_no_status here.
14475         (__check_pf): Reorganize code a bit to not call close twice if OOM.
14476
14477 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
14478
14479         [BZ #13276]
14480         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
14481         return value.
14482
14483         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
14484         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
14485         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
14486
14487 2011-07-03  Andreas Jaeger  <aj@suse.de>
14488
14489         [BZ #10709]
14490         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
14491         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
14492         * math/libm-test.inc (sin_test): Add test case.
14493
14494 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
14495
14496         [BZ #13337]
14497         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
14498         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
14499
14500         * elf/chroot_canon.c (chroot_canon): Cleanups.
14501
14502         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
14503
14504         [BZ #13335]
14505         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
14506         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
14507
14508         * string/test-strchr.c: Make usable for strchrnul testing.
14509         * string/test-strchrnul.c: New file.
14510         * string/Makefile (strop-tests): Add strchrnul.
14511
14512         * po/it.po: Update from translation team.
14513         * po/es.po: Likewise.
14514
14515 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
14516
14517         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
14518         the three constants needed as parameters.  Drop the others.
14519         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
14520         __m128i_strloadu_tolower.
14521         Create and initialize variable zero and use it in all the places
14522         where _mm_setzero_si128 was used.
14523
14524         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
14525         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
14526         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
14527         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
14528         anymore.
14529         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
14530         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
14531         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
14532         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
14533         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
14534         __mpranred, __mptan.
14535         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
14536         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
14537         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
14538         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
14539         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
14540         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
14541         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
14542         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
14543         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
14544
14545 2011-10-28  Andreas Schwab  <schwab@redhat.com>
14546
14547         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
14548         redefine if SHARED.
14549         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
14550
14551         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
14552         wide char related routines to wcsmbs subdir.
14553
14554 2011-10-27  Andreas Schwab  <schwab@redhat.com>
14555
14556         [BZ #13344]
14557         * misc/sys/cdefs.h (__THROWNL): Define.
14558         * posix/unistd.h: Use __THREADNL instead of __THREAD
14559         for memory synchronization functions.
14560
14561 2011-10-26  Roland McGrath  <roland@hack.frob.com>
14562
14563         [BZ #13349]
14564         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
14565         doesn't exist.
14566         * manual/stdio.texi (Obstack Streams): Node removed.
14567
14568 2011-10-26  Andreas Schwab  <schwab@redhat.com>
14569
14570         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
14571         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
14572         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
14573
14574         * math/math_private.h (math_force_eval): Allow non-addressable
14575         arguments.
14576         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
14577
14578 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
14579
14580         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
14581         file is not needed.
14582
14583         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
14584         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
14585         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
14586         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
14587         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
14588         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
14589         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
14590         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
14591         Add AVX variants.
14592         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
14593         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
14594         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
14595         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
14596         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
14597         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
14598         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
14599         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
14600         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
14601         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
14602         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
14603         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
14604         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
14605         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
14606         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
14607         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
14608         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
14609         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
14610         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
14611
14612         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
14613         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
14614
14615         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
14616         place.  Use VEX encoding when compiling for AVX.
14617
14618 2011-10-25  Andreas Schwab  <schwab@redhat.com>
14619
14620         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
14621         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
14622
14623         * string/test-strchr.c (do_test): Don't generate NUL bytes.
14624
14625 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
14626
14627         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
14628         useless if() expression.
14629         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
14630         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
14631         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
14632         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
14633         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
14634         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
14635         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
14636         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
14637         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
14638         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
14639         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
14640         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
14641         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
14642         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
14643         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
14644         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
14645         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
14646         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
14647         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
14648
14649         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
14650
14651 2011-10-25  Andreas Schwab  <schwab@redhat.com>
14652
14653         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
14654         condition.
14655         * elf/dl-fini.c (_dl_sort_fini): Likewise.
14656
14657 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
14658
14659         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
14660         .text section.  Avoid duplicate constants.
14661         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
14662         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14663         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
14664         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14665         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
14666         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14667         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14668         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14669         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
14670         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
14671         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
14672         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
14673         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
14674         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
14675         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
14676         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
14677         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
14678         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
14679         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
14680         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
14681         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
14682         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
14683         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
14684         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
14685         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
14686         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
14687         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
14688         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
14689         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
14690         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
14691         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
14692         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
14693         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
14694         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
14695         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
14696         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
14697         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
14698         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
14699         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
14700         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
14701         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
14702         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
14703         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
14704         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
14705         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
14706
14707 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
14708
14709         * sysdeps/x86_64/dla.h: Move to ...
14710         * sysdeps/x86_64/fpu/dla.h: ...here.
14711         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
14712         situations.  Use __builtin_fma only for gcc 4.6 and up.
14713
14714         * config.make.in: Add have-mfma4 entry.
14715         * configure.in: Substitute libc_cv_cc_fma4.
14716         * math/Makefile (dbl-only-routines): Add sincostab.
14717         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
14718         Use __sincostab not sincos.
14719         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
14720         name is a macro.
14721         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
14722         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14723         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14724         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
14725         using __copysign.
14726         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
14727         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
14728         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
14729         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
14730         and __inv.
14731         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
14732         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
14733         __copysign.
14734         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
14735         define aliases when function name is a macro.
14736         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
14737         sysdeps/ieee754/dbl-64/sincos.tbl.
14738         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
14739         fma4-enabled routines.
14740         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
14741         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
14742         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
14743         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
14744         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
14745         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
14746         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
14747         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
14748         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
14749         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
14750         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
14751         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
14752         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
14753         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
14754         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
14755         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
14756         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
14757         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
14758         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
14759         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
14760         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
14761         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
14762         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
14763         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
14764         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
14765         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
14766         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
14767         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
14768         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
14769         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
14770
14771         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
14772         rename.
14773         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14774         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14775         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14776         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14777         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14778         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14779         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
14780         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
14781
14782 2011-10-24  Andreas Schwab  <schwab@redhat.com>
14783
14784         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
14785
14786 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
14787
14788         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
14789
14790         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
14791         prediction.
14792         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
14793
14794         * string/strnlen.c: Don't define STRNLEN, reverse logic.
14795         Remove unused variable magic_bits.
14796         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
14797
14798         * string/strnlen.c: Define and use STRNLEN macro.
14799         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
14800         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
14801         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
14802         * wcsmbs/wcslen.c: Define and use WCSLEN.
14803         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
14804         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
14805         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
14806         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
14807         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
14808         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
14809         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
14810
14811 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14812
14813         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
14814         strnlen-sse2-no-bsf.
14815         Rename strlen-no-bsf to strlen-sse2-no-bsf.
14816         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
14817         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
14818         Add strnlen support.
14819         (USE_AS_STRNLEN): New macro.
14820         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
14821         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
14822         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
14823         * sysdeps/x86_64/wcslen.S: New file.
14824
14825 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
14826
14827         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
14828         XMM-moves are used for copying on small sizes.
14829
14830 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14831
14832         * wcsmbs/Makefile (strop-tests): Add wcschr.
14833         * wcsmbs/test-wcschr.c: New file.
14834         * string/test-strchr.c: Update.
14835         Add wcschr support.
14836         (WIDE): New macro.
14837
14838 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14839
14840         * wcsmbs/Makefile (strop-tests): Add wcslen.
14841         * wcsmbs/test-wcslen.c: New file.
14842         * string/test-strlen.c: Update.
14843         Add wcslen support.
14844         (WIDE): New macro.
14845
14846 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
14847
14848         * po/it.po: Update from translation team.
14849
14850 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14851
14852         * sysdeps/x86_64/wcscmp.S: Update.
14853         Fix wrong comparison semantics.
14854         wcscmp shall use signed comparison not unsigned.
14855         Don't use substraction to avoid overflow bug.
14856         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
14857         * wcsmbc/wcscmp.c: Likewise.
14858         * string/test-strcmp.c: Likewise.
14859         Add new tests to check cases with negative values.
14860
14861 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
14862
14863         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
14864         * sysdeps/x86_64/dla.h: ...here.  New file.
14865         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
14866         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14867         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14868         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14869         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14870         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
14871         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14872         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
14873         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
14874
14875 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
14876
14877         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
14878         __ynl_finite aliases.
14879
14880 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
14881
14882         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
14883
14884         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
14885         define DLA_FMA.
14886         [DLA_FMA] (EMULV): Use DLA_FMA.
14887         [DLA_FMA] (MUL12): Use EMULV.
14888         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
14889         that are not needed.
14890         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14891         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14892         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14893         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14894         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14895         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
14896         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
14897
14898 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
14899
14900         * math/s_nan.c: Undef __nan.
14901         * math/s_nanf.c: Undef __nanf.
14902         * math/s_nanl.c: Undef __nanl.
14903         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
14904         "math_private.h".
14905
14906 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
14907
14908         * math/s_catan.c: Add branch predictions.
14909         * math/s_catanf.c: Likewise.
14910         * math/s_catanh.c: Likewise.
14911         * math/s_catanhf.c: Likewise.
14912         * math/s_catanhl.c: Likewise.
14913         * math/s_catanl.c: Likewise.
14914         * math/s_cexp.c: Likewise.
14915         * math/s_cexpf.c: Likewise.
14916         * math/s_cexpl.c: Likewise.
14917         * math/s_clog.c: Likewise.
14918         * math/s_clog10.c: Likewise.
14919         * math/s_clog10f.c: Likewise.
14920         * math/s_clog10l.c: Likewise.
14921         * math/s_clogf.c: Likewise.
14922         * math/s_clogl.c: Likewise.
14923         * math/s_csqrt.c: Likewise.
14924         * math/s_csqrtf.c: Likewise.
14925         * math/s_csqrtl.c: Likewise.
14926         * math/s_ctanf.c: Likewise.
14927         * math/s_ctanh.c: Likewise.
14928         * math/s_ctanhf.c: Likewise.
14929         * math/s_ctanhl.c: Likewise.
14930         * math/s_ctanl.c: Likewise.
14931
14932         * math/math_private.h: Define __nan, __nanf, __nanl.
14933         * math/s_cacosh.c: Include <math_private.h>.
14934         * math/s_cacoshl.c: Likewise.
14935         * math/s_casinh.c: Likewise.
14936         * math/s_casinhf.c: Likewise.
14937         * math/s_casinhl.c: Likewise.
14938         * math/s_ccos.c: Rely entire on ccosh.
14939         * math/s_ccosf.c: Rely entire on ccoshf.
14940         * math/s_ccosl.c: Rely entirely on ccoshl.
14941         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
14942         Remove tests for FE_INVALID.
14943         * math/s_ccoshf.c: Likewise.
14944         * math/s_ccoshl.c: Likewise.
14945         * math/s_csin.c: Likewise.
14946         * math/s_csinf.c: Likewise.
14947         * math/s_csinh.c Likewise.
14948         * math/s_csinhf.c: Likewise.
14949         * math/s_csinhl.c: Likewise.
14950         * math/s_csinl.c: Likewise.
14951         * math/s_ctan.c: Likewise.
14952         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
14953         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
14954         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
14955
14956 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
14957
14958         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
14959         compilation problems.
14960
14961         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
14962         __builtin_expect.
14963
14964 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
14965
14966         * sysdeps/i386/configure.in: Test for -mfma4 option.
14967         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
14968         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
14969         COMMON_CPUID_INDEX_80000001.
14970         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
14971         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
14972         use it if FMA3 is not supported.
14973         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
14974
14975         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
14976         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
14977
14978 2011-10-20  Andreas Schwab  <schwab@redhat.com>
14979
14980         [BZ #12892]
14981         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
14982         it would create a cycle with a link time dependency.
14983
14984 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
14985
14986         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
14987         instruction.
14988         * string/Makefile (strop-tests): Add rawmemchr.
14989         * string/test-rawmemchr.c: New file.
14990
14991         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
14992         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
14993         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
14994         when compiling str{,n}casecmp and when AVX is available.  Hook up
14995         new optimized code in initializers.
14996
14997 2011-10-19  Andreas Schwab  <schwab@redhat.com>
14998
14999         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
15000         __feraiseexcept instead of feraiseexcept.
15001
15002 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
15003
15004         * math/math_private.h: Define defaults for libc_fetestexcept and
15005         libc_feupdateenv.
15006         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
15007         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
15008         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
15009         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
15010         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
15011         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
15012         libc_fetestexcept and libc_feupdateenv.
15013
15014         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
15015         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
15016         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
15017         * sysdeps/x86_64/fpu/math_private.h: Define special version of
15018         libc_feholdexcept_setround.
15019
15020         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
15021         Add s_nearbyint-c and s_nearbyintf-c.
15022         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
15023         nearbyintf inlines.
15024         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
15025         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
15026         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
15027         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
15028
15029         * math/math_private.h: Define defaults for libc_fegetround,
15030         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
15031         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
15032         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
15033         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
15034         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
15035         standard functions.
15036         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
15037         Remove comments and hacks for old compiler versions.
15038         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
15039         libc_fegetround, libc_fesetround, libc_feholdexcept, and
15040         libc_feholdexceptl.
15041
15042 2011-10-18  Andreas Schwab  <schwab@redhat.com>
15043
15044         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
15045         (__feraiseexcept_renamed): Add __NTH.
15046         (feraiseexcept): Add __NTH.  Rename local variables to fix
15047         namespace violations.
15048
15049 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
15050
15051         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
15052
15053         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
15054
15055         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
15056         recently added interfaces.
15057         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
15058
15059         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
15060         about macro parameter expansion.
15061
15062         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
15063         __NO_MATH_INLINES is defined.  Cleanups.
15064
15065         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
15066         and __floorf is target has SSE4.1.
15067         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
15068         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
15069         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
15070         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
15071
15072         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
15073         name.
15074         (floorf): Likewise.
15075
15076         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
15077
15078 2011-10-17  Andreas Schwab  <schwab@redhat.com>
15079
15080         * misc/sys/cdefs.h: Fix last change.
15081
15082         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
15083         database lookup.
15084
15085 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
15086
15087         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
15088
15089         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
15090         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
15091         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
15092         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
15093         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
15094         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
15095         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
15096         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
15097         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
15098         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
15099         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
15100         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
15101         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
15102         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
15103         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
15104         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
15105         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
15106         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
15107         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
15108         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
15109         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
15110         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
15111
15112         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
15113         ceil, ceilf, floor, floorf.
15114
15115         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
15116         Perform IRELATIVE relocations last.
15117
15118         * elf/do-rel.h: Add another parameter nrelative, replacing the
15119         local variable with the same name.  Change name of the function
15120         to end in Rel or Rela (uppercase).
15121         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
15122         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
15123         elf_dynamic_do_##reloc function.
15124
15125 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
15126
15127         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
15128         is sufficient, at least on modern CPUs.
15129
15130         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
15131
15132         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
15133         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
15134
15135         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
15136         __expl_finite.
15137         * math/bits/math-finite.h: Add entries for exp.
15138         * math/e_expl.c: Add __*_finite alias.
15139         * sysdeps/i386/fpu/e_exp.S: Likewise.
15140         * sysdeps/i386/fpu/e_expf.S: Likewise.
15141         * sysdeps/i386/fpu/e_expl.c: Likewise.
15142         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
15143         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
15144         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
15145         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
15146         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
15147         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
15148         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
15149
15150         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
15151         is sufficient, at least on modern CPUs.
15152
15153         * ctype/ctype-info.c (__ctype_init): Define.
15154         * include/ctype.h (__ctype_init): Declare.
15155         (__ctype_b_loc): The variable is always initialized.
15156         (__ctype_toupper_loc): Likewise.
15157         (__ctype_tolower_loc): Likewise.
15158         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
15159         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
15160
15161 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
15162
15163         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
15164
15165         * configure.in: Also look in $cxxmachine/include for C++ system
15166         headers.
15167
15168 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15169
15170         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
15171         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
15172         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
15173         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
15174         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
15175         (USE_AS_WMEMCMP): New macro.
15176         Fixing indents.
15177         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
15178         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
15179         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
15180         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
15181         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
15182         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
15183         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
15184         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
15185         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
15186         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
15187         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
15188         (USE_AS_WMEMCMP): New macro.
15189         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
15190         * sysdeps/string/test-memcmp.c: Update.
15191         Fix simple_wmemcmp.
15192         Add new tests.
15193         * wcsmbs/wmemcmp.c: Update.
15194         (WMEMCMP): New macro.
15195         Fix overflow bug.
15196
15197 2011-10-12  Andreas Jaeger  <aj@suse.de>
15198
15199         [BZ #13268]
15200         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
15201
15202 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
15203
15204         * libio/iofwide.c (do_length): Avoid warning.
15205
15206         * ctype/ctype.h (__isctype_f): Add missing __THROW.
15207
15208 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
15209
15210         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
15211
15212         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
15213         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
15214         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
15215         * sysdeps/i386/i686/fpu/e_log.S: New file.
15216         * sysdeps/i386/i686/fpu/e_logf.S: New file.
15217         * sysdeps/i386/i686/fpu/e_logl.S: New file.
15218
15219         * ctype/ctype.h: Add support for inlined isXXX functions when
15220         compiling C++ code.
15221
15222 2011-10-14  Andreas Schwab  <schwab@redhat.com>
15223
15224         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
15225
15226         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
15227
15228 2011-10-13  Roland McGrath  <roland@hack.frob.com>
15229
15230         [BZ #13291]
15231         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
15232
15233 2011-10-13  Andreas Schwab  <schwab@redhat.com>
15234
15235         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
15236         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
15237         feraiseexcept.
15238
15239         * sysdeps/x86_64/memrchr.S: Check for zero size.
15240
15241         * string/stratcliff.c: Add memrchr tests.
15242
15243 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15244
15245         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
15246         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
15247         rawmemchr-sse2 rawmemchr-sse2-bsf.
15248         * sysdeps/i386/i686/multiarch/memchr.S: New file.
15249         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
15250         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
15251         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
15252         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
15253         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
15254         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
15255         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
15256         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
15257         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
15258         * string/memrchr.c (MEMRCHR): New macro.
15259
15260 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
15261
15262         Add integration with gcc's -ffinite-math-only and optimize wrapper
15263         functions in libm.
15264         * Versions.def: Define GLIBC_2.15 version for libm.
15265         * math/Makefile (headers): Add bits/math-finite.h.
15266         * math/bits/math-finite.h: New file.
15267         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
15268         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
15269         * math/e_acoshl.c: Add __*_finite alias.
15270         * math/e_acosl.c: Likewise.
15271         * math/e_asinl.c: Likewise.
15272         * math/e_atan2l.c: Likewise.
15273         * math/e_atanhl.c: Likewise.
15274         * math/e_coshl.c: Likewise.
15275         * math/e_exp10.c: Likewise.
15276         * math/e_exp10f.c: Likewise.
15277         * math/e_exp10l.c: Likewise.
15278         * math/e_exp2l.c: Likewise.
15279         * math/e_fmodl.c: Likewise.
15280         * math/e_gammal_r.c: Likewise.
15281         * math/e_hypotl.c: Likewise.
15282         * math/e_j0l.c: Likewise.
15283         * math/e_j1l.c: Likewise.
15284         * math/e_jnl.c: Likewise.
15285         * math/e_lgammal_r.c: Likewise.
15286         * math/e_log10l.c: Likewise.
15287         * math/e_log2l.c: Likewise.
15288         * math/e_logl.c: Likewise.
15289         * math/e_powl.c: Likewise.
15290         * math/e_sinhl.c: Likewise.
15291         * math/e_sqrtl.c: Likewise.
15292         * math/e_scalb.c: Completely rewritten and optimized.
15293         * math/e_scalbf.c: Likewise.
15294         * math/e_scalbl.c: Likewise.
15295         * math/w_acos.c: Likewise.
15296         * math/w_acosf.c: Likewise.
15297         * math/w_acosl.c: Likewise.
15298         * math/w_acosh.c: Likewise.
15299         * math/w_acoshf.c: Likewise.
15300         * math/w_acoshl.c: Likewise.
15301         * math/w_asin.c: Likewise.
15302         * math/w_asinf.c: Likewise.
15303         * math/w_asinl.c: Likewise.
15304         * math/w_atan2.c: Likewise.
15305         * math/w_atan2f.c: Likewise.
15306         * math/w_atan2l.c: Likewise.
15307         * math/w_atanh.c: Likewise.
15308         * math/w_atanhf.c: Likewise.
15309         * math/w_atanhl.c: Likewise.
15310         * math/w_exp10.c: Likewise.
15311         * math/w_exp10f.c: Likewise.
15312         * math/w_exp10l.c: Likewise.
15313         * math/w_fmod.c: Likewise.
15314         * math/w_fmodf.c: Likewise.
15315         * math/w_fmodl.c: Likewise.
15316         * math/w_j0.c: Likewise.
15317         * math/w_j0f.c: Likewise.
15318         * math/w_j0l.c: Likewise.
15319         * math/w_j1.c: Likewise.
15320         * math/w_j1f.c: Likewise.
15321         * math/w_j1l.c: Likewise.
15322         * math/w_jn.c: Likewise.
15323         * math/w_jnf.c: Likewise.
15324         * math/w_log.c: Likewise.
15325         * math/w_logf.c: Likewise.
15326         * math/w_logl.c: Likewise.
15327         * math/w_log10.c: Likewise.
15328         * math/w_log10f.c: Likewise.
15329         * math/w_log10l.c: Likewise.
15330         * math/w_log2.c: Likewise.
15331         * math/w_log2f.c: Likewise.
15332         * math/w_log2l.c: Likewise.
15333         * math/w_pow.c: Likewise.
15334         * math/w_powf.c: Likewise.
15335         * math/w_powl.c: Likewise.
15336         * math/w_remainder.c: Likewise.
15337         * math/w_remainderf.c: Likewise.
15338         * math/w_remainderl.c: Likewise.
15339         * math/w_scalb.c: Likewise.
15340         * math/w_scalbf.c: Likewise.
15341         * math/w_scalbl.c: Likewise.
15342         * math/w_sqrt.c: Likewise.
15343         * math/w_sqrtf.c: Likewise.
15344         * math/w_sqrtl.c: Likewise.
15345         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
15346         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
15347         used.
15348         * math/math_private.h: Declare __kernel_standard_f.
15349         * math/w_cosh.c: Remove cruft and optimize a bit.
15350         * math/w_coshf.c: Likewise.
15351         * math/w_coshl.c: Likewise.
15352         * math/w_exp2.c: Likewise.
15353         * math/w_exp2f.c: Likewise.
15354         * math/w_exp2l.c: Likewise.
15355         * math/w_hypot.c: Likewise.
15356         * math/w_hypotf.c: Likewise.
15357         * math/w_hypotl.c: Likewise.
15358         * math/w_lgamma.c: Likewise.
15359         * math/w_lgamma_r.c: Likewise.
15360         * math/w_lgammaf.c: Likewise.
15361         * math/w_lgammaf_r.c: Likewise.
15362         * math/w_lgammal.c: Likewise.
15363         * math/w_lgammal_r.c: Likewise.
15364         * math/w_sinh.c: Likewise.
15365         * math/w_sinhf.c: Likewise.
15366         * math/w_sinhl.c: Likewise.
15367         * math/w_tgamma.c: Likewise.
15368         * math/w_tgammaf.c: Likewise.
15369         * math/w_tgammal.c: Likewise.
15370         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
15371         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
15372         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
15373         Minor optimizations.  Pretty printing.  Remove cruft.
15374         * sysdeps/i386/fpu/e_acosf.S: Likewise.
15375         * sysdeps/i386/fpu/e_acosh.S: Likewise.
15376         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
15377         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
15378         * sysdeps/i386/fpu/e_acosl.c: Likewise.
15379         * sysdeps/i386/fpu/e_asin.S: Likewise.
15380         * sysdeps/i386/fpu/e_asinf.S: Likewise.
15381         * sysdeps/i386/fpu/e_atan2.S: Likewise.
15382         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
15383         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
15384         * sysdeps/i386/fpu/e_atanh.S: Likewise.
15385         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
15386         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
15387         * sysdeps/i386/fpu/e_exp10.S: Likewise.
15388         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
15389         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
15390         * sysdeps/i386/fpu/e_exp2.S: Likewise.
15391         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
15392         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
15393         * sysdeps/i386/fpu/e_fmod.S: Likewise.
15394         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
15395         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
15396         * sysdeps/i386/fpu/e_hypot.S: Likewise.
15397         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
15398         * sysdeps/i386/fpu/e_log.S: Likewise.
15399         * sysdeps/i386/fpu/e_log10.S: Likewise.
15400         * sysdeps/i386/fpu/e_log10f.S: Likewise.
15401         * sysdeps/i386/fpu/e_log10l.S: Likewise.
15402         * sysdeps/i386/fpu/e_log2.S: Likewise.
15403         * sysdeps/i386/fpu/e_log2f.S: Likewise.
15404         * sysdeps/i386/fpu/e_log2l.S: Likewise.
15405         * sysdeps/i386/fpu/e_logf.S: Likewise.
15406         * sysdeps/i386/fpu/e_logl.S: Likewise.
15407         * sysdeps/i386/fpu/e_pow.S: Likewise.
15408         * sysdeps/i386/fpu/e_powf.S: Likewise.
15409         * sysdeps/i386/fpu/e_powl.S: Likewise.
15410         * sysdeps/i386/fpu/e_remainder.S: Likewise.
15411         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
15412         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
15413         * sysdeps/i386/fpu/e_scalb.S: Likewise.
15414         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
15415         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
15416         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
15417         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
15418         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
15419         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
15420         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
15421         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15422         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
15423         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
15424         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
15425         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
15426         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
15427         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
15428         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
15429         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
15430         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
15431         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15432         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
15433         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
15434         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15435         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
15436         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
15437         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
15438         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15439         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
15440         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
15441         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
15442         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
15443         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
15444         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
15445         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
15446         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
15447         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
15448         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
15449         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
15450         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
15451         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
15452         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
15453         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
15454         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
15455         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
15456         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
15457         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
15458         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
15459         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
15460         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
15461         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
15462         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
15463         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
15464         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
15465         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
15466         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
15467         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
15468         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
15469         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
15470         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
15471         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
15472         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
15473         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
15474         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
15475         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
15476         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
15477         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
15478         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
15479         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
15480         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
15481         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
15482         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
15483         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
15484         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
15485         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
15486         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
15487         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
15488         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
15489         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
15490         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
15491         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
15492         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
15493         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
15494         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
15495         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
15496         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
15497         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
15498         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
15499         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
15500         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
15501         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
15502         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
15503         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
15504         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
15505         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
15506         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
15507         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
15508         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
15509         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
15510         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
15511         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
15512         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
15513         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
15514         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
15515         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
15516         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
15517         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
15518         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
15519         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
15520         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
15521         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
15522         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
15523         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
15524         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
15525         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
15526         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
15527         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
15528         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
15529         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
15530         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
15531         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
15532         (__isnanf): Likewise.
15533         (__isinf_ns): Likewise.
15534         (__isinf_nsf): Likewise.
15535         (__finite): Likewise.
15536         (__finitef): Likewise.
15537         (__ieee754_sqrt): Define as macro.
15538         (__ieee754_sqrtf): Define as macro.
15539         (__ieee754_sqrtl): Define as macro.
15540         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
15541         inlined copy.
15542         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
15543         __FINITE_MATH_ONLY__ consistent.
15544         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
15545
15546 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
15547
15548         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
15549         of rawmemchr.
15550
15551         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
15552
15553 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
15554
15555         * po/ja.po: Update from translation team.
15556
15557 2011-10-08  Roland McGrath  <roland@hack.frob.com>
15558
15559         * locale/programs/locarchive.c (prepare_address_space): New function.
15560         (create_archive, enlarge_archive, open_archive): Use it.
15561
15562         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
15563         inside [SHARED], where it is used.
15564
15565         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
15566
15567         * nss/getent.c (netgroup_keys): Remove unused variable.
15568         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
15569
15570 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
15571
15572         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
15573         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
15574         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
15575         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
15576         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
15577         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
15578         * math/Makefile (libm-calls): Add s_isinf_ns.
15579         * math/divtc3.c: Use __isinf_nsl instead of isinf.
15580         * math/multc3.c: Likewise.
15581         * math/s_casin.c: Likewise.
15582         * math/s_casinf.c: Likewise.
15583         * math/s_casinl.c: Likewise.
15584         * math/s_ccos.c: Likewise.
15585         * math/s_ccosf.c: Likewise.
15586         * math/s_ccosl.c: Likewise.
15587         * math/s_ctan.c: Likewise.
15588         * math/s_ctanf.c: Likewise.
15589         * math/s_ctanh.c: Likewise.
15590         * math/s_ctanhf.c: Likewise.
15591         * math/s_ctanhl.c: Likewise.
15592         * math/s_ctanl.c: Likewise.
15593         * math/w_fmod.c: Likewise.
15594         * math/w_fmodf.c: Likewise.
15595         * math/w_fmodl.c: Likewise.
15596         * math/w_remainder.c: Likewise.
15597         * math/w_remainderf.c: Likewise.
15598         * math/w_remainderl.c: Likewise.
15599         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
15600         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
15601         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
15602         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
15603         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
15604         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
15605         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
15606         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
15607
15608         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
15609         of the number.
15610         * stdio-common/printf_fphex.c: Likewise.
15611         * stdio-common/printf_size.c: Likewise.
15612
15613         * math/e_exp10.c: Include math_private.h using <...> not "...".
15614         * math/e_exp10f.c: Likewise.
15615         * math/e_exp10l.c: Likewise.
15616         * math/e_exp2l.c: Likewise.
15617         * math/e_j0l.c: Likewise.
15618         * math/e_j1l.c: Likewise.
15619         * math/e_jnl.c: Likewise.
15620         * math/e_lgammal_r.c: Likewise.
15621         * math/e_rem_pio2l.c: Likewise.
15622         * math/e_scalb.c: Likewise.
15623         * math/e_scalbf.c: Likewise.
15624         * math/e_scalbl.c: Likewise.
15625         * math/k_cosl.c: Likewise.
15626         * math/k_sinl.c: Likewise.
15627         * math/k_tanl.c: Likewise.
15628         * math/s_cacoshf.c: Likewise.
15629         * math/s_catan.c: Likewise.
15630         * math/s_catanf.c: Likewise.
15631         * math/s_catanh.c: Likewise.
15632         * math/s_catanhf.c: Likewise.
15633         * math/s_catanhl.c: Likewise.
15634         * math/s_catanl.c: Likewise.
15635         * math/s_ccosh.c: Likewise.
15636         * math/s_ccoshf.c: Likewise.
15637         * math/s_ccoshl.c: Likewise.
15638         * math/s_cexp.c: Likewise.
15639         * math/s_cexpf.c: Likewise.
15640         * math/s_cexpl.c: Likewise.
15641         * math/s_clog.c: Likewise.
15642         * math/s_clog10.c: Likewise.
15643         * math/s_clog10f.c: Likewise.
15644         * math/s_clog10l.c: Likewise.
15645         * math/s_clogf.c: Likewise.
15646         * math/s_clogl.c: Likewise.
15647         * math/s_csin.c: Likewise.
15648         * math/s_csinf.c: Likewise.
15649         * math/s_csinh.c: Likewise.
15650         * math/s_csinhf.c: Likewise.
15651         * math/s_csinhl.c: Likewise.
15652         * math/s_csinl.c: Likewise.
15653         * math/s_csqrt.c: Likewise.
15654         * math/s_csqrtf.c: Likewise.
15655         * math/s_csqrtl.c: Likewise.
15656         * math/s_ctan.c: Likewise.
15657         * math/s_ctanf.c: Likewise.
15658         * math/s_ctanh.c: Likewise.
15659         * math/s_ctanhf.c: Likewise.
15660         * math/s_ctanhl.c: Likewise.
15661         * math/s_ctanl.c: Likewise.
15662         * math/s_ldexp.c: Likewise.
15663         * math/s_ldexpf.c: Likewise.
15664         * math/s_ldexpl.c: Likewise.
15665         * math/s_significand.c: Likewise.
15666         * math/s_significandf.c: Likewise.
15667         * math/s_significandl.c: Likewise.
15668         * math/w_acos.c: Likewise.
15669         * math/w_acosf.c: Likewise.
15670         * math/w_acosh.c: Likewise.
15671         * math/w_acoshf.c: Likewise.
15672         * math/w_acoshl.c: Likewise.
15673         * math/w_acosl.c: Likewise.
15674         * math/w_asin.c: Likewise.
15675         * math/w_asinf.c: Likewise.
15676         * math/w_asinl.c: Likewise.
15677         * math/w_atan2.c: Likewise.
15678         * math/w_atan2f.c: Likewise.
15679         * math/w_atan2l.c: Likewise.
15680         * math/w_atanh.c: Likewise.
15681         * math/w_atanhf.c: Likewise.
15682         * math/w_atanhl.c: Likewise.
15683         * math/w_cosh.c: Likewise.
15684         * math/w_coshf.c: Likewise.
15685         * math/w_coshl.c: Likewise.
15686         * math/w_dremf.c: Likewise.
15687         * math/w_exp10.c: Likewise.
15688         * math/w_exp10f.c: Likewise.
15689         * math/w_exp10l.c: Likewise.
15690         * math/w_exp2.c: Likewise.
15691         * math/w_exp2f.c: Likewise.
15692         * math/w_fmod.c: Likewise.
15693         * math/w_fmodf.c: Likewise.
15694         * math/w_fmodl.c: Likewise.
15695         * math/w_hypot.c: Likewise.
15696         * math/w_hypotf.c: Likewise.
15697         * math/w_hypotl.c: Likewise.
15698         * math/w_j0.c: Likewise.
15699         * math/w_j0f.c: Likewise.
15700         * math/w_j0l.c: Likewise.
15701         * math/w_j1.c: Likewise.
15702         * math/w_j1f.c: Likewise.
15703         * math/w_j1l.c: Likewise.
15704         * math/w_jn.c: Likewise.
15705         * math/w_jnf.c: Likewise.
15706         * math/w_jnl.c: Likewise.
15707         * math/w_lgamma.c: Likewise.
15708         * math/w_lgamma_r.c: Likewise.
15709         * math/w_lgammaf.c: Likewise.
15710         * math/w_lgammaf_r.c: Likewise.
15711         * math/w_lgammal.c: Likewise.
15712         * math/w_lgammal_r.c: Likewise.
15713         * math/w_log.c: Likewise.
15714         * math/w_log10.c: Likewise.
15715         * math/w_log10f.c: Likewise.
15716         * math/w_log10l.c: Likewise.
15717         * math/w_log2.c: Likewise.
15718         * math/w_log2f.c: Likewise.
15719         * math/w_log2l.c: Likewise.
15720         * math/w_logf.c: Likewise.
15721         * math/w_logl.c: Likewise.
15722         * math/w_pow.c: Likewise.
15723         * math/w_powf.c: Likewise.
15724         * math/w_powl.c: Likewise.
15725         * math/w_remainder.c: Likewise.
15726         * math/w_remainderf.c: Likewise.
15727         * math/w_remainderl.c: Likewise.
15728         * math/w_scalb.c: Likewise.
15729         * math/w_scalbf.c: Likewise.
15730         * math/w_scalbl.c: Likewise.
15731         * math/w_sinh.c: Likewise.
15732         * math/w_sinhf.c: Likewise.
15733         * math/w_sinhl.c: Likewise.
15734         * math/w_sqrt.c: Likewise.
15735         * math/w_sqrtf.c: Likewise.
15736         * math/w_sqrtl.c: Likewise.
15737         * math/w_tgamma.c: Likewise.
15738         * math/w_tgammaf.c: Likewise.
15739         * math/w_tgammal.c: Likewise.
15740
15741         * po/ja.po: Update from translation team.
15742
15743 2011-09-29  Andreas Jaeger  <aj@suse.de>
15744
15745         [BZ #13179]
15746         * sunrpc/netname.c (netname2host): Fix logic.
15747
15748         [BZ #6779]
15749         [BZ #6783]
15750         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
15751         correctly.
15752         * math/w_remainder.c (__remainder): Likewise.
15753         * math/w_remainderf.c (__remainderf): Likewise.
15754         * math/libm-test.inc (remainder_test): Add test cases.
15755
15756 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15757
15758         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
15759         sdiv_qrnnd.
15760
15761 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
15762
15763         * string/test-memcmp.c: Avoid unncessary #defines.
15764         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
15765
15766 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15767
15768         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
15769         Use new sse2 version for core i3 - i7 as it's faster
15770         than sse42 version.
15771         (bit_Prefer_PMINUB_for_stringop): New.
15772         * sysdeps/x86_64/rawmemchr.S: Update.
15773         Replace with faster SSE2 version.
15774         * sysdeps/x86_64/memrchr.S: New file.
15775         * sysdeps/x86_64/memchr.S: Update.
15776         Replace with faster SSE2 version.
15777
15778 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
15779
15780         * elf/dl-load.c (lose): Add cast to avoid warning.
15781
15782 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
15783
15784         * po/ca.po: Update from translation team.
15785
15786         * inet/getnetgrent_r.c: Hook up nscd.
15787         * nscd/Makefile (routines): Add nscd_netgroup.
15788         (nscd-modules): Add netgroupcache.
15789         (CFLAGS-netgroupcache.c): Define.
15790         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
15791         (cache_search): Add const to second parameter.
15792         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
15793         INNETGR.
15794         (dbs): Add netgrdb entry.
15795         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
15796         (verify_persistent_db): Handle netgrdb.
15797         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
15798         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
15799         GETFDNETGR.
15800         (netgroup_response_header): Define.
15801         (innetgroup_response_header): Define.
15802         (datahead): Add netgroup_response_header and innetgroup_response_header
15803         elements.
15804         * nscd/nscd.conf: Add entries for netgroup cache.
15805         * nscd/nscd.h (dbtype): Add netgrdb.
15806         (_PATH_NSCD_NETGROUP_DB): Define.
15807         (netgroup_iov_disabled): Declare.
15808         (xmalloc, xcalloc, xrealloc): Move declarations here.
15809         (cache_search): Adjust prototype.
15810         Add netgroup-related prototypes.
15811         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
15812         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
15813         (__nscd_innetgr): Declare.
15814         * nscd/selinux.c (perms): Use access_vector_t as element type and
15815         add netgroup-related initializers.
15816         * nscd/netgroupcache.c: New file.
15817         * nscd/nscd_netgroup.c: New file.
15818         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
15819         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
15820         For four parameters use innetgr.
15821         * nss/nss_files/files-init.c: Add definition and callback for netgr.
15822         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
15823         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
15824         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
15825
15826         * nscd/connections.c (register_traced_file): Don't register file
15827         for disabled databases.
15828
15829 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
15830
15831         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
15832
15833         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
15834         from tree and freeing node.
15835
15836 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
15837
15838         * nss/nsswitch.c (__nss_database_lookup): Handle
15839         nss_parse_service_list out of memory case.
15840
15841 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
15842
15843         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
15844         out of memory case.
15845
15846 2011-10-04  Andreas Schwab  <schwab@redhat.com>
15847
15848         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
15849         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
15850         pass it down.
15851         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
15852         elf_machine_rela, elf_machine_lazy_rel.
15853         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
15854         (ELF_DYNAMIC_DO_REL): Likewise.
15855         (ELF_DYNAMIC_DO_RELA): Likewise.
15856         (ELF_DYNAMIC_RELOCATE): Likewise.
15857         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
15858         to ELF_DYNAMIC_DO_REL.
15859         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
15860         (dl_main): In trace mode always set __RTLD_NOIFUNC.
15861         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
15862         elf_machine_rela.
15863         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
15864         skip_ifunc, don't call ifunc function if non-zero.
15865         (elf_machine_rela): Likewise.
15866         (elf_machine_lazy_rel): Likewise.
15867         (elf_machine_lazy_rela): Likewise.
15868         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
15869         (elf_machine_lazy_rel): Likewise.
15870         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
15871         Likewise.
15872         (elf_machine_lazy_rel): Likewise.
15873         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
15874         Likewise.
15875         (elf_machine_lazy_rel): Likewise.
15876         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
15877         (elf_machine_lazy_rel): Likewise.
15878         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
15879         (elf_machine_lazy_rel): Likewise.
15880         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
15881         (elf_machine_lazy_rel): Likewise.
15882         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
15883         (elf_machine_lazy_rel): Likewise.
15884         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
15885         (elf_machine_lazy_rel): Likewise.
15886         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
15887         (elf_machine_lazy_rel): Likewise.
15888
15889 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
15890
15891         * nss/nss_files/files-init.c (_nss_files_init): Use static
15892         initialization for all the *_traced_file variables.
15893
15894 2011-09-28  Andreas Schwab  <schwab@redhat.com>
15895
15896         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
15897
15898 2011-09-27  Roland McGrath  <roland@hack.frob.com>
15899
15900         [BZ #13226]
15901         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
15902
15903 2011-09-27  Andreas Schwab  <schwab@redhat.com>
15904
15905         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
15906         Reread the line before reparsing it.
15907
15908 2011-09-26  Andreas Schwab  <schwab@redhat.com>
15909
15910         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
15911
15912 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
15913             Maxim Kuvyrkov  <maxim@codesourcery.com>
15914             Joseph Myers  <joseph@codesourcery.com>
15915
15916         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
15917         if needed for __stack_chk_guard.
15918
15919 2011-09-19  Roland McGrath  <roland@hack.frob.com>
15920
15921         * sysdeps/posix/spawni.c (script_execute): Always define it.
15922         It will be optimized away if unused.
15923         (maybe_script_execute): New function.
15924         (__spawni): Call it.
15925
15926         * Makerules: Don't include tls.make.
15927         (config-tls): Always set to thread.
15928         * tls.make.c: File removed.
15929
15930 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
15931
15932         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
15933         * config.make.in (CPPFLAGS-config): New substituted variable.
15934
15935 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
15936
15937         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
15938
15939         [BZ #13192]
15940         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
15941         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
15942
15943 2011-09-15  Roland McGrath  <roland@hack.frob.com>
15944
15945         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
15946         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
15947         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
15948         (CALL_FAIL): Likewise.
15949         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
15950         (CALL_FAIL): Macro removed.
15951         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
15952
15953 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
15954
15955         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
15956         for __FINITE_MATH_ONLY__ == 1.
15957
15958 2011-09-15  Andreas Schwab  <schwab@redhat.com>
15959
15960         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
15961         __ieee754_sqrt instead of sqrt.
15962         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
15963         __ieee754_sqrtf instead of sqrtf.
15964         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
15965         __floorf instead of floorf.
15966         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
15967         __floorf, __truncf instead of floorf, truncf.
15968
15969 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
15970
15971         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
15972
15973         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
15974         __extern_always_inline.
15975         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
15976         32-bit.
15977
15978 2011-09-14  Andreas Schwab  <schwab@redhat.com>
15979
15980         * elf/rtld.c (dl_main): Also relocate in dependency order when
15981         doing symbol dependency testing.
15982
15983 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
15984
15985         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
15986         Always define `refsym'.
15987
15988 2011-09-13  Andreas Schwab  <schwab@redhat.com>
15989
15990         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
15991         (__FD_ELT): Renamed from __FDELT.
15992         * misc/bits/select2.h (__FD_ELT): Likewise.
15993         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
15994         __FD_MASK instead of __FDELT, __FDMASK.
15995         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
15996         Likewise.
15997         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
15998         Likewise.
15999
16000         * elf/Makefile (gen-ldd): Fix pattern.
16001
16002         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
16003         (init_tls): Likewise.
16004
16005 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
16006
16007         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
16008
16009 2011-09-12  Andreas Schwab  <schwab@redhat.com>
16010
16011         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
16012         `struct cmsghdr *' instead of `void *'.
16013         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
16014         Likewise.
16015
16016 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
16017
16018         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
16019         if non-absolute.
16020         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
16021         ldd_rewrite_script.
16022
16023 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
16024
16025         * configure.in: Remove --with-tls option.
16026         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
16027         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
16028         out in case it is missing.
16029         * sysdeps/ia64/elf/configure.in: Likewise.
16030         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
16031         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
16032         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
16033         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
16034         * sysdeps/sh/elf/configure.in: Likewise.
16035         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
16036         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
16037         * sysdeps/x86_64/elf/configure.in: Likewise.
16038         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
16039         * sysdeps/mach/hurd/tls.h: Likewise.
16040
16041         [BZ #13067]
16042         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
16043
16044         [BZ #13090]
16045         * configure.in: Fix use of AC_INIT.
16046
16047         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
16048
16049 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
16050
16051         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
16052         __set_errno.
16053         * malloc/hooks.c: Likewise.
16054
16055         [BZ #11929]
16056         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
16057         variables statically.
16058         (narenas): Initialize.
16059         (list_lock): Initialize.
16060         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
16061         initializtion of main_arena and list_lock.  Small cleanups.
16062         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
16063         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
16064         Add initializers to main_arena and mp_.
16065         (malloc_state): Remove pagesize member.  Change all users to use
16066         GLRO(dl_pagesize).
16067
16068         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
16069         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
16070         is always initialized.
16071
16072         * malloc/malloc.c: Removed unused configurations and dead code.
16073         * malloc/arena.c: Likewise.
16074         * malloc/hooks.c: Likewise.
16075         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
16076
16077         * include/tls.h: Removed.  USE___THREAD must always be defined.
16078         * bits/libc-tsd.h: Don't handle !USE___THREAD.
16079         * elf/dl-libc.c: Likewise.
16080         * elf/dl-tsd.c: Likewise.
16081         * include/errno.h: Likewise.
16082         * include/netdb.h: Likewise.
16083         * include/resolv.h: Likewise.
16084         * inet/herrno-loc.c: Likewise.
16085         * inet/herrno.c: Likewise.
16086         * malloc/arena.c: Likewise.
16087         * malloc/hooks.c: Likewise.
16088         * malloc/malloc.c: Likewise.
16089         * resolv/res-state.c: Likewise.
16090         * resolv/res_libc.c: Likewise.
16091         * sysdeps/i386/dl-machine.h: Likewise.
16092         * sysdeps/ia64/dl-machine.h: Likewise.
16093         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
16094         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
16095         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
16096         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
16097         * sysdeps/sh/dl-machine.h: Likewise.
16098         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
16099         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
16100         * sysdeps/unix/i386/sysdep.S: Likewise.
16101         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
16102         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
16103         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
16104         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
16105         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
16106         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
16107         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
16108         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
16109         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
16110         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
16111         * sysdeps/unix/x86_64/sysdep.S: Likewise.
16112         * sysdeps/x86_64/dl-machine.h: Likewise.
16113         * tls.make.c: Likewise.
16114
16115         * configure.in: Remove --with-__thread option.  Make tests for
16116         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
16117         tls_model attribute fail if no support is available.  Remove
16118         USE_IN_LIBIO.
16119         * Makeconfig: Adjust for dropped configure option.  All features are
16120         now mandatory.
16121         * Makerules: Likewise.
16122         * Versions.def: Likewise.
16123         * argp/argp-fmtstream.c: Likewise.
16124         * argp/argp-fmtstream.h: Likewise.
16125         * argp/argp-help.c: Likewise.
16126         * assert/assert.c: Likewise.
16127         * config.h.in: Likewise.
16128         * config.make.in: Likewise.
16129         * configure: Likewise.
16130         * configure.in: Likewise.
16131         * csu/Versions: Likewise.
16132         * csu/init.c: Likewise.
16133         * elf/tst-audit2.c: Likewise.
16134         * elf/tst-tls10.c: Likewise.
16135         * elf/tst-tls10.h: Likewise.
16136         * elf/tst-tls11.c: Likewise.
16137         * elf/tst-tls12.c: Likewise.
16138         * elf/tst-tls14.c: Likewise.
16139         * elf/tst-tlsmod11.c: Likewise.
16140         * elf/tst-tlsmod12.c: Likewise.
16141         * elf/tst-tlsmod13.c: Likewise.
16142         * elf/tst-tlsmod13a.c: Likewise.
16143         * elf/tst-tlsmod14a.c: Likewise.
16144         * elf/tst-tlsmod15b.c: Likewise.
16145         * elf/tst-tlsmod16a.c: Likewise.
16146         * elf/tst-tlsmod16b.c: Likewise.
16147         * elf/tst-tlsmod7.c: Likewise.
16148         * elf/tst-tlsmod8.c: Likewise.
16149         * elf/tst-tlsmod9.c: Likewise.
16150         * gmon/gmon.c: Likewise.
16151         * grp/fgetgrent_r.c: Likewise.
16152         * grp/putgrent.c: Likewise.
16153         * hurd/fopenport.c: Likewise.
16154         * include/libc-symbols.h: Likewise.
16155         * include/tls.h: Likewise.
16156         * intl/gettextP.h: Likewise.
16157         * intl/loadinfo.h: Likewise.
16158         * locale/global-locale.c: Likewise.
16159         * locale/localeinfo.h: Likewise.
16160         * mach/devstream.c: Likewise.
16161         * malloc/arena.c: Likewise.
16162         * malloc/set-freeres.c: Likewise.
16163         * misc/err.c: Likewise.
16164         * misc/getttyent.c: Likewise.
16165         * misc/mntent_r.c: Likewise.
16166         * posix/getopt.c: Likewise.
16167         * posix/wordexp.c: Likewise.
16168         * pwd/fgetpwent_r.c: Likewise.
16169         * resolv/Versions: Likewise.
16170         * resolv/res_hconf.c: Likewise.
16171         * shadow/fgetspent_r.c: Likewise.
16172         * shadow/putspent.c: Likewise.
16173         * stdio-common/printf_fphex.c: Likewise.
16174         * stdio-common/tmpfile.c: Likewise.
16175         * stdlib/abort.c: Likewise.
16176         * stdlib/fmtmsg.c: Likewise.
16177         * sunrpc/auth_unix.c: Likewise.
16178         * sunrpc/clnt_perr.c: Likewise.
16179         * sunrpc/clnt_tcp.c: Likewise.
16180         * sunrpc/clnt_udp.c: Likewise.
16181         * sunrpc/clnt_unix.c: Likewise.
16182         * sunrpc/openchild.c: Likewise.
16183         * sunrpc/svc_simple.c: Likewise.
16184         * sunrpc/svc_tcp.c: Likewise.
16185         * sunrpc/svc_udp.c: Likewise.
16186         * sunrpc/svc_unix.c: Likewise.
16187         * sunrpc/xdr.c: Likewise.
16188         * sunrpc/xdr_array.c: Likewise.
16189         * sunrpc/xdr_rec.c: Likewise.
16190         * sunrpc/xdr_ref.c: Likewise.
16191         * sunrpc/xdr_stdio.c: Likewise.
16192
16193 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
16194
16195         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
16196
16197 2011-07-03  Andreas Jaeger  <aj@suse.de>
16198
16199         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
16200         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
16201         regenerate with gen-libm-tests.pl.
16202
16203 2010-05-12  Petr Baudis  <pasky@suse.cz>
16204
16205         [BZ #11589]
16206         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
16207         around j0() zero points by switching to j1().
16208         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
16209         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
16210         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
16211         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
16212
16213 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
16214
16215         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
16216         instead of 0.
16217         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
16218         instead of 0.                              .
16219         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
16220         Patch in part by Pavel Roskin <proski@gnu.org>.
16221
16222         [BZ #13138]
16223         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
16224         realloc.
16225         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
16226         Free memory block if necessary.
16227
16228         [BZ #12847]
16229         * libio/genops.c (INTDEF): For string streams the _lock pointer can
16230         be NULL.  Don't lock in this case.
16231
16232 2011-09-09  Roland McGrath  <roland@hack.frob.com>
16233
16234         * elf/elf.h (ELFOSABI_GNU): New macro.
16235         (ELFOSABI_LINUX): Define to that.
16236
16237 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
16238
16239         * string/strncat.c (strncat): Undef the symbol in case it has been
16240         defined in bits/string.h.
16241
16242 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
16243
16244         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
16245
16246         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
16247         link map.
16248
16249 2011-08-17  Andreas Jaeger  <aj@suse.de>
16250
16251         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
16252
16253 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
16254             Ian Lance Taylor  <iant@google.com>
16255
16256         * math/libm-test.inc (lround_test): New testcase.
16257         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
16258
16259 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
16260
16261         * Makefile: Remove support for automatic cvs check-ins.
16262         * Makerules: Likewise.
16263         * config.make.in: Likewise.
16264         * configure.in: Likewise.
16265         * intl/Makefile: Likewise.
16266         * locale/Makefile: Likewise.
16267         * po/Makefile: Likewise.
16268         * posix/Makefile: Likewise.
16269         * sysdeps/gnu/Makefile: Likewise.
16270         * sysdeps/mach/hurd/Makefile: Likewise.
16271         * sysdeps/sparc/sparc32/Makefile: Likewise.
16272
16273         [BZ #13118]
16274         * posix/Makefile (bug-regex32-ENV): Define.
16275         Patch by John Stanley <jpsinthemix@verizon.net>.
16276
16277         * misc/Makefile (headers): Add bits/select2.h.
16278         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
16279         * misc/bits/select2.h: New file.
16280         * include/bits/select2.h: New file.
16281         * debug/Makefile (routines): Add fdelt_chk.
16282         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
16283         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
16284         FD_ISSET.
16285         * debug/fdelt_chk.c: New file.
16286
16287         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
16288         * wcsmbs/test-wmemcmp.c: Likewise.
16289         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
16290         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
16291
16292 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16293
16294         * string/Makefile (strop-tests): Add memcmp.
16295         * string/test-wmemcmp.c: New file.
16296         * string/test-memcmp.c: Add wmemcmp support.
16297
16298 2011-09-08  Roland McGrath  <roland@hack.frob.com>
16299
16300         [BZ #13153]
16301         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
16302         2011-07-19 change.
16303
16304         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
16305         garbage value in a __mach_port_mod_refs call in the cases of the
16306         task-self and thread-self ports.
16307
16308 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16309
16310         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
16311
16312 2011-09-08  Andreas Schwab  <schwab@redhat.com>
16313
16314         * elf/dl-load.c (lose): Check for non-null L.
16315
16316 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
16317
16318         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
16319
16320         * elf/dl-libc.c (dlerror_run): Pass back error code from
16321         dl_catch_error.
16322
16323         [BZ #13123]
16324         * elf/dl-load.c (lose): Free l_origin if it is valid.
16325
16326         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
16327         names.
16328         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
16329         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
16330         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
16331         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
16332         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
16333         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
16334
16335 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16336
16337         * sysdeps/powerpc/fpu/e_hypot.c: New file.
16338         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
16339         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
16340         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
16341         * sysdeps/powerpc/fpu/k_cosf.c: New file.
16342         * sysdeps/powerpc/fpu/k_sinf.c: New file.
16343         * sysdeps/powerpc/fpu/s_cosf.c: New file.
16344         * sysdeps/powerpc/fpu/s_sinf.c: New file.
16345         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
16346         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
16347
16348 2011-08-15  Alan Modra  <amodra@gmail.com>
16349
16350         [BZ #13092]
16351         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
16352         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
16353         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
16354         ppc_mcount to static-only-routines.
16355         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
16356         __mcount_internal.
16357         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
16358         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
16359
16360 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
16361
16362         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
16363         for finite and infinity parameters.
16364
16365 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
16366
16367         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
16368         and add nop instructions for throughput optimization.
16369         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
16370
16371 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
16372
16373         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
16374         aligned copy for power7 with vector-scalar instructions.
16375         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
16376
16377 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
16378
16379         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
16380         AVX check.
16381
16382 2011-09-07  Andreas Schwab  <schwab@redhat.com>
16383
16384         [BZ #13144]
16385         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
16386         last change.
16387
16388 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
16389
16390         * sysdeps/unix/sysv/linux/x86_64/init-first.c
16391         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
16392         syscall wrapper around clock_gettime in __vdso_clock_gettime.
16393         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
16394         clock_gettime.
16395
16396 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
16397
16398         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
16399         Forgot to demangle the pointer.
16400
16401         * sysdeps/i386/sysdep.h: Define atom_text_section.
16402         * sysdeps/x86_64/sysdep.h: Likewise.
16403         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
16404         section with atom_text_section.
16405         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
16406         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
16407         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
16408         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
16409         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
16410
16411         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
16412         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
16413         already be defined.  Change to take two parameters and don't assign
16414         result to variable.  Adjust all users.
16415         Define INTERNAL_GETTIME if not already defined.
16416         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
16417         call.
16418         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
16419         HAVE_CLOCK_GETTIME_VSYSCALL.
16420         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
16421
16422         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
16423         gettimeofday vsyscall, just use time.
16424
16425 2011-09-06  Andreas Schwab  <schwab@redhat.com>
16426
16427         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
16428         <errno.h>.
16429
16430 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
16431
16432         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
16433         syscall on x86-64.
16434         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
16435         syscall.
16436         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
16437         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
16438         syscall if possible.
16439
16440 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
16441
16442         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
16443         e_ident.  Don't pass to find_mapsXX.
16444         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
16445
16446 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16447
16448         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16449         strchr-sse2-no-bsf strrchr-sse2-no-bsf
16450         * sysdeps/x86_64/multiarch/strchr.S: Update.
16451         Check bit_slow_BSF bit.
16452         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
16453         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
16454         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
16455
16456 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
16457
16458         [BZ #13134]
16459         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
16460         before glibc 2.15.
16461         (tryshell): Define.
16462         (__spawni): Change last parameter to be flag.  Test
16463         SPAWN_XFLAGS_USE_PATH flag to use path or not.
16464         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
16465         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
16466         * posix/spawni.c: Likewise.
16467         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
16468         * posix/spawnp.c: Likewise.  Change normal version to use
16469         SPAWN_XFLAGS_USE_PATH.
16470         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
16471         SPAWN_XFLAGS_TRY_SHELL.
16472
16473         [BZ #13150]
16474         * posix/glob.h: Remove gcc 1.x support.
16475
16476         [BZ #13068]
16477         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
16478
16479 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16480
16481         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16482         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
16483         strrchr-sse2-bsf
16484         * sysdeps/i386/i686/multiarch/strchr.S: New file.
16485         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
16486         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
16487         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
16488         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
16489         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
16490
16491 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16492
16493         * sysdeps/x86_64/wcscmp.S: New file.
16494
16495         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
16496         wcscmp-c wcscmp-sse2
16497         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
16498         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
16499         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
16500         * wcsmbs/wcscmp.c: Allow renaming.
16501
16502 2011-09-05  David S. Miller  <davem@davemloft.net>
16503
16504         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
16505         stack slot, rather than the struct return pointer slot.
16506         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
16507         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
16508         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
16509         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
16510
16511 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
16512
16513         * po/ja.po: Update from translation team.
16514
16515         [BZ #13144]
16516         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
16517         kernel in 64-bit binaries.
16518
16519 2011-09-01  David S. Miller  <davem@davemloft.net>
16520
16521         * elf/elf.h (HWCAP_SPARC_*): Move to..
16522         * sysdeps/sparc/sysdep.h: this new file and add new values.
16523         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
16524         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
16525         _DL_HWCAP_COUNT to 24.
16526         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
16527         entries.
16528         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
16529         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
16530         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
16531         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
16532         instead of magic constants.
16533         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
16534
16535 2011-08-31  David S. Miller  <davem@davemloft.net>
16536
16537         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
16538         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
16539         Reimplement to do errno handling inline.
16540         (SYSCALL_ERROR_HANDLER): New macro.
16541         (__SYSCALL_STRING): Do not do errno handling in asm.
16542         (__CLONE_SYSCALL_STRING): Delete.
16543         (__INTERNAL_SYSCALL_STRING): Delete.
16544         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
16545         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
16546         (PSEUDO): Reimplement to do errno handling inline.
16547         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
16548         (SYSCALL_ERROR_HANDLER): New macro.
16549         (__SYSCALL_STRING): Do not do errno handling in asm.
16550         (__CLONE_SYSCALL_STRING): Delete.
16551         (__INTERNAL_SYSCALL_STRING): Delete.
16552         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
16553         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
16554         i386.
16555         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
16556         (inline_syscall*): Add 'err' argument.
16557         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
16558         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
16559         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
16560         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
16561
16562         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
16563         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
16564
16565 2011-08-30  Andreas Schwab  <schwab@redhat.com>
16566
16567         * elf/rtld.c (dl_main): Relocate objects in dependency order.
16568
16569 2011-08-29  Jiri Olsa <jolsa@redhat.com>
16570
16571         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
16572         directive.
16573
16574 2011-08-24  David S. Miller  <davem@davemloft.net>
16575
16576         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
16577
16578 2011-08-24  Andreas Schwab  <schwab@redhat.com>
16579
16580         * elf/Makefile: Add rules to build and run unload8 test.
16581         * elf/unload8.c: New file.
16582         * elf/unload8mod1.c: New file.
16583         * elf/unload8mod1x.c: New file.
16584         * elf/unload8mod2.c: New file.
16585         * elf/unload8mod3.c: New file.
16586
16587         * elf/dl-close.c (_dl_close_worker): Reset private search list if
16588         it wasn't used.
16589
16590 2011-08-23  David S. Miller  <davem@davemloft.net>
16591
16592         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
16593         subtract stack bias.
16594         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
16595         %sp not %fp in calculations.
16596         (_JMPBUF_UNWINDS_ADJ): Likewise.
16597
16598         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
16599         (aio_suspend): Call it to force an exception region around the
16600         AIO_MISC_WAIT() invocation.
16601
16602 2011-08-23  Andreas Schwab  <schwab@redhat.com>
16603
16604         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
16605         backslash.
16606
16607 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
16608
16609         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
16610         protection macro.
16611         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
16612         and <dl-machine.h>.
16613         (Elf64_FuncDesc): Remove.
16614
16615 2011-08-22  David S. Miller  <davem@davemloft.net>
16616
16617         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
16618         sigaltstack check, add missing cfi directives.
16619         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
16620         missing cfi directives, and sigaltstack handling.
16621
16622 2011-08-16  Andreas Schwab  <schwab@redhat.com>
16623
16624         [BZ #11724]
16625         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
16626         object is seen twice.
16627         * elf/dl-fini.c (_dl_sort_fini): Likewise.
16628
16629         * elf/Makefile (distribute): Add tst-initorder2.c.
16630         (tests): Add tst-initorder2.
16631         (modules-names): Add tst-initorder2a tst-initorder2b
16632         tst-initorder2c tst-initorder2d.  Add rules to build them.
16633         ($(objpfx)tst-initorder2.out): New rule.
16634         * elf/tst-initorder2.c: New file.
16635         * elf/tst-initorder2.exp: New file.
16636
16637 2011-08-22  Andreas Schwab  <schwab@redhat.com>
16638
16639         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
16640
16641         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
16642         dependencies back to end of function.
16643
16644         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
16645         $(elfobjdir)/ld.so.
16646
16647 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
16648
16649         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
16650         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
16651         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
16652         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
16653         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
16654         of __vdso_gettimeofday.
16655         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
16656         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
16657         attribute_hidden.
16658         (_libc_vdso_platform_setup): Remove initialization of
16659         __vdso_gettimeofday and __vdso_time.
16660
16661 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
16662
16663         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
16664         and fgetc_unlocked.
16665         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
16666         getc_unlocked.
16667
16668         * elf/dl-open.c (add_to_global): Report additions to the global scope
16669         for LD_DEBUG=scopes.
16670         (dl_open_worker): Also print scope of newly loaded dependencies.
16671         (_dl_show_scope): Indicate if there is no scope.
16672
16673         [BZ #13114]
16674         * stdio-common/Makefile (tests): Add bug24.
16675         * stdio-common/bug24.c: New file.
16676
16677 2011-08-19  Andreas Jaeger  <aj@suse.de>
16678
16679         [BZ #13114]
16680         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
16681         non-existant file when using close-on-exec mode.
16682
16683 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
16684
16685         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
16686         the very first instruction.
16687
16688         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
16689         the CFI state in the end.
16690         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
16691         inclusion of dl-trampoline.h.
16692         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
16693
16694 2011-08-19  Andreas Schwab  <schwab@redhat.com>
16695
16696         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
16697         expectations for long double.
16698
16699         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
16700         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
16701
16702 2011-08-14  David S. Miller  <davem@davemloft.net>
16703
16704         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
16705         artificual limit depends upon the system page size.
16706
16707 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
16708
16709         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
16710         * resolv/Makefile: Define CFLAGS-libresolv.
16711
16712 2011-08-17  Andreas Schwab  <schwab@redhat.com>
16713
16714         * nss/makedb.c (compute_tables): Make variables used in nested
16715         function static.
16716
16717 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
16718
16719         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
16720         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
16721         if buffer was too small.
16722
16723         * elf/pldd.c (main): Attach to all threads in the process.
16724         Rewrite /proc handling to use *at functions.
16725
16726 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
16727
16728         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
16729         specifies first scope to show.
16730         (dl_open_worker): Update callers.  Move printing scope of new
16731         object to before the relocation.
16732         * elf/rtld.c (dl_main): Update _dl_show_scope call.
16733         * sysdeps/generic/ldsodefs.h: Update declaration.
16734
16735         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
16736         string for the scope number.
16737
16738 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
16739
16740         * nscd/servicescache.c (cache_addserv): Make sure written is always
16741         initialized.
16742
16743 2011-08-14  Roland McGrath  <roland@hack.frob.com>
16744
16745         * sysdeps/i386/i486/bits/atomic.h
16746         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
16747         statement expression, so as to suppress "set but not used" warning.
16748         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
16749
16750         * string/strncat.c (STRNCAT): Use prototype definition.
16751
16752         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
16753         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
16754         -Iprograms here.
16755         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
16756         (localedef-modules): Add localedef.
16757         (locale-modules): Add locale.
16758
16759         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
16760         * elf/rtld.c (dl_main): Invert order of assignment in last change,
16761         to avoid a warning.
16762
16763 2011-08-14  David S. Miller  <davem@davemloft.net>
16764
16765         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
16766         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
16767
16768 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
16769
16770         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
16771         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
16772         * elf/rtld.c (dl_main): Set l_name of vDSO.
16773         Call _dl_show_scope when DL_DEBUG_SCOPES.
16774         (process_dl_debug): Recognize scopes flag and also set it for all.
16775         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
16776         Declare _dl_show_scope.
16777
16778         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
16779         (do_dlopen): Pass caller_dlopen to dl_open.
16780         (__libc_dlopen_mode): Initialize caller_dlopen.
16781
16782         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
16783         of libc.  Make tolower call locale-independent.  Optimize a bit by
16784         using isdigit instead of isalnum.
16785         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
16786
16787 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
16788
16789         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
16790         was a dependency or dynamically loaded.
16791
16792 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
16793
16794         * intl/l10nflist.c: Allow architecture-specific pop function.
16795         * sysdeps/x86_64/l10nflist.c: New file.
16796
16797         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
16798         classification.
16799
16800 2011-08-10  Andreas Schwab  <schwab@redhat.com>
16801
16802         * include/dirent.h: Add libc_hidden_proto for scandirat and
16803         scandirat64.  Don't declare __scandirat64.
16804         * dirent/scandirat.c: Add libc_hidden_def.
16805         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
16806         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
16807
16808 2011-08-10  David S. Miller  <davem@davemloft.net>
16809
16810         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
16811         enum.
16812         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
16813         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
16814         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
16815
16816 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
16817
16818         * Versions.def [libc]: Add GLIBC_2.15.
16819         * dirent/Makefile (routines): Add scandirat and scandirat64.
16820         * dirent/Versions [libc]: Export scandirat and scandirat64 for
16821         GLIBC_2.15.
16822         * dirent/dirent.h: Declare scandirat and scandirat64.
16823         * dirent/scandirat.c: New file.
16824         * dirent/scandirat64.c: New file.
16825         * sysdeps/wordsize-64/scandirat.c: New file.
16826         * sysdeps/wordsize-64/scandirat64.c: New file.
16827         * dirent/opendir.c: Define opendirat.
16828         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
16829         using scandirat.
16830         * dirent/scandir64.c: Adjust for scandir.c change.
16831         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
16832         __scandirat64, and __scandir_cancel_handler.
16833         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
16834         additional parameter and use openat instead of open (outside of ld.so).
16835         Add new __opendir as wrapper around __opendirat.
16836         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
16837         here without requiring old scandirat implementation.
16838
16839 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
16840
16841         * dirent/scandir.c (cancel_handler): Renamed to
16842         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
16843         defined.  Adjust users.
16844         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
16845         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
16846
16847 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
16848
16849         * string/test-string.h (IMPL): Use __STRING to expand name and then
16850         stringify it.
16851
16852         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
16853         of cleanups.
16854
16855 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16856
16857         * string/Makefile: Update.
16858         (strop-tests): Append strncat.
16859         * string/test-wcscmp.c: New file.
16860         New comprehensive test for wcscmp.
16861         * string/test-strcmp.c: Update.
16862         (WIDE): New define.
16863
16864 2011-07-22  Andreas Schwab  <schwab@redhat.com>
16865
16866         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
16867         line.
16868
16869 2011-07-26  Andreas Schwab  <schwab@redhat.com>
16870
16871         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
16872         encoding to ACE if AI_IDN.
16873
16874 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
16875
16876         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
16877         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
16878
16879 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16880
16881         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
16882         Fix overflow bug in strncat.
16883         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
16884
16885         * string/test-strncat.c: Update.
16886         Add new tests for checking overflow bugs.
16887
16888 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16889
16890         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16891         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
16892         * sysdeps/i386/i686/multiarch/strcat.S: New file.
16893         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
16894         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
16895         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
16896         * sysdeps/i386/i686/multiarch/strncat.S: New file.
16897         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
16898         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
16899
16900         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
16901         (USE_AS_STRCAT): Define.
16902         Add strcat and strncat support.
16903         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
16904
16905 2011-07-25  Andreas Schwab  <schwab@redhat.com>
16906
16907         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
16908         __n bigger than INT_MAX+1.
16909         (__strncmp_g): Likewise.
16910
16911 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
16912
16913         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
16914         * libio/stido.h: Likewise.
16915
16916         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
16917         (AF_NFC): Define.
16918         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
16919         (AF_NFC): Define.
16920
16921         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
16922         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
16923         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
16924         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
16925         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
16926
16927         [BZ #13021]
16928         * scripts/test-installation.pl: Don't expect libnss_test1 to be
16929         installed.
16930
16931         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
16932         typo.
16933         (_dl_x86_64_save_sse): Likewise.
16934
16935 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
16936
16937         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
16938         OSXSAVE.
16939         (_dl_x86_64_save_sse): Likewise.
16940
16941         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
16942
16943         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
16944
16945 2011-07-21  Andreas Schwab  <schwab@redhat.com>
16946
16947         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
16948         change.
16949         (_dl_x86_64_save_sse): Use correct AVX check.
16950
16951 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16952
16953         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
16954         bug in strncpy/strncat.
16955         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
16956
16957 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
16958
16959         * string/tester.c (test_strcat): Add tests for different alignments
16960         of source and destination.
16961         (test_strncat): Likewise.
16962
16963 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
16964
16965         [BZ #12852]
16966         * posix/glob.c (glob): Check passed in values before using them in
16967         expressions to avoid some overflows.
16968         (glob_in_dir): Likewise.
16969
16970         [BZ #13007]
16971         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
16972         check for AVX enablement so that we don't crash with old kernels and
16973         new hardware.
16974         * elf/tst-audit4.c: Add same checks here.
16975         * elf/tst-audit6.c: Likewise.
16976
16977         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
16978
16979 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
16980
16981         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
16982
16983 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
16984
16985         * po/cs.po: Update from translation team.
16986         * po/bg.po: Likewise.
16987
16988 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
16989
16990         * misc/sys/cdefs.h: Add support for const attribute.
16991         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
16992         to gnu_dev_{major,minor,makedev} functions.
16993
16994 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
16995
16996         * intl/dcigettext.c (get_output_charset): Add missing bracket.
16997
16998 2011-07-20  Andreas Schwab  <schwab@redhat.com>
16999
17000         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
17001         strlen results.
17002
17003 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17004
17005         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
17006         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
17007         register in order to avoid conflicts with the soft frame pointer
17008         being held in r11 when necessary.
17009         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
17010         (INTERNAL_VSYSCALL_NCS): Likewise.
17011
17012 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
17013
17014         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
17015         * elf/dl-fini.c (_dl_fini): Adjust caller.
17016         * elf/dl-close.c (_dl_close_worker): Likewise.
17017         * sysdeps/generic/ldsodefs.h: Adjust declaration.
17018
17019 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
17020
17021         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
17022         "aux_cache->nlibs < 0".
17023
17024         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
17025         in the reload-count case.
17026
17027 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
17028
17029         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
17030         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
17031         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
17032         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
17033         * sysdeps/x86_64/multiarch/strcat.S: New file.
17034         * sysdeps/x86_64/multiarch/strncat.S: New file.
17035         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
17036         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
17037         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
17038         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
17039         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
17040         (USE_AS_STRCAT): Define.
17041         Add strcat and strncat support.
17042         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
17043         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
17044         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
17045         * string/strncat.c: Update.
17046         (USE_AS_STRNCAT): Define.
17047         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17048         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
17049         and i7.
17050         * sysdeps/x86_64/multiarch/init-arch.h
17051         (bit_Prefer_PMINUB_for_stringop): New.
17052         (index_Prefer_PMINUB_for_stringop): Likewise.
17053         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
17054         bit_Prefer_PMINUB_for_stringop.
17055
17056 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
17057
17058         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
17059         buffer64.
17060         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
17061         of casting of buffer.
17062         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
17063         buffer32 and buffer64.
17064         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
17065         writes instead of casting of buffer.
17066         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
17067         buffer32.
17068         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
17069         casting of buffer.
17070
17071 2011-07-19  Andreas Schwab  <schwab@redhat.com>
17072
17073         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
17074
17075 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
17076
17077         * nscd/nscd.c (termination_handler): Don't do anything for a database
17078         if it has not yet been initialized.
17079
17080 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
17081
17082         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
17083
17084 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
17085
17086         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
17087
17088 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
17089
17090         * po/nl.po: Update from translation team.
17091         * po/sv.po: Likewise.
17092
17093 2011-07-16  Roland McGrath  <roland@hack.frob.com>
17094
17095         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
17096         now disallowed by GCC.
17097
17098         * configure.in (use-default-link): Default to yes if a test -shared
17099         link meets our qualifications.
17100         * configure: Regenerated.
17101
17102         * config.make.in (output-format): New variable.
17103         * configure.in: Check for ld --print-output-format support.
17104         * configure: Regenerated.
17105         * Makerules ($(common-objpfx)format.lds)
17106         [$(output-format) != unknown]: Just use $(output-format),
17107         instead of the linker-script munging.
17108
17109 2011-07-14  Roland McGrath  <roland@hack.frob.com>
17110
17111         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
17112         of $(common-objpfx)shlib.lds.
17113         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
17114
17115         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
17116         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
17117
17118         * configure.in (-z relro check): Adjust test code to add a large
17119         writable data section after it.
17120         * configure: Regenerated.
17121
17122 2011-07-11  Roland McGrath  <roland@hack.frob.com>
17123
17124         * configure.in (-z relro check): Fix test code to make the variable
17125         truly const.
17126         * configure: Regenerated.
17127
17128 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
17129
17130         * nscd/nscd.h (struct traced_file): Define.
17131         (struct database_dyn): Remove inotify_descr, reset_res, and filename
17132         elements.  Add traced_files.
17133         (inotify_fd): Declare.
17134         (register_traced_file): Declare.
17135         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
17136         (inotify_fd): Export.
17137         (resolv_conf_descr): Remove.
17138         (nscd_init): Move inotify descriptor creation to main.
17139         Don't register files for notification here.
17140         (register_traced_file): New function.
17141         (invalidate_cache): Don't use reset_res to determine whether to call
17142         res_init, go through the list of registered files.
17143         (main_loop_poll): The inotify descriptors are now stored in the
17144         structures for the traced files.
17145         (main_loop_epoll): Likewise
17146         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
17147         to __nss_disable_nscd.
17148         * nscd/cache.c (prune_cache): There is no single inotify descriptor
17149         for a database anymore.  Check the records for all the registered
17150         files instead.
17151         * nss/Makefile (libnss_files-routines): Add files-init.
17152         (libnss_db-routines): Add db-init.
17153         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
17154         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
17155         * nss/nss_db/db-init.c: New file.
17156         * nss/nss_files/files-init.c: New file.
17157         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
17158         __nss_lookup_function.
17159         (__nss_lookup_function): Call nss_load_library.
17160         (nss_load_all_libraries): New function.
17161         (__nss_disable_nscd): Take parameter with callback function for files
17162         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
17163         used for the cached services.
17164         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
17165         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
17166         options for features to all the files in nscd.
17167
17168         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
17169
17170 2011-07-10  Roland McGrath  <roland@hack.frob.com>
17171
17172         * csu/elf-init.c (__libc_csu_init): Comment typo.
17173
17174 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
17175
17176         * po/pl.po: Update from translation team.
17177         * po/ja.po: Likewise.
17178         * po/ru.po: Likewise.
17179         * po/ko.po: Likewise.
17180         * po/fr.po: Likewise.
17181
17182 2011-07-09  Roland McGrath  <roland@hack.frob.com>
17183
17184         * configure.in (.ctors/.dtors header and trailer check):
17185         Use an empirical test on a built program.
17186         * configure: Regenerated.
17187
17188         * configure.in (-z relro check): Use an empirical test on a built DSO.
17189         Detect, but do not require, on ia64.
17190         * configure: Regenerated.
17191
17192         * configure.in (READELF): Find it with AC_CHECK_TOOL.
17193         Update tests that use readelf to use $READELF instead.
17194         * configure: Regenerated.
17195
17196 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
17197
17198         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
17199         if the result is not used.
17200
17201 2011-07-05  Andreas Jaeger  <aj@suse.de>
17202
17203         [BZ#9696]
17204         * stdlib/tst-strtod.c: Add testcase.
17205
17206 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
17207
17208         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
17209         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
17210         The latter has a higher limit.  Take additional parameter to pass to
17211         the new function.
17212         (__pathconf): Pass file to __statfs_link_max.
17213         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
17214         __statfs_link_max.
17215         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
17216         __statfs_link_max.
17217
17218         [BZ #12868]
17219         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
17220         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
17221         Handle Lustre.
17222         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
17223         (__statfs_filesize_max): Likewise.
17224         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
17225
17226 2011-07-05  Andreas Jaeger  <aj@suse.de>
17227
17228         * resolv/res_comp.c (dn_skipname): Remove unused variable.
17229
17230 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
17231
17232         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
17233         `status' variable.
17234         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
17235         Likewise.
17236
17237 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
17238
17239         * Makefile (strop-tests): Add strncat.
17240         * string/test-strncat.c: New file.
17241
17242 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
17243
17244         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
17245
17246 2011-06-21  Andreas Jaeger  <aj@suse.de>
17247
17248         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
17249         Copy rule from iconvdata/Makefile.
17250
17251 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
17252
17253         [BZ #12922]
17254         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
17255         but no long options are defined, just return 'W'.
17256
17257 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
17258
17259         [BZ #9696]
17260         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
17261
17262 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
17263
17264         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
17265         netgroups to read.
17266         (innetgr): Likewise.
17267
17268 2011-07-05  Roland McGrath  <roland@hack.frob.com>
17269
17270         * config.make.in (install_root): Default to $(DESTDIR).
17271
17272 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
17273
17274         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
17275
17276 2011-07-02  Roland McGrath  <roland@hack.frob.com>
17277
17278         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
17279
17280         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
17281         containing directory rather than embedding absolute directory names.
17282
17283         * scripts/check-local-headers.sh: Rewritten using awk.
17284         Match by word, not by line.  Print error messages for matches.
17285         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
17286
17287         * Makerules [shlib-lds-flags empty]:
17288         ($(common-objpfx)libc_pic.opts): New target.
17289         ($(common-objpfx)libc_pic.os.clean): New target.
17290         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
17291
17292         * config.make.in (OBJCOPY): New variable.
17293         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
17294         * configure: Regenerated.
17295
17296         * config.make.in (use-default-link): New variable.
17297         * configure.in (use_default_link): Grok --with-default-link to set it.
17298         * configure: Regenerated.
17299         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
17300         (shlib-lds, shlib-lds-flags): Define to empty.
17301
17302         * Makerules (shlib-lds): New variable.
17303         (shlib-lds-flags): New variable.
17304         (build-shlib, build-moduile, build-module-asneeded): Use it.
17305         ($(common-objpfx)libc.so): Use $(shlib-lds).
17306         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
17307         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
17308
17309         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
17310         DT_FLAGS/DT_FLAGS_1 with zero flags.
17311
17312         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
17313         linker script munging.
17314
17315 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
17316
17317         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
17318         as 128-bit value.
17319         * crypt/sha512.c (sha512_process_block): Perform total addition using
17320         128-bit if possible.
17321         (__sha512_finish_ctx): Likewise.
17322         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
17323         as 64-bit value.
17324         * crypt/sha256.c (SWAP64): Define.
17325         (sha256_process_block): Perform total addition using 64-bit if
17326         possible.
17327         (__sha256_finish_ctx): Likewise.
17328
17329 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
17330
17331         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
17332         * nscd/initgrcache.c (addinitgroupsX): Likewise.
17333         * nscd/hstcache.c (cache_addhst): Likewise.
17334         * nscd/grpcache.c (cache_addgr): Likewise.
17335         * nscd/aicache.c (addhstaiX): Likewise
17336         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
17337
17338 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
17339
17340         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
17341         * nscd/initgrcache.c (addinitgroupsX): Likewise.
17342         * nscd/hstcache.c (cache_addhst): Likewise.
17343         * nscd/grpcache.c (cache_addgr): Likewise.
17344         * nscd/aicache.c (addhstaiX): Likewise
17345
17346 2011-07-01  Andreas Schwab  <schwab@redhat.com>
17347
17348         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
17349         domain only when needed.
17350
17351 2011-06-30  Andreas Schwab  <schwab@redhat.com>
17352
17353         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
17354         is always restored.
17355
17356 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
17357
17358         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
17359         are re-adding the entry.
17360         * nscd/servicescache.c (cache_addserv): Likewise.
17361
17362 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
17363
17364         * sysdeps/generic/dl-irel.h: fix protection against multiple
17365         inclusions.
17366         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
17367
17368 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
17369
17370         [BZ #12935]
17371         * malloc/memusage.sh: Fix quoting in message.
17372         * debug/xtrace.sh: Likewise.
17373
17374         * configure.in: Remove support for --experimental-malloc option, make
17375         it the default.
17376         * config.make.in: Likewise.
17377         * malloc/Makefile: Likewise.
17378
17379 2011-06-27  Andreas Schwab  <schwab@redhat.com>
17380
17381         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
17382         two-byte characters.
17383
17384 2011-06-27  Roland McGrath  <roland@hack.frob.com>
17385
17386         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
17387         AC_CACHE_CHECK invocation.
17388         * configure: Regenerated.
17389
17390         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
17391
17392 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
17393
17394         [BZ #12350]
17395         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
17396         bit from old_res_options.
17397
17398         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
17399
17400         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
17401         value type for setfct.
17402
17403 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
17404
17405         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
17406         __gettimeofday instead of gettimeofday.
17407
17408 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
17409
17410         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
17411
17412 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
17413
17414         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
17415
17416         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
17417         info.
17418
17419 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
17420
17421         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
17422         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
17423         strcpy-sse2-unaligned strncpy-sse2-unaligned
17424         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
17425         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
17426         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
17427         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
17428         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
17429         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
17430         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
17431         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
17432         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
17433         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
17434         (STRCPY): Support SSE2 and SSSE3 versions.
17435
17436 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
17437
17438         [BZ #12874]
17439         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
17440         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
17441         kernels which artificially limit size of requests.
17442
17443 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
17444
17445         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
17446         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
17447         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
17448         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
17449         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
17450         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
17451         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
17452         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
17453         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
17454         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
17455         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
17456         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
17457         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
17458         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
17459         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
17460         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17461         Enable unaligned load optimization for Intel Core i3, i5 and i7
17462         processors.
17463         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
17464         Define.
17465         (index_Fast_Unaligned_Load): Define.
17466         (HAS_FAST_UNALIGNED_LOAD): Define.
17467
17468 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
17469
17470         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
17471
17472 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
17473
17474         [BZ #12907]
17475         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
17476         until it is clear that the information is realy needed.
17477         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
17478
17479 2011-06-22  Andreas Schwab  <schwab@redhat.com>
17480
17481         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
17482
17483 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
17484
17485         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
17486         /sys/devices/system/cpu/online if it is usable.
17487
17488         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
17489         reading the information from the /proc filesystem to once a second.
17490
17491 2011-06-21  Andreas Jaeger  <aj@suse.de>
17492
17493         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
17494         NULL after inclusion of kernel headers.
17495
17496 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
17497
17498         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
17499         calls to internal_setent.
17500
17501         [BZ #12885]
17502         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
17503         addresses using gethostbyname4_r ignore IPv4 addresses.
17504
17505         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
17506         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
17507
17508         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
17509
17510 2011-06-20  David S. Miller  <davem@davemloft.net>
17511
17512         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
17513         inclusions.
17514         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
17515
17516         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
17517         (elf_irel): Use it.
17518         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
17519         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
17520         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
17521         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
17522         * sysdeps/x86_64/dl-irel.h: Likewise.
17523
17524         * elf/dl-runtime.c: Use elf_ifunc_invoke.
17525         * elf/dl-sym.c: Likewise.
17526
17527 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
17528
17529         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
17530         need to dereference resplen2.
17531
17532 2011-06-14  Andreas Schwab  <schwab@redhat.com>
17533
17534         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
17535
17536 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
17537
17538         * Makeconfig: Define vardbdir and inst_vardbdir.
17539         * nss/Makefile: Add rules to install db-Makefile.
17540
17541         * nss/nss_db/db-XXX.c: Cleanup.
17542
17543         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
17544         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
17545         GLIBC_PRIVATE.
17546         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
17547         * nss/makedb.c: Implement -g option to specify that value strings
17548         are generated and should not be added to table iterated over for
17549         get*ent calls.
17550         * nss/nss_db/db-initgroups.c: New file.
17551
17552         * nss/getent.c: Add support for initgroups lookups through getgrouplist
17553         interface.
17554
17555         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
17556         (internal_getgrouplist): Adjust to name change.
17557         Update use_initgroups_entry if this is not the first call.
17558         * nss/databases.def: Add initgroups entry.
17559
17560         * nss/makedb.c (compute_tables): Check result of multiple hash table
17561         sizes to minimize maximum chain length.
17562
17563 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
17564
17565         * Versions.def: Add entry for libnss_db.
17566         * shlib-versions: Likewise.
17567         * nss/Makefile: Add rules to build libnss_db.
17568         * nss/Versions: Add libnss_db information.  Organize libnss_files
17569         entries better.
17570         * nss/db-Makefile: Add gshadow support.  Change rules for the new
17571         makedb progra.  Some minor improvements to generate smaller files.
17572         * nss/nss_db/nss_db.h: Move NSS database header data structures to
17573         here from...
17574         * nss/makedb.c: ...here.
17575         Improve database format to be smaller and require less memory at
17576         runtime.
17577         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
17578         db anymore.
17579         * nss/nss_db/db-netgrp.c: Likewise.
17580         * nss/nss_db/db-open.c: Likewise.
17581         * nss/nss_files/flies-XXX.x: Adjust comments.
17582         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
17583         * nss/nss_files/files-grp.c: Likewise.
17584         * nss/nss_files/files-hosts.c: Likewise.
17585         * nss/nss_files/files-network.c: Likewise.
17586         * nss/nss_files/files-proto.c: Likewise.
17587         * nss/nss_files/files-pwd.c: Likewise.
17588         * nss/nss_files/files-rpc.c: Likewise.
17589         * nss/nss_files/files-service.c: Likewise.
17590         * nss/nss_files/files-sgrp.c: Likewise.
17591         * nss/nss_files/files-spwd.c: Likewise.
17592         * nss/nss_db/db-alias.c: Removed.
17593         * nss/nss_db/dummy-db.h: Removed.
17594
17595 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
17596
17597         * nss/makedb.c: Rewritten to not use database library.
17598         * nss/Makefile: Update to build new makedb program.
17599
17600 2011-06-14  Andreas Jaeger  <aj@suse.de>
17601
17602         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
17603         memset declaration.
17604
17605 2011-06-10  Andreas Schwab  <schwab@redhat.com>
17606
17607         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
17608         tmpbuf.
17609
17610 2011-06-10  Roland McGrath  <roland@hack.frob.com>
17611
17612         * Makerules (shlib.lds): Fail if the linker script comes out empty.
17613         * elf/Makefile ($(objpfx)ld.so): Likewise.
17614
17615         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
17616         Don't list ld.so twice in dependencies.
17617
17618         * posix/bug-regex31.c: Include <stdlib.h>.
17619
17620         * nscd/hstcache.c (cache_addhst): Remove unused variable.
17621
17622         * nis/nss_compat/compat-spwd.c
17623         (getspent_next_nss_netgr): Remove unused variable.
17624         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
17625
17626         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
17627         nonmembers" output to use the right array.
17628
17629         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
17630
17631         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
17632
17633         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
17634         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
17635         * catgets/gencat.c (read_input_file): Likewise.
17636         * locale/programs/locarchive.c (enlarge_archive): Likewise.
17637
17638         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
17639         variable definition inside #if's controlling its use.
17640
17641         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
17642
17643         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
17644
17645         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
17646
17647         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
17648         unreachable code.
17649
17650         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
17651
17652         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
17653         * configure: Regenerated.
17654
17655         * Makerules: Revert last change.
17656         * elf/Makefile: Likewise.
17657
17658 2011-06-09  Roland McGrath  <roland@hack.frob.com>
17659
17660         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
17661         * elf/Makefile ($(objpfx)librtld.os): Likewise.
17662         (reloc-link): Likewise.
17663
17664 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
17665
17666         * elf/Makefile: Add rules to build pldd.
17667         * elf/pldd.c: New file.
17668         * elf/pldd-xx.c: New file.
17669
17670 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
17671
17672         * version.h: Update for 2.15 development version.
17673
17674 2011-06-07  David S. Miller  <davem@davemloft.net>
17675
17676         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
17677         ifuncs.
17678         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
17679         elf_machine_lazy_rel): Likewise.
17680         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
17681         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
17682         elf_machine_lazy_rel): Likewise.
17683         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
17684         dl_hwcap via passed in argument.
17685         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
17686         Likewise.
17687
17688 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17689
17690         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
17691
17692 2011-06-06  Roland McGrath  <roland@hack.frob.com>
17693
17694         [BZ #12849]
17695         * manual/fdl-1.1.texi: New file, verbatim from:
17696         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
17697         * manual/lgpl-2.1.texi: New file, verbatim from:
17698         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
17699         * manual/Makefile (licenses): New variable, list those new file names.
17700         (texis): Use it.
17701         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
17702
17703         * manual/fdl.texi: File removed.
17704         * manual/lesser.texi: File removed.
17705         * manual/libc.texinfo (Copying, Documentation License):
17706         Use new @include file names, put @appendix directive before @include.
17707
17708 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
17709
17710         [BZ #12841]
17711         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
17712         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
17713         (mq_open): Add __NTH.
17714
17715 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
17716
17717         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17718         Assume Intel Core i3/i5/i7 processor if AVX is available.
17719
17720 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
17721
17722         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
17723         typo.
17724
17725 2011-05-31  Andreas Schwab  <schwab@redhat.com>
17726
17727         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
17728         memory.  Use alloca_account.  Fix memory leak when retrying.
17729
17730 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
17731
17732         * version.h (RELEASE): Bump for 2.14 release.
17733         * include/features.h (__GLIBC_MINOR__): Bump to 14.
17734
17735         * config.make.in (RANLIB): Remove entry.
17736
17737 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
17738
17739         * po/Makefile (po-sed-cmd): Add ksh to extensions.
17740         (libc.pot): Work around missing support for .ksh extension in xgettext.
17741
17742         [BZ #12684]
17743         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
17744         if both request failed.
17745         (send_dg): In case of server errors clear resplen or *resplen2.
17746
17747         [BZ #12454]
17748         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
17749         when there are multiple maps.
17750         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
17751         (_dl_fini): Remove test here.
17752
17753         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
17754
17755 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
17756
17757         [BZ #12350]
17758         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
17759         bit from old_res_options.
17760         (gaih_inet): Likewise.
17761
17762         [BZ #11099]
17763         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
17764         as signed.
17765
17766         * resolv/res_init.c (res_setoptions): Make the code more compact.
17767
17768         [BZ #11558]
17769         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
17770         set RES_USEVC.
17771
17772         [BZ #11634]
17773         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
17774
17775         * malloc/malloc.h: Mark malloc hook variables as deprecated.
17776
17777         [BZ #11781]
17778         * malloc/malloc.h: Declare malloc hook variables as volatile.
17779
17780         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
17781         in last patch.
17782
17783         [BZ #11799]
17784         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
17785         raise in the comment.
17786         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
17787         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
17788         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
17789
17790 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
17791
17792         [BZ #12811]
17793         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
17794         grow the buffers more if it already has to be sufficient.
17795         (build_wcs_upper_buffer): Likewise.
17796         * posix/regexec.c (check_matching): Likewise.
17797         (clean_state_log_if_needed): Likewise.
17798         (extend_buffers): Don't enlarge buffers beyond size of the input
17799         buffer.
17800         Patches mostly by Emil Wojak <emil@wojak.eu>.
17801         * posix/bug-regex32.c: New file.
17802         * posix/Makefile (tests): Add bug-regex32.
17803
17804         * locale/findlocale.c (_nl_find_locale): Return right away if
17805         _nl_explode_name failed.
17806         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
17807
17808         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
17809
17810         * debug/xtrace.sh: Unify messages.
17811         * malloc/memusage.sh: Likewise.
17812
17813         [BZ #12813]
17814         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
17815         time symbol from vDSO.  Substitute with vsyscall if not available.
17816         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
17817         __vdso_time.
17818
17819         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
17820         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
17821         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
17822         Add sendmmsg and internal_sendmmsg.
17823         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
17824         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
17825         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
17826
17827         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
17828         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
17829         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
17830
17831 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
17832
17833         [BZ #12813]
17834         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
17835         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
17836         available.
17837         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
17838         __vdso_getcpu.
17839
17840         [BZ #12814]
17841         * iconvdata/Makefile (tests): Add bug-iconv9.
17842         * iconvdata/bug-iconv9.c: New file.
17843
17844 2011-05-27  Andreas Schwab  <schwab@redhat.com>
17845
17846         [BZ #12814]
17847         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
17848
17849 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
17850
17851         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
17852         (struct user_regs_struct): Change intcs field back to cs.
17853
17854 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
17855
17856         * po/ja.po: Update from translation team.
17857
17858 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
17859
17860         [BZ #12795]
17861         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
17862         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
17863
17864 2011-05-20  Andreas Schwab  <schwab@redhat.com>
17865
17866         * stdlib/longlong.h: Update from GCC.
17867
17868 2011-05-23  Andreas Schwab  <schwab@redhat.com>
17869
17870         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
17871         parameter name.
17872         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
17873         Add parameter name.
17874         (__sysconf): Pass it down.
17875
17876 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
17877
17878         [BZ #12671]
17879         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
17880         some situations.
17881         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
17882         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
17883         add in in __libc_use_alloca calls.  Adjust callers.
17884         (glob): Use malloc in some situations.
17885
17886         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
17887         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
17888         pltexit.
17889
17890 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
17891
17892         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
17893         and CLOCK_BOOTTIME_ALARM.
17894
17895         [BZ #12782]
17896         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
17897         is returned.
17898
17899         * string/_strerror.c (__strerror_r): Print negative errors as signed
17900         numbers.
17901
17902         [BZ #12777]
17903         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
17904         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
17905         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
17906
17907         * configure.in: Fix typo in redirection and correct removal of test
17908         files in two cases.
17909
17910         [BZ #12788]
17911         * locale/setlocale.c (new_composite_name): Fix test to check for
17912         identical name of all categories.
17913
17914         [BZ #12792]
17915         * libio/filedoalloc.c (local_isatty): New function.
17916         (_IO_file_doallocate): Use local_isatty.
17917         * stdio-common/perror.c (perror): In case a new stream is used
17918         forward the stream error.
17919         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
17920         error flag.
17921
17922 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
17923
17924         [BZ #11869]
17925         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
17926         alloca.
17927         * include/alloca.h (extend_alloca_account): Define.
17928
17929         [BZ #11857]
17930         * posix/regex.h: Fix comments with documentation of user-accessible
17931         fields after compilation and describe correct free'ing of pattern
17932         after re_compile_pattern.
17933         Patch by Reuben Thomas <rrt@sc3d.org>.
17934
17935 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
17936
17937         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
17938         and -mno-altivec to prevent the compiler from using Altivec and/or
17939         VSX instructions when the corresponding registers are not available.
17940
17941 2011-05-19  Andreas Schwab  <schwab@redhat.com>
17942
17943         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
17944
17945 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
17946
17947         * libio/freopen.c (freopen): Use __dup2, not dup2.
17948         * libio/freopen64.c (freopen64): Likewise.
17949
17950 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
17951
17952         [BZ #12775]
17953         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
17954         * math/Makefile (tests): Add test-powl.
17955         (CFLAGS-test-powl.c): Define.
17956         * math/test-powl.c: New file.
17957
17958 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
17959
17960         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
17961
17962 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
17963
17964         [BZ #11837]
17965         * iconvdata/gb18030.c: Update to GB18020-2005.
17966
17967 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
17968
17969         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
17970         RE_SYNTAX_POSIX_AWK): Update to match recent development.
17971         Patch by Aharon Robbins <arnold@skeeve.com>.
17972
17973         [BZ #11892]
17974         * stdlib/putenv.c (putenv): Don't always create copy of the variable
17975         on the stack.
17976
17977         [BZ #11895]
17978         * misc/pselect.c (__pselect): Handle timeout value errors hidden
17979         through underflows.
17980
17981         [BZ #12766]
17982         * misc/error.c (error_at_line): Ensure file_name and old_file_name
17983         point to strings before performing equality test for error_one_per_line
17984         mode.
17985
17986         [BZ #11697]
17987         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
17988
17989         [BZ #11820]
17990         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
17991         (struct user_fpregs_struct): Avoid __uint*_t types.
17992
17993         [BZ #6420]
17994         * malloc/mtrace.c (tr_where): Add additional parameter to point to
17995         symbol info.  Use it instead of calling _dl_addr locally.
17996         (lock_and_info): New function.
17997         (tr_freehook): Call lock_and_info and pass symbol info as additional
17998         parameter to tr_where.
17999         (tr_mallochook): Likewise.
18000         (tr_reallochook): Likewise.
18001         (tr_memalignhook): Likewise.
18002
18003         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
18004         used and couldn't be at all thread-safe.
18005
18006 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
18007
18008         * libio/freopen.c (freopen): Don't close old file descriptor
18009         before the new one is opened.  Instead dup the new file descriptor
18010         to the old one after the new stream is created.
18011         * libio/freopen64.c (freopen64): Likewise.
18012         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
18013         * libio/fileops.c (_IO_new_file_close_it): Handle new
18014         _IO_FLAGS2_NOCLOSE flag.
18015         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
18016         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
18017         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
18018         _IO_FLAGS2_NOCLOSE flag.
18019         * include/unistd.h: Add hidden_proto for dup3.
18020         Define __have_dup3.
18021         * io/dup3.c: Define hidden symbol.
18022         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
18023
18024         [BZ #7101]
18025         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
18026         when an incomplete long option is used.
18027         * posix/tst-getopt_long1.c: New file.
18028         * posix/Makefile (tests): Add tst-getopt_long1.
18029
18030         [BZ #10138]
18031         * scripts/config.guess: Update from autoconf-2.68.
18032         * scripts/config.sub: Likewise.
18033
18034         [BZ #10157]
18035         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
18036         tests into ...
18037         (has_cpuclock): ...this.  New function.
18038         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
18039         macro here based on has_cpuclock code.
18040
18041         [BZ #10149]
18042         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
18043         First byte (not low byte) is now always NUL.
18044         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
18045
18046         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
18047         Use non-cancelable interfaces.
18048
18049         [BZ #9809]
18050         * locale/iso-639.def: Add entry for Sorani.
18051
18052         [BZ #11901]
18053         * include/stdlib.h: Move include protection to the right place.
18054         Define abort_msg_s.  Declare __abort_msg with it.
18055         * stdlib/abort.c (__abort_msg): Adjust type.
18056         * assert/assert.c (__assert_fail_base): New function.  Majority
18057         of code from __assert_fail.  Allocate memory for __abort_msg with
18058         mmap.
18059         (__assert_fail): Now call __assert_fail_base.
18060         * assert/assert-perr.c: Remove bulk of implementation.  Use
18061         __assert_fail_base.
18062         * include/assert.hL Declare __assert_fail_base.
18063         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
18064         mmap.
18065         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
18066
18067 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
18068
18069         [BZ #11952]
18070         [BZ #12453]
18071         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
18072         until all modules are registered in the DTV.
18073         * elf/Makefile: Add rules to build and run tst-tls19.
18074         * elf/tst-tls19.c: New file.
18075         * elf/tst-tls19mod1.c: New file.
18076         * elf/tst-tls19mod2.c: New file.
18077         * elf/tst-tls19mod3.c: New file.
18078         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
18079
18080         [BZ #12083]
18081         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
18082         correctly.
18083
18084         [BZ #12601]
18085         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
18086         two-byte sequence errors.
18087         * iconvdata/Makefile (tests): Add bug-iconv8.
18088         * iconvdata/bug-iconv8.c: New file.
18089
18090         [BZ #12626]
18091         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
18092         buf2 definition.
18093
18094         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
18095
18096         [BZ #12432]
18097         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
18098         (dummy_getcfa): New function.
18099         (init): Get _Unwind_GetCFA address, use dummy if not found.
18100         (backtrace_helper): In recursion check, also check whether CFA changes.
18101         (__backtrace): Completely initialize arg.
18102
18103         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
18104         storing incomplete byte sequence in state object.  Avoid testing for
18105         guaranteed too small input if we know there is enough data available.
18106
18107 2011-05-11  Andreas Schwab  <schwab@redhat.com>
18108
18109         * Makeconfig (+link-pie): Indent.
18110         * Rules (binaries-pie): Define if $(have-fpie) and
18111         $(build-shared).
18112         (binaries-shared): Also filter out $(binaries-pie).
18113         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
18114         * nscd/Makefile (others-pie): Add nscd.
18115         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
18116         ($(objpfx)nscd): Remove command override.
18117         * login/Makefile (others-pie): Add pt_chown.
18118         ($(objpfx)pt_chown): Remove command override.
18119         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
18120         remove command overrides.
18121
18122 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
18123
18124         * libio/tst_putwc.c: Fix error messages.
18125
18126         [BZ #12724]
18127         * libio/fileops.c (_IO_new_file_close_it): Always flush when
18128         currently writing and seek to current position when not.
18129         * libio/Makefile (tests): Add bug-fclose1.
18130         * libio/bug-fclose1.c: New file.
18131
18132 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
18133
18134         [BZ #12511]
18135         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
18136         don't set DF_1_NODELETE here.
18137         (do_lookup_x): When entering new entry test for copy relocation
18138         and if necessary set DF_1_NODELETE flag.
18139         * elf/tst-unique4.cc: New file.
18140         * elf/tst-unique4.h: New file.
18141         * elf/tst-unique4lib.cc: New file.
18142         * elf/Makefile: Add rules to build and run tst-unique4.
18143         Patch by Piotr Bury <pbury@goahead.com>.
18144
18145 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
18146
18147         [BZ #12052]
18148         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
18149
18150         [BZ #12625]
18151         * misc/mntent_r.c (addmntent): Flush the stream after the output
18152
18153         [BZ #12393]
18154         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
18155         (is_trusted_path_normalize): Skip initial colon.  Append slash
18156         to empty buffer.  Duplicate is_trusted_path code but allow
18157         constructed patch to be prefix.
18158         (is_dst): Allow $ORIGIN followed by /.
18159         (_dl_dst_substitute): Correct clearing of check_for_trusted.
18160         Correct testing of result of is_trusted_path_normalize
18161         (decompose_rpath): Fix warning.
18162
18163 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
18164
18165         [BZ #11257]
18166         * grp/initgroups.c (internal_getgrouplist): When we found the service
18167         list through the initgroups entry in nsswitch.conf do not always
18168         continue on a successful lookup.  Don't always use the
18169         __nss_group_database value if it is set.
18170         * nss/nsswitch.conf (initgroups): Change action for successful db
18171         lookup to continue for compatibility.
18172
18173 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
18174
18175         [BZ #11532]
18176         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
18177         and CP774 modules.
18178         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
18179         and CP774 modules.
18180         * iconvdata/tst-tables.sh: Likewise.
18181         * iconvdata/cp770.c: New file.
18182         * iconvdata/cp771.c: New file.
18183         * iconvdata/cp772.c: New file.
18184         * iconvdata/cp773.c: New file.
18185         * iconvdata/cp774.c: New file.
18186         * iconvdata/testdata/CP770: New file.
18187         * iconvdata/testdata/CP770..UTF8: New file.
18188         * iconvdata/testdata/CP771: New file.
18189         * iconvdata/testdata/CP771..UTF8: New file.
18190         * iconvdata/testdata/CP772: New file.
18191         * iconvdata/testdata/CP772..UTF8: New file.
18192         * iconvdata/testdata/CP773: New file.
18193         * iconvdata/testdata/CP773..UTF8: New file.
18194         * iconvdata/testdata/CP774: New file.
18195         * iconvdata/testdata/CP774..UTF8: New file.
18196
18197         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
18198         END CHARMAP line.
18199         * iconvdata/gen-8bit-gap.sh: Likewise.
18200         * iconvdata/gen-8bit.sh: Likewise.
18201
18202         * locale/iso-639.def: Add ary entry.
18203
18204         [BZ #11258]
18205         * locale/C-translit.h.in: Add U20A1 transliteration.
18206
18207         [BZ #12178]
18208         * locale/iso-639.def: Add wae entry.
18209         Patch by Kevin Bortis <bortis@translate-wae.ch>.
18210
18211         [BZ #12545]
18212         * locale/programs/localedef.c (construct_output_path): Use ssize_t
18213         for n.
18214
18215         [BZ #12711]
18216         * locale/C-translit.h.in: Add entry for U20B9.
18217         Patch by pravin.d.s@gmail.com.
18218
18219 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
18220
18221         [BZ #12713]
18222         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
18223         ENAMETOOLONG use generic getcwd.
18224         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
18225         in rtld.  Use *stat64.
18226         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
18227         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
18228         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
18229         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
18230         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
18231         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
18232         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
18233         __fstatat64 macros.
18234         * include/dirent.h: Add libc_hidden_proto for rewinddir.
18235         * dirent/rewinddir.c: Add libc_hidden_def.
18236         * sysdeps/mach/hurd/rewinddir.c: Likewise.
18237         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
18238
18239         * include/dirent.h (__alloc_dir): Add flags parameter.
18240         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
18241         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
18242         __alloc_dir.
18243         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
18244         from fdopendir if O_CLOEXEC is already set.
18245
18246 2011-03-15  Alan Modra  <amodra@gmail.com>
18247
18248         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
18249         l_tls_firstbyte_offset non-zero.  Save padding offset in
18250         l_tls_firstbyte_offset for later use.
18251         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
18252         freeing static tls block.
18253
18254 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
18255
18256         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
18257         where #ifdef was intended.  The intent is to prevent ARG_MAX from
18258         being defined by the kernel headers.
18259
18260 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
18261
18262         [BZ #12734]
18263         * resolv/resolv.h: Define RES_NOTLDQUERY.
18264         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
18265         no-tld-query and set RES_NOTLDQUERY.
18266         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
18267         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
18268         modern BIND to search name as TLD unless forbidden.
18269
18270 2011-05-07  Petr Baudis  <pasky@suse.cz>
18271             Ulrich Drepper  <drepper@gmail.com>
18272
18273         [BZ #12393]
18274         * elf/dl-load.c (fillin_rpath): Move trusted path check...
18275         (is_trusted_path): ...to here.
18276         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
18277         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
18278         using is_trusted_path_normalize() in setuid scripts.
18279
18280 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
18281
18282         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
18283         __BEGIN/__END_DECLS.
18284
18285 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
18286
18287         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
18288         NSS_STATUS_NOTFOUND if no record was found.
18289
18290 2011-05-05  Andreas Schwab  <schwab@redhat.com>
18291
18292         * sunrpc/Makefile (headers): Add rpc/netdb.h.
18293         (headers-not-in-tirpc): Remove rpc/netdb.h
18294         * resolv/netdb.h: Revert last change.
18295
18296 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
18297
18298         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
18299         circular dependency between libgcc.a and libc.a.
18300
18301 2011-05-05  Andreas Schwab  <schwab@redhat.com>
18302
18303         * resolv/netdb.h: Don't include <rpc/netdb.h>.
18304         * nis/Makefile: Don't install rpcsvc/*.
18305         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
18306         instead of <rpc/types.h>.
18307         (MAXHOSTNAMELEN): Define.
18308
18309 2011-05-03  Andreas Schwab  <schwab@redhat.com>
18310
18311         * elf/ldconfig.c (add_dir): Don't crash on empty path.
18312
18313 2011-04-28  Maciej Babinski  <mbabinski@google.com>
18314
18315         [BZ #12714]
18316         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
18317         gethostbyname4_r when IPv6 results are possible.
18318
18319 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
18320
18321         [BZ #12723]
18322         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
18323         _PC_PIPE_BUF handling.
18324
18325 2011-04-30  Bruno Haible  <bruno@clisp.org>
18326
18327         [BZ #12717]
18328         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
18329         * resolv/netdb.h (getnameinfo): Change type of flags parameter
18330         to 'int'.
18331         * inet/getnameinfo.c (getnameinfo): Likewise.
18332
18333 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
18334
18335         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
18336         to groups setting in database lookup.
18337         * nss/nsswitch.conf: Add initgroups entry.
18338
18339 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
18340
18341         [BZ #12685]
18342         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
18343         mode string.
18344         Patch by Eric Blake <eblake@redhat.com>.
18345
18346 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
18347
18348         * sunrpc/Makefile (need-export-routines): Add svc_run.
18349         (routines): Remove svc_run.
18350         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
18351         * sunrpc/clnt_perr.c (clnt_perrno): Export.
18352         * sunrpc/svc_run.c (svc_run): Likewise.
18353         * sunrpc/svc_udp.c (svcudp_create): Likewise.
18354
18355 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
18356
18357         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
18358         problem in reallocation in last patch.
18359
18360 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
18361
18362         * sunrpc/Makefile: Move inclusion of Rules.
18363
18364 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
18365
18366         * nss/nss_files/files-initgroups.c: New file.
18367         * nss/Makefile (libnss_files-routines): Add files-initgroups.
18368         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
18369         _nss_files_initgroups_dyn.
18370
18371 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
18372
18373         * elf/elf.h (R_ARM_IRELATIVE): Define.
18374
18375 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
18376
18377         * po/ru.po: Update from translation team.
18378
18379 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
18380
18381         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
18382         dependencies.
18383
18384 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
18385
18386         [BZ #12653]
18387         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
18388         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
18389         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
18390         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
18391         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
18392
18393 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
18394
18395         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
18396         differing bytes.
18397         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
18398         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
18399         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
18400
18401 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
18402
18403         [BZ #12420]
18404         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
18405         storing it.
18406         * stdlib/bug-getcontext.c: New file.
18407         * stdlib/Makefile: Add rules to build and run bug-getcontext.
18408
18409 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18410
18411         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
18412         instructions into .machine "z9-109".
18413         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
18414         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
18415
18416 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18417
18418         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
18419         between environment variables and auxiliary vector.
18420
18421 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
18422
18423         * Makefile: Add rules to build linkobj/libc.so.
18424         * include/libc-symbols.h: Define libc_hidden_nolink.
18425         * include/rpc/auth.h: Mark functions which are to be hidden.
18426         * include/rpc/auth_des.h: Likewise.
18427         * include/rpc/auth_unix.h: Likewise.
18428         * include/rpc/clnt.h: Likewise.
18429         * include/rpc/des_crypt.h: Likewise.
18430         * include/rpc/key_prot.h: Likewise.
18431         * include/rpc/pmap_clnt.h: Likewise.
18432         * include/rpc/pmap_prot.h: Likewise.
18433         * include/rpc/pmap_rmt.h: Likewise.
18434         * include/rpc/rpc_msg.h: Likewise.
18435         * include/rpc/svc.h: Likewise.
18436         * include/rpc/svc_auth.h: Likewise.
18437         * include/rpc/xdr.h: Likewise.
18438         * nis/Makefile: Link all DSOs against linkobj/libc.so.
18439         * nss/Makefile: Likewise.
18440         * sunrpc/Makefile: Don't install headers.  Build library with normal
18441         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
18442         * sunrpc/auth_des.c: Hide exported symbols by default, export some
18443         for the compat linking library.  Remove use of INTDEF/INTUSE.
18444         * sunrpc/auth_none.c: Likewise.
18445         * sunrpc/auth_unix.c: Likewise.
18446         * sunrpc/authdes_prot.c: Likewise.
18447         * sunrpc/authuxprot.c: Likewise.
18448         * sunrpc/clnt_gen.c: Likewise.
18449         * sunrpc/clnt_perr.c: Likewise.
18450         * sunrpc/clnt_raw.c: Likewise.
18451         * sunrpc/clnt_simp.c: Likewise.
18452         * sunrpc/clnt_tcp.c: Likewise.
18453         * sunrpc/clnt_udp.c: Likewise.
18454         * sunrpc/clnt_unix.c: Likewise.
18455         * sunrpc/des_crypt.c: Likewise.
18456         * sunrpc/des_soft.c: Likewise.
18457         * sunrpc/get_myaddr.c: Likewise.
18458         * sunrpc/key_call.c: Likewise.
18459         * sunrpc/key_prot.c: Likewise.
18460         * sunrpc/netname.c: Likewise.
18461         * sunrpc/pm_getmaps.c: Likewise.
18462         * sunrpc/pm_getport.c: Likewise.
18463         * sunrpc/pmap_clnt.c: Likewise.
18464         * sunrpc/pmap_prot.c: Likewise.
18465         * sunrpc/pmap_prot2.c: Likewise.
18466         * sunrpc/pmap_rmt.c: Likewise.
18467         * sunrpc/publickey.c: Likewise.
18468         * sunrpc/rpc_cmsg.c: Likewise.
18469         * sunrpc/rpc_common.c: Likewise.
18470         * sunrpc/rpc_dtable.c: Likewise.
18471         * sunrpc/rpc_prot.c: Likewise.
18472         * sunrpc/rpc_thread.c: Likewise.
18473         * sunrpc/rtime.c: Likewise.
18474         * sunrpc/svc.c: Likewise.
18475         * sunrpc/svc_auth.c: Likewise.
18476         * sunrpc/svc_authux.c: Likewise.
18477         * sunrpc/svc_raw.c: Likewise.
18478         * sunrpc/svc_run.c: Likewise.
18479         * sunrpc/svc_simple.c: Likewise.
18480         * sunrpc/svc_tcp.c: Likewise.
18481         * sunrpc/svc_udp.c: Likewise.
18482         * sunrpc/svc_unix.c: Likewise.
18483         * sunrpc/svcauth_des.c: Likewise.
18484         * sunrpc/xcrypt.c: Likewise.
18485         * sunrpc/xdr.c: Likewise.
18486         * sunrpc/xdr_array.c: Likewise.
18487         * sunrpc/xdr_float.c: Likewise.
18488         * sunrpc/xdr_intXX_t.c: Likewise.
18489         * sunrpc/xdr_mem.c: Likewise.
18490         * sunrpc/xdr_rec.c: Likewise.
18491         * sunrpc/xdr_ref.c: Likewise.
18492         * sunrpc/xdr_sizeof.c: Likewise.
18493         * sunrpc/xdr_stdio.c: Likewise.
18494
18495 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
18496
18497         [BZ #12650]
18498         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
18499         * sysdeps/ia64/dl-tls.h: Likewise.
18500         * sysdeps/powerpc/dl-tls.h: Likewise.
18501         * sysdeps/s390/dl-tls.h: Likewise.
18502         * sysdeps/sh/dl-tls.h: Likewise.
18503         * sysdeps/sparc/dl-tls.h: Likewise.
18504         * sysdeps/x86_64/dl-tls.h: Likewise.
18505         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
18506
18507 2011-03-14  Andreas Schwab  <schwab@redhat.com>
18508
18509         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
18510         rpath element also skip the following colon.
18511         (expand_dynamic_string_token): Add is_path parameter and pass
18512         down to DL_DST_REQUIRED and _dl_dst_substitute.
18513         (decompose_rpath): Call expand_dynamic_string_token with
18514         non-zero is_path.  Ignore empty rpaths.
18515         (_dl_map_object_from_fd): Call expand_dynamic_string_token
18516         with zero is_path.
18517
18518 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
18519
18520         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
18521         Make cancelable.
18522
18523 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
18524
18525         [BZ #12655]
18526         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
18527         Patch by Filipe David Manana <fdmanana@apache.org>.
18528
18529 2011-04-07  Andreas Schwab  <schwab@redhat.com>
18530
18531         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
18532         Maintain aligned stack.
18533         (CHECK_RSP): Remove unused macro.
18534
18535 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
18536
18537         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
18538         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
18539
18540 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
18541
18542         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
18543
18544         * include/features.h: Mention __USE_XOPEN2K8 in comment.
18545
18546 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
18547
18548         [BZ #12518]
18549         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
18550         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
18551         * sysdeps/x86_64/memmove.c: New file.
18552         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
18553         (memcpy): Renamed to ...
18554         (__new_memcpy): This.
18555         (memcpy): Provide GLIBC_2_14 memcpy.
18556         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
18557         (memcpy): Provide GLIBC_2_2_5 memcpy.
18558
18559 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
18560
18561         [BZ #12631]
18562         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
18563
18564 2011-03-30  Andreas Schwab  <schwab@redhat.com>
18565
18566         * misc/syncfs.c: New file.
18567         * misc/Makefile (routines): Add syncfs.
18568         * posix/unistd.h: Declare syncfs.
18569         * sysdeps/unix/syscalls.list: Add syncfs.
18570
18571 2011-04-01  Andreas Schwab  <schwab@redhat.com>
18572
18573         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
18574         open_by_handle_at.
18575         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
18576         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
18577         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
18578         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
18579         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
18580         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
18581         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
18582
18583 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
18584
18585         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
18586         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
18587         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
18588         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
18589         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
18590         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
18591         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
18592
18593         * io/Makefile: Compile fallocate.c, fallocate64.c, and
18594         sync_file_range.c with -fexceptions.
18595         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
18596         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
18597         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
18598         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
18599         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
18600         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
18601         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
18602         sync_file_range as cancellation point
18603         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
18604         now a wrapper around __call_sync_file_range with cancellation handling.
18605         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
18606         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
18607         function name to __call_sync_file_range.
18608         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
18609         Add call_sync_file_range.
18610
18611 2011-04-01  Andreas Schwab  <schwab@redhat.com>
18612
18613         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
18614         bits/timex.h.
18615
18616 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
18617
18618         * iconv/iconv.h: Fix typo in comment.
18619         * io/fcntl.h: Likewise.
18620         * libio/stdio.h: Likewise.
18621         * posix/spawn.h: Likewise.
18622         * posix/unistd.h: Likewise.
18623         * stdlib/stdlib.h: Likewise.
18624         * time/time.h: Likewise.
18625         * wcsmbs/wchar.h: Likewise.
18626
18627         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
18628         open_by_handle): Add.
18629         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
18630         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
18631         Augment a few comments.
18632         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
18633         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
18634         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
18635         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
18636         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
18637         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
18638         open_by_handle.
18639
18640         * io/fcntl.h (AT_EMPTY_PATH): Define.
18641
18642 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
18643
18644         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
18645         * sysdeps/unix/sysv/linux/bits/time.h: New file.
18646         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
18647         to...
18648         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
18649         * Versions.def: Add GLIBC_2.14.
18650         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
18651         Export.
18652
18653 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
18654
18655         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
18656         round counter.
18657         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
18658
18659 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
18660
18661         [BZ #12597]
18662         * string/test-strncmp.c (do_page_test): New function.
18663         (check2): Likewise.
18664         (test_main): Call check2.
18665         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
18666
18667 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
18668
18669         [BZ #12587]
18670         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
18671         Handle cache information in CPU leaf 4.
18672         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
18673
18674 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
18675
18676         [BZ #12583]
18677         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
18678         character representation.
18679         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
18680
18681 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
18682
18683         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
18684         END(__isnan) to END(__isnanf) to match function entry point/label
18685         EALIGN(__isnanf,...).
18686
18687 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
18688
18689         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
18690
18691 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
18692
18693         [BZ #12510]
18694         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
18695         copy from the symbol referenced in the relocation to initialize the
18696         used variable.
18697         Patch by Piotr Bury <pbury@goahead.com>.
18698         * elf/Makefile: Add rules to build and tst-unique3.
18699         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
18700         * elf/tst-unique3.cc: New file.
18701         * elf/tst-unique3.h: New file.
18702         * elf/tst-unique3lib.cc: New file.
18703         * elf/tst-unique3lib2.cc: New file.
18704
18705         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
18706
18707 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
18708
18709         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
18710         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
18711         to _start.
18712
18713 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
18714
18715         * elf/dl-load.c (_dl_map_object): If we are looking for the first
18716         to-be-loaded object along a path to loader is ld.so.
18717
18718 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
18719             Ulrich Drepper  <drepper@gmail.com>
18720
18721         * sysdeps/x86_64/memset.S: After aligning destination, code
18722         branches to different locations depending on the value of
18723         misalignment, when multiarch is enabled. Fix this.
18724
18725 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
18726
18727         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
18728         Set _x86_64_preferred_memory_instruction for AMD processsors.
18729         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18730         Set bit_Prefer_SSE_for_memop for AMD processors.
18731
18732 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
18733
18734         * libio/fmemopen.c (fmemopen): Optimize a bit.
18735
18736 2011-03-03  Andreas Schwab  <schwab@redhat.com>
18737
18738         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
18739
18740 2011-03-03  Roland McGrath  <roland@redhat.com>
18741
18742         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
18743
18744 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
18745
18746         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
18747         __bzero_ultra1 instead of __memset_ultra1.
18748
18749 2011-02-23  Andreas Schwab  <schwab@redhat.com>
18750             Ulrich Drepper  <drepper@gmail.com>
18751
18752         [BZ #12509]
18753         * include/link.h (struct link_map): Add l_orig_initfini.
18754         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
18755         returning unsuccessfully.
18756         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
18757         close of a file loaded at startup, restore the original l_initfini
18758         list.
18759         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
18760         list, store the pointer.
18761         * elf/Makefile ($(objpfx)noload-mem): New rule.
18762         (noload-ENV): Define.
18763         (tests): Add $(objpfx)noload-mem.
18764         * elf/noload.c: Include <memcheck.h>.
18765         (main): Call mtrace.  Close all opened handles.
18766
18767 2011-02-17  Andreas Schwab  <schwab@redhat.com>
18768
18769         [BZ #12454]
18770         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
18771         dependencies are missing.
18772
18773 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18774
18775         Fix __if_freereq crash: Unlike the generic version which uses free,
18776         Hurd needs munmap.
18777         * sysdeps/mach/hurd/ifreq.h: New file.
18778
18779 2011-01-27  Petr Baudis  <pasky@suse.cz>
18780             Ulrich Drepper  <drepper@gmail.com>
18781
18782         [BZ 12445]#
18783         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
18784         to extend_alloca().
18785         * stdio-common/bug23.c: New file.
18786         * stdio-common/Makefile (tests): Add bug23.
18787
18788 2010-09-28  Andreas Schwab  <schwab@redhat.com>
18789             Ulrich Drepper  <drepper@gmail.com>
18790
18791         [BZ #12489]
18792         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
18793         before performing relro protection.  At old place add assertion
18794         to make sure nothing changed.
18795
18796 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
18797             Glauber de Oliveira Costa  <glommer@gmail.com>
18798
18799         * elf/elf.h: Add new ARM TLS relocs.
18800
18801 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
18802
18803         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
18804         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
18805         cast from r3.
18806         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
18807         'tests' variable.
18808         * sysdeps/wordsize-64/tst-writev.c: New file.
18809
18810 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
18811
18812         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
18813         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
18814         insns in _dl_start to prevent a TOC reference before relocs are
18815         resolved.
18816
18817 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
18818
18819         [BZ #12469]
18820         * Makeconfig: Remove RANLIB definition.
18821         * Makerules: Don't use RANLIB.
18822         * aclocal.m4: Remove ranlib test.
18823         * configure.in: No need to check for ranlib.
18824         * elf/rtld-Rules: Don't use RANLIB.
18825
18826 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18827
18828         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
18829         protection macro.
18830         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
18831         inclusion protection macro.
18832
18833         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
18834         SIGRTMIN and SIGRTMAX and print information in that case only when
18835         SIGRTMIN is defined.
18836
18837 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
18838
18839         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
18840         arginfo fn returning -1.
18841
18842         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
18843         and thousands string is zero terminated.
18844
18845 2011-02-03  Andreas Schwab  <schwab@redhat.com>
18846
18847         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
18848         sysdeps/unix/sysv/linux/bits/socket.h.
18849
18850 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18851
18852         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
18853         (__CPU_COUNT): Remove old macros.
18854         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
18855         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
18856         (__CPU_ALLOC, __CPU_FREE): Add macros.
18857         (__sched_cpualloc, __sched_cpufree): Add declarations.
18858
18859 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
18860
18861         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
18862         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
18863         * nscd/aicache.c (addhstaiX): Return timeout of added value.
18864         (readdhstai): Return value of addhstaiX call.
18865         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
18866         (addgrbyX): Return value returned by cache_addgr.
18867         (readdgrbyname): Return value returned by addgrbyX.
18868         (readdgrbygid): Likewise.
18869         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
18870         (addpwbyX): Return value returned by cache_addpw.
18871         (readdpwbyname): Return value returned by addhstbyX.
18872         (readdpwbyuid): Likewise.
18873         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
18874         (addservbyX): Return value returned by cache_addserv.
18875         (readdservbyname): Return value returned by addservbyX:
18876         (readdservbyport): Likewise.
18877         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
18878         (addhstbyX): Return value returned by cache_addhst.
18879         (readdhstbyname): Return value returned by addhstbyX.
18880         (readdhstbyaddr): Likewise.
18881         (readdhstbynamev6): Likewise.
18882         (readdhstbyaddrv6): Likewise.
18883         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
18884         (readdinitgroups): Return value returned by addinitgroupsX.
18885         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
18886         (prune_cache): Keep track of timeout value of re-added entries.
18887         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
18888         * nscd/nscd.h: Adjust prototypes of readd* functions.
18889
18890 2011-02-04  Roland McGrath  <roland@redhat.com>
18891
18892         * nis/nis_server.c (nis_servstate): Use the right name for 0.
18893         (nis_stats): Likewise.
18894         * nis/nis_modify.c (nis_modify): Likewise.
18895         * nis/nis_remove.c (nis_remove): Likewise.
18896         * nis/nis_add.c (nis_add): Likewise.
18897
18898         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
18899
18900         * posix/fnmatch_loop.c: Add some consts.
18901
18902         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
18903
18904 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
18905
18906         [BZ #12460]
18907         * config.make.in (config-cflags-novzeroupper): Define.
18908         * configure.in: Substitute libc_cv_cc_novzeroupper.
18909         * elf/Makefile (AVX-CFLAGS): Define.
18910         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
18911         (CFLAGS-tst-auditmod4a.c): Likewise.
18912         (CFLAGS-tst-auditmod4b.c): Likewise.
18913         (CFLAGS-tst-auditmod6b.c): Likewise.
18914         (CFLAGS-tst-auditmod6c.c): Likewise.
18915         (CFLAGS-tst-auditmod7b.c): Likewise.
18916         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
18917
18918 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
18919
18920         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
18921         function to the callback.
18922         Patch partly by Jiri Olsa <jolsa@redhat.com>.
18923
18924 2011-02-02  Andreas Schwab  <schwab@redhat.com>
18925
18926         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
18927         of errno.
18928
18929 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
18930
18931         [BZ #11724]
18932         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
18933         of constructors.
18934         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
18935         of destructors.
18936         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
18937
18938         [BZ #11724]
18939         * elf/Makefile: Add rules to build and run new test.
18940         * elf/tst-initorder.c: New file.
18941         * elf/tst-initorder.exp: New file.
18942         * elf/tst-initordera1.c: New file.
18943         * elf/tst-initordera2.c: New file.
18944         * elf/tst-initordera3.c: New file.
18945         * elf/tst-initordera4.c: New file.
18946         * elf/tst-initorderb1.c: New file.
18947         * elf/tst-initorderb2.c: New file.
18948         * elf/tst-order-a1.c: New file.
18949         * elf/tst-order-a2.c: New file.
18950         * elf/tst-order-a3.c: New file.
18951         * elf/tst-order-a4.c: New file.
18952         * elf/tst-order-b1.c: New file.
18953         * elf/tst-order-b2.c: New file.
18954         * elf/tst-order-main.c: New file.
18955         New test case by George Gensure <werkt0@gmail.com>.
18956
18957 2010-10-01  Andreas Schwab  <schwab@redhat.com>
18958
18959         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
18960         decoding ACE if AI_CANONIDN.
18961
18962 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
18963
18964         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
18965
18966 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
18967
18968         * version.h (RELEASE): Bump for 2.13 release.
18969         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
18970
18971         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
18972
18973         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
18974         MADV_NOHUGEPAGE.
18975         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
18976         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
18977         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
18978         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
18979         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
18980         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
18981
18982         * posix/getconf.c: Update copyright year.
18983         * catgets/gencat.c: Likewise.
18984         * csu/version.c: Likewise.
18985         * debug/catchsegv.sh: Likewise.
18986         * debug/xtrace.sh: Likewise.
18987         * elf/ldconfig.c: Likewise.
18988         * elf/ldd.bash.in: Likewise.
18989         * elf/sprof.c (print_version): Likewise.
18990         * iconv/iconv_prog.c: Likewise.
18991         * iconv/iconvconfig.c: Likewise.
18992         * locale/programs/locale.c: Likewise.
18993         * locale/programs/localedef.c: Likewise.
18994         * malloc/memusage.sh: Likewise.
18995         * malloc/mtrace.pl: Likewise.
18996         * nscd/nscd.c (print_version): Likewise.
18997         * nss/getent.c: Likewise.
18998
18999         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
19000         PF_CAIF, and PF_ALG.
19001         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
19002
19003 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
19004
19005         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
19006         (modules-names): Use them.
19007         (ifunc-test-modules, ifunc-pie-tests): Define.
19008         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
19009         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
19010         (test-extras): Likewise.
19011         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
19012         $(compile-command.c).
19013         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
19014         (all-built-dso): Define.
19015         (check-textrel.out, check-execstack.out): Depend on it.
19016
19017         * configure.in: Don't override --enable-multi-arch.
19018
19019 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
19020
19021         [BZ #6812]
19022         * nscd/hstcache.c (tryagain): Define.
19023         (cache_addhst): Return tryagain not notfound for temporary errors.
19024         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
19025         failed.
19026
19027 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
19028
19029         [BZ #10563]
19030         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
19031         to make the syscall.
19032         * sysdeps/unix/sysv/linux/setgroups.c: New file.
19033
19034         [BZ #12378]
19035         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
19036         and fall back to matching as normal character if the string ends before
19037         the matching ']' is found.  This is what POSIX requires.
19038         * posix/testfnm.c: Adjust test result.
19039         * posix/globtest.sh: Adjust test result.  Add new test.
19040         * posix/tst-fnmatch.input: Likewise.
19041         * posix/tst-fnmatch2.c: Add new test.
19042
19043 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
19044
19045         * elf/Makefile (check-execstack): Revert last change.  Depend on
19046         check-execstack.h.
19047         (check-execstack.h): New target.
19048         (generated): Add check-execstack.h.
19049         * elf/check-execstack.c: Include "check-execstack.h".
19050         (main): Revert last change.
19051         (handle_file): Return zero if GNU_STACK is absent and
19052         DEFAULT_STACK_PERMS doesn't include PF_X.
19053
19054 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
19055
19056         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
19057         in child fails because the descriptor is already closed.
19058         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
19059         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
19060         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
19061
19062         [BZ #12397]
19063         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
19064         syscall.
19065
19066         [BZ #10484]
19067         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
19068         temporary buffer used to handle multi lookups locally.
19069         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
19070
19071 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
19072
19073         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
19074         loader is ld.so.
19075
19076 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
19077
19078         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
19079         alignment for SSE2.
19080
19081 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
19082
19083         [BZ #12394]
19084         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
19085         characters.  When rounding increased number of integer digits recompute
19086         number of groups.
19087         * stdio-common/tst-grouping.c: New file.
19088         * stdio-common/Makefile: Add rules to build and run tst-grouping.
19089
19090 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
19091
19092         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
19093         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
19094
19095         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
19096         void.
19097         * bits/select.h: Likewise.
19098
19099 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
19100
19101         * po/ja.po: Update from translation team.
19102
19103 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
19104
19105         [BZ #11155]
19106         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
19107         implementation just like for lxstat, fxstatat, et al.
19108
19109 2010-12-27  Jim Meyering  <meyering@redhat.com>
19110
19111         [BZ #12348]
19112         * posix/regexec.c (build_trtable): Return failure indication upon
19113         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
19114
19115 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
19116
19117         [BZ #12201]
19118         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
19119         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
19120         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
19121         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
19122
19123         [BZ #12207]
19124         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
19125
19126         [BZ #12204]
19127         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
19128         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
19129
19130 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
19131
19132         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
19133         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
19134         script has SORT_BY_INIT_PRIORITY.
19135         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
19136         NO_CTORS_DTORS_SECTIONS is defined.
19137         * elf/soinit.c: Likewise.
19138         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
19139         NO_CTORS_DTORS_SECTIONS is defined.
19140         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
19141         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
19142         * sysdeps/sh/init-first.c: Likewise.
19143         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
19144
19145 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
19146
19147         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
19148         always use the slow path.
19149
19150 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
19151
19152         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
19153         similar rule which adds the sysdep directories to the header search in
19154         order to pick up the correct platform stackinfo.h.
19155         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
19156         perform test if it is, otherwise return successfully without testing.
19157         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
19158         DEFAULT_STACK_PERMS define in stackinfo.h.
19159         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
19160         defined in stackinfo.h.
19161         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
19162         DEFAULT_STACK_PERMS defined in stackinfo.h.
19163         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
19164         * sysdeps/ia64/stackinfo.h: Likewise.
19165         * sysdeps/s390/stackinfo.h: Likewise.
19166         * sysdeps/sh/stackinfo.h: Likewise.
19167         * sysdeps/sparc/stackinfo.h: Likewise.
19168         * sysdeps/x86_64/stackinfo.h: Likewise.
19169         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
19170         PF_X for powerpc64.  Retain PF_X for powerpc32.
19171
19172 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
19173
19174         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
19175         accurately.
19176         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
19177         GETDENTS_64BIT_ALIGNED.
19178
19179 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
19180
19181         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
19182
19183 2010-12-10  Andreas Schwab  <schwab@redhat.com>
19184
19185         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
19186         _GNU_SOURCE.
19187
19188         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
19189         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
19190         Remove __restrict.
19191         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
19192         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
19193
19194 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
19195
19196         [BZ #11655]
19197         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
19198         are initialized.
19199
19200 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
19201
19202         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
19203
19204 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
19205
19206         * po/it.po: Update from translation team.
19207
19208 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
19209
19210         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
19211         unused codes.
19212
19213 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
19214
19215         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
19216
19217 2010-11-24  Andreas Schwab  <schwab@redhat.com>
19218
19219         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
19220         specially.
19221         (gaih_getanswer_slice): Likewise.
19222
19223 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
19224
19225         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
19226
19227 2010-05-31  Petr Baudis  <pasky@suse.cz>
19228
19229         [BZ #11149]
19230         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
19231         silently even in the chroot mode.
19232
19233 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
19234
19235         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
19236         last patch a bit.  Pretty printing
19237
19238 2010-05-31  Petr Baudis <pasky@suse.cz>
19239
19240         [BZ #10085]
19241         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
19242         initialization of skip_initgroups_dyn.
19243
19244 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
19245
19246         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
19247         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
19248
19249 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
19250
19251         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
19252
19253 2010-11-11  Andreas Schwab  <schwab@redhat.com>
19254
19255         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
19256         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
19257         (tst-fnmatch-ENV): Set MALLOC_TRACE.
19258         ($(objpfx)tst-fnmatch-mem): New rule.
19259         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
19260         * posix/tst-fnmatch.c (main): Call mtrace.
19261
19262 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
19263
19264         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19265         Support Intel processor model 6 and model 0x2c.
19266
19267 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
19268
19269         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
19270           signed comparison.
19271
19272 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
19273
19274         [BZ #12205]
19275         * string/test-strncasecmp.c (check_result): New function.
19276         (do_one_test): Use it.
19277         (check1): New function.
19278         (test_main): Use it.
19279         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
19280         Support strcasecmp and strncasecmp.
19281
19282 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
19283
19284         [BZ #12194]
19285         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
19286         * sysdeps/x86_64/bits/byteswap.h: Likewise.
19287
19288 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
19289
19290         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
19291         IFUNC support.
19292         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
19293         memset-x86-64.
19294         * sysdeps/x86_64/multiarch/bzero.S: New file.
19295         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
19296         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
19297         * sysdeps/x86_64/multiarch/memset.S: New file.
19298         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
19299         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19300         Set bit_Prefer_SSE_for_memop for Intel processors.
19301         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
19302         Define.
19303         (index_Prefer_SSE_for_memop): Define.
19304         (HAS_PREFER_SSE_FOR_MEMOP): Define.
19305
19306 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
19307
19308         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
19309         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
19310
19311 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
19312
19313         [BZ #12191]
19314         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
19315         (__x86_64_raw_data_cache_size_half): Likewise.
19316         (__x86_64_raw_shared_cache_size): Likewise.
19317         (__x86_64_raw_shared_cache_size_half): Likewise.
19318
19319         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
19320         (__x86_64_raw_data_cache_size_half): Likewise.
19321         (__x86_64_raw_shared_cache_size): Likewise.
19322         (__x86_64_raw_shared_cache_size_half): Likewise.
19323         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
19324         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
19325         and __x86_64_raw_shared_cache_size_half.  Round
19326         __x86_64_data_cache_size_half, __x86_64_data_cache_size
19327         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
19328         to multiple of 256 bytes.
19329
19330 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
19331
19332         [BZ #12167]
19333         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
19334         of inacessible symlinks.  Verify result of symlink before returning it.
19335         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
19336         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
19337
19338 2010-10-28  Erich Ritz  <erichritz@gmail.com>
19339
19340         * math/math.h (isinf): Fix typo in comment.
19341
19342 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
19343
19344         * po/da.po: Update from translation team.
19345
19346 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
19347
19348         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
19349         is added to the list.
19350
19351 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19352             Ulrich Drepper  <drepper@gmail.com>
19353
19354         * elf/dl-object.c (_dl_new_object): Don't append the new object to
19355         the global list here.  Move code to...
19356         (_dl_add_to_namespace_list): ...here.  New function.
19357         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
19358         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
19359         * elf/dl-load.c (lose): Don't remove the element from the list.
19360         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
19361         (_dl_map_object): Likewise.
19362
19363 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
19364
19365         [BZ #12159]
19366         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
19367         into all bytes of SSE register.
19368         Patch by Richard Li <richardpku@gmail.com>.
19369
19370 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
19371
19372         [BZ #12140]
19373         * malloc/malloc.c (_int_free): Fill correct number of bytes when
19374         perturbing.
19375
19376 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
19377
19378         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
19379         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
19380         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
19381         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
19382         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
19383         submachine.
19384         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
19385
19386 2010-10-22  Andreas Schwab  <schwab@redhat.com>
19387
19388         * include/dlfcn.h (__RTLD_SECURE): Define.
19389         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
19390         mode & __RTLD_SECURE instead.
19391         (open_path): Rename preloaded parameter to secure.
19392         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
19393         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
19394         * elf/dl-deps.c (openaux): Likewise.
19395         * elf/rtld.c (struct map_args): Remove is_preloaded.
19396         (map_doit): Don't use it.
19397         (dl_main): Likewise.
19398         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
19399         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
19400
19401 2010-09-09  Andreas Schwab  <schwab@redhat.com>
19402
19403         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
19404         (sysd-rules-targets): Remove duplicates.
19405         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
19406         rtld-%.$o dependency.
19407
19408 2010-10-18  Andreas Schwab  <schwab@redhat.com>
19409
19410         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
19411         _dl_map_object do it.
19412
19413 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
19414
19415         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
19416         fast fma builtins, define the macros in the C99 standard.
19417         (FP_FAST_FMAF): Likewise.
19418         (FP_FAST_FMAL): Likewise.
19419         * sysdeps/x86_64/bits/mathdef.h: Likewise.
19420
19421         * bits/mathdef.h: Update copyright year.
19422         * sysdeps/powerpc/bits/mathdef.h: Likewise.
19423
19424 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
19425
19426         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
19427         builtins, define the macros in the C99 standard.
19428         (FP_FAST_FMAF): Likewise.
19429         (FP_FAST_FMAL): Likewise.
19430         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
19431         multiply/add.
19432         (FP_FAST_FMAF): Likewise.
19433
19434 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
19435
19436         [BZ #3268]
19437         * math/libm-test.inc (fma_test): Some new testcases.
19438         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
19439         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
19440         y and infinite z.  Do multiplication by C already in long double.
19441         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
19442         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
19443         y and infinite z.  Do bitwise or of inexact bit into u.d.
19444         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
19445         * sysdeps/i386/fpu/s_fmaf.S: Removed.
19446         * sysdeps/i386/fpu/s_fma.S: Removed.
19447         * sysdeps/i386/fpu/s_fmal.S: Removed.
19448
19449 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
19450
19451         [BZ #3268]
19452         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
19453         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
19454         computation is not scheduled after fetestexcept.  Fix value
19455         of minimum denormal long double.
19456
19457 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
19458
19459         [BZ #3268]
19460         * math/libm-test.inc (fma_test): Add some more tests.
19461         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
19462         correctly.
19463
19464 2010-10-15  Andreas Schwab  <schwab@redhat.com>
19465
19466         * scripts/data/localplt-s390-linux-gnu.data: New file.
19467         * scripts/data/localplt-s390x-linux-gnu.data: New file.
19468
19469 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
19470
19471         [BZ #3268]
19472         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
19473         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
19474         instead of dbl-64.
19475         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
19476         inlines.
19477         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
19478         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
19479         if one of x and y is very large and the other is subnormal.
19480         * sysdeps/s390/fpu/s_fmaf.c: New file.
19481         * sysdeps/s390/fpu/s_fma.c: New file.
19482         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
19483         * sysdeps/powerpc/fpu/s_fma.S: New file.
19484         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
19485         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
19486         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
19487
19488 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
19489
19490         [BZ #3268]
19491         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
19492         fma tests.
19493         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
19494         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
19495         * sysdeps/i386/i686/multiarch/s_fma.c: Include
19496         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
19497         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
19498         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
19499         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
19500
19501 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
19502
19503         [BZ #12078]
19504         * posix/regcomp.c (parse_branch): One more memory leak plugged.
19505         * posix/bug-regex31.input: Add test case.
19506
19507 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
19508
19509         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
19510         * posix/bug-regex31.input: New file.
19511
19512         [BZ #12078]
19513         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
19514         (parse_sub_exp): Fix last change, use postorder.
19515
19516         * posix/bug-regex31.c: New file.
19517         * posix/Makefile: Add rules to build and run bug-regex31.
19518
19519         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
19520
19521         [BZ #12078]
19522         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
19523
19524         [BZ #12108]
19525         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
19526         to have entries in sys_siglist.
19527
19528         [BZ #12093]
19529         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
19530         be NULL.
19531
19532 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
19533
19534         [BZ #3268]
19535         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
19536         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
19537         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
19538         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
19539         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
19540         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
19541         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
19542         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
19543         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
19544         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
19545         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
19546         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
19547         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
19548         * math/ftestexcept.c (fetestexcept): Likewise.
19549         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
19550         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
19551         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
19552         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
19553         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
19554         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
19555         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
19556
19557 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
19558
19559         [BZ #12107]
19560         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
19561         newline.
19562
19563 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
19564
19565         * string/bug-strstr1.c: New file.
19566         * string/Makefile: Add rules to build and run bug-strstr1.
19567
19568 2010-10-05  Eric Blake  <eblake@redhat.com>
19569
19570         [BZ #12092]
19571         * string/str-two-way.h (two_way_long_needle): Always clear memory
19572         when skipping input due to the shift table.
19573
19574 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
19575
19576         [BZ #12005]
19577         * malloc/mcheck.c: Handle large requests.
19578
19579         [BZ #12077]
19580         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
19581         for strncmp and strncasecmp.
19582         * string/stratcliff.c: Add tests for strcmp and strncmp.
19583         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
19584
19585 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
19586
19587         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
19588         __set_fpscr.
19589
19590 2010-09-30  Andreas Jaeger  <aj@suse.de>
19591
19592         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
19593         (CGROUP_SUPER_MAGIC): Define.
19594         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
19595         Handle btrfs and cgroup file systems.
19596         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
19597         Likewise.
19598
19599 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
19600
19601         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
19602         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
19603
19604 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19605
19606         [BZ #12067]
19607         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
19608         trying to locate the ELF header.
19609
19610 2010-09-27  Andreas Schwab  <schwab@redhat.com>
19611
19612         [BZ #11611]
19613         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
19614         Mask out sign-bit copies when constructing f_fsid.
19615
19616 2010-09-24  Petr Baudis <pasky@suse.cz>
19617
19618         * debug/stack_chk_fail_local.c: Add missing licence exception.
19619         * debug/warning-nop.c: Likewise.
19620
19621 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
19622
19623         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
19624         implementing getdents64 using getdents syscall, set d_type if
19625         __ASSUME_GETDENTS32_D_TYPE.
19626
19627 2010-09-16  Andreas Schwab  <schwab@redhat.com>
19628
19629         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
19630         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
19631
19632 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
19633
19634         [BZ #12037]
19635         * posix/unistd.h: Undo change of feature selection for ftruncate from
19636         2010-01-11.
19637
19638 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
19639
19640         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
19641         detection.
19642
19643 2010-09-20  Andreas Schwab  <schwab@redhat.com>
19644
19645         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
19646         fanotify_mark.
19647         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
19648
19649 2010-09-14  Andreas Schwab  <schwab@redhat.com>
19650
19651         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
19652         variables after CHECK_SP call.
19653         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
19654
19655 2010-09-13  Andreas Schwab  <schwab@redhat.com>
19656             Ulrich Drepper  <drepper@redhat.com>
19657
19658         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
19659         re-relocationg ld.so.
19660         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
19661         _dl_init_paths call.
19662         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
19663         here anymore.
19664
19665 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
19666
19667         * resolv/res_init.c (__res_vinit): Count the default server we added.
19668
19669 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
19670             Ulrich Drepper  <drepper@redhat.com>
19671
19672         [BZ #11968]
19673         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
19674         (____longjmp_chk): Use %ebx for saving value across system call.
19675         Add unwind info.
19676
19677 2010-09-06  Andreas Schwab  <schwab@redhat.com>
19678
19679         * manual/Makefile: Don't mix pattern rules with normal rules.
19680
19681 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
19682
19683         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
19684         operation.
19685         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
19686         * libio/iofopncook.c (_IO_cookie_init): Likewise.
19687         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
19688         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
19689         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
19690         Likewise.
19691
19692 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
19693
19694         [BZ #11979]
19695         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
19696         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
19697
19698 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
19699
19700         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
19701         * sysdeps/x86_64/addmul_1.S: Likewise.
19702         * sysdeps/x86_64/lshift.S: Likewise.
19703         * sysdeps/x86_64/mul_1.S: Likewise.
19704         * sysdeps/x86_64/rshift.S: Likewise.
19705         * sysdeps/x86_64/sub_n.S: Likewise.
19706         * sysdeps/x86_64/submul_1.S: Likewise.
19707
19708 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19709
19710         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
19711         Define __sched_param instead of SCHED_* and sched_param when
19712         <bits/sched.h> is included with __need_schedparam defined.
19713         * bits/sched.h [__need_schedparam]
19714         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
19715         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
19716         (__defined_schedparam): Define to 1.
19717         (__sched_param): New structure, identical to sched_param.
19718         (__need_schedparam): Undefine.
19719
19720 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
19721
19722         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
19723         (epoll_create1): Declare.
19724
19725         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
19726
19727 2010-08-31  Andreas Schwab  <schwab@redhat.com>
19728
19729         [BZ #7066]
19730         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
19731         shifting retval into place.
19732
19733 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
19734
19735         * nis/rpcsvc/nis.h: Update copyright notice.
19736         * nis/rpcsvc/nis.x: Likewise.
19737         * nis/rpcsvc/nis_callback.h: Likewise.
19738         * nis/rpcsvc/nis_callback.x: Likewise.
19739         * nis/rpcsvc/nis_object.x: Likewise.
19740         * nis/rpcsvc/nis_tags.h: Likewise.
19741         * nis/rpcsvc/yp.h: Likewise.
19742         * nis/rpcsvc/yp.x: Likewise.
19743         * nis/rpcsvc/ypupd.h: Likewise.
19744         * nis/yp_xdr.c: Likewise.
19745         * nis/ypupdate_xdr.c: Likewise.
19746
19747         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
19748         mainly the body of pmap_getport.  Add parameters to specify timeouts.
19749         (pmap_getport): Use __libc_rpc_getport.
19750         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
19751         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
19752         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
19753
19754 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
19755
19756         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
19757         fanotify_mark.
19758
19759 2010-08-27  Roland McGrath  <roland@redhat.com>
19760
19761         * sysdeps/i386/i686/multiarch/Makefile
19762         (CFLAGS-varshift.c): New variable.
19763
19764 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
19765
19766         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
19767         * sysdeps/i386/i686/multiarch/varshift.c: New file.
19768
19769         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
19770
19771         * sysdeps/x86_64/strlen.S: Minimal code improvement.
19772
19773 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
19774
19775         * sysdeps/x86_64/strlen.S: Unroll the loop.
19776         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
19777         strlen-sse2 strlen-sse2-bsf.
19778         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
19779         __strlen_no_bsf if bit_Slow_BSF is set.
19780         (__strlen_sse42): Removed.
19781         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
19782         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
19783
19784 2010-08-25  Roland McGrath  <roland@redhat.com>
19785
19786         * sysdeps/x86_64/multiarch/varshift.S: File removed.
19787         * sysdeps/x86_64/multiarch/varshift.c: New file.
19788         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
19789         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
19790         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
19791         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
19792
19793 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
19794
19795         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
19796         strlen-sse2 strlen-sse2-bsf.
19797         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
19798         __strlen_sse2_bsf if bit_Slow_BSF is unset.
19799         (__strlen_sse2): Removed.
19800         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
19801         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
19802         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
19803         bit_Slow_BSF for Atom.
19804         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
19805         (index_Slow_BSF): Define.
19806         (HAS_SLOW_BSF): Define.
19807
19808 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
19809
19810         [BZ #10851]
19811         * resolv/res_init.c (__res_vinit): When no server address at all
19812         is given default to loopback.
19813
19814 2010-08-24  Roland McGrath  <roland@redhat.com>
19815
19816         * configure.in: Remove config-name.h generation.
19817         * configure: Regenerated.
19818         * config-name.in: File removed.
19819         * scripts/config-uname.sh: New file.
19820         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
19821         ($(objdir)config-name.h): New target.
19822
19823         * sunrpc/rpc_parse.h: Avoid nested comment.
19824
19825 2010-08-24  Richard Henderson  <rth@redhat.com>
19826             Ulrich Drepper  <drepper@redhat.com>
19827             H.J. Lu  <hongjiu.lu@intel.com>
19828
19829         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
19830         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
19831         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
19832         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
19833         _mm_alignr_epi8 with _mm_loadu_si128.
19834         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
19835         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
19836         (__m128i_shift_right): Removed.
19837         * sysdeps/i386/i686/multiarch/varshift.h: New file.
19838         * sysdeps/i386/i686/multiarch/varshift.S: New file.
19839         * sysdeps/x86_64/multiarch/varshift.h: New file.
19840         * sysdeps/x86_64/multiarch/varshift.S: New file.
19841
19842 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
19843
19844         * configure.in: Move assembler checks to before sysdep dir checking.
19845
19846 2010-08-20  Petr Baudis  <pasky@suse.cz>
19847
19848         * LICENSES: Sync the sunrpc license.
19849
19850 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
19851
19852         * sunrpc/auth_des.c: Update copyright notice once again.
19853         * sunrpc/auth_none.c: Likewise.
19854         * sunrpc/auth_unix.c: Likewise.
19855         * sunrpc/authdes_prot.c: Likewise.
19856         * sunrpc/authuxprot.c: Likewise.
19857         * sunrpc/bindrsvprt.c: Likewise.
19858         * sunrpc/clnt_gen.c: Likewise.
19859         * sunrpc/clnt_perr.c: Likewise.
19860         * sunrpc/clnt_raw.c: Likewise.
19861         * sunrpc/clnt_simp.c: Likewise.
19862         * sunrpc/clnt_tcp.c: Likewise.
19863         * sunrpc/clnt_udp.c: Likewise.
19864         * sunrpc/clnt_unix.c: Likewise.
19865         * sunrpc/des_crypt.c: Likewise.
19866         * sunrpc/des_soft.c: Likewise.
19867         * sunrpc/get_myaddr.c: Likewise.
19868         * sunrpc/getrpcport.c: Likewise.
19869         * sunrpc/key_call.c: Likewise.
19870         * sunrpc/key_prot.c: Likewise.
19871         * sunrpc/openchild.c: Likewise.
19872         * sunrpc/pm_getmaps.c: Likewise.
19873         * sunrpc/pm_getport.c: Likewise.
19874         * sunrpc/pmap_clnt.c: Likewise.
19875         * sunrpc/pmap_prot.c: Likewise.
19876         * sunrpc/pmap_prot2.c: Likewise.
19877         * sunrpc/pmap_rmt.c: Likewise.
19878         * sunrpc/rpc/auth.h: Likewise.
19879         * sunrpc/rpc/auth_unix.h: Likewise.
19880         * sunrpc/rpc/clnt.h: Likewise.
19881         * sunrpc/rpc/des_crypt.h: Likewise.
19882         * sunrpc/rpc/key_prot.h: Likewise.
19883         * sunrpc/rpc/netdb.h: Likewise.
19884         * sunrpc/rpc/pmap_clnt.h: Likewise.
19885         * sunrpc/rpc/pmap_prot.h: Likewise.
19886         * sunrpc/rpc/pmap_rmt.h: Likewise.
19887         * sunrpc/rpc/rpc.h: Likewise.
19888         * sunrpc/rpc/rpc_des.h: Likewise.
19889         * sunrpc/rpc/rpc_msg.h: Likewise.
19890         * sunrpc/rpc/svc.h: Likewise.
19891         * sunrpc/rpc/svc_auth.h: Likewise.
19892         * sunrpc/rpc/types.h: Likewise.
19893         * sunrpc/rpc/xdr.h: Likewise.
19894         * sunrpc/rpc_clntout.c: Likewise.
19895         * sunrpc/rpc_cmsg.c: Likewise.
19896         * sunrpc/rpc_common.c: Likewise.
19897         * sunrpc/rpc_cout.c: Likewise.
19898         * sunrpc/rpc_dtable.c: Likewise.
19899         * sunrpc/rpc_hout.c: Likewise.
19900         * sunrpc/rpc_main.c: Likewise.
19901         * sunrpc/rpc_parse.c: Likewise.
19902         * sunrpc/rpc_parse.h: Likewise.
19903         * sunrpc/rpc_prot.c: Likewise.
19904         * sunrpc/rpc_sample.c: Likewise.
19905         * sunrpc/rpc_scan.c: Likewise.
19906         * sunrpc/rpc_scan.h: Likewise.
19907         * sunrpc/rpc_svcout.c: Likewise.
19908         * sunrpc/rpc_tblout.c: Likewise.
19909         * sunrpc/rpc_util.c: Likewise.
19910         * sunrpc/rpc_util.h: Likewise.
19911         * sunrpc/rpcinfo.c: Likewise.
19912         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
19913         * sunrpc/rpcsvc/key_prot.x: Likewise.
19914         * sunrpc/rpcsvc/klm_prot.x: Likewise.
19915         * sunrpc/rpcsvc/mount.x: Likewise.
19916         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
19917         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
19918         * sunrpc/rpcsvc/rex.x: Likewise.
19919         * sunrpc/rpcsvc/rstat.x: Likewise.
19920         * sunrpc/rpcsvc/rusers.x: Likewise.
19921         * sunrpc/rpcsvc/sm_inter.x: Likewise.
19922         * sunrpc/rpcsvc/spray.x: Likewise.
19923         * sunrpc/rpcsvc/yppasswd.x: Likewise.
19924         * sunrpc/rtime.c: Likewise.
19925         * sunrpc/svc.c: Likewise.
19926         * sunrpc/svc_auth.c: Likewise.
19927         * sunrpc/svc_authux.c: Likewise.
19928         * sunrpc/svc_raw.c: Likewise.
19929         * sunrpc/svc_run.c: Likewise.
19930         * sunrpc/svc_simple.c: Likewise.
19931         * sunrpc/svc_tcp.c: Likewise.
19932         * sunrpc/svc_udp.c: Likewise.
19933         * sunrpc/svc_unix.c: Likewise.
19934         * sunrpc/svcauth_des.c: Likewise.
19935         * sunrpc/xcrypt.c: Likewise.
19936         * sunrpc/xdr.c: Likewise.
19937         * sunrpc/xdr_array.c: Likewise.
19938         * sunrpc/xdr_float.c: Likewise.
19939         * sunrpc/xdr_mem.c: Likewise.
19940         * sunrpc/xdr_rec.c: Likewise.
19941         * sunrpc/xdr_ref.c: Likewise.
19942         * sunrpc/xdr_sizeof.c: Likewise.
19943         * sunrpc/xdr_stdio.c: Likewise.
19944
19945         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
19946         handling.
19947
19948 2010-08-19  Andreas Schwab  <schwab@redhat.com>
19949
19950         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
19951
19952 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
19953
19954         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
19955         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
19956         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
19957         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
19958         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
19959         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
19960         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
19961         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
19962         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
19963         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
19964         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
19965         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
19966         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
19967         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
19968
19969 2010-07-26  Anton Blanchard  <anton@samba.org>
19970
19971         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
19972         * malloc/arena.c (heap_trim): Likewise.
19973
19974 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
19975
19976         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
19977         here.  Not...
19978         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
19979         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
19980
19981 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
19982
19983         * sysdeps/i386/elf/Makefile: New file.
19984
19985 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
19986
19987         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
19988         from fanotify_init.
19989         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
19990         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
19991
19992 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
19993
19994         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
19995         of strncasecmp_l.
19996         * sysdeps/multiarch/strcmp.S: Likewise.
19997
19998 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
19999
20000         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
20001         strncase_l-nonascii.
20002         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
20003         Add strncase_l-ssse3.
20004         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
20005         * sysdeps/x86_64/strcmp.S: Likewise.
20006         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
20007         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
20008         * sysdeps/x86_64/strncase.S: New file.
20009         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
20010         * sysdeps/x86_64/strncase_l.S: New file.
20011         * string/Makefile (strop-tests): Add strncasecmp.
20012         * string/test-strncasecmp.c: New file.
20013
20014         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
20015         warning.
20016
20017         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
20018         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
20019
20020 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
20021
20022         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
20023
20024 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
20025
20026         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
20027         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
20028         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
20029
20030 2010-05-01  Alan Modra  <amodra@gmail.com>
20031
20032         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
20033         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
20034         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
20035         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
20036         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
20037         tidying.  Don't tail-call __sigjmp_save for static lib.
20038         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
20039         save location.
20040         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
20041         (CALL_MCOUNT): Add eh info, and nop after bl.
20042         (TAIL_CALL_SYSCALL_ERROR): New macro.
20043         (PSEUDO_RET): Use it.
20044         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
20045         Correct save location of integer regs and cr.
20046         (_dl_profile_resolve): Correct cr save location.  Delete nops
20047         after bl when SHARED.  Reduce cfi size a little by better
20048         placement of cfi directives.
20049         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
20050         make a stack frame.  Instead use parm save area as a temp.
20051         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
20052         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
20053         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
20054         Don't make a stack frame for parent, use parm save area.
20055         Increase child stack frame to 112 bytes.  Don't save unused reg,
20056         and adjust reg usage.  Set up cfi on error recovery and
20057         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
20058         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
20059         (__makecontext): Add dummy nop after jump to exit.
20060         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
20061         Use correct parm save area and cr save, reduce stack frame.
20062         Correct cfi for possible PSEUDO_RET frame setup.
20063         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
20064         Branch to local label emitted by PSEUDO_RET rather than
20065         __syscall_error.
20066
20067 2010-08-12  Andreas Schwab  <schwab@redhat.com>
20068
20069         [BZ #11904]
20070         * locale/programs/locale.c (print_assignment): New function.
20071         (show_locale_vars): Use it.
20072
20073 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
20074
20075         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
20076         field.
20077         (struct statfs64): Likewise.
20078         (_STATFS_F_FLAGS): Define.
20079         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
20080         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
20081         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
20082         (ST_VALID): Define locally.
20083         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
20084         __statvfs_getflags, use the provided value.
20085         * sysdeps/unix/sysv/linux/kernel-features.h: Define
20086         __ASSUME_STATFS_F_FLAGS.
20087
20088         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
20089
20090         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
20091         Add sys/fanotify.h.
20092         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
20093         fanotify_mask for GLIBC_2.13.
20094         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
20095         fanotify_init and fanotify_mark.
20096         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
20097         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
20098
20099         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
20100         Add prlimit.
20101         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
20102         prlimit64 for GLIBC_2.13.
20103         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
20104         prlimit64.
20105         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
20106         syscall.
20107         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
20108         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
20109         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
20110         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
20111         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
20112         add prlimit alias.
20113         * sysdeps/unix/sysv/linux/prlimit.c: New file.
20114
20115         [BZ #11903]
20116         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
20117         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
20118
20119         * nss/Makefile: Add rules to build and run tst-nss-test1.
20120         * shlib-versions: Add entry for libnss_test1.
20121         * nss/nss_test1.c: New file.
20122         * nss/tst-nss-test1.c: New file.
20123
20124         * nss/nsswitch.c (__nss_database_custom): Define new variable.
20125         (__nss_configure_lookup): Set appropriate entry in
20126         __nss_configure_lookup to true.
20127         * nss/nsswitch.h: Define enum with indeces of databases in
20128         databases and __nss_database_custom arrays.  Declare
20129         __nss_database_custom.
20130         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
20131         to avoid using nscd when custom rules are installed.
20132         * nss/getXXbyYY_r.c: Likewise.
20133         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
20134
20135         * nss/nss_files/files-parse.c: Whitespace fixes.
20136
20137 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
20138
20139         [BZ #11883]
20140         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
20141         * posix/fnmatch_loop.c: Likewise.
20142
20143 2010-07-17  Andi Kleen  <ak@linux.intel.com>
20144
20145         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
20146         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
20147         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
20148         * Versions.def [GLIBC_2.13]: Add.
20149
20150 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
20151
20152         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
20153         Also fail if tpwd after pwuid call is NULL.
20154
20155 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20156
20157         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
20158         when converting to ms.
20159
20160 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20161
20162         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
20163         EOPNOTSUPP errors with ENOTTY.
20164         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
20165         EOPNOTSUPP errors with ENOTTY.
20166
20167 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
20168
20169         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
20170         Add strcasecmp_l-ssse3.
20171         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
20172         strcasecmp.
20173         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
20174         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
20175         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
20176
20177 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
20178
20179         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
20180
20181         * string/Makefile (strop-tests): Add strcasecmp.
20182         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
20183         strcasecmp_l-nonascii.
20184         (gen-as-const-headers): Add locale-defines.sym.
20185         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
20186         * sysdeps/x86_64/strcasecmp.S: New file.
20187         * sysdeps/x86_64/strcasecmp_l.S: New file.
20188         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
20189         * sysdeps/x86_64/locale-defines.sym: New file.
20190         * string/test-strcasecmp.c: New file.
20191
20192         * string/test-strcasestr.c: Test both ends of the range of characters.
20193         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
20194
20195 2010-07-29  Roland McGrath  <roland@redhat.com>
20196
20197         [BZ #11856]
20198         * manual/locale.texi (Yes-or-No Questions): Fix example code.
20199
20200 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
20201
20202         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
20203         for ld.so.
20204
20205 2010-07-27  Andreas Schwab  <schwab@redhat.com>
20206
20207         * manual/memory.texi (Malloc Tunable Parameters): Document
20208         M_PERTURB.
20209
20210 2010-07-26  Roland McGrath  <roland@redhat.com>
20211
20212         [BZ #11840]
20213         * configure.in (-fgnu89-inline check): Set and substitute
20214         gnu89_inline, not libc_cv_gnu89_inline.
20215         * configure: Regenerated.
20216         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
20217
20218 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
20219
20220         * string/test-strnlen.c: New file.
20221         * string/Makefile (strop-tests): Add strnlen.
20222         * string/tester.c (test_strnlen): Add a few more test cases.
20223         * string/tst-strlen.c: Better error reporting.
20224
20225         * sysdeps/x86_64/strnlen.S: New file.
20226
20227 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
20228
20229         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
20230         lower-latency instructions.
20231
20232 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
20233
20234         * string/test-strcasestr.c: New file.
20235         * string/test-strstr.c: New file.
20236         * string/Makefile (strop-tests): Add strstr and strcasestr.
20237         * string/str-two-way.h: Don't undefine MAX.
20238         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
20239
20240 2010-07-21  Andreas Schwab  <schwab@redhat.com>
20241
20242         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
20243         strcasestr-nonascii.
20244         (CFLAGS-strcasestr-nonascii.c): Define.
20245         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
20246         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
20247         Remove unused attribute.
20248
20249 2010-07-20  Roland McGrath  <roland@redhat.com>
20250
20251         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
20252         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
20253         ld.so.cache was broken.  With it, there is no way to disable dsocaps
20254         like LD_HWCAP_MASK can disable hwcaps.
20255
20256 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
20257
20258         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
20259
20260 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
20261
20262         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
20263         call in strcasestr.
20264         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
20265         __strcasestr_sse42_nonascii.
20266         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
20267         strcasestr-nonascii.c.
20268         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
20269
20270 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
20271
20272         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
20273         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
20274         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
20275         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
20276
20277 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
20278
20279         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
20280         fcntl.
20281
20282 2010-07-06  Andreas Schwab  <schwab@redhat.com>
20283
20284         [BZ #11577]
20285         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
20286         dl_signal_cerror.
20287
20288 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
20289
20290         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
20291         _PC_PIPE_BUF using F_GETPIPE_SZ.
20292
20293 2010-07-05  Roland McGrath  <roland@redhat.com>
20294
20295         * manual/arith.texi (Rounding Functions): Fix rint description
20296         implicit in round description.
20297
20298 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
20299
20300         * elf/Makefile: Fix linking for a few tests to make recent linker
20301         happy.
20302
20303 2010-06-30  Andreas Schwab  <schwab@redhat.com>
20304
20305         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
20306         $(common-objpfx)libc_nonshared.a.
20307
20308 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
20309
20310         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
20311         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
20312         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
20313         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
20314         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
20315         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
20316         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
20317         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
20318         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
20319         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
20320         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
20321         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
20322         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
20323         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
20324         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
20325         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
20326         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
20327         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
20328         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
20329         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
20330         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
20331         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
20332         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
20333         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
20334         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
20335         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
20336         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
20337         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
20338         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
20339         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
20340         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
20341         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
20342         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
20343         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
20344         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
20345         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
20346         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
20347         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
20348         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
20349         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
20350         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
20351         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
20352         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
20353         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
20354         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
20355         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
20356         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
20357         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
20358
20359 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
20360
20361         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
20362         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
20363         * string/memmove.c (memmove): Renamed to ...
20364         (MEMMOVE): ...this.  Default to memmove.
20365         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
20366         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
20367         (END_CHK): Define.
20368         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
20369         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
20370         mempcpy-ssse3-back memmove-ssse3-back.
20371         * sysdeps/x86_64/multiarch/bcopy.S: New file .
20372         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
20373         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
20374         * sysdeps/x86_64/multiarch/memcpy.S: New file.
20375         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
20376         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
20377         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
20378         * sysdeps/x86_64/multiarch/memmove.c: New file.
20379         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
20380         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
20381         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
20382         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
20383         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
20384         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
20385         Define.
20386         (index_Fast_Copy_Backward): Define.
20387         (HAS_ARCH_FEATURE): Define.
20388         (HAS_FAST_REP_STRING): Define.
20389         (HAS_FAST_COPY_BACKWARD): Define.
20390
20391 2010-06-21  Andreas Schwab  <schwab@redhat.com>
20392
20393         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
20394         Restore proper fallback handling.
20395
20396 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
20397
20398         [BZ #11701]
20399         * posix/group_member.c (__group_member): Correct checking loop.
20400
20401         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
20402         OOM in getpwuid_r correctly.  Return error number when the caller
20403         should return, otherwise -1.
20404         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
20405         call returning > 0 value.
20406         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
20407
20408 2010-06-07  Andreas Schwab  <schwab@redhat.com>
20409
20410         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
20411         libc_nonshared.a from targets in modules-names.
20412
20413 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
20414
20415         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
20416         requires it.
20417
20418 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
20419
20420         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
20421         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
20422         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
20423         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
20424
20425 2010-06-02  Andreas Schwab  <schwab@redhat.com>
20426
20427         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
20428
20429 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
20430
20431         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
20432         and F_GETPIPE_SZ.
20433         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
20434         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
20435         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
20436         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
20437         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
20438         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
20439
20440 2010-06-14  Roland McGrath  <roland@redhat.com>
20441
20442         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
20443
20444 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
20445
20446         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
20447         __REDIRECT followed by __THROW.
20448         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
20449         * posix/getopt.h (getopt): Likewise.
20450
20451 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
20452
20453         * hurd/lookup-at.c (__file_name_lookup_at): Accept
20454         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
20455         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
20456         in AT_FLAGS.
20457         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
20458         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
20459
20460 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
20461
20462         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
20463
20464 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
20465
20466         [BZ #11640]
20467         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20468         Properly check family and model.
20469
20470 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
20471
20472         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
20473
20474 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
20475
20476         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
20477
20478 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
20479
20480         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
20481         symbol reference.
20482
20483 2010-05-19  Andreas Schwab  <schwab@redhat.com>
20484
20485         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
20486         symbol reference.
20487
20488 2010-05-21  Andreas Schwab  <schwab@redhat.com>
20489
20490         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
20491         and internal_recvmmsg.
20492         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
20493         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
20494         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
20495         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
20496
20497         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
20498         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
20499         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
20500
20501 2010-05-20  Andreas Schwab  <schwab@redhat.com>
20502
20503         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
20504
20505 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
20506
20507         POWER7 optimizations.
20508         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
20509         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
20510
20511 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
20512
20513         * version.h: Update for 2.13 development version.
20514
20515 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
20516
20517         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
20518         exceptions.  Return 0.
20519
20520 2010-05-07  Roland McGrath  <roland@redhat.com>
20521
20522         * elf/ldconfig.c (main): Add a const.
20523
20524 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
20525
20526         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
20527         (args_options): Add no-idn option.
20528         (ahosts_keys_int): Add idn_flags to ai_flags.
20529         (parse_option): Handle 'i' option to clear idn_flags.
20530
20531         * malloc/malloc.c (_int_free): Possible race in the most recently
20532         added check.  Only act on the data if no current modification
20533         happened.
20534
20535 See ChangeLog.17 for earlier changes.