6656fa1146565551649f80586207cb5509cf13fd
[platform/upstream/glibc.git] / ChangeLog
1 2012-10-25  Roland McGrath  <roland@hack.frob.com>
2
3         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
4         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
5         __getdirentries.
6
7 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
8             Jim Blandy  <jimb@codesourcery.com>
9
10         * scripts/cross-test-ssh.sh: New file.
11         * manual/install.texi (Configuring and compiling): Document use of
12         cross-test-ssh.sh.
13         * INSTALL: Regenerated.
14
15 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
16
17         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
18         EOPNOTSUPP.
19
20 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
21
22         * Makeconfig (run-program-prefix): Fix comment.
23
24 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
25             Jim Blandy  <jimb@codesourcery.com>
26
27         * Makeconfig (test-wrapper): New variable,
28         (test-wrapper-env): Likewise.
29         [$(cross-compiling) = yes && $(test-wrapper) != ""]
30         (run-built-tests): Define to yes.
31         (run-program-prefix): Use $(test-wrapper).
32         (built-program-cmd): Likewise.
33         * Rules (make-test-out): Use $(test-wrapper-env) and
34         $(host-built-program-cmd).
35         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
36         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
37         tst-pathopt.sh.
38         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
39         $(test-wrapper-env) to tst-rtld-load-self.sh.
40         ($(objpfx)order2.out): Use $(test-wrapper).
41         ($(objpfx)tst-initorder.out): Likewise.
42         ($(objpfx)tst-initorder2.out): Likewise.
43         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
44         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
45         (test_wrapper_env): New variable.  Use it to run ld.so.
46         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
47         Use it to run ld.so.
48         (test_wrapper_env): Likewise.
49         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
50         $(test-wrapper) to run-iconv-test.sh.
51         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
52         (ICONV): Use $test_wrapper.
53         * posix/Makefile ($(objpfx)globtest.out): Pass
54         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
55         globtest.sh, not $(run-program-prefix).
56         * posix/globtest.sh (run_via_rtld_prefix): New variable.
57         (test_wrapper): Likewise.
58         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
59         set together with run_via_rtld_prefix.
60         (run_program_prefix): Define in terms of test_wrapper and
61         run_via_rtld_prefix.
62
63 2012-10-24  Roland McGrath  <roland@hack.frob.com>
64
65         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
66         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
67         Targets removed.
68
69         [BZ #14743]
70         * include/time.h: Remove librt_hidden_proto (clock_gettime).
71         Declare __clock_getres, __clock_gettime, __clock_settime,
72         __clock_nanosleep, and __clock_getcpuclockid.
73         * rt/clock_gettime.c: Define __clock_gettime as an alias.
74         Remove librt_hidden_def (clock_gettime).
75         * sysdeps/unix/clock_gettime.c: Likewise.
76         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
77         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
78         * rt/clock_getres.c: Define __clock_getres as an alias.
79         * sysdeps/posix/clock_getres.c: Likewise.
80         * rt/clock_settime.c: Define __clock_settime as an alias.
81         * sysdeps/unix/clock_settime.c: Likewise.
82         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
83         * sysdeps/unix/clock_nanosleep.c: Likewise.
84         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
85         * rt/clock-compat.c: New file.
86         * rt/Makefile (librt-routines): Add clock-compat and move
87         $(clock-routines) to ...
88         (routines): ... here, new variable.
89         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
90         Don't add get_clockfreq here.
91         * rt/Versions (libc: GLIBC_2.17): New version set.
92         Add clock_* symbols here.
93         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
94         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
95         (GLIBC_2.17): Add clock_* symbols.
96         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
97         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
98         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
99         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
100         Likewise.
101         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
102         Likewise.
103         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
104         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
105         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
106         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
107         * NEWS: Mention the move.
108
109         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
110         Use __open, __read, __close rather than their public counterparts.
111         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
112         (__get_clockfreq_via_cpuinfo): Likewise.
113         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
114         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
115
116         * config.h.in (HAVE_IFUNC): New #undef.
117         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
118         was successful.
119         * configure: Regenerated.
120
121 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
122
123         * configure.in: Move READELF check to start of file.
124         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
125         libc_cv_asm_gnu_indirect_function in the process.
126         * configure: Regenerated.
127
128 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
129
130         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
131         send the output to /dev/null.
132         (libc_cv_cc_with_libunwind): Likewise.
133         (libc_cv_as_noexecstack): Likewise.
134         * configure: Regenerate.
135
136 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
137
138         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
139
140         * posix/globtest.sh (TMPDIR): Do not set.
141         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
142         (testout): Likewise.
143
144 2012-10-24  Andreas Jaeger  <aj@suse.de>
145
146         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
147         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
148         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
149         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
150         posix_fadvise64, posix_fallocate64.
151
152         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
153         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
154         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
155         Likewise.
156         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
157         Likewise.
158         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
159
160         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
161         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
162         <bits/fcntl-linux.h>.
163         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
164
165         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
166         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
167         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
168         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
169         [__WORDSIZE != 64]: Likewise.
170
171 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
172
173         * Makeconfig (run-built-tests): New variable.
174         * Rules [$(cross-compiling) = yes]: Change condition to
175         [$(run-built-tests) = no].
176         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
177         to [$(run-built-tests) = yes].
178         * elf/Makefile [$(cross-compiling) = no]: Likewise
179         * grp/Makefile [$(cross-compiling) = no]: Likewise.
180         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
181         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
182         * intl/Makefile [$(cross-compiling) = no]: Likewise.
183         * io/Makefile [$(cross-compiling) = no]: Likewise.
184         * libio/Makefile [$(cross-compiling) = no]: Likewise.
185         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
186         * misc/Makefile [$(cross-compiling) = no]: Likewise.
187         * posix/Makefile [$(cross-compiling) = no]: Likewise.
188         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
189         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
190         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
191         * string/Makefile [$(cross-compiling) = no]: Likewise.
192
193         * posix/Makefile ($(objpfx)globtest.out): Pass
194         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
195         $(rtld-installed-name).
196         * posix/globtest.sh (elf_objpfx): Remove variable.
197         (rtld_installed_name): Likewise.
198         (library_path): Likewise.
199         (run_program_prefix): New variable.  Use for running globtest
200         binary.
201
202 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
203             Joseph Myers  <joseph@codesourcery.com>
204
205         * Makeconfig (host-built-program-cmd): New variable.
206         * elf/Makefile (tst-stackguard1-ARGS): Use
207         $(host-built-program-cmd).
208         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
209         (tst-spawn-ARGS): Likewise.
210         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
211
212 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
213             Jim Blandy  <jimb@codesourcery.com>
214
215         * Makeconfig (run-via-rtld-prefix): New variable.
216         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
217         (built-program-cmd): Likewise.
218
219 2012-10-22  Andreas Jaeger  <aj@suse.de>
220
221         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
222         __O_RSYNC if it exists, otherwise to O_SYNC.
223
224 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
225             Joseph Myers  <joseph@codesourcery.com>
226
227         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
228         /dev/null.
229         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
230         from /dev/null
231         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
232         /dev/null.
233
234 2012-10-22  Andreas Jaeger  <aj@suse.de>
235
236         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
237         Define always.
238         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
239
240         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
241         bits/fcntl-linux.h.
242
243         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
244         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
245
246         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
247         to __O_LARGEFILE.
248         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
249         to __O_LARGEFILE.
250
251 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
252             Joseph Myers  <joseph@codesourcery.com>
253
254         * config.make.in (NM): New variable.
255
256 2012-10-21  Andreas Jaeger  <aj@suse.de>
257
258         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
259         definitions and declarations that are provided by
260         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
261
262 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
263
264         [BZ #14683]
265         * elf/Makefile (tests-static): Add tst-leaks1-static.
266         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
267         ($(objpfx)tst-leaks1-static): New rule.
268         ($(objpfx)tst-leaks1-static-mem): Likewise.
269         (tst-leaks1-static-ENV): New macro.
270         * elf/dl-open.c (dl_open_worker): Check the main application
271         only if SHARED is defined.
272         * elf/tst-leaks1-static.c: New file.
273
274 2012-10-20  Andreas Jaeger  <aj@suse.de>
275
276         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
277         generic values for Linux.
278         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
279         and declarations that are provided by <bits/fcntl-linux.h> and
280         include <bits/fcntl-linux.h>.
281         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
282         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
283
284 2012-10-20  Roland McGrath  <roland@hack.frob.com>
285
286         * io/fcntl.h: Move include of <bits/types.h> to the top and
287         include it unconditionally.
288
289 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
290
291         * wcsmbs/Makefile (tests-ifunc): New variable.
292         (tests): Add $(tests-ifunc).
293         * wcsmbs/test-wcschr-ifunc.c: New file.
294         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
295         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
296         * wcsmbs/test-wcslen-ifunc.c: Likewise.
297         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
298         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
299
300         * string/Makefile (tests-ifunc): New variable.
301         (tests): Add $(tests-ifunc).
302         * string/test-memccpy.c (TEST_NAME): New macro.
303         * string/test-memchr.c (TEST_NAME): Likewise.
304         * string/test-memcmp.c (TEST_NAME): Likewise.
305         * string/test-memcpy.c (TEST_NAME): Likewise.
306         * string/test-memmem.c (TEST_NAME): Likewise.
307         * string/test-memmove.c (TEST_NAME): Likewise.
308         * string/test-memset.c (TEST_NAME): Likewise.
309         * string/test-rawmemchr.c (TEST_NAME): Likewise.
310         * string/test-stpcpy.c (TEST_NAME): Likewise.
311         * string/test-stpncpy.c (TEST_NAME): Likewise.
312         * string/test-strcasecmp.c (TEST_NAME): Likewise.
313         * string/test-strcasestr.c (TEST_NAME): Likewise.
314         * string/test-strcat.c (TEST_NAME): Likewise.
315         * string/test-strchr.c (TEST_NAME): Likewise.
316         * string/test-strcmp.c(TEST_NAME): Likewise.
317         * string/test-strcpy.c (TEST_NAME): Likewise.
318         * string/test-strcspn.c (TEST_NAME): Likewise.
319         * string/test-strlen.c (TEST_NAME): Likewise.
320         * string/test-strncasecmp.c (TEST_NAME): Likewise.
321         * string/test-strncmp.c (TEST_NAME): Likewise.
322         * string/test-strncpy.c (TEST_NAME): Likewise.
323         * string/test-strnlen.c (TEST_NAME): Likewise.
324         * string/test-strpbrk.c (TEST_NAME): Likewise.
325         * string/test-strrchr.c (TEST_NAME): Likewise.
326         * string/test-strspn.c (TEST_NAME): Likewise.
327         * string/test-strstr.c (TEST_NAME): Likewise.
328         * string/test-bcopy-ifunc.c: New file.
329         * string/test-bzero-ifunc.c: Likewise.
330         * string/test-memccpy-ifunc.c: Likewise.
331         * string/test-memchr-ifunc.c: Likewise.
332         * string/test-memcmp-ifunc.c: Likewise.
333         * string/test-memcpy-ifunc.c: Likewise.
334         * string/test-memmem-ifunc.c: Likewise.
335         * string/test-memmove-ifunc.c: Likewise.
336         * string/test-mempcpy-ifunc.c: Likewise.
337         * string/test-memset-ifunc.c: Likewise.
338         * string/test-rawmemchr-ifunc.c: Likewise.
339         * string/test-stpcpy-ifunc.c: Likewise.
340         * string/test-stpncpy-ifunc.c: Likewise.
341         * string/test-strcasecmp-ifunc.c: Likewise.
342         * string/test-strcasestr-ifunc.c: Likewise.
343         * string/test-strcat-ifunc.c: Likewise.
344         * string/test-strchr-ifunc.c: Likewise.
345         * string/test-strchrnul-ifunc.c: Likewise.
346         * string/test-strcmp-ifunc.c: Likewise.
347         * string/test-strcpy-ifunc.c: Likewise.
348         * string/test-strcspn-ifunc.c: Likewise.
349         * string/test-strlen-ifunc.c: Likewise.
350         * string/test-strncasecmp-ifunc.c: Likewise.
351         * string/test-strncat-ifunc.c: Likewise.
352         * string/test-strncmp-ifunc.c: Likewise.
353         * string/test-strncpy-ifunc.c: Likewise.
354         * string/test-strnlen-ifunc.c: Likewise.
355         * string/test-strpbrk-ifunc.c: Likewise.
356         * string/test-strrchr-ifunc.c: Likewise.
357         * string/test-strspn-ifunc.c: Likewise.
358         * string/test-strstr-ifunc.c: Likewise.
359
360         * debug/Makefile (tests-ifunc): New variable.
361         (tests): Add $(tests-ifunc).
362         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
363         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
364         * debug/test-stpcpy_chk-ifunc.c: New file.
365         * debug/test-strcpy_chk-ifunc.c: Likewise.
366
367 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
368
369         [BZ #13601]
370         * elf/dl-load.c (open_verify): Retry read if the entire ELF
371         header is not read in.
372
373 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
374
375         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
376         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
377         directly.  Pass built executable to script as
378         $(built-program-cmd).
379         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
380         $testprogram without using LD_LIBRARY_PATH and $ldso.
381
382         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
383         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
384         $(rtld-installed-name).
385         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
386         (rtld_installed_name): Likewise.
387         (library_path): Likewise.
388         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
389         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
390         $(run-program-prefix) to tst-tables.sh.
391         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
392         it to run tst-table-from and tst-table-to.
393         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
394         Pass it to tst-table.sh.
395         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
396         $(run-program-prefix) to tst-gettext.sh.
397         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
398         tst-translit.sh.
399         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
400         tst-gettext2.sh.
401         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
402         to run tst-gettext.
403         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
404         to run tst-gettext2.
405         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
406         to run tst-translit.
407         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
408         $(run-program-prefix) to tst-mtrace.sh.
409         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
410         to run tst-mtrace.
411         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
412         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
413         $(rtld-installed-name).
414         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
415         (rtld_installed_name): Likewise.
416         (run_program_prefix): New variable.  Use it to run wordexp-test.
417
418         * Makeconfig (ARCH): Remove all definitions.
419         (machine): Likewise.
420         [ARCH]: Remove conditional code.
421         [!objdir]: Give error.
422         [!objdir] (objpfx): Remove.
423         [!objdir] (common-objpfx): Likewise.
424         [!objdir] (common-objdir): Likewise.
425         * configure.in (config_makefile): Remove.  Hardcode Makefile in
426         AC_CONFIG_FILES call.
427         * configure: Regenerated.
428
429         [BZ #13888]
430         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
431         or TMPDIR.
432         (testout): Likewise.
433
434         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
435         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
436         $(rtld-installed-name).
437         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
438         (rtld_installed_name): Likwise.
439         (runit): Remove function.
440         (run_getconf): New variable,  Use it for running getconf binary.
441
442 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
443
444         [BZ #14716]
445         * string/test-memmem.c (check_result): New function.
446         (do_one_test): Use it.
447         (check1): New function.
448         (test_main): Use it.
449
450 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
451
452         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
453
454 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
455
456         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
457         (_G_LSEEK64): Likewise.
458         (_G_MMAP64): Likewise.
459         (_G_FSTAT64): Likewise.
460         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
461         (_G_LSEEK64): Likewise.
462         (_G_MMAP64): Likewise.
463         (_G_FSTAT64): Likewise.
464         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
465         unconditional.  Call __mmap64 directly.
466         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
467         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
468         __lseek64 directly.
469         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
470         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
471         __mmap64 directly.
472         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
473         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
474         __lseek64 directly.
475         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
476         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
477         __lseek64 directly.
478         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
479         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
480         __lseek64 directly.
481         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
482         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
483         __fxstat64 directly.
484         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
485         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
486         unconditional.
487         (freopen64) [!_G_OPEN64]: Remove conditional code.
488         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
489         unconditional.
490         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
491         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
492         unconditional.
493         (ftello64) [!_G_LSEEK64]: Remove conditional code.
494         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
495         unconditional.
496         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
497         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
498         unconditional.
499         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
500         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
501         unconditional.
502         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
503         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
504         unconditional.
505         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
506         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
507         unconditional.
508         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
509
510 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
511
512         [BZ #12140]
513         * manual/memory.texi (Malloc Tunable Parameters): Add note
514         about free list pointers overwriting some perturb bytes.
515         Wording suggested by Roland McGrath.
516
517 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
518
519         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
520         (lgamma_test): Likewise.
521         (tgamma_test): Likewise.
522
523 2012-10-16  Florian Weimer  <fweimer@redhat.com>
524
525         [BZ #14700]
526         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
527         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
528
529 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
530
531         * NEWS: Mention BZ #14716.
532         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
533         when removing AVAILABLE1_USES_J macro.
534
535 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
536
537         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
538         (__bswap_64): __uint64_t for unsigned 64-bit int.
539
540 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
541
542         * include/string.h (memmem): Declare libc hidden alias.
543         * string/memmem.c (memmem): Define libc hidden alias.
544         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
545         __read, __close instead of open, read, close.
546
547 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
548
549         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
550         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
551         global and hidden.
552         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
553         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
554         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
555         Likewise.
556         (__rawmemchr_sse2): Likewise.
557         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
558         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
559         (__strchr_sse2): Likewise.
560         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
561         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
562         (__strcasecmp_sse2): Likewise.
563         (__strncasecmp_sse2): Likewise.
564         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
565         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
566         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
567         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
568         (__strrchr_sse2): Likewise.
569         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
570         ifunc-impl-list.c.
571         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
572         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
573         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
574         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
575         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
576         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
577         * sysdeps/x86_64/multiarch/memset.S: Likewise.
578         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
579         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
580         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
581         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
582         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
583         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
584         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
585         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
586         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
587         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
588         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
589         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
590         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
591         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
592         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
593         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
594         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
595         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
596         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
597         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
598         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
599         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
600         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
601
602         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
603         global and hidden.
604         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
605         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
606         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
607         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
608         Likewise.
609         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
610         Likewise.
611         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
612         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
613         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
614         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
615         ifunc-impl-list.c.
616         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
617         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
618         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
619         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
620         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
621         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
622         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
623         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
624         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
625         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
626         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
627         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
628         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
629         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
630         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
631         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
632         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
633         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
634         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
635         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
636         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
637         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
638         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
639         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
640         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
641         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
642         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
643         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
644         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
645         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
646         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
647         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
648         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
649         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
650         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
651         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
652         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
653         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
654         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
655         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
656         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
657
658         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
659         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
660         * include/ifunc-impl-list.h: New file.
661         * misc/ifunc-impl-list.c: Likewise.
662         * misc/Makefile (routines): Add ifunc-impl-list.
663         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
664         * string/test-string.h: Include <ifunc-impl-list.h>.
665         [TEST_IFUNC && TEST_NAME] (func_list, func_count, impl_count,
666         impl_array): New variables.
667         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
668         are defined.
669         (test_init): Call __libc_ifunc_impl_list to initialize
670         func_list if TEST_IFUNC and TEST_NAME are defined.
671
672         * string/Makefile (strop-tests): Add bcopy and bzero.
673         * string/test-bcopy.c: New file.
674         * string/test-bzero.c: Likewise.
675         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
676         defined.
677         * string/test-memset.c: Support bzero test if TEST_BZERO is
678         defined.
679         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
680         __libc_memmove.
681         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
682         __libc_memset.
683         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
684         of memset.
685
686 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
687
688         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
689         * configure: Regenerated.
690
691         * Makeconfig (+link-static-before-libc): Don't include
692         $(link-static-libc).
693
694         * libio/libio.h (_IO_pos_t): Remove.
695
696 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
697
698         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
699         McGrath.
700
701 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
702
703         * crypt/crypt-entry.c: Include fips-private.h.
704         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
705         * crypt/md5c-test.c (main): Tolerate disabled MD5.
706         * sysdeps/unix/sysv/linux/fips-private.h: New file.
707         * sysdeps/generic/fips-private.h: New file, dummy fallback.
708
709 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
710
711         * crypt/crypt-private.h: Include stdbool.h.
712         (_ufc_setup_salt_r): Return bool.
713         * crypt/crypt-entry.c: Include errno.h.
714         (__crypt_r): Return NULL with EINVAL for bad salt.
715         * crypt/crypt_util.c (bad_for_salt): New.
716         (_ufc_setup_salt_r): Check that salt is long enough and within
717         the specified alphabet.
718         * crypt/badsalttest.c: New file.
719         * crypt/Makefile (tests): Add it.
720         ($(objpfx)badsalttest): New.
721
722 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
723
724         * NEWS: Add entry for BZ #14602.
725
726 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
727
728         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
729         type-generic.
730         * math/libm-test.inc: Update comment listing what functions and
731         macros are tested.
732         (isgreater_test): New function.
733         (isgreaterequal_test): Likewise.
734         (isless_test): Likewise.
735         (islessequal_test): Likewise.
736         (islessgreater_test): Likewise.
737         (isunordered_test): Likewise.
738         (main): Call the new functions.
739
740 2012-10-09  Roland McGrath  <roland@hack.frob.com>
741
742         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
743         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
744         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
745         * sysdeps/i386/configure: Regenerated.
746         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
747         * sysdeps/mach/configure: Regenerated.
748         * sysdeps/mach/hurd/configure: Regenerated.
749         * sysdeps/powerpc/configure: Regenerated.
750         * sysdeps/powerpc/powerpc32/configure: Regenerated.
751         * sysdeps/powerpc/powerpc64/configure: Regenerated.
752         * sysdeps/s390/s390-32/configure: Regenerated.
753         * sysdeps/s390/s390-64/configure: Regenerated.
754         * sysdeps/sh/configure: Regenerated.
755         * sysdeps/sparc/configure: Regenerated.
756         * sysdeps/unix/sysv/linux/configure: Regenerated.
757         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
758         * sysdeps/x86_64/configure: Regenerated.
759
760         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
761         defined.  Don't check if MAP is NULL.
762
763 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
764
765         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
766         (_G_stat64): Likewise.
767         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
768         (_G_stat64): Likewise.
769         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
770         instead of struct _G_stat64.
771         * libio/fileops.c (mmap_remap_check): Likewise.
772         (decide_maybe_mmap): Likewise.
773         (_IO_new_file_seekoff): Likewise.
774         (_IO_file_stat): Likewise.
775         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
776         _G_off64_t.
777         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
778         instead of struct _G_stat64.
779         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
780
781 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
782
783         [BZ #14602]
784         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
785         Replace with ...
786         (CHECK_EOL): New macro.
787         (two_way_short_needle): Check beginning of haystack for EOL.  Use
788         CHECK_EOL.
789         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
790         Replace with CHECK_EOL.
791         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
792         Replace with CHECK_EOL.
793
794 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
795
796         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
797         type-generic.
798         * math/libm-test.inc: Update comment listing what functions and
799         macros are tested.
800         (finite_test): New function.
801         (isinf_test): Likewise.
802         (isnan_test): Likewise.
803         (fpclassify_test): Test subnormal input.
804         (isfinite_test): Likewise.
805         (isnormal_test): Likewise.
806         (main): Call the new functions.
807
808 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
809
810         [BZ #14660]
811         * Makerules (%.dynsym): Force C locale when running
812         $(OBJDUMP) --dynamic-syms.
813
814 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
815
816         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
817         <stdint.h>.
818
819 2012-10-06  David S. Miller  <davem@davemloft.net>
820
821         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
822         upper 32-bits of the length value in %o2 since we use branch-on-register
823         tests which consider the entire 64-bit register.
824
825 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
826
827         * string/test-strstr.c (check2): Add a test for page boundary.
828
829 2012-10-05  David S. Miller  <davem@davemloft.net>
830
831         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
832         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
833         file.
834         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
835         sysdep_routines.
836         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
837         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
838         and bzero when HWCAP_SPARC_CRYPTO is present.
839
840 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
841
842         [BZ #14602]
843         * string/test-strstr.c (check2): New function.
844         (test_main): Call check2.
845
846         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
847         and bug-strchr1.
848         * string/bug-strcasestr1.c (do_test): Moved to ...
849         * string/test-strcasestr.c (check1): Here.  New function.
850         (do_one_test): Break out result checking code into ...
851         (check_result): This.  New function.
852         (do_one_test): Call check_result.
853         (test_main): Call check1.
854         * string/bug-strchr1.c (do_test): Moved to ...
855         * string/test-strchr.c (check1): Here.  New function.
856         (do_one_test): Break out result checking code into ...
857         (check_result): This.  New function.
858         (do_one_test): Call check_result.
859         (test_main): Call check1.
860         * string/bug-strstr1.c (main): Moved to ...
861         * string/test-strchr.c (check1): Here.  New function.
862         (do_one_test): Break out result checking code into ...
863         (check_result): This.  New function.
864         (do_one_test): Call check_result.
865         (test_main): Call check1.
866         * string/bug-strcasestr1.c: Removed.
867         * string/bug-strchr1.c: Likewise.
868         * string/bug-strstr1.c: Likewise.
869
870         * elf/Makefile (dl-routines): Add hwcaps.
871         * elf/dl-support.c (_dl_important_hwcaps): Removed.
872         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
873         (_dl_important_hwcaps): Moved to ...
874         * elf/dl-hwcaps.c: Here.  New file.
875         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
876
877         [BZ #14557]
878         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
879         if IS_IN_rtld isn't defined.
880
881         * elf/dl-support.c (_dl_sysinfo_map): New.
882         Include "get-dynamic-info.h" and "setup-vdso.h".
883         (_dl_non_dynamic_init): Call setup_vdso.
884         * elf/dynamic-link.h: Don't include <assert.h>.
885         (elf_get_dynamic_info): Moved to ...
886         * elf/get-dynamic-info.h: Here.  New file.
887         * elf/dynamic-link.h: Include "get-dynamic-info.h".
888         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
889         * elf/setup-vdso.h: Here.  New file.
890         * elf/rtld.c: Include "setup-vdso.h".
891         (dl_main): Call setup_vdso.
892
893 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
894
895         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
896         creal in comment listing functions tested.  List finite, isinf,
897         isnan, isless, islessequal, isgreater, isgreaterequal,
898         islessgreater, isunordered, lgamma_r and pow10 as functions and
899         macros not tested.  Mention which functions not tested are aliases
900         for other functions.  Fix typo.  Note that signs of NaNs are not
901         tested.
902
903         * scripts/config.guess: Update from config.git.
904         * scripts/config.sub: Likewise.
905
906 2012-10-04  Roland McGrath  <roland@hack.frob.com>
907
908         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
909         * misc/madvise.c (madvise): Renamed to __madvise.
910         Make madvise a weak alias.
911         * include/sys/mman.h: Declare __madvise.
912         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
913         * sysdeps/unix/syscalls.list
914         (madvise): Make __madvise the strong name, and madvise a weak alias.
915         * sysdeps/unix/sysv/linux/syscalls.list
916         (madvise, mmap): Remove redundant entries.
917         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
918         * malloc/malloc.c (mtrim): Likewise.
919         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
920
921 2012-10-03  Roland McGrath  <roland@hack.frob.com>
922
923         * sysdeps/mach/hurd/dl-cache.c: File removed.
924         * config.h.in (USE_LDCONFIG): New #undef.
925         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
926         * configure: Regenerated.
927         * elf/Makefile (dl-routines): Add dl-cache only under
928         [$(use-ldconfig) = yes].
929         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
930         cache on [USE_LDCONFIG].
931         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
932         [USE_LDCONFIG].
933         * elf/rtld.c (dl_main): Likewise.
934
935 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
936
937         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
938         _SC_LEVEL4_CACHE_LINESIZE.
939
940 2012-10-03  Roland McGrath  <roland@hack.frob.com>
941
942         * sysdeps/unix/bsd/confstr.h: File removed.
943
944 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
945
946         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
947         sys/sdt-config.h.
948
949 2012-10-02  Roland McGrath  <roland@hack.frob.com>
950
951         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
952         Make 'mapoff' field ElfW(Off) rather than off_t.
953
954 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
955
956         * nscd/Makefile: Remove nscd-cflags and all its users.
957         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
958         (CFLAGS-nonlib): Add compiler flags for nscd modules.
959
960         [BZ #10631]
961         * malloc.c (malloc_printerr): Clarify error message.
962
963 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
964
965         [BZ #14648]
966         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
967         Set bit_FMA_Usable if FMA is supported.
968         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
969         macro.
970         (bit_FMA4_Usable): Updated.
971         (index_FMA_Usable): New macro.
972         (CPUID_FMA): Likewise
973         (HAS_FMA): Defined with bit_FMA_Usable.
974
975 2012-10-01  Roland McGrath  <roland@hack.frob.com>
976
977         * bits/types.h (__swblk_t): Type removed.
978         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
979         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
980         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
981         (__SWBLK_T_TYPE): Likewise.
982         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
983         (__SWBLK_T_TYPE): Likewise.
984         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
985         (__SWBLK_T_TYPE): Likewise.
986         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
987         (__SWBLK_T_TYPE): Likewise.
988
989 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
990             Honza Horak <hhorak@redhat.com>
991
992         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
993         (xdr_mapname): Use YPMAXMAP as maxsize.
994         (xdr_peername): Use YPMAXPEER as maxsize.
995         (xdr_keydat): Use YPAXRECORD as maxsize.
996         (xdr_valdat): Use YPMAXRECORD as maxsize.
997
998 2012-10-01  Roland McGrath  <roland@hack.frob.com>
999
1000         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
1001
1002         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
1003         * csu/init-first.c: ... here.
1004         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
1005         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
1006         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
1007         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
1008         * sysdeps/i386/init-first.c: File removed.
1009         * sysdeps/sh/init-first.c: File removed.
1010
1011 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
1012
1013         [BZ #14645]
1014         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
1015         if x * y might underflow to zero and z is zero.
1016         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
1017         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
1018         * math/libm-test.inc (min_subnorm_value): New variable.
1019         (fma_test): Add more tests.
1020         (fma_test_towardzero): Likewise.
1021         (fma_test_downward): Likewise
1022         (fma_test_upward): Likewise.
1023         (initialize): Set min_subnorm_value.
1024
1025 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
1026
1027         [BZ #14638]
1028         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
1029         0 + 0.
1030         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
1031         mode for addition resulting in exact zero.
1032         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
1033         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
1034         exact 0 + 0.
1035         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
1036         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
1037         * math/libm-test.inc (fma_test): Add more tests.
1038         (fma_test_towardzero): New function.
1039         (fma_test_downward): Likewise.
1040         (fma_test_upward): Likewise.
1041         (main): Call the new functions.
1042
1043 2012-09-28  David S. Miller  <davem@davemloft.net>
1044
1045         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
1046
1047 2012-09-28  Roland McGrath  <roland@hack.frob.com>
1048
1049         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
1050         instead of SIGALRM.
1051
1052         * sysdeps/gnu/_G_config.h: Moved to ...
1053         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
1054         * sysdeps/mach/hurd/_G_config.h: Moved to ...
1055         * sysdeps/generic/_G_config.h: ... here.
1056
1057         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
1058
1059         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
1060
1061         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
1062         Conditionalize target on [libnss_test1.so-version].
1063
1064         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
1065
1066         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
1067         (elfobjdir): Move out of conditionals.
1068
1069         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
1070         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
1071         (__nss_lookup_function): Conditionalize label remove_from_tree on
1072         [!DO_STATIC_NSS || SHARED], matching its only use.
1073
1074 2012-09-28  David S. Miller  <davem@davemloft.net>
1075
1076         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
1077         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
1078         file.
1079         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
1080         sysdep_routines.
1081         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
1082         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
1083         when HWCAP_SPARC_CRYPTO is present.
1084
1085 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
1086
1087         * io/tst-mknodat.c: Create a FIFO instead of a socket.
1088
1089 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
1090
1091         [BZ #6530]
1092         * stdio-common/vfprintf.c (process_string_arg): Revert
1093         2000-07-22 change.
1094
1095 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
1096
1097         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
1098         for testcase.
1099         * stdio-common/tst-sprintf.c: Include <locale.h>
1100         (main): Test sprintf's handling of incomplete multibyte
1101         characters.
1102
1103 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
1104
1105         * elf/dl-runtime.c (VERSYMIDX): Removed.
1106         * elf/dl-version.c (VERSYMIDX): Likewise.
1107         * elf/do-rel.h (VERSYMIDX): Likewise.
1108         (VALIDX): Likewise.
1109         * elf/dynamic-link.h (VERSYMIDX): Likewise.
1110         * elf/rtld.c (VALIDX): Likewise.
1111         (ADDRIDX): Likewise.
1112         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
1113         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
1114         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
1115         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
1116         (VALIDX): Likewise.
1117         (ADDRIDX): Likewise.
1118
1119 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
1120
1121         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
1122
1123 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
1124
1125         [BZ #11438]
1126         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
1127         to global scope.
1128         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
1129         addresses are in the same scope as 192.0.2/24.
1130         * posix/gai.conf: Document new scope table defaults.
1131
1132 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
1133
1134         [BZ #5298]
1135         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
1136         for ftell.  Compute offsets from write pointers instead.
1137         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
1138
1139 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
1140
1141         [BZ #14543]
1142         * libio/Makefile (tests): New test case tst-fseek.
1143         * libio/tst-fseek.c: New test case to verify that fseek/ftell
1144         combination works in wide mode.
1145         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
1146         state when the external buffer state changes.
1147
1148 2012-09-27  David S. Miller  <davem@davemloft.net>
1149
1150         [BZ #14376]
1151         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
1152         pass reloc->r_addend in as the 'high' argument to
1153         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
1154
1155         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1156
1157 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
1158
1159         * rt/tst-aio2.c: Include <pthread.h>.
1160         * rt/tst-aio3.c: Likewise.
1161
1162 2012-09-27  Steve Ellcey  <sellcey@mips.com>
1163
1164         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
1165
1166 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
1167
1168         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
1169         contents on [SHARED].
1170
1171 2012-09-26  Marek Polacek  <polacek@redhat.com>
1172
1173         [BZ #14530]
1174         [BZ #13741]
1175         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
1176         for C++ and GCC <4.3 as well as for non GCC compilers.
1177
1178 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
1179
1180         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1181
1182 2012-09-25  Roland McGrath  <roland@hack.frob.com>
1183
1184         * Makefile.in (all, install): Declare with .PHONY.
1185         Reported by Michael Hope <michael.hope@linaro.org>.
1186
1187 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1188
1189         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
1190         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
1191         system header.
1192         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
1193         Likewise.
1194         (sydep_routines): Add the new and the internal functions.
1195         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
1196         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
1197         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
1198         (GLIBC_2.17): Add the new function.
1199         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
1200         (GLIBC_2.17): Likewise.
1201         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
1202         (GLIBC_2.17): Likewise.
1203         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
1204         (GLIBC_2.17): Likewise.
1205         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
1206
1207 2012-09-25  Alan Modra  <amodra@gmail.com>
1208
1209         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
1210         Add release barrier before setting once_control to say
1211         initialisation is done.  Add hints on lwarx.  Use macro in
1212         place of isync.
1213         (clear_once_control): Add release barrier.
1214
1215 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
1216
1217         [BZ #13629]
1218         * math/s_clog.c (__clog): Handle more values close to |z| = 1
1219         specially.
1220         * math/s_clog10.c (__clog10): Likewise.
1221         * math/s_clog10f.c (__clog10f): Likewise.
1222         * math/s_clog10l.c (__clog10l): Likewise.
1223         * math/s_clogf.c (__clogf): Likewise.
1224         * math/s_clogl.c (__clogl): Likewise.
1225         * math/Makefile (libm-calls): Add x2y2m1.
1226         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
1227         (__x2y2m1): Likewise.
1228         (__x2y2m1l): Likewise.
1229         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
1230         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
1231         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
1232         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
1233         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
1234         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
1235         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
1236         * sysdeps/i386/fpu/libm-test-ulps: Update.
1237         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1238
1239         [BZ #14621]
1240         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
1241         int as type of variable DEPTH.
1242         (glob): Use size_t instead of int as type of variables NEWCOUNT
1243         and OLD_PATHC.
1244
1245 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1246
1247         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
1248         Add s_sincosf-sse2.
1249         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
1250         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
1251         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
1252         macros for using routine as __sincosf_ia32.
1253         Use macro for function declaration and weak_alias.
1254         * sysdeps/i386/fpu/libm-test-ulps: Update.
1255
1256         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
1257         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1258
1259         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
1260         subnormal argument.
1261         * math/s_cexpf.c (__cexpf): Likewise.
1262         * math/s_csinf.c (__csinf): Likewise.
1263         * math/s_csinhf.c (__csinhf): Likewise.
1264         * math/s_ctanf.c (__ctanf): Likewise.
1265         * math/s_ctanhf.c (__ctanhf): Likewise.
1266         * math/s_ccosh.c (__ccoshf): Likewise.
1267         * math/s_cexp.c (__cexpl): Likewise.
1268         * math/s_csin.c (__csin): Likewise.
1269         * math/s_csinh.c (__csinh): Likewise.
1270         * math/s_ctan.c (__ctan): Likewise.
1271         * math/s_ctanh.c (ctanh): Likewise.
1272         * math/s_ccoshl.c (__ccoshl): Likewise.
1273         * math/s_cexpl.c (__cexpl): Likewise.
1274         * math/s_csinl.c (__csinl): Likewise.
1275         * math/s_csinhl.c (__csinhl): Likewise.
1276         * math/s_ctanl.c (__ctanl): Likewise.
1277         * math/s_ctanhl.c (__ctanhl): Likewise.
1278
1279 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
1280
1281         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
1282         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
1283         (_IO_off_t): Define to __off_t, not _G_off_t.
1284         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
1285         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
1286         (_IO_wint_t): Define to wint_t, not _G_wint_t.
1287         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
1288         type of __dummy and __dummy2 fields.
1289         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
1290         (_G_ssize_t): Likewise.
1291         (_G_off_t): Likewise.
1292         (_G_pid_t): Likewise.
1293         (_G_uid_t): Likewise.
1294         (_G_wchar_t): Likewise.
1295         (_G_wint_t): Likewise.
1296         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
1297         (_G_ssize_t): Likewise.
1298         (_G_off_t): Likewise.
1299         (_G_pid_t): Likewise.
1300         (_G_uid_t): Likewise.
1301         (_G_wchar_t): Likewise.
1302         (_G_wint_t): Likewise.
1303         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
1304         (_G_ssize_t): Likewise.
1305         (_G_off_t): Likewise.
1306         (_G_pid_t): Likewise.
1307         (_G_uid_t): Likewise.
1308         (_G_wchar_t): Likewise.
1309         (_G_wint_t): Likewise.
1310
1311 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
1312
1313         * malloc/arena.c: Include malloc-sysdep.h.
1314         (shrink_heap): Use check_may_shrink_heap to decide if madvise
1315         is sufficient to shrink the heap or an unmap is needed.
1316         * sysdeps/generic/malloc-sysdep.h: New file.  Define
1317         new function check_may_shrink_heap.
1318         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
1319         new function check_may_shrink_heap.
1320
1321 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
1322
1323         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
1324         comments.
1325
1326 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
1327
1328         * catgets/test-gencat.sh: Add "set -e".
1329         * elf/tst-pathopt.sh: Likewise.
1330         * grp/tst_fgetgrent.sh: Likewise.
1331         * iconvdata/run-iconv-test.sh: Likewise.
1332         * intl/tst-gettext.sh: Likewise.
1333         * intl/tst-gettext2.sh: Likewise.
1334         * intl/tst-gettext4.sh: Likewise.
1335         * intl/tst-gettext6.sh: Likewise.
1336         * intl/tst-translit.sh: Likewise.
1337         * io/ftwtest-sh: Likewise.
1338         * libio/test-freopen.sh: Likewise.
1339         * malloc/tst-mtrace.sh: Likewise.
1340         * posix/globtest.sh: Likewise.
1341         * posix/tst-getconf.sh: Likewise.
1342         * posix/wordexp-tst.sh: Likewise.
1343         * stdio-common/tst-printf.sh: Likewise.
1344         * stdio-common/tst-unbputc.sh: Likewise.
1345         * stdlib/tst-fmtmsg.sh: Likewise.
1346         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
1347         * catgets/Makefile: Do not specify -e option when running
1348         testsuite shell scripts.
1349         * elf/Makefile: Likewise.
1350         * grp/Makefile: Likewise.
1351         * iconvdata/Makefile: Likewise.
1352         * intl/Makefile: Likewise.
1353         * io/Makefile: Likewise.
1354         * libio/Makefile: Likewise.
1355         * malloc/Makefile: Likewise.
1356         * posix/Makefile: Likewise.
1357         * stdio-common/Makefile: Likewise.
1358         * stdlib/Makefile: Likewise.
1359         * sysdeps/x86_64/Makefile: Likewise.
1360
1361         * io/ftwtest-sh: Add copyright header.
1362         * posix/globtest.sh: Likewise.
1363         * posix/tst-getconf.sh: Likewise.
1364         * posix/wordexp-tst.sh: Likewise.
1365         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
1366
1367 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
1368
1369         [BZ #13679]
1370         * Makeconfig (+link): Defined as $(+link-static) if
1371         $(build-shared) isn't yes.
1372         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
1373         isn't yes.
1374         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
1375
1376         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
1377
1378         [BZ #14562]
1379         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
1380         new chunk size with MALLOC_ALIGN_MASK.
1381
1382 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
1383
1384         [BZ #5044]
1385         * stdio-common/printf_fphex.c: Include <stdbool.h> and
1386         <rounding-mode.h>.
1387         (__printf_fphex): Determine rounding using get_rounding_mode and
1388         round_away.
1389         * stdio-common/tst-printf-round.c (struct hex_test): New
1390         structure.
1391         (hex_tests): New variable.
1392         (test_hex_in_one_mode): New function.
1393         (do_test): Also run tests for hex float output.
1394
1395 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
1396
1397         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
1398         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
1399         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
1400         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
1401         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
1402         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
1403         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
1404         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
1405
1406 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
1407
1408         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
1409         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
1410         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
1411         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
1412
1413 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
1414
1415         [BZ #14579]
1416         * elf/rtld.c (dl_main): Limit the check for self loading to normal
1417         mode only.
1418         * elf/tst-rtld-load-self.sh: New test.
1419         * elf/Makefile: Run it.
1420
1421 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
1422
1423         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
1424         (tst-writev-ENV): Remove.
1425         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
1426
1427 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
1428
1429         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
1430
1431 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
1432
1433         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
1434         unconditional.
1435         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
1436         Likewise.
1437         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
1438         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
1439         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
1440         Likewise.
1441
1442 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
1443
1444         [BZ #14587]
1445         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
1446         * config.make.in (have-cpp-asm-debuginfo): Removed.
1447         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
1448         * configure: Regenerated.
1449
1450 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
1451
1452         [BZ #5044]
1453         * stdio-common/printf_fp.c: Include <stdbool.h> and
1454         <rounding-mode.h>.
1455         (___printf_fp): Determine rounding using get_rounding_mode and
1456         round_away.
1457         * stdio-common/tst-printf-round.c: New file.
1458         * stdio-common/Makefile (tests): Add tst-printf-round.
1459         (link-libm): New variable.
1460         ($(objpfx)tst-printf-round): Depend in $(link-libm).
1461
1462 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
1463
1464         [BZ #14576]
1465         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
1466         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
1467         Likewise.
1468         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
1469         Likewise.
1470
1471 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
1472
1473         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
1474         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
1475         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
1476         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
1477
1478 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
1479
1480         [BZ #14518]
1481         * include/rounding-mode.h: New file.
1482         * sysdeps/generic/get-rounding-mode.h: Likewise.
1483         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
1484         * stdlib/strtod_l.c: Include <rounding-mode.h>.
1485         (MAX_VALUE): New macro.
1486         (MIN_VALUE): Likewise.
1487         (overflow_value): New function.
1488         (underflow_value): Likewise.
1489         (round_and_return): Use overflow_value and underflow_value to
1490         determine return values in overflow and underflow cases.  Use
1491         round_away to determine rounding depending on rounding mode.
1492         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
1493         determine return values in overflow and underflow cases.
1494         * stdlib/tst-strtod-round.c: Include <fenv.h>.
1495         (struct test_results): New structure.
1496         (struct test): Use struct test_results to store expected results
1497         for all rounding modes.
1498         (TEST): Include expected results for all rounding modes.
1499         (test_in_one_mode): New function.
1500         (do_test): Use test_in_one_mode to compute and check results.
1501         Check results for all rounding modes.
1502         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
1503         $(link-libm).
1504
1505 2012-12-09  Allan McRae  <allan@archlinux.org>
1506
1507         * sysdeps/i386/fpu/libm-test-ulps: Update
1508
1509 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
1510
1511         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
1512         (_G_int32_t): Likewise.
1513         (_G_uint16_t): Likewise.
1514         (_G_uint32_t): Likewise.
1515         (_G_HAVE_BOOL): Likewise.
1516         (_G_HAVE_ATEXIT): Likewise.
1517         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
1518         (_G_HAVE_IO_FILE_OPEN): Likewise.
1519         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
1520         (_G_int32_t): Likewise.
1521         (_G_uint16_t): Likewise.
1522         (_G_uint32_t): Likewise.
1523         (_G_HAVE_BOOL): Likewise.
1524         (_G_HAVE_ATEXIT): Likewise.
1525         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
1526         (_G_HAVE_IO_FILE_OPEN): Likewise.
1527         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
1528         (_G_int32_t): Likewise.
1529         (_G_uint16_t): Likewise.
1530         (_G_uint32_t): Likewise.
1531         (_G_HAVE_BOOL): Likewise.
1532         (_G_HAVE_ATEXIT): Likewise.
1533         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
1534         (_G_HAVE_IO_FILE_OPEN): Likewise.
1535
1536 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
1537
1538         * csu/libc-tls.c: Update copyright years.
1539
1540 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
1541
1542         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
1543         [!_G_USING_THUNKS]: Remove conditional code.
1544         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
1545         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
1546
1547         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
1548         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
1549         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
1550         (_G_VTABLE_LABEL_PREFIX): Likewise.
1551         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
1552         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
1553         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
1554         (_G_VTABLE_LABEL_PREFIX): Likewise.
1555         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
1556         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
1557         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
1558         (_G_VTABLE_LABEL_PREFIX): Likewise.
1559         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
1560
1561 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
1562
1563         * libio/Makefile: Include ../Makeconfig before tests.
1564         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
1565         only if $(build-shared) is yes.
1566
1567         * iconv/gconv_db.c: Update copyright years.
1568
1569 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1570
1571         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
1572         unwind info if defined PIC. Fix special cases description.
1573         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
1574
1575         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
1576         DP_HI_MASK entry.
1577         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
1578
1579 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
1580
1581         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
1582
1583         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
1584         is NULL.
1585
1586         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
1587         (LDLIBS-tst-chk4): This.
1588         (LDFLAGS-tst-chk5): Renamed to ...
1589         (LDLIBS-tst-chk5): This.
1590         (LDFLAGS-tst-chk6): Renamed to ...
1591         (LDLIBS-tst-chk6): This.
1592         (LDFLAGS-tst-lfschk4): Renamed to ...
1593         (LDLIBS-tst-lfschk4): This.
1594         (LDFLAGS-tst-lfschk5): Renamed to ...
1595         (LDLIBS-tst-lfschk5): This.
1596         (LDFLAGS-tst-lfschk6): Renamed to ...
1597         (LDLIBS-tst-lfschk6): This.
1598
1599         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
1600         on $(common-objpfx)soversions.mk.
1601
1602 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
1603
1604         [BZ #10014]
1605         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
1606         example host name.
1607
1608 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
1609
1610         * malloc/arena.c (arena_get_retry): New function that gets
1611         another arena for the caller to try its request on.
1612         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
1613         current arena cannot fulfill the request.
1614         (__libc_memalign): Likewise.
1615         (__libc_memalign): Likewise.
1616         (__libc_pvalloc): Likewise.
1617         (__libc_calloc): Likewise.
1618
1619 2012-09-05  John Tobey  <john.tobey@gmail.com>
1620
1621         [BZ #13542]
1622         * manual/arith.texi (Operations on Complex): Fix description
1623         of carg branch cut.
1624
1625 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
1626
1627         [BZ #10014]
1628         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
1629         host name.
1630
1631         [BZ #10038]
1632         * manual/memory.texi (Memory): Make order of menu items match
1633         order of sections.
1634
1635 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1636
1637         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
1638         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
1639         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
1640
1641 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1642
1643         * csu/libc-tls.c (static_dtv): Renamed to ...
1644         (_dl_static_dtv): This.  Make it global.
1645         (_dl_initial_dtv): Removed.
1646         (__libc_setup_tls): Updated.
1647         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
1648         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
1649         DL_INITIAL_DTV.
1650
1651 2012-09-06  Petr Machata  <pmachata@redhat.com>
1652
1653         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
1654         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
1655         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
1656         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
1657
1658 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1659
1660         [BZ #14545]
1661         * csu/libc-tls.c (_dl_initial_dtv): New variable.
1662         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
1663         freeing dtv[-1].
1664
1665 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1666
1667         [BZ #14544]
1668         * Makeconfig (link-static-before-libc): Replace $(+prector)
1669         with $(+prectorT).
1670         (link-static-after-libc): Replace $(+postctor) with
1671         $(+postctorT).
1672         (link-bounded): Replace $(+prector)/$(+postctor) with
1673         $(+prectorT)/$(+postctorT).
1674         (+prectorT): New macro.
1675         (+postctorT): Likewise.
1676
1677 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
1678
1679         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
1680         (round_str): Handle values above the maximum for IBM long double
1681         as inexact.
1682         * stdlib/tst-strtod-round.c (tests): Regenerated.
1683
1684 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1685
1686         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
1687         assembler flag.
1688         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
1689         zarch_nohighgprs around the zarch optimized routines.
1690         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
1691         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
1692         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
1693         for zarch.
1694
1695 2012-09-05  David S. Miller  <davem@davemloft.net>
1696
1697         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1698
1699         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
1700         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
1701         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
1702         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
1703         entries.
1704
1705 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1706
1707         * malloc/arena.c: Fold copyright years.
1708         * malloc/mcheck.c, malloc/memusage.c: Likewise.
1709
1710 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1711
1712         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
1713
1714 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1715
1716         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
1717
1718 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1719
1720         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
1721         change internal state upon failure.
1722
1723 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1724
1725         * malloc/mcheck.c (mcheck_check_all): Fix typo.
1726         * malloc/memusage.c (mmap): Likewise.
1727         (mmap64, mremap): Likewise.  Adjust name in comment.
1728
1729 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
1730
1731         * libio/fileops.c: Fix typos in comments.
1732         * libio/oldfileops.c: Likewise.
1733         * libio/wfileops.c: Likewise.
1734
1735 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
1736
1737         [BZ #1349]
1738         * malloc/Makefile (tests): Add tst-malloc-usable test case.
1739         (tst-malloc-usable-ENV): Set environment for test case.
1740         * malloc/hooks.c (malloc_check_get_size): New function to get
1741         requested size.
1742         * malloc/malloc.c (musable): Use malloc_check_get_size.
1743         * malloc/tst-malloc-usable.c: New test case.
1744
1745 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
1746
1747         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
1748
1749 2012-09-05  Allan McRae  <allan@archlinux.org>
1750
1751         [BZ #13966]
1752         * configure.in (CXX_SYSINCLUDES): Use compiler output to
1753         determine header location.
1754         * configure: Regenerated.
1755
1756 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
1757
1758         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
1759         float format.
1760         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
1761         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
1762         format.
1763         (test): Regenerate.
1764
1765 2012-09-04  David S. Miller  <davem@davemloft.net>
1766
1767         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
1768         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
1769         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
1770
1771 2012-09-04  Florian Weimer  <fweimer@redhat.com>
1772
1773         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
1774         failures.
1775
1776         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
1777
1778 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
1779
1780         [BZ #9914]
1781         * libio/iogetdelim.c: Include <limits.h>.
1782         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
1783         + len + 1 would overflow.
1784
1785 2012-09-03  Andreas Jaeger  <aj@suse.de>
1786
1787         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1788         * sysdeps/i386/fpu/libm-test-ulps: Update.
1789
1790 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1791
1792         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
1793         Add s_sinf-sse2, s_conf-sse2.
1794
1795         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
1796         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
1797         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
1798         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
1799
1800         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
1801         for using routine as __sinf_ia32.
1802         Use macro for function declaration and weak_alias.
1803         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
1804         for using routine as __cosf_ia32.
1805         Use macro for function declaration and weak_alias.
1806
1807         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
1808         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
1809
1810         * sysdeps/x86_64/fpu/s_sinf.S: New file.
1811         * sysdeps/x86_64/fpu/s_cosf.S: New file.
1812         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1813
1814         * math/libm-test.inc (cos_test): Add more test cases.
1815         (sin_test): Likewise.
1816         (sincos_test): Likewise.
1817
1818 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1819
1820         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
1821         (IFUNC_RESOLVE): Make pointers to the specialized implementations
1822         hidden.
1823         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
1824
1825 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
1826
1827         [BZ #14538]
1828         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
1829         first element of the GOT.
1830         (elf_machine_load_address): Return the difference between
1831         the runtime address of _DYNAMIC and elf_machine_dynamic ().
1832
1833 2012-09-01  Allan McRae  <allan@archlinux.org>
1834
1835         [BZ #13412]
1836         * configure.in (AWK): Require gawk version 3.0 or later.
1837         * configure: Regenerated.
1838
1839 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
1840
1841         * sysdeps/unix/sysv/linux/kernel-features.h
1842         (__ASSUME_POSIX_CPU_TIMERS): Remove.
1843         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
1844         [__NR_clock_getres]: Make code unconditional.
1845         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
1846         (clock_getcpuclockid): Remove code left unreachable by removal of
1847         conditionals.
1848         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
1849         code unconditional.
1850         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
1851         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
1852         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
1853         Make code unconditional.
1854         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
1855         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
1856         * sysdeps/unix/sysv/linux/clock_settime.c
1857         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
1858         conditional code.
1859         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
1860         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
1861
1862 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
1863
1864         [BZ #14476]
1865         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
1866         scripts/test-installation.pl.
1867
1868         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
1869         and $ld_so_version if it is set.
1870
1871 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
1872
1873         [BZ #14516]
1874         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
1875         failure if reading from procfs failed.
1876         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
1877
1878 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
1879
1880         * sysdeps/unix/sysv/linux/kernel-features.h
1881         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
1882         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
1883         Remove conditional code.
1884         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1885         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
1886         Remove conditional code.
1887         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1888         * sysdeps/unix/sysv/linux/i386/fxstat.c
1889         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
1890         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1891         * sysdeps/unix/sysv/linux/i386/fxstatat.c
1892         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
1893         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1894         * sysdeps/unix/sysv/linux/i386/lxstat.c
1895         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
1896         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1897         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
1898         Remove conditional code.
1899         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1900         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
1901         Remove conditional code.
1902         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1903         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
1904         <kernel-features.h>.
1905         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
1906         Remove.
1907         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
1908         Remove conditional code.
1909         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
1910         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
1911         Remove conditional.
1912
1913 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
1914
1915         [BZ #5400]
1916         * NEWS: Add fixed bug number.
1917
1918 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
1919
1920         [BZ #14519]
1921         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
1922         underflowing exponent in case of negative sign.
1923         * stdlib/tst-strtod-round-data: Add more tests.
1924         * stdlib/tst-strtod-round.c (tests): Regenerated.
1925
1926         [BZ #3479]
1927         * stdlib/strtod_l.c (NDIG): Remove.
1928         (HEXNDIG): Likewise.
1929         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
1930         smallest representable value.
1931         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
1932         lie within an exact representation of 1/2 ulp of the result.
1933         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
1934         unconditionally.
1935         (TENS_P9_IDX): Define unconditionally.
1936         (TENS_P9_SIZE): Likewise.
1937         (TENS_P10_IDX): Likewise.
1938         (TENS_P10_SIZE): Likewise.
1939         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
1940         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
1941         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
1942         entries for 10^2^13 and 10^2^14.
1943         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
1944         (TENS_P13_IDX): Define.
1945         (TENS_P13_SIZE): Likewise.
1946         (TENS_P14_IDX): Likewise.
1947         (TENS_P14_SIZE): Likewise.
1948         (_fpioconst_pow10): Change array size to
1949         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
1950         unconditional.
1951         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
1952         1024]: Add entries for 10^2^13 and 10^2^14.
1953         [LAST_POW10 > _LAST_POW10]: Remove #error.
1954         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
1955         (_fpioconst_pow10): Change array size to
1956         FPIOCONST_POW10_ARRAY_SIZE.
1957         * stdlib/gen-fpioconst.c: New file.
1958         * stdlib/gen-tst-strtod-round.c: Likewise.
1959         * stdlib/tst-strtod-round-data: Likewise.
1960         * stdlib/tst-strtod-round.c: Likewise.
1961         * stdlib/Makefile (tests): Add tst-strtod-round.
1962
1963         [BZ #14459]
1964         * stdlib/strtod_l.c: Include <stdint.h>.
1965         (NDEBUG): Do not define.
1966         (round_and_return): Change EXPONENT parameter to type intmax_t.
1967         Rearrange calculations to avoid internal overflow possibilities.
1968         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
1969         Rearrange calculations to avoid internal overflow possibilities.
1970         Assert that number fits inside MPNSIZE limbs.
1971         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
1972         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
1973         calculations and add assertions to avoid internal overflow
1974         possibilities.  Add casts to avoid signed/unsigned operations.
1975         * stdlib/tst-strtod-overflow.c: New file.
1976         * stdlib/Makefile (tests): Add tst-strtod-overflow.
1977
1978 2012-08-25  Marek Polacek  <polacek@redhat.com>
1979
1980         * time/time.h: Fix some typos in comments.
1981
1982 2012-08-23  Roland McGrath  <roland@hack.frob.com>
1983
1984         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
1985         * posix/tst-rfc3484-2.c: Likewise.
1986         * posix/tst-rfc3484-3.c: Likewise.
1987
1988 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
1989
1990         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
1991         (EF_ARM_ABI_FLOAT_HARD): Likewise.
1992
1993 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
1994
1995         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
1996         #include of fxstatat64.c.
1997
1998 2012-08-22  Roland McGrath  <roland@hack.frob.com>
1999
2000         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
2001         * shadow/getspent_r.c: Likewise.
2002         * shadow/getspnam.c: Likewise.
2003         * shadow/getspnam_r.c: Likewise.
2004         * gshadow/getsgent.c: Likewise.
2005         * gshadow/getsgent_r.c: Likewise.
2006         * gshadow/getsgnam.c: Likewise.
2007         * gshadow/getsgnam_r.c: Likewise.
2008         * inet/getnetbyad.c: Likewise.
2009         * inet/getnetbyad_r.c: Likewise.
2010         * inet/getnetbynm.c: Likewise.
2011         * inet/getnetbynm_r.c: Likewise.
2012         * inet/getnetent.c: Likewise.
2013         * inet/getnetent_r.c: Likewise.
2014         * inet/getproto.c: Likewise.
2015         * inet/getproto_r.c: Likewise.
2016         * inet/getprtent.c: Likewise.
2017         * inet/getprtent_r.c: Likewise.
2018         * inet/getprtname.c: Likewise.
2019         * inet/getprtname_r.c: Likewise.
2020         * inet/getrpcbyname.c: Likewise.
2021         * inet/getrpcbyname_r.c: Likewise.
2022         * inet/getrpcbynumber.c: Likewise.
2023         * inet/getrpcbynumber_r.c: Likewise.
2024         * inet/getrpcent.c: Likewise.
2025         * inet/getrpcent_r.c: Likewise.
2026         * inet/getaliasent.c: Likewise.
2027         * inet/getaliasent_r.c: Likewise.
2028         * inet/getaliasname.c: Likewise.
2029         * inet/getaliasname_r.c: Likewise.
2030         * nscd/getgrgid_r.c: Likewise.
2031         * nscd/getgrnam_r.c: Likewise.
2032         * nscd/gethstbyad_r.c: Likewise.
2033         * nscd/gethstbynm3_r.c: Likewise.
2034         * nscd/getpwnam_r.c: Likewise.
2035         * nscd/getpwuid_r.c: Likewise.
2036         * nscd/getsrvbynm_r.c: Likewise.
2037         * nscd/getsrvbypt_r.c: Likewise.
2038         * nscd/gai.c: Likewise.
2039
2040         * configure.in (build_nscd): New substituted variable, set
2041         by --disable-build-nscd and defaults to $use_nscd.
2042         * configure: Regenerated.
2043         * config.make.in (build-nscd): New substituted variable.
2044         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
2045         Change conditional to require [$(build-nscd) = yes] as well.
2046         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
2047
2048         [BZ# 13696]
2049         * configure.in (use_nscd): New substituted variable, set by
2050         --disable-nscd.  If enabled, define USE_NSCD.
2051         * configure: Regenerated.
2052         * config.h.in: Add USE_NSCD.
2053         * config.make.in (use-nscd): New substituted variable.
2054         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
2055         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
2056         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
2057         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
2058         (CFLAGS-getgrnam_r.c): Likewise.
2059         (CFLAGS-initgroups.c): Likewise.
2060         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
2061         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
2062         Variables removed.
2063         * inet/getnetgrent_r.c
2064         (nscd_setnetgrent): New function, broken out of ...
2065         (setnetgrent): ... here.  Call it.
2066         (innetgr): Conditionalize nscd bits on [USE_NSCD].
2067         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
2068         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
2069         * nscd/Makefile (routines, aux): Move definitions after include of
2070         Makeconfig.  Conditionalize on [$(use-nscd) != no].
2071         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
2072         Conditionalize on [USE_NSCD].
2073         (is_nscd, nscd_init_cb): Likewise.
2074         (nss_load_library): Conditionalize init callback on [USE_NSCD].
2075         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
2076         * nss/nss_db/db-init.c: Likewise.
2077         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
2078         [USE_NSCD].
2079         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
2080         (make_request): Use it.
2081         (cache_valid_p): New function.
2082         (__check_pf): Use it.
2083         * NEWS: Add item for --disable-nscd.
2084
2085 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
2086
2087         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
2088         to support sed >= 4.2.1-20-ga9bf076.
2089         * configure: Regenerated.
2090
2091 2012-08-22  Roland McGrath  <roland@hack.frob.com>
2092
2093         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
2094         Conditionalize whole body on [IREL].
2095
2096 2012-08-22  Jeff Law <law@redhat.com>
2097
2098         [BZ #14505]
2099         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
2100         if the family is PF_UNSPEC.
2101
2102 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
2103
2104         * Makerules (lib-version): Rename from V.
2105         (install-lib-nosubdir): Change V to lib-version.
2106
2107 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
2108
2109         [BZ #14252]
2110         * powerpc32/power6/wcschr.c: New file.
2111         * powerpc32/power6/wcscpy.c: New file.
2112         * powerpc32/power6/wcsrchr.c: New file.
2113         * powerpc64/power6/wcschr.c: New file.
2114         * powerpc64/power6/wcscpy.c: New file.
2115         * powerpc64/power6/wcsrchr.c: New file.
2116
2117 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
2118
2119         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
2120         (two_way_short_needle): Use it.
2121         * string/strstr.c (AVAILABLE1_USES_J): Define.
2122         * string/strcasestr.c: Likewise.
2123
2124         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
2125         array references.
2126         * string/strcasestr.c (TOLOWER): Make side-effect safe.
2127
2128         [BZ #11607]
2129         * NEWS: Add an entry.
2130         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
2131         define their defaults.
2132         (two_way_short_needle): Detect end-of-string on-the-fly.
2133         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
2134         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
2135         * string/bug-strcasestr1.c: New test.
2136         * string/Makefile: Run it.
2137
2138 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
2139
2140         [BZ #11607]
2141         * string/str-two-way.h (two_way_short_needle): Optimize matching of
2142         the first character.
2143
2144 2012-08-21  Roland McGrath  <roland@hack.frob.com>
2145
2146         * csu/elf-init.c (__libc_csu_irel): Function removed.
2147         * csu/libc-start.c (apply_irel): New function.
2148         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
2149
2150 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
2151
2152         * sysdeps/unix/sysv/linux/kernel-features.h
2153         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
2154         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
2155         <kernel-features.h>.
2156         [__NR_fadvise64_64]: Make code unconditional.
2157         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
2158         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
2159         !__NR_fadvise64_64)]: Likewise.
2160         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
2161         !__NR_fadvise64_64))]: Likewise.
2162         [__NR_fadvise64]: Make code unconditional.
2163         [!__NR_fadvise64]: Remove conditional code.
2164         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
2165         <kernel-features.h>.
2166         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
2167         unconditional.
2168         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
2169         conditional code.
2170         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
2171         not include <kernel-features.h>.
2172         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
2173         unconditional.
2174         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
2175         conditional code.
2176         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
2177         include <kernel-features.h>.
2178         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
2179         unconditional.
2180         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
2181         conditional code.
2182
2183 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
2184
2185         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
2186         slight instruction rearrangements per scrollpipe analysis.
2187         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
2188
2189 2012-08-20  Roland McGrath  <roland@hack.frob.com>
2190
2191         * manual/syslog.texi (syslog; vsyslog, closelog):
2192         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
2193         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
2194
2195         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
2196         DSOCAPS to match condition on defining it.
2197
2198 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
2199
2200         * sysdeps/unix/sysv/linux/kernel-features.h
2201         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
2202         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
2203         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
2204         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
2205         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
2206         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
2207         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
2208         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
2209         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
2210         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
2211
2212         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
2213         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
2214
2215         * sysdeps/unix/sysv/linux/kernel-features.h
2216         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
2217         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
2218         unconditional.
2219         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
2220         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
2221         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
2222         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
2223         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
2224         Make code unconditional.
2225         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
2226         (__mmap64) [!__NR_mmap2]: Likewise.
2227         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
2228         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
2229         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
2230         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
2231         [__NR_mmap2]: Make code unconditional.
2232         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
2233         (__mmap64) [!__NR_mmap2]: Likewise.
2234
2235 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2236
2237         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
2238
2239 2012-08-18  Andreas Jaeger  <aj@suse.de>
2240
2241         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
2242
2243 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
2244
2245         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
2246         * include/unistd.h (__have_sock_cloexec): Likewise.
2247         (__have_pipe2): Likewise.
2248         (__have_dup3): Likewise.
2249
2250 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
2251
2252         [BZ #9685]
2253         * include/unistd.h (__have_pipe2): Change define into an extern int.
2254         (__have_dup3): Likewise.
2255         * socket/have_sock_cloexec.c: Include fcntl.h.
2256         (__have_pipe2): New variable.
2257         (__have_dup3): Likewise.
2258
2259 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
2260
2261         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
2262
2263 2012-08-17  Marek Polacek  <polacek@redhat.com>
2264
2265         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
2266         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
2267
2268 2012-08-17  Roland McGrath  <roland@hack.frob.com>
2269
2270         * configure.in: Add AC_SUBST for sysheaders.
2271         * configure: Regenerated.
2272         * config.make.in (sysheaders): New substituted variable.
2273
2274         * sysdeps/unix/mkfifo.c: Moved ...
2275         * sysdeps/posix/mkfifo.c: ... here.
2276         * sysdeps/unix/mkfifoat.c: Moved ...
2277         * sysdeps/posix/mkfifoat.c: ... here.
2278
2279         * sysdeps/unix/utime.c: Moved ...
2280         * sysdeps/posix/utime.c: ... here.
2281
2282         * sysdeps/unix/time.c: Moved ...
2283         * sysdeps/posix/time.c: ... here.
2284         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
2285         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
2286
2287         * sysdeps/unix/nice.c: Moved ...
2288         * sysdeps/posix/nice.c: ... here.
2289
2290         * sysdeps/unix/alarm.c: Moved ...
2291         * sysdeps/posix/alarm.c: ... here.
2292
2293         * intl/Makefile ($(codeset_mo)): Depend on the input file.
2294
2295 2012-08-17  Jeff Law <law@redhat.com>
2296
2297         * intl/Makefile (codeset_mo): New variable.
2298         ($(codeset_mo)): New target.
2299         (tst-codeset.out): Depend on that.  Remove explicit rule.
2300         (tst-gettext3.out, tst-gettext5.out): Likewise.
2301         (LOCPATH-ENV, tst-codeset-ENV): New variables.
2302         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
2303         * intl/tst-codeset.sh: Remove.
2304         * intl/tst-gettext3.sh: Likewise.
2305         * intl/tst-gettext5.sh: Likewise.
2306
2307 2012-08-17  Roland McGrath  <roland@hack.frob.com>
2308
2309         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
2310         * sysdeps/unix/syscalls.list: ... here.
2311
2312         * sysdeps/posix/getaddrinfo.c
2313         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
2314         (gaiconf_init, gaiconf_reload): Use them.
2315         [!_STATBUF_ST_NSEC]
2316         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
2317         Define using time_t rather than struct timespec.
2318
2319         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
2320         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
2321         Macros removed.
2322         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
2323         [!NO_THREADS].
2324         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
2325         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
2326         Likewise.
2327
2328         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
2329         __libc_cleanup_push argument.
2330
2331         * bits/param.h: New file.
2332         * misc/sys/param.h: New file.
2333         * include/sys/param.h: New file.
2334         * misc/Makefile (headers): Add bits/param.h.
2335         * sysdeps/generic/sys/param.h: File removed.
2336         * sysdeps/unix/sysv/linux/bits/param.h: New file.
2337         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
2338         * sysdeps/mach/hurd/bits/param.h: New file.
2339         * sysdeps/mach/hurd/sys/param.h: New file.
2340
2341         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
2342         last change.
2343
2344         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
2345         [_IO_MTSAFE_IO].
2346         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
2347         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
2348         New macros.
2349
2350         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
2351         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
2352         rather than -D_IO_MTSAFE_IO conditionally.
2353         * stdio-common/Makefile (CPPFLAGS): Likewise.
2354         * wcsmbs/Makefile (CPPFLAGS): Likewise.
2355         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
2356         Use $(libio-mtsafe).
2357         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
2358         of -D_IO_MTSAFE_IO.
2359         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
2360         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
2361         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
2362         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
2363         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
2364         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
2365         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
2366         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
2367         (CFLAGS-fread_u_chk.c): Likewise.
2368         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
2369         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
2370         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
2371         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
2372         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
2373         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
2374         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
2375         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
2376         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
2377
2378         * libio/Makefile: Test [$(libc-reentrant) = yes]
2379         instead of [$(filter %REENTRANT, $(defines)) nonempty].
2380
2381         * Makeconfig
2382         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
2383         * sysdeps/pthread/configure: File removed.
2384         * sysdeps/pthread/Makeconfig: New file.
2385         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
2386         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
2387
2388 2012-08-16  Gary Benson  <gbenson@redhat.com>
2389
2390         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
2391         unmapping the first object in a namespace.
2392
2393 2012-08-16  Roland McGrath  <roland@hack.frob.com>
2394
2395         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
2396         (__internal_setnetgrent): ... this.  Add internal_function to
2397         definition.  Add libc_hidden_def.
2398         (setnetgrent): Update caller.
2399         (internal_endnetgrent): Renamed to ...
2400         (__internal_endnetgrent): ... this.  Add internal_function to
2401         definition.  Add libc_hidden_def.
2402         (endnetgrent): Update caller.
2403         (internal_getnetgrent_r): Renamed to ...
2404         (__internal_getnetgrent_r): ... this.  Add internal_function to
2405         definition.  Add libc_hidden_def.
2406         (__getnetgrent_r): Update caller.
2407         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
2408
2409 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
2410
2411         * stdlib/longlong.h: Update from GCC.
2412
2413 2012-08-16  Roland McGrath  <roland@hack.frob.com>
2414
2415         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
2416         on _QL, which is set by umul_ppmm but never used.
2417         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
2418         variables, which are set by GMP macros but never used.
2419         * stdio-common/_itowa.c (_itowa): Likewise.
2420         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
2421         * stdlib/mod_1.c (mpn_mod_1): Likewise.
2422
2423 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
2424
2425         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
2426         struct La_sh_regs is not constant.
2427         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
2428         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
2429         and struct La_sparc64_regs are not constant.
2430
2431 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
2432
2433         * sysdeps/unix/sysv/linux/kernel-features.h
2434         (__ASSUME_POSIX_TIMERS): Remove.
2435         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
2436         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2437         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
2438         Make code unconditional.
2439         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2440         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
2441         Make code unconditional.
2442         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2443         * sysdeps/unix/sysv/linux/clock_nanosleep.c
2444         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
2445         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2446         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
2447         Make code unconditional.
2448         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2449         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
2450         (__libc_missing_posix_timers): Remove.
2451
2452 2012-08-15  Roland McGrath  <roland@hack.frob.com>
2453
2454         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
2455         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
2456
2457         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
2458
2459         * elf/dl-sym.c: Include <stdlib.h>.
2460
2461         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
2462         constants, which avoids warnings in 32-bit builds.
2463
2464         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
2465         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
2466
2467         * misc/lseek.c: File moved to ...
2468         * io/lseek.c: ... here.
2469
2470         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
2471
2472         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
2473         shifting LEN more than 31 bits at once.
2474
2475 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
2476
2477         [BZ #14195]
2478         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
2479         segmentation fault for a case of two empty input strings.
2480         * string/test-strncasecmp.c (check1): Renamed to...
2481         (bz12205): ...this.
2482         (bz14195): Add new testcase for two empty input strings and N > 0.
2483         (test_main): Call new testcase, adapt for renamed function.
2484
2485 2012-08-15  Andreas Jaeger  <aj@suse.de>
2486
2487         [BZ #14090]
2488         * crypt/md5test2.c: New test, based on test supplied by Serge
2489         Belyshev <belyshev@depni.sinp.msu.ru>.
2490         * crypt/Makefile (xtests): Add md5test-giant..
2491         * crypt/Makefile ($(objpfx)md5test-giant): Add.
2492
2493 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
2494
2495         [BZ #14090]
2496         * crypt/md5.c (md5_process_block): Don't assume the buffer
2497         length is less than 2**32.
2498         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
2499         length is less than 2**64.
2500
2501 2012-08-15  Roland McGrath  <roland@hack.frob.com>
2502
2503         * string/str-two-way.h: Include <sys/param.h>.
2504         (MAX): Macro removed.
2505
2506         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
2507         Move #define and #undef of memmove to just before and after
2508         including <string.h>.
2509
2510         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
2511         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
2512         and after including <string.h>.  Move declarations of
2513         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
2514         to before #include "string/memmove.c".
2515
2516         * include/dirent.h: Declare __getdirentries.
2517
2518         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
2519         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
2520
2521 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
2522
2523         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
2524         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
2525         * sysdeps/i386/configure: Regenerated.
2526         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
2527         STABS_CURRENT_FILE, and STABS_FUN.
2528         (END): Remove call to STABS_FUN_END.
2529         (STABS_CURRENT_FILE1): Delete.
2530         (STABS_CURRENT_FILE): Likewise.
2531         (STABS_FUN): Likewise.
2532         (STABS_FUN_END): Likewise.
2533         (STABS_FUN2): Likewise.
2534         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
2535         * sysdeps/x86_64/configure: Regenerated.
2536
2537 2012-08-14  Roland McGrath  <roland@hack.frob.com>
2538
2539         * elf/dl-open.c: Include <atomic.h>.
2540         * elf/dl-lookup.c: Likewise.
2541
2542 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
2543
2544         * sysdeps/unix/sysv/linux/kernel-features.h
2545         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
2546         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
2547         unconditionally.
2548         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
2549         unconditionally.
2550         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
2551         condition on __ASSUME_CLONE_THREAD_FLAGS.
2552
2553 2012-08-14  Andreas Jaeger  <aj@suse.de>
2554
2555         * sysdeps/i386/fpu/libm-test-ulps: Update.
2556
2557 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
2558
2559         * include/atomic.h (atomic_exchange_and_add): Split into ...
2560         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
2561         New atomic macros.
2562
2563 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
2564
2565         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2566
2567 2012-08-13  Jeff Law <law@redhat.com>
2568
2569         * manual/stdio.texi (snprintf): Clarify handling of the trailing
2570         null byte in the output string.
2571
2572 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
2573
2574         * sysdeps/unix/sysv/linux/kernel-features.h
2575         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
2576         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
2577         (__ASSUME_ARG_MAX_STACK_BASED): Define.
2578         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
2579         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
2580         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
2581         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
2582
2583 2012-08-09  Jeff Law <law@redhat.com>
2584
2585         [BZ #13939]
2586         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
2587         When avoid_arena is set, don't retry in the that arena.  Pick the
2588         next one, whatever it might be.
2589         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
2590         (arena_lock): Pass in new parameter to arena_get2.
2591         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
2592         arena_get2.
2593         (__libc_malloc): Unify retrying after main arena failure with
2594         __libc_memalign version.
2595         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
2596
2597 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
2598
2599         [BZ #14166]
2600         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
2601         to __redirect_strstr.
2602         (__strstr_sse42): Use typeof __redirect_strstr.
2603         (__strstr_ia32): Likewise.
2604         (__libc_strstr): New prototype.
2605         (strstr): Renamed to ...
2606         (__libc_strstr): This.
2607         (strstr): New strong alias of __libc_strstr.
2608         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
2609         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
2610         __redirect_time.
2611         Include <time.h>.
2612         (__libc_time): New prototype.
2613         (time_ifunc): Replace time with __libc_time.
2614         (time): New strong alias and hidden definition of __libc_time.
2615         (__GI_time): Remove strong alias.
2616         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
2617         Include <stddef.h>.
2618         (memmove): Redefined to __redirect_memmove.
2619         (__memmove_sse2): Use typeof __redirect_memmove.
2620         (__memmove_ssse3): Likewise.
2621         (__memmove_ssse3_back): Likewise.
2622         (__libc_memmove): New prototype.
2623         (memmove): Renamed to ...
2624         (__libc_memmove): This.
2625         (memmove): New strong alias of __libc_memmove.
2626
2627 2012-08-08  Mark Salter  <msalter@redhat.com>
2628
2629         * elf/elf.h
2630         (R_MN10300_TLS_GD): Define.
2631         (R_MN10300_TLS_LD): Likewise.
2632         (R_MN10300_TLS_LDO): Likewise.
2633         (R_MN10300_TLS_GOTIE): Likewise.
2634         (R_MN10300_TLS_IE): Likewise.
2635         (R_MN10300_TLS_LE): Likewise.
2636         (R_MN10300_TLS_DTPMOD): Likewise.
2637         (R_MN10300_TLS_DTPOFF): Likewise.
2638         (R_MN10300_TLS_TPOFF): Likewise.
2639         (R_MN10300_SYM_DIFF): Likewise.
2640         (R_MN10300_ALIGN): Likewise.
2641         (R_MN10300_NUM): Update.
2642
2643 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
2644
2645         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
2646         Remove.
2647
2648 2012-08-08  Roland McGrath  <roland@hack.frob.com>
2649
2650         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
2651
2652         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
2653         sysdeps/unix -> sysdeps/posix move.
2654         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
2655
2656 2012-08-07      Allan McRae     <allan@archlinux.org>
2657
2658         [BZ #14303]
2659         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
2660         (SUNOS_CPP): Likewise.
2661         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
2662         not found.
2663         (open_input): Call CPP using execvp.
2664
2665 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
2666
2667         * sysdeps/unix/sysv/linux/kernel-features.h
2668         (__ASSUME_PROT_GROWSUPDOWN): Remove.
2669         (__ASSUME_NO_CLONE_DETACHED): Likewise.
2670         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
2671         (__ASSUME_WAITID_SYSCALL): Likewise.
2672         * sysdeps/unix/sysv/linux/dl-execstack.c
2673         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
2674         code unconditional.
2675         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
2676         conditional code.
2677         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
2678         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
2679         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
2680         code.
2681         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
2682         unconditional.
2683         [__ASSUME_WAITID_SYSCALL]: Likewise.
2684         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
2685
2686 2012-08-07  Roland McGrath  <roland@hack.frob.com>
2687
2688         * sysdeps/unix/closedir.c: Renamed to ...
2689         * sysdeps/posix/closedir.c: ... here.
2690         * sysdeps/unix/dirfd.c: Renamed to ...
2691         * sysdeps/posix/dirfd.c: ... here.
2692         * sysdeps/unix/dirstream.h: Renamed to ...
2693         * sysdeps/posix/dirstream.h: ... here.
2694         * sysdeps/unix/fdopendir.c: Renamed to ...
2695         * sysdeps/posix/fdopendir.c: ... here.
2696         * sysdeps/unix/opendir.c: Renamed to ...
2697         * sysdeps/posix/opendir.c: ... here.
2698         * sysdeps/unix/readdir.c: Renamed to ...
2699         * sysdeps/posix/readdir.c: ... here.
2700         * sysdeps/unix/readdir_r.c: Renamed to ...
2701         * sysdeps/posix/readdir_r.c: ... here.
2702         * sysdeps/unix/rewinddir.c: Renamed to ...
2703         * sysdeps/posix/rewinddir.c: ... here.
2704         * sysdeps/unix/seekdir.c: Renamed to ...
2705         * sysdeps/posix/seekdir.c: ... here.
2706         * sysdeps/unix/telldir.c: Renamed to ...
2707         * sysdeps/posix/telldir.c: ... here.
2708         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
2709         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
2710         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
2711         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
2712
2713         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
2714         * bits/fcntl.h: ... here.
2715
2716         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
2717         not 0.
2718         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
2719         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
2720         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
2721         (struct flock): Move l_start, l_len to the beginning.
2722         Use __pid_t for l_pid.
2723         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
2724         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
2725         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
2726         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
2727         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
2728         [__USE_LARGEFILE64] (struct flock64): New type.
2729         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
2730
2731         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
2732         * bits/dirent.h: ... here.
2733
2734         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
2735         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
2736
2737 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
2738
2739         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
2740         Change from 2.6.0 to 2.6.16.
2741         * sysdeps/unix/sysv/linux/configure: Regenerated.
2742         * sysdeps/unix/sysv/linux/kernel-features.h
2743         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
2744         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
2745         version.
2746         (__ASSUME_UTIMES): Likewise.
2747         (__ASSUME_CLONE_STOPPED): Remove.
2748         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
2749         architectures, not kernel version.
2750         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
2751         (__ASSUME_NO_CLONE_DETACHED): Likewise.
2752         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
2753         (__ASSUME_WAITID_SYSCALL): Likewise.
2754         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
2755         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
2756         * README: State 2.6.16 as minimum Linux kernel version.  Do not
2757         refer to older versions.
2758
2759 2012-08-06  Roland McGrath  <roland@hack.frob.com>
2760
2761         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
2762         Define alphasort64 as an alias.
2763         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
2764         Define versionsort64 as an alias.
2765         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
2766         Define scandir64 as an alias.
2767         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
2768         Define scandirat64 as an alias.
2769         * dirent/alphasort64.c (alphasort64):
2770         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
2771         * dirent/versionsort64.c: Likewise.
2772         * dirent/scandir64.c: Likewise.
2773         * dirent/scandirat64.c: Likewise.
2774         * sysdeps/wordsize-64/alphasort.c: File removed.
2775         * sysdeps/wordsize-64/alphasort64.c: File removed.
2776         * sysdeps/wordsize-64/scandir.c: File removed.
2777         * sysdeps/wordsize-64/scandir64.c: File removed.
2778         * sysdeps/wordsize-64/scandirat.c: File removed.
2779         * sysdeps/wordsize-64/scandirat64.c: File removed.
2780         * sysdeps/wordsize-64/versionsort.c: File removed.
2781         * sysdeps/wordsize-64/versionsort64.c: File removed.
2782         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
2783         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
2784         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
2785         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
2786         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
2787         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
2788         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
2789         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
2790
2791         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
2792         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
2793         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
2794         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
2795         [defined __arch64__ || defined __sparcv9]
2796         (__INO_T_MATCHES_INO64_T): New macro.
2797         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
2798         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
2799         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
2800         * sysdeps/unix/sysv/linux/bits/dirent.h
2801         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
2802         (_DIRENT_MATCHES_DIRENT64): New macro.
2803
2804         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
2805         Define lockf64 as an alias.
2806         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
2807         Define fseeko64 as an alias.
2808         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
2809         Define ftello64 as an alias.
2810         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
2811         Define _IO_fgetpos64 and fgetpos64 as aliases.
2812         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
2813         Define _IO_fsetpos64 and fsetpos64 as aliases.
2814         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
2815         Conditionalize body on this.
2816         * libio/fseeko64.c: Likewise.
2817         * libio/ftello64.c: Likewise.
2818         * libio/iofgetpos64.c: Likewise.
2819         * libio/iofsetpos64.c: Likewise.
2820         * sysdeps/wordsize-64/lockf.c: File removed.
2821         * sysdeps/wordsize-64/lockf64.c: File removed.
2822         * sysdeps/wordsize-64/fseeko.c: File removed.
2823         * sysdeps/wordsize-64/fseeko64.c: File removed.
2824         * sysdeps/wordsize-64/ftello.c: File removed.
2825         * sysdeps/wordsize-64/ftello64.c: File removed.
2826         * sysdeps/wordsize-64/iofgetpos.c: File removed.
2827         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
2828         * sysdeps/wordsize-64/iofsetpos.c: File removed.
2829         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
2830         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
2831         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
2832         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
2833         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
2834         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
2835         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
2836         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
2837         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
2838         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
2839         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
2840
2841         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
2842         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
2843         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
2844         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
2845         [defined __arch64__ || defined __sparcv9]
2846         (__OFF_T_MATCHES_OFF64_T): New macro.
2847         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
2848         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
2849         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
2850         (__OFF_T_MATCHES_OFF64_T): New macro.
2851
2852 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
2853
2854         * stdlib/secure-getenv.c (__secure_getenv): Replace
2855         GLIBC_2_16 with GLIBC_2_17.
2856
2857 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
2858
2859         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
2860         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
2861
2862 2012-08-03  David S. Miller  <davem@davemloft.net>
2863
2864         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2865
2866 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
2867
2868         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
2869         Remove.
2870         (__ASSUME_CORRECT_SI_PID): Likewise.
2871         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
2872         (__ASSUME_TMPFS_NAME): Likewise.
2873         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
2874         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
2875         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
2876         (HAVE_AUX_SECURE): Make definition unconditional.
2877         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
2878         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
2879
2880 2012-08-03  Roland McGrath  <roland@hack.frob.com>
2881
2882         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
2883         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
2884         * sysdeps/mach/hurd/eloop-threshold.h: New file.
2885         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
2886         __eloop_threshold instead of SYMLOOP_MAX.
2887
2888         * sysdeps/generic/eloop-threshold.h: New file.
2889         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
2890         of MAXSYMLINKS.
2891         * elf/chroot_canon.c (chroot_canon): Likewise.
2892
2893 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
2894
2895         [BZ #13717]
2896         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
2897         Change to 2.6.0 everywhere.
2898         * sysdeps/unix/sysv/linux/configure: Regenerated.
2899         * sysdeps/unix/sysv/linux/kernel-features.h
2900         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
2901         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
2902         kernel versions.
2903         (__ASSUME_POSIX_TIMERS): Define unconditionally.
2904         (__ASSUME_FUTEX_REQUEUE): Remove.
2905         (__ASSUME_STATFS64): Define unconditionally.
2906         (__ASSUME_AT_SECURE): Likewise.
2907         (__ASSUME_CORRECT_SI_PID): Likewise.
2908         (__ASSUME_TGKILL): Define without depending on kernel version for
2909         i386.
2910         (__ASSUME_UTIMES): Likewise.
2911         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
2912         kernel version.
2913         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
2914         (__ASSUME_TMPFS_NAME): Likewise.
2915         * README: Update reference to Linux kernel versions.
2916
2917 2012-08-02  Marek Polacek  <polacek@redhat.com>
2918
2919         [BZ# 14150]
2920         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
2921         libc_cv_asm_type_prefix with %.
2922         * configure: Regenerated.
2923         * include/libc-symbols.h: Remove comment about
2924         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
2925         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
2926         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
2927         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
2928         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
2929         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
2930         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
2931         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
2932         * elf/tst-unique2mod1.c: Likewise.
2933         * elf/tst-unique1mod2.c: Likewise.
2934         * elf/tst-unique1mod1.c: Likewise.
2935         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
2936         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
2937         Replace ASM_TYPE_DIRECTIVE with .type.
2938         * sysdeps/s390/s390-64/sysdep.h: Likewise.
2939         * sysdeps/i386/sysdep.h: Likewise.
2940         * sysdeps/x86_64/sysdep.h: Likewise.
2941         * sysdeps/sh/sysdep.h: Likewise.
2942         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
2943         Do not define ASM_TYPE_DIRECTIVE.
2944         * sysdeps/powerpc/sysdep.h: Likewise.
2945         * sysdeps/powerpc/powerpc32/sysdep.h:
2946         Replace ASM_TYPE_DIRECTIVE with .type.
2947         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
2948         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
2949         * sysdeps/i386/fpu/e_powf.S: Likewise.
2950         * sysdeps/i386/fpu/e_expl.S: Likewise.
2951         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
2952         * sysdeps/i386/fpu/e_acosh.S: Likewise.
2953         * sysdeps/i386/fpu/e_pow.S: Likewise.
2954         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
2955         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
2956         * sysdeps/i386/fpu/s_expm1.S: Likewise.
2957         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
2958         * sysdeps/i386/fpu/e_log2.S: Likewise.
2959         * sysdeps/i386/fpu/e_log2l.S: Likewise.
2960         * sysdeps/i386/fpu/e_scalb.S: Likewise.
2961         * sysdeps/i386/fpu/e_powl.S: Likewise.
2962         * sysdeps/i386/fpu/e_log10f.S: Likewise.
2963         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
2964         * sysdeps/i386/fpu/e_logl.S: Likewise.
2965         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
2966         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
2967         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
2968         * sysdeps/i386/fpu/e_log2f.S: Likewise.
2969         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
2970         * sysdeps/i386/fpu/e_log.S: Likewise.
2971         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
2972         * sysdeps/i386/fpu/e_logf.S: Likewise.
2973         * sysdeps/i386/fpu/e_log10l.S: Likewise.
2974         * sysdeps/i386/fpu/e_atanh.S: Likewise.
2975         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
2976         * sysdeps/i386/fpu/e_log10.S: Likewise.
2977         * sysdeps/i386/fpu/s_frexp.S: Likewise.
2978         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
2979         * sysdeps/i386/fpu/s_asinh.S: Likewise.
2980         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
2981         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
2982         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
2983         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
2984         * sysdeps/i386/i686/strtok.S: Likewise.
2985         * sysdeps/i386/i386-mcount.S: Likewise.
2986         * sysdeps/i386/strtok.S: Likewise.
2987         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
2988         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
2989         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
2990         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
2991         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
2992         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
2993         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
2994         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
2995         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
2996         * sysdeps/x86_64/_mcount.S: Likewise.
2997         * sysdeps/x86_64/strtok.S: Likewise.
2998         * sysdeps/sh/_mcount.S: Likewise.
2999
3000 2012-08-01  Roland McGrath  <roland@hack.frob.com>
3001
3002         * libio/iofopen.c: Include <fcntl.h>.
3003         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
3004         (_IO_fopen64, fopen64): Define as aliases.
3005         * libio/iofopen64.c: Include <fcntl.h>.
3006         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
3007         Conditionalize body on this.
3008         * sysdeps/wordsize-64/iofopen.c: File removed.
3009         * sysdeps/wordsize-64/iofopen64.c: File removed.
3010
3011 2012-08-01  Marek Polacek  <polacek@redhat.com>
3012
3013         * libc/Makeconfig: Use elf in place of binfmt-subdir.
3014         Use dlfcn directly instead of a variable.
3015         (binfmt-subdir): Do not define.
3016         (dlfcn): Likewise.
3017
3018 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
3019
3020         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
3021         Remove all definitions.
3022         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
3023         <kernel-features.h>.
3024         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
3025         (miss_F_GETOWN_EX): Remove all definitions.
3026         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
3027         macro definition.
3028         [!__ASSUME_FCNTL64]: Remove conditional code.
3029         [__ASSUME_FCNTL64]: Make code unconditional.
3030         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
3031         <kernel-features.h>.
3032         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
3033         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
3034         (lockf64) [__NR_fcntl64]: Make code unconditional.
3035         (lockf64) [__ASSUME_FCNTL64]: Likewise.
3036
3037         * sysdeps/unix/sysv/linux/kernel-features.h
3038         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
3039         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
3040         Make code unconditional.
3041         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
3042         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
3043         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
3044         [__NR_vfork]: Make code unconditional.
3045         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
3046         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
3047         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
3048         [__NR_vfork]: Make code unconditional.
3049         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
3050         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
3051
3052 2012-08-01  Roland McGrath  <roland@hack.frob.com>
3053
3054         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
3055         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
3056
3057         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
3058         Define mkstemp64 as an alias.
3059         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
3060         Define mkstemps64 as an alias.
3061         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
3062         Define mkostemp64 as an alias.
3063         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
3064         Define mkostemps64 as an alias.
3065         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
3066         Conditionalize body on this.
3067         * misc/mkostemp64.c: Likewise.
3068         * misc/mkostemps64.c: Likewise.
3069         * misc/mkstemps64.c: Likewise.
3070         * sysdeps/wordsize-64/mkstemp64.c: File removed.
3071         * sysdeps/wordsize-64/mkostemp64.c: File removed.
3072         * sysdeps/wordsize-64/mkostemp.c: File removed.
3073         * sysdeps/wordsize-64/mkstemp.c: File removed.
3074         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
3075         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
3076         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
3077         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
3078
3079         [BZ #14138]
3080         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
3081         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
3082         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
3083         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
3084
3085         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
3086         compat_symbol macros from <shlib-compat.h> rather than the underlying
3087         default_symbol_version and symbol_version macros, so that DEFAULT
3088         lines in shlib-versions are respected.
3089         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
3090
3091 2012-08-01  Florian Weimer  <fweimer@redhat.com>
3092
3093         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
3094         Declare with warn_unused_result.
3095         (setgid, setregid, setegid, setresgid): Likewise.
3096         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
3097         Likewise.
3098         * WUR-REPORT: Remove set*id functions.
3099
3100 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
3101
3102         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
3103
3104 2012-07-31  Roland McGrath  <roland@hack.frob.com>
3105
3106         * include/sys/socket.h (__libc_accept, __libc_accept4):
3107         Add attribute_hidden.
3108         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
3109
3110         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
3111         use of PTR_MANGLE.
3112         * inet/getnetgrent_r.c (setup): Likewise.
3113
3114         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
3115
3116 2012-07-31  David S. Miller  <davem@davemloft.net>
3117
3118         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3119
3120 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
3121
3122         [BZ #13629]
3123         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
3124         value between 1.0 and 2.0 and smaller part has absolute value less
3125         than 1.0.
3126         * math/s_clog10.c (__clog10): Likewise.
3127         * math/s_clog10f.c (__clog10f): Likewise.
3128         * math/s_clog10l.c (__clog10l): Likewise.
3129         * math/s_clogf.c (__clogf): Likewise.
3130         * math/s_clogl.c (__clogl): Likewise.
3131         * math/libm-test.inc (clog_test): Add more tests.
3132         (clog10_test): Likewise.
3133         * sysdeps/i386/fpu/libm-test-ulps: Update.
3134         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3135
3136 2012-07-31  Florian Weimer  <fweimer@redhat.com>
3137
3138         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
3139         Exit with zero in case no suitable GID is found, and write a
3140         message to standard error.
3141
3142 2012-07-30  Roland McGrath  <roland@hack.frob.com>
3143
3144         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
3145         rather than to 1.
3146         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
3147         (MAXPATHLEN): Removed.
3148         (NOGROUP, NODEV): New macros.
3149         (setbit, clrbit, isset, isclr): New macros.
3150         (howmany, roundup, powerof2): New macros.
3151         (DEV_BSIZE): New macro.
3152
3153         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
3154         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
3155
3156         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
3157         definition on [!__NO_LONG_DOUBLE_MATH].
3158
3159         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
3160         PTR_MANGLE and PTR_DEMANGLE.
3161
3162         * socket/accept4.c (accept4): Rename to __libc_accept4.
3163         Define accept4 as a weak alias.
3164
3165         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
3166         on [_DIRENT_HAVE_D_TYPE].
3167         * io/ftw.c (ftw_dir): Likewise.
3168
3169         * io/xmknod.c (__xmknod): Don't check PATH for being null.
3170
3171         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
3172
3173         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
3174         Use the BSD numbers rather than the arbitrary ones we had.
3175         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
3176         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
3177         (SIGXCPU, SIGXFSZ): New macros.
3178         (_NSIG): Now 32.
3179
3180         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
3181         initializer on [_LIBC_REENTRANT].
3182
3183         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
3184         definitions inside [_POSIX_MAPPED_FILES].
3185
3186         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
3187
3188         * dirent/opendir.c: Include <fcntl.h>.
3189
3190         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
3191         (__libc_getspecific): Likewise.
3192         (__libc_key_create): Likewise.
3193
3194         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
3195         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
3196         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
3197         (tmpfile64): Define as alias.
3198         * sysdeps/wordsize-64/tmpfile.c: File removed.
3199         * sysdeps/wordsize-64/tmpfile64.c: File removed.
3200         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
3201         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
3202
3203         * stdio-common/vfscanf.c: Include <stdbool.h>.
3204         * nss/makedb.c: Likewise.
3205         * stdio-common/_i18n_number.h: Likewise.
3206         * argp/argp-help.c: Likewise.
3207         * posix/wordexp.c: Likewise.
3208         * sysdeps/posix/spawni.c: Likewise.
3209         * nss/nss_files/files-initgroups.c: Likewise.
3210         * stdio-common/reg-modifier.c: Include <stdlib.h>.
3211         * nss/nss_files/files-initgroups.c: Likewise.
3212         * nss/nss_db/db-netgrp.c: Likewise.
3213         * nss/nss_db/db-initgroups.c: Likewise.
3214         * io/fchmodat.c: Include <sys/stat.h>.
3215
3216         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
3217         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
3218
3219         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
3220         [HAVE_MMAP].
3221
3222         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
3223         Add multiple inclusion protection.
3224
3225 2012-07-27  David S. Miller  <davem@davemloft.net>
3226
3227         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3228
3229 2012-07-27  Gary Benson  <gbenson@redhat.com>
3230
3231         [BZ #14298]
3232         * elf/rtld.c: Include <stap-probe.h>.
3233         (dl_main): Added static probes "init_start" and "init_complete".
3234         * elf/dl-load.c: Include <stap-probe.h>.
3235         (lose): Take new parameter "nsid".
3236         Added static probe "map_failed".
3237         (_dl_map_object_from_fd): Pass namespace id to lose.
3238         Added static probe "map_start".
3239         (open_verify): Pass namespace id to lose.
3240         * elf/dl-open.c: Include <stap-probe.h>.
3241         (dl_open_worker) Added static probes "map_complete", "reloc_start"
3242         and "reloc_complete".
3243         * elf/dl-close.c: Include <stap-probe.h>.
3244         (_dl_close_worker): Added static probes "unmap_start" and
3245         "unmap_complete".
3246         * elf/rtld-debugger-interface.txt: New file documenting the above.
3247
3248 2012-07-26  Roland McGrath  <roland@hack.frob.com>
3249
3250         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
3251         rather than a string variable.
3252         * sunrpc/rpc_main.c (h_output): Likewise.
3253         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
3254
3255 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
3256
3257         * inet/check_native.c: New file.
3258
3259 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
3260
3261         [BZ #13629]
3262         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
3263         if larger part has absolute value 1.0.
3264         * math/s_clog10.c (__clog10): Likewise.
3265         * math/s_clog10f.c (__clog10f): Likewise.
3266         * math/s_clog10l.c (__clog10l): Likewise.
3267         * math/s_clogf.c (__clogf): Likewise.
3268         * math/s_clogl.c (__clogl): Likewise.
3269         * math/libm-test.inc (clog_test): Add more tests.
3270         (clog10_test): Likewise.
3271         * sysdeps/i386/fpu/libm-test-ulps: Update.
3272         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3273
3274         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
3275         (pltexit): Likewise.
3276         (La_regs): Likewise.
3277         (La_retval): Likewise.
3278         (int_retval): Likewise.
3279         Update #error for removed macros to refer only to definitions in
3280         tst-audit.h.
3281         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
3282         macro.
3283         (pltexit): Likewise.
3284         (La_regs): Likewise.
3285         (La_retval): Likewise.
3286         (int_retval): Likewise.
3287         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
3288         macro.
3289         (pltexit): Likewise.
3290         (La_regs): Likewise.
3291         (La_retval): Likewise.
3292         (int_retval): Likewise.
3293         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
3294         macro.
3295         (pltexit): Likewise.
3296         (La_regs): Likewise.
3297         (La_retval): Likewise.
3298         (int_retval): Likewise.
3299         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
3300         macro.
3301         (pltexit): Likewise.
3302         (La_regs): Likewise.
3303         (La_retval): Likewise.
3304         (int_retval): Likewise.
3305         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
3306         macro.
3307         (pltexit): Likewise.
3308         (La_regs): Likewise.
3309         (La_retval): Likewise.
3310         (int_retval): Likewise.
3311         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
3312         macro.
3313         (pltexit): Likewise.
3314         (La_regs): Likewise.
3315         (La_retval): Likewise.
3316         (int_retval): Likewise.
3317         * sysdeps/generic/tst-audit.h: Update comment to refer only to
3318         macro definitions in tst-audit.h.
3319         * sysdeps/i386/tst-audit.h: New file.
3320         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
3321         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
3322         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
3323         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
3324         * sysdeps/sh/tst-audit.h: Likewise.
3325         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
3326         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
3327         * sysdeps/x86_64/tst-audit.h: Likewise.
3328
3329 2012-07-26  Andreas Jaeger  <aj@suse.de>
3330
3331         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
3332         ptrace.
3333
3334         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
3335         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
3336         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
3337         PTRACE_O_MASK.
3338         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
3339         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
3340         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
3341
3342         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
3343         value.
3344
3345         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
3346         _sigsys.
3347         (si_call_addr, si_syscall, si_arch): Define new macro.
3348         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
3349         _sigsys.
3350         (si_call_addr, si_syscall, si_arch): Define new marcro.
3351         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
3352         _sigsys.
3353         (si_call_addr, si_syscall, si_arch): Define new macro.
3354         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
3355         _sigsys.
3356         (si_call_addr, si_syscall, si_arch): Define new macro.
3357
3358 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
3359
3360         [BZ #13717]
3361         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
3362         Change to 2.4.21 where previously 2.4.1.
3363         * sysdeps/unix/sysv/linux/configure: Regenerated.
3364         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
3365         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
3366         Linux kernel version.
3367         (__ASSUME_STD_AUXV): Remove.
3368         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
3369         kernel version.
3370         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
3371         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
3372         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
3373         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
3374         (__ASSUME_NETLINK_SUPPORT): Likewise.
3375         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
3376         (__no_netlink_support): Remove conditional definition.
3377         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
3378         Remove.
3379         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
3380         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
3381         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
3382         (if_nameindex_ioctl): Remove.
3383         (if_nameindex_netlink): Do not handle __no_netlink_support.
3384         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
3385         code.
3386         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
3387         Remove conditional code.
3388         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
3389         code.
3390         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
3391         unconditional.
3392         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
3393         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
3394         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
3395         Remove.
3396         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
3397         [!__ASSUME_STD_AUXV]: Remove conditional code.
3398         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
3399         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
3400         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
3401         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
3402         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
3403         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
3404         code.
3405         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
3406         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
3407         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
3408         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
3409         conditional code.
3410         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
3411         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
3412         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
3413         code.
3414         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
3415         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
3416         conditional code.
3417         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
3418         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
3419         code unconditional.
3420         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3421         conditional code.
3422         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
3423         unconditional.
3424         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3425         conditional code.
3426         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
3427         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
3428         unconditional.
3429         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3430         conditional code.
3431         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
3432         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
3433         code unconditional.
3434         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3435         conditional code.
3436         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
3437         unconditional.
3438         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3439         conditional code.
3440         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
3441         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
3442         code unconditional.
3443         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3444         conditional code.
3445         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
3446         unconditional.
3447         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3448         conditional code.
3449
3450 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
3451
3452         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
3453         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
3454         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
3455         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
3456         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
3457         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
3458         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
3459         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
3460         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
3461         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
3462         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
3463         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
3464         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
3465         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
3466         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
3467         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
3468         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
3469         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
3470         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
3471         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
3472         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
3473         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
3474         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
3475
3476 2012-07-25  Florian Weimer  <fweimer@redhat.com>
3477
3478         * Versions.def: Add GLIBC_2.17.
3479         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
3480         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
3481         Introduce __libc_secure_getenv.
3482         * stdlib/Versions (2.17): Add secure_getenv
3483         (GLIBC_PRIVATE): Add __libc_secure_getenv.
3484         * stdlib/secure-getenv.c: Rename __secure_getenv to
3485         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
3486         symbol __secure_getenv for GLIBC_2.0.
3487         * stdlib/tst-secure-getenv.c: New.
3488         * stdlib/Makefile (tests): Add testcase.
3489         * manual/startup.texi (Environment Access): Document
3490         secure_getenv.
3491         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
3492         __libc_secure_getenv.
3493         * inet/ruserpass.c (ruserpass): Likewise.
3494         * malloc/mtrace.c (mtrace): Likewise.
3495         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
3496         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
3497         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
3498         * sysdeps/posix/tempname.c: Likewise.  Evaluate
3499         HAVE_SECURE_GETENV.
3500         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
3501         __secure_getenv to __libc_secure_getenv.
3502         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
3503         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
3504         Likewise.
3505         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
3506         Likewise.
3507         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
3508         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
3509         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
3510         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
3511         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
3512         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
3513         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
3514
3515 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
3516
3517         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
3518         (struct La_i86_retval): Likewise.
3519         (struct La_x86_64_regs): Likewise.
3520         (struct La_x86_64_retval): Likewise.
3521         (struct La_x32_regs): Likewise.
3522         (struct La_x32_retval): Likewise.
3523         (struct La_ppc32_regs): Likewise.
3524         (struct La_ppc32_retval): Likewise.
3525         (struct La_ppc64_regs): Likewise.
3526         (struct La_ppc64_retval): Likewise.
3527         (struct La_sh_regs): Likewise.
3528         (struct La_sh_retval): Likewise.
3529         (struct La_s390_32_regs): Likewise.
3530         (struct La_s390_32_retval): Likewise.
3531         (struct La_s390_64_regs): Likewise.
3532         (struct La_s390_64_retval): Likewise.
3533         (struct La_sparc32_regs): Likewise.
3534         (struct La_sparc32_retval): Likewise.
3535         (struct La_sparc64_regs): Likewise.
3536         (struct La_sparc64_retval): Likewise.
3537         (struct audit_ifaces): Remove architecture-specific pltenter and
3538         pltexit members.
3539         * sysdeps/i386/ldsodefs.h: New file.
3540         * sysdeps/powerpc/ldsodefs.h: Likewise.
3541         * sysdeps/s390/ldsodefs.h: Likewise.
3542         * sysdeps/sh/ldsodefs.h: Likewise.
3543         * sysdeps/sparc/ldsodefs.h: Likewise.
3544         * sysdeps/x86_64/ldsodefs.h: Likewise.
3545
3546 2012-07-25  Marek Polacek  <polacek@redhat.com>
3547
3548         [BZ #6808]
3549         * math/libm-test.inc (yn_test): Add another test.
3550         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
3551         to ERANGE when the result is +-Inf.
3552         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
3553         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
3554         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
3555         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
3556
3557 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
3558
3559         * conform/data/time.h-data (NULL): Use macro-constant.  Require
3560         equal to 0.
3561         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
3562         clock_t.
3563         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
3564
3565 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
3566
3567         * configure.in <sysdeps resolving>: Correct printing
3568         Implies_before.
3569         * configure: Regenerate.
3570
3571 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
3572
3573         * math/w_ilogb.c: Include <limits.h>.
3574         * math/w_ilogbl.c: Likewise.
3575
3576 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
3577
3578         * manual/lang.texi (__va_copy): Document primarily as ISO C99
3579         va_copy.  Document allowing for unavailable va_copy only as
3580         pre-C99 compatibility.
3581         * manual/string.texi (Copying and Concatenation): Use va_copy
3582         instead of __va_copy in concat example.
3583
3584 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
3585
3586         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
3587         (__sendto): Use create_address_port.  Initialize APORT and deallocate
3588         it if not null.
3589
3590         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
3591         with O_NOLINK passed to __file_name_lookup.
3592
3593         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
3594         with O_NOLINK passed to __file_name_lookup.
3595
3596         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
3597         negative N or less than NGIDS.
3598
3599         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
3600         type to string_t.  Set ERANGE as errno and return it if NAME is not big
3601         enough.  Use memcpy instead of strncpy.
3602
3603 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
3604
3605         * elf/Makefile (check-data): Remove.
3606         (localplt.data): New vpath directive.
3607         ($(objpfx)check-localplt.out): Use localplt.data from vpath
3608         instead of $(check-data).
3609         * scripts/data/localplt-generic.data: Move to ...
3610         * sysdeps/generic/localplt.data: ... here.
3611         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
3612         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
3613         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
3614         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
3615         ... here.
3616         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
3617         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
3618         ... here.
3619         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
3620         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
3621         ... here.
3622         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
3623         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
3624         ... here.
3625         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
3626         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
3627         ... here.
3628         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
3629         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
3630         ... here.
3631
3632 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3633
3634         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
3635         PPC32 and PPC64 files.
3636         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
3637         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
3638
3639 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3640
3641         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
3642         __makecontext_ret to ...
3643         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
3644         ... here and call exit if uc_link is NULL.  New file.
3645         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
3646         __makecontext_ret.S.
3647         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
3648         __makecontext_ret to ...
3649         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
3650         ... here and call exit if uc_link is NULL.  New file.
3651         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
3652         __makecontext_ret.S.
3653
3654 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3655
3656         * elf/elf.h (R_390_IRELATIVE): New definition.
3657         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
3658         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
3659         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
3660         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
3661         (elf_machine_lazy_rel): Likewise.
3662         * sysdeps/s390/dl-irel.h: New file.
3663         * sysdeps/s390/s390-64/memcpy.S: New asm code.
3664         * sysdeps/s390/s390-64/memset.S: New asm code.
3665         * sysdeps/s390/s390-64/memcmp.S: New asm code.
3666         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
3667         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
3668         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
3669         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
3670         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
3671         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
3672         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
3673         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
3674         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
3675         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
3676         * sysdeps/s390/s390-32/memcpy.S: New asm code.
3677         * sysdeps/s390/s390-32/memset.S: New asm code.
3678         * sysdeps/s390/s390-32/memcmp.S: New asm code.
3679
3680 2012-07-17  Marek Polacek  <polacek@redhat.com>
3681
3682         [BZ #14349]
3683         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
3684         * sysdeps/s390/s390-64/configure.in: Likewise.
3685         * sysdeps/sparc/configure.in: Likewise.
3686         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
3687         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
3688         * sysdeps/i386/configure.in: Likewise.
3689         * sysdeps/x86_64/configure.in: Likewise.
3690         * sysdeps/sh/configure.in: Likewise.
3691         * sysdeps/s390/s390-32/configure: Regenerated.
3692         * sysdeps/s390/s390-64/configure: Likewise.
3693         * sysdeps/x86_64/configure: Likewise.
3694         * sysdeps/sh/configure: Likewise.
3695         * sysdeps/powerpc/powerpc64/configure: Likewise.
3696         * sysdeps/powerpc/powerpc32/configure: Likewise.
3697         * sysdeps/sparc/configure: Likwise.
3698         * sysdeps/i386/configure: Likewise.
3699
3700         * elf/dl-open.c: Comment fixes.
3701
3702 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
3703
3704         * Makefile [CXX] (check-data): Remove.
3705         [CXX] (c++-types.data): New vpath directive.
3706         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
3707         vpath.  Do not allow for C++ type data being missing.
3708         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
3709         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
3710         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
3711         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
3712         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
3713         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
3714         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
3715         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
3716         ... here.
3717         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
3718         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
3719         ... here.
3720         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
3721         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
3722         ... here.
3723         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
3724         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
3725         ... here.
3726         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
3727         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
3728         ... here.
3729         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
3730         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
3731         ... here.
3732         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
3733         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
3734         ... here.
3735         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
3736         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
3737
3738         * elf/tls-macros.h (TLS_LE): Move architecture-specific
3739         definitions to architecture-specific files.
3740         (TLS_IE): Likewise.
3741         (TLS_LD): Likewise.
3742         (TLS_GD): Likewise.
3743         * sysdeps/i386/tls-macros.h: New file.
3744         * sysdeps/powerpc/tls-macros.h: Likewise.
3745         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
3746         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
3747         * sysdeps/sh/tls-macros.h: Likewise.
3748         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
3749         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
3750         * sysdeps/x86_64/tls-macros.h: Likewise.
3751
3752 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
3753
3754         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
3755         zero value for regular exit case.
3756
3757         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
3758         (__start_context): Preserve zero value for regular exit case.
3759
3760 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
3761             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3762
3763         * manual/setjmp.texi (setcontext): Clarify normal process
3764         termination when uc_link is the null pointer.
3765         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
3766         exit call.
3767
3768 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
3769
3770         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
3771         preprocessor.  Test for each exception mask separately.
3772
3773 2012-07-16  Andreas Jaeger  <aj@suse.de>
3774
3775         * po/ru.po: Update from translation team.
3776
3777 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
3778
3779         * conform/data/string.h-data (NULL): Use macro-constant.  Require
3780         equal to 0.
3781         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
3782         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
3783         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
3784         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
3785         [ISO || ISO99 || ISO11] (*_t): Do not allow.
3786
3787 2012-07-13  Andreas Jaeger  <aj@suse.de>
3788
3789         * po/fr.po: Update from translation team.
3790
3791 2012-07-12  Marek Polacek  <polacek@redhat.com>
3792
3793         [BZ #14173]
3794         * math/libm-test.inc (yn_test): Add test for BZ #14173.
3795         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
3796         loop condition.
3797
3798 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
3799
3800         [BZ #13717]
3801         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
3802         Change to 2.4.1 where previously 2.4.0.
3803         * sysdeps/unix/sysv/linux/configure: Regenerated.
3804         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
3805         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
3806         version.
3807         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
3808         (__ASSUME_AT_CLKTCK): Remove.
3809         (__ASSUME_AT_PAGESIZE): Likewise.
3810         (__ASSUME_AT_XID): Likewise.
3811         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
3812         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
3813         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
3814         unconditionally.
3815         (HAVE_AUX_PAGESIZE): Likewise.
3816         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
3817         [__ASSUME_AT_CLKTCK]: Make code unconditional.
3818         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
3819
3820 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
3821
3822         [BZ #14307]
3823         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
3824         the temporary buffer used to invoke __gethostbyname2_r,
3825         __gethostbyaddr_r and gethostbyname4_r to make room for struct
3826         host_data / struct gaih_addrtuple.
3827         * resolv/nss_dns/dns-host.c (global scope): Move definition of
3828         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
3829         header file nss/nsswitch.h.
3830         * nss/nsswitch.h (global scope): Add definition of implementation
3831         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
3832         resolv/nss_dns/dns-host.c).
3833
3834 2012-07-11  Andreas Jaeger  <aj@suse.de>
3835
3836         * po/fr.po: Update from translation team.
3837
3838         * po/sv.po: Update from translation team
3839         * po/fr.po: Another update from translation team.
3840
3841 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3842
3843         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
3844         for subnormals or multiply small sinh result by itself.
3845         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
3846         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3847
3848 2012-07-11  David S. Miller  <davem@davemloft.net>
3849
3850         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3851
3852 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
3853
3854         [BZ #14347]
3855         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
3856         (INTERNAL_MARK): Shift it here.
3857
3858 2012-07-10  Marek Polacek  <polacek@redhat.com>
3859
3860         [BZ #14151]
3861         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
3862         libc_cv_asm_global_directive with .globl.
3863         * configure: Regenerated.
3864         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
3865         with .globl.
3866         * sysdeps/i386/configure: Regenerated.
3867         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
3868         with .globl.
3869         * sysdeps/x86_64/configure: Regenerated.
3870         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
3871         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
3872         * elf/tst-unique2mod2.c: Likewise.
3873         * elf/tst-unique2mod1.c: Likewise.
3874         * elf/tst-unique1mod2.c: Likewise.
3875         * elf/tst-unique1mod1.c: Likewise.
3876         * sysdeps/s390/s390-32/sysdep.h: Likewise.
3877         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
3878         * sysdeps/s390/s390-64/sysdep.h: Likewise.
3879         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
3880         * sysdeps/mach/sysdep.h: Likewise.
3881         * sysdeps/i386/sysdep.h: Likewise.
3882         * sysdeps/i386/i386-mcount.S: Likewise.
3883         * sysdeps/x86_64/_mcount.S: Likewise.
3884         * sysdeps/x86_64/sysdep.h: Likewise.
3885         * sysdeps/sh/_mcount.S: Likewise.
3886         * sysdeps/sh/sysdep.h: Likewise.
3887         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
3888         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
3889         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
3890         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
3891         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
3892         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
3893         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
3894         * locale/localeinfo.h: Likewise.
3895         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
3896         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
3897
3898 2012-07-09  Roland McGrath  <roland@hack.frob.com>
3899
3900         [BZ #14336]
3901         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
3902         system".
3903         * manual/message.texi (The Uniforum approach): Likewise.
3904         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
3905         (glibc iconv Implementation): Likewise.
3906
3907 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
3908
3909         [BZ #14337]
3910         * math/s_clog.c (__clog): Avoid scaling a value down where that
3911         could result in underflow.
3912         * math/s_clog10.c (__clog10): Likewise.
3913         * math/s_clog10f.c (__clog10f): Likewise.
3914         * math/s_clog10l.c (__clog10l): Likewise.
3915         * math/s_clogf.c (__clogf): Likewise.
3916         * math/s_clogl.c (__clogl): Likewise.
3917         * math/libm-test.inc (clog_test): Add more tests.
3918         (clog10_test): Likewise.
3919         * sysdeps/i386/fpu/libm-test-ulps: Update.
3920         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3921
3922 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
3923
3924         [BZ #14283]
3925         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
3926         by 7 not 8 to examine high bit of fractional part.
3927
3928         [BZ #14042]
3929         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
3930         for call to __mcount_internal.
3931         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
3932         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
3933         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
3934
3935 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
3936
3937         [BZ #14154]
3938         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
3939         approximation for values within 0x1p-13f of an odd multiple of
3940         pi/4.
3941         * math/libm-test.inc (tan_test): Do not allow spurious underflow
3942         exception.  Add more tests.
3943         * sysdeps/i386/fpu/libm-test-ulps: Update.
3944
3945         [BZ #6778]
3946         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
3947         inputs and return -1 for them.  Do not check for +Inf in case not
3948         reachable for +Inf.
3949         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
3950         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
3951         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
3952         and return -1 for them.  Do not check for +Inf in case not
3953         reachable for +Inf.
3954         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
3955         define.
3956         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
3957         and return -1 for them.  Do not check for +Inf in case not
3958         reachable for +Inf.
3959         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
3960         spurious underflow.
3961         * sysdeps/i386/fpu/libm-test-ulps: Update.
3962         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3963
3964 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
3965
3966         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
3967
3968 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
3969
3970         [BZ #14157]
3971         [BZ #14331]
3972         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
3973         could result in spurious underflow.  Scale down values above
3974         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
3975         * math/s_csqrtf.c (__csqrtf): Likewise.
3976         * math/s_csqrtl.c (__csqrtl): Likewise.
3977         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
3978         spurious underflow.
3979         * sysdeps/i386/fpu/libm-test-ulps: Update.
3980         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3981
3982 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
3983
3984         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
3985         xopen-msg.sed.
3986         * catgets/xopen-msg.awk: New file.
3987         * catgets/xopen-msg.sed: Removed.
3988
3989         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
3990         po2text.sed.
3991         * intl/po2test.awk: New file.
3992         * intl/po2test.sed: Removed.
3993
3994 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
3995
3996         [BZ #14328]
3997         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
3998         or multiply small sinh result by itself.
3999         * math/s_ctanf.c (__ctanf): Likewise.
4000         * math/s_ctanh.c (__ctanh): Likewise.
4001         * math/s_ctanhf.c (__ctanhf): Likewise.
4002         * math/s_ctanhl.c (__ctanhl): Likewise.
4003         * math/s_ctanl.c (__ctanl): Likewise.
4004         * math/libm-test.inc (ctan_test_tonearest): New function.
4005         (ctan_test_towardzero): Likewise.
4006         (ctan_test_downward): Likewise.
4007         (ctan_test_upward): Likewise.
4008         (ctanh_test_tonearest): Likewise.
4009         (ctanh_test_towardzero): Likewise.
4010         (ctanh_test_downward): Likewise.
4011         (ctanh_test_upward): Likewise.
4012         (main): Call these new functions.
4013         * sysdeps/i386/fpu/libm-test-ulps: Update.
4014         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4015
4016 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
4017
4018         * .gitignore: Delete /ports entry.
4019
4020 2012-07-03  Andreas Jaeger  <aj@suse.de>
4021
4022         * po/bg.po: Update from translation team.
4023         * po/cs.po: Likewise.
4024         * po/de.po: Likewise.
4025         * po/hr.po: Likewise.
4026         * po/nl.pl: Likewise.
4027         * po/pl.po: Likewise.
4028         * po/vi.po: Likewise.
4029
4030 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
4031
4032         * Makeconfig [!+link] (+link-before-libc): New variable.
4033         [!+link] (+link-after-libc): Likewise.
4034         [!+link] (+link-tests): Likewise.
4035         [!+link] (+link): Define in terms of $(+link-before-libc) and
4036         $(+link-after-libc).
4037         [!+link-static] (+link-static-before-libc): New variable.
4038         [!+link-static] (+link-static-after-libc): Likewise.
4039         [!+link-static] (+link-static-tests): Likewise.
4040         [!+link-static] (+link-static): Define in terms of
4041         $(+link-static-before-libc) and $(+link-static-after-libc).
4042         [build-shared] (link-libc-before-gnulib): New variable.
4043         [build-shared] (link-libc-tests): Likewise.
4044         [build-shared] (link-libc): Define in terms of
4045         $(link-libc-before-gnulib).
4046         [!build-shared] (link-libc-tests): New variable.
4047         (link-libc-static-tests): New variable.
4048         [!gnulib] (gnulib-arch): New variable.
4049         [!gnulib] (gnulib-tests): Likewise.
4050         [!gnulib] (static-gnulib-arch): Likewise.
4051         [!gnulib] (static-gnulib-tests): Likewise.
4052         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
4053         Define with "=" instead of ":=".
4054         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
4055         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
4056         * Rules (binaries-all-notests): New variable.
4057         (binaries-all-tests): Likewise.
4058         (binaries-static-notests): Likewise.
4059         (binaries-static-tests): Likewise.
4060         (binaries-all): Define using $(binaries-all-notests) and
4061         $(binaries-all-tests).
4062         (binaries-static): Define using $(binaries-static-notests) and
4063         $(binaries-static-tests).
4064         (binaries-shared-tests): New variable.
4065         (binaries-shared-notests): Likewise.
4066         (binaries-shared): Remove variable.
4067         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
4068         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
4069         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
4070         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
4071         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
4072         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
4073         * elf/Makefile (sln-modules): New variable.
4074         (extra-objs): Add $(sln-modules:=.o).
4075         (ldconfig-modules): Add static-stubs.
4076         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
4077         * elf/static-stubs.c: New file.
4078
4079         [BZ #14283]
4080         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
4081         by 7 not 8 to examine high bit of fractional part.  Use volatile
4082         variables when splitting into final array of floats if
4083         __FLT_EVAL_METHOD__ != 0.
4084         * math/libm-test.inc (cos_test): Add another test.
4085         (sin_test): Likewise.
4086         * sysdeps/i386/fpu/libm-test-ulps: Update.
4087
4088         [BZ #14273]
4089         * math/libm-test.inc (cosh_test): Add more tests.
4090
4091         * version.h (RELEASE): Set to "development".
4092         (VERSION): Set to "2.16.90".
4093
4094 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
4095
4096         * NEWS: Update copyright. Remove last-updated date.
4097         Mention math library bug fixes and timezone data changes.
4098         * README: Mention GNU/Hurd, x32, and HPPA support status.
4099
4100 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
4101
4102         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
4103
4104 2012-06-27  Andreas Jaeger  <aj@suse.de>
4105
4106         * manual/contrib.texi (Contributors): Add Samuel Thibault.
4107
4108 2012-06-25  Andreas Jaeger  <aj@suse.de>
4109
4110         * sysdeps/s390/fpu/libm-test-ulps: Update.
4111
4112 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
4113             Thomas Schwinge  <thomas@codesourcery.com>
4114
4115         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
4116         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
4117         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
4118         fanotify_mark.
4119
4120 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
4121
4122         * sysdeps/mach/start.c: Remove file.
4123         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
4124         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
4125         * sysdeps/sh/init-first.c: Likewise.
4126
4127         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
4128         registers for frame unwinding purposes, add CFI directives.
4129         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
4130         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
4131         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
4132         Likewise.
4133
4134         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
4135         __fortify_fail returning.
4136         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
4137
4138         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
4139         sysdeps/sh/____longjmp_chk.S.
4140         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
4141         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
4142         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
4143         (gen-as-const-headers): Append sigaltstack-offsets.sym.
4144
4145         * sysdeps/sh/abort-instr.h: New file.
4146         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
4147         process in case exit returns.
4148
4149         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
4150         initialize the GOT register before use.
4151
4152         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
4153         calculation of ARGC > 4.
4154
4155         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
4156         meaningful names to some local labels.
4157
4158 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
4159             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4160
4161         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
4162         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
4163         (__arch_compare_and_exchange_val_16_acq): Likewise.
4164         (__arch_compare_and_exchange_val_32_acq): Likewise.
4165         (atomic_exchange_and_add): Fix gUSA sequence.
4166         (atomic_add): Likewise.
4167         (atomic_add_negative): Likewise.
4168         (atomic_add_zero): Likewise.
4169         (atomic_bit_test_set): Likewise.
4170
4171 2012-06-22  Andreas Schwab  <schwab@redhat.com>
4172
4173         [BZ #13579]
4174         * include/link.h (struct link_map): Add l_free_initfini.
4175         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
4176         l_initfini.
4177         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
4178         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
4179         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
4180         set.
4181
4182 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
4183
4184         * configure.in: Use AC_LANG_SOURCE.
4185         * configure: Regenerate.
4186
4187 2012-06-22  Roland McGrath  <roland@hack.frob.com>
4188
4189         * configure.in (libc_cv_localstatedir): New substituted variable.
4190         * configure: Regenerated.
4191         * config.make.in (localstatedir): New variable, substituted from
4192         libc_cv_localstatedir.
4193         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
4194         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
4195         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
4196         * sysdeps/gnu/configure: Regenerated.
4197
4198 2012-06-21  Jeff Law  <law@redhat.com>
4199
4200         [BZ #14277]
4201         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
4202         free.  Simplify list management for _LIBC case.
4203
4204 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
4205
4206         [BZ #14273]
4207         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
4208         Clear sign bit of 64-bit integer value before comparing against
4209         overflow value.
4210
4211         * sysdeps/mach/configure: Regenerated.
4212
4213 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
4214
4215         [BZ #14278]
4216         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
4217
4218 2012-06-21  Jeff Law  <law@redhat.com>
4219
4220         [BZ #13882]
4221         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
4222         uint16_t for elements in the "seen" array to avoid char overflows.
4223         * elf/dl-fini.c (_dl_sort_fini): Likewise.
4224         * elf/dl-open.c (dl_open_worker): Likewise.
4225
4226 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
4227
4228         * scripts/list-sources.sh: Scan PORTS for translations.
4229         * po/libc.pot: Regenerated.
4230
4231 2012-06-21  Andreas Jaeger  <aj@suse.de>
4232
4233         [BZ #12194]
4234         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
4235         warning.
4236         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
4237         * bits/byteswap-16.h (__bswap_16): Likewise.
4238         * bits/byteswap.h (__bswap_constant_16): Likewise.
4239
4240 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
4241
4242         [BZ #14117]
4243         * sysdeps/i386/fpu_control.h: Removed.
4244         * sysdeps/x86_64/fpu_control.h: Moved to ...
4245         * sysdeps/x86/fpu_control.h: Here.
4246
4247         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
4248         (_FPU_SETCW): Likewise.
4249
4250 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
4251
4252         [BZ #14117]
4253         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
4254         * sysdeps/x86/fpu/bits/mathinline.h: This.
4255         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
4256
4257         [BZ #14050]
4258         [BZ #14117]
4259         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
4260         functions if __x86_64__ is defined.
4261
4262 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
4263
4264         * string/endian.h: Add !__ASSEMBLER__ condition for including
4265         conversion interfaces.
4266
4267 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
4268
4269         [BZ #14241]
4270         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
4271         of ABS(x) in calculating zero to negative powers other than odd
4272         integers.
4273         * math/libm-test.inc (pow_test): Add more tests.
4274
4275 2012-06-15  Andreas Jaeger  <aj@suse.de>
4276
4277         * manual/contrib.texi (Contributors): Update entry of Liubov
4278         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
4279         Machado Filho.
4280
4281 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
4282
4283         * string/string.h: Add __wur to GNU version of strerror_r.
4284
4285 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
4286
4287         [BZ #14229]
4288         * string/Makefile (tests): Add tst-strtok_r.
4289         * string/tst-strtok_r.c: New file.
4290         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
4291         RAX_LP/RDX_LP on SAVE_PTR.
4292
4293 2012-06-14  Roland McGrath  <roland@hack.frob.com>
4294
4295         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
4296
4297 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
4298
4299         * libm_test.inc (csqrt_test): Allow more spurious underflow
4300         exceptions.
4301         (j0_test): Likewise.
4302         (j1_test): Likewise.
4303         (y0_test): Likewise.
4304         (y1_test): Likewise.
4305
4306 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
4307
4308         * po/Makefile (libc.pot): Use UTF-8 charset.
4309
4310 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
4311
4312         [BZ #14210]
4313         Suppress sign-conversion warning from FD_SET.
4314         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
4315         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
4316         not unsigned long int.
4317         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
4318
4319 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
4320
4321         [BZ #14050]
4322         [BZ #14117]
4323         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
4324         __extern_always_inline instead of __extern_inline.
4325         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
4326         (__signbit): Likewise.
4327         (__signbitl): Support C++ namespace.
4328         (lrintf): New inline function.
4329         (lrint): Likewise.
4330         (llrintf): Likewise.
4331         (llrint): Likewise.
4332         (fmaxf): Likewise.
4333         (fmax): Likewise.
4334         (fminf): Likewise.
4335         (fmin): Likewise.
4336         (rint): Likewise.
4337         (rintf): Likewise.
4338         (ceil): Likewise.
4339         (ceilf): Likewise.
4340         (floor): Likewise.
4341         (floorf): Likewise.
4342         (nearbyint): Likewise.
4343         (nearbyintf): Likewise.
4344
4345 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
4346
4347         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
4348         non-default versions.
4349
4350 2012-06-11  Roland McGrath  <roland@hack.frob.com>
4351
4352         [BZ #14218]
4353         * manual/argp.texi (Argp): Reword argp_parse description slightly.
4354
4355 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
4356
4357         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
4358         (FE_UPWARD, FE_DOWNWARD): Don't define.
4359         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
4360         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
4361
4362         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
4363         reading it.
4364         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
4365         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
4366
4367 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4368
4369         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
4370         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
4371         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
4372         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
4373
4374 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
4375
4376         [BZ #14117]
4377         * sysdeps/i386/fpu/bits/fenv.h: Removed.
4378         * sysdeps/i386/fpu/Implies: New file.
4379         * sysdeps/x86_64/fpu/Implies: Likewise.
4380         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
4381         * sysdeps/x86/fpu/bits/fenv.h: This.
4382
4383         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
4384         __SSE_MATH__.
4385
4386 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
4387
4388         [BZ #14134]
4389         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
4390         character 0xffff that matches the last element of the
4391         conversion table.
4392
4393 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4394
4395         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
4396         fmodl commit.
4397
4398 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4399
4400         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
4401         values higher than 25.6283.
4402
4403 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4404
4405         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
4406         subnormal exponent extraction and add some __builtin_expect.
4407         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
4408         Fix for subnormal mantissa calculation.
4409
4410 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
4411
4412         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
4413         cpu2 is -1 and errno is not ENOSYS.
4414
4415 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
4416
4417         [BZ #14117]
4418         * sysdeps/i386/i486/bits/string.h: Renamed to ...
4419         * sysdeps/x86/bits/string.h: This.
4420         * sysdeps/x86_64/bits/string.h: Removed.
4421
4422         * sysdeps/i386/i486/bits/string.h: Define inline functions only
4423         if not compiling for x86-64, but compiling for >= i486.
4424
4425         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
4426         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
4427
4428         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
4429         New macro from Linux kernel 3.4.0.
4430         (FP_XSTATE_MAGIC2): Likewise.
4431         (FP_XSTATE_MAGIC2_SIZE): Likewise.
4432         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
4433         (struct _fpx_sw_bytes): New struct.
4434         (struct _xsave_hdr): Likewise.
4435         (struct _ymmh_state): Likewise.
4436         (struct _xstate): Likewise.
4437
4438         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
4439         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
4440         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
4441         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
4442         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
4443         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
4444
4445         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
4446         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
4447         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
4448         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
4449         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
4450         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
4451
4452 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
4453
4454         [BZ #13743]
4455         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
4456         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
4457         (sysdep_headers): Include sys/platform/ppc.h.
4458         * sysdeps/powerpc/test-gettimebase.c: Test for
4459         __ppc_get_timebase() to catch future ISA opcode/insn changes.
4460         * manual/Makefile (appendices): Include platform.texi.
4461         * manual/contrib.texi (Contributors): Update @node pointers.
4462         * manual/maint.texi (Maintenance): Likewise.
4463         (Platform): New node.
4464         * manual/platform.texi: New file.  Document the new features.
4465
4466 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
4467             Jakub Jelinek  <jakub@redhat.com>
4468
4469         [BZ #14188]
4470         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
4471         where __builtin_expect is unavailable.
4472
4473 2012-06-03  David S. Miller  <davem@davemloft.net>
4474
4475         * stdlib/longlong.h: Updated from GCC.
4476
4477 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
4478
4479         [BZ #14042]
4480         * sysdeps/powerpc/powerpc32/mcount.c: New file.
4481         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
4482         __mcount_internal.
4483         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
4484         (GLIBC_2.16): Likewise.
4485
4486 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
4487
4488         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
4489
4490 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
4491
4492         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
4493         (default-abi): New variable.
4494         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
4495         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
4496         variable.
4497         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
4498         Likewise.
4499         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
4500         Likewise.
4501         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
4502         Likewise.
4503
4504         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
4505         definition.  Document in comment.
4506
4507 2012-06-01  David S. Miller  <davem@davemloft.net>
4508
4509         * stdlib/longlong.h: Updated from GCC.
4510
4511 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
4512
4513         [BZ #14117]
4514         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
4515         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
4516         sys/debugreg.h sys/io.h here.
4517         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
4518         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
4519         sys/io.h.
4520         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
4521         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
4522         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
4523         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
4524         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
4525         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
4526
4527         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
4528         Define only if __x86_64__ is defined.
4529
4530 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
4531
4532         [BZ #14048]
4533         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
4534         Use int64_t for variable i.
4535         * math/libm-test.inc (fmod_test): Add more tests.
4536
4537         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
4538         z computation is not scheduled after fetestexcept.
4539         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
4540         Use math_force_eval instead of asm to ensure calculation scheduled
4541         before exception test.
4542         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
4543         Ensure a1 + u.d computation is not scheduled after fetestexcept.
4544
4545 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
4546
4547         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
4548         computation is not scheduled after fetestexcept.
4549
4550 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
4551
4552         [BZ #14117]
4553         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
4554         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
4555
4556 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4557
4558         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
4559         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
4560
4561 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
4562
4563         [BZ #14117]
4564         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
4565         <bits/wordsize.h>.
4566         (__WCHAR_MIN): Support __WORDSIZE == 64.
4567         (__WCHAR_MAX): Likewise.
4568
4569         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
4570         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
4571
4572         [BZ #14183]
4573         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
4574         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
4575
4576         [BZ #14117]
4577         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
4578         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
4579
4580         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
4581         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
4582
4583         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
4584         Defined to 1 if __x86_64__ isn't defined.
4585         (_STAT_VER_LINUX_OLD): New.
4586         (st_atime): Remove duplicate.
4587         (st_mtime): Likewise.
4588         (st_ctime): Likewise.
4589
4590 2012-05-31  David S. Miller  <davem@davemloft.net>
4591
4592         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
4593         entries.
4594
4595 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
4596
4597         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
4598         gen-libm-test.pl.
4599
4600         [BZ #14132]
4601         * elf/dl-reloc.c: Include <_itoa.h>.
4602         (_dl_reloc_bad_type): Remove use of INTUSE.
4603         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
4604         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
4605         * stdio-common/psiginfo.c (psiginfo): Likewise.
4606         * stdio-common/psignal.c (psignal): Likewise.
4607         * string/strsignal.c (strsignal): Likewise.
4608         * include/signal.h (_sys_siglist): Declare hidden proto.
4609         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
4610         INTVARDEF with libc_hidden_data_def.
4611         * stdio-common/itoa-udigits.c: Likewise.
4612         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
4613         (_itoa_lower_digits_internal): Remove declaration.
4614         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
4615         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
4616         (_sys_sigabbrev_internal): Remove aliases.
4617         (_sys_siglist): Define hidden alias.
4618
4619 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
4620
4621         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4622         bits/sysctl.h.
4623
4624 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
4625
4626         [BZ #14117]
4627         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
4628         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
4629
4630         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
4631         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
4632         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
4633         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
4634         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
4635         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
4636
4637         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
4638         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
4639         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
4640
4641         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
4642         with __addr.
4643         (insw): Likewise.
4644         (insl): Likewise.
4645         (outsb): Likewise.
4646         (outsw): Likewise.
4647         (outsl): Likewise.
4648
4649         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
4650         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
4651         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
4652
4653         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
4654         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
4655         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
4656         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
4657         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
4658         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
4659
4660         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
4661         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
4662
4663         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
4664         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
4665
4666         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
4667         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
4668         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
4669
4670         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
4671         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
4672         to ...
4673         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
4674
4675         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
4676         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
4677         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
4678
4679         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
4680         for x86-64.
4681         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
4682
4683 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
4684
4685         * math/math.h (M_El): Use two more decimal places.
4686         (M_LOG2El): Likewise.
4687         (M_LOG10El): Likewise.
4688         (M_LN2l): Likewise.
4689         (M_LN10l): Likewise.
4690         (M_PIl): Likewise.
4691         (M_PI_2l): Likewise.
4692         (M_PI_4l): Likewise.
4693         (M_1_PIl): Likewise.
4694         (M_2_PIl): Likewise.
4695         (M_2_SQRTPIl): Likewise.
4696         (M_SQRT2l): Likewise.
4697         (M_SQRT1_2l): Likewise.
4698
4699 2012-05-31  David S. Miller  <davem@davemloft.net>
4700
4701         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
4702         values between float registers.
4703         * sysdeps/sparc/sparc64/memset.S: Likewise.
4704         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
4705
4706 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
4707
4708         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
4709         -D_FORTIFY_SOURCE=1.
4710         (CPPFLAGS-tst-longjmp_chk.c): Define.
4711         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
4712         (CPPFLAGS-tst-longjmp_chk2.c): Define.
4713         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
4714         CFLAGS-tst-wchar-h.c.
4715
4716 2012-05-31  Marek Polacek  <polacek@redhat.com>
4717
4718         [BZ #14132]
4719         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
4720         __endmntent_internal): Remove declaration.
4721         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
4722         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
4723         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
4724
4725 2012-05-30  David S. Miller  <davem@davemloft.net>
4726
4727         * sysdeps/sparc/sparc32/soft-fp/q_util.c
4728         (___Q_simulate_exceptions): Use real FP ops rather than writing
4729         into the %fsr.
4730         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
4731         Likewise.
4732
4733 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
4734
4735         [BZ #14117]
4736         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
4737         * sysdeps/x86/bits/xtitypes.h: This.
4738
4739         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
4740         * sysdeps/x86/bits/wordsize.h: This.
4741
4742         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
4743         * sysdeps/x86/bits/huge_vall.h: This.
4744
4745         * sysdeps/i386/bits/select.h: Removed.
4746         * sysdeps/x86_64/bits/select.h: Renamed to ...
4747         * sysdeps/x86/bits/select.h: This.
4748
4749         * sysdeps/i386/bits/setjmp.h: Removed.
4750         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
4751         * sysdeps/x86/bits/setjmp.h: This.
4752
4753         * sysdeps/i386/bits/mathdef.h: Removed.
4754         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
4755         * sysdeps/x86/bits/mathdef.h: This.
4756
4757 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
4758
4759         [BZ #14132]
4760         * include/sys/socket.h (__connect_internal)
4761         (__libc_sa_len_internal): Remove declaration.
4762         (__connect, __libc_sa_len): Declare hidden_proto.
4763         (SA_LEN): Remove use of INTUSE.
4764         * socket/connect.c: Add libc_hidden_def.
4765         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
4766         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
4767         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
4768         alias.
4769         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
4770         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
4771         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
4772         of adding _internal alias.
4773
4774 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
4775
4776         [BZ #14117]
4777         * sysdeps/i386/bits/link.h: Removed.
4778         * sysdeps/i386/bits/linkmap.h: Likewise.
4779         * sysdeps/x86_64/bits/link.h: Renamed to ...
4780         * sysdeps/x86/bits/link.h: This.
4781         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
4782         * sysdeps/x86/bits/linkmap.h: This.
4783
4784         * sysdeps/i386/bits/endian.h: Removed.
4785         * sysdeps/x86_64/bits/endian.h: Renamed to ...
4786         * sysdeps/x86/bits/endian.h: This.
4787
4788         * sysdeps/i386/bits/byteswap.h: Removed.
4789         * sysdeps/i386/bits/byteswap-16.h: Likewise.
4790         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
4791         * sysdeps/x86/bits/byteswap.h: This.
4792         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
4793         * sysdeps/x86/bits/byteswap-16.h: This.
4794         * sysdeps/i386/Implies: Add x86.
4795         * sysdeps/x86_64/Implies: Likewise.
4796
4797 2012-05-30  David S. Miller  <davem@davemloft.net>
4798
4799         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
4800         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
4801         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
4802         (FP_TRAPPING_EXCEPTIONS): Define.
4803         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
4804         (FP_TRAPPING_EXCEPTIONS): Define.
4805         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
4806         subnormals only when inexact has been signalled or underflow
4807         exceptions are enabled.
4808         (_FP_PACK_CANONICAL): Likewise.
4809
4810 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
4811
4812         [BZ #14183]
4813         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
4814         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
4815
4816 2012-05-30  Richard Henderson  <rth@twiddle.net>
4817
4818         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
4819         with #ifndef NOT_IN_libc.
4820
4821         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
4822         marked to avoid plt entry.
4823
4824 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
4825
4826         [BZ #14112]
4827         * Makeconfig (default-abi): New macro.
4828         (abi-includes): Likewise.
4829         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
4830         $(abi-$(default-abi)-lib-soname) for soname if defined.
4831         ($(common-objpfx)gnu/lib-names.stmp): Generate from
4832         abi-variants.
4833         * Makefile (installed-stubs): Likewise.
4834         * include/stubs-biarch.h: Removed.
4835         * scripts/lib-names.awk: Only handle one library at a time.
4836         * scripts/soversions.awk: Remove WORDSIZE support.
4837         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
4838         entries.
4839         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
4840         Removed.
4841         (syscall-list-default-condition): Likewise.
4842         (syscall-list-default-condition): Likewise.
4843         (syscall-list-includes): Likewise.
4844         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
4845         syscall-list-* with abi-*.  Handle undefined abi-variants.
4846         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
4847         * sysdeps/unix/sysv/linux/i386/Implies: New file.
4848         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
4849         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
4850         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
4851         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
4852         Removed.
4853         (syscall-list-32-options): Likewise.
4854         (syscall-list-32-condition): Likewise.
4855         (syscall-list-64-options): Likewise.
4856         (syscall-list-64-condition): Likewise.
4857         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
4858         macro.
4859         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
4860         Renamed to ...
4861         (abi-*): This.
4862         (abi-64-ld-soname): New macro.
4863         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
4864         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
4865         Renamed to ...
4866         (abi-*): This.
4867         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
4868         * sysdeps/x86_64/x32/shlib-versions: Likewise.
4869
4870 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
4871
4872         * sysdeps/unix/sysv/linux/kernel-features.h
4873         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
4874         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
4875         include <kernel-features.h>.
4876         [!__NR_ftruncate64]: Remove conditional code.
4877         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4878         [__NR_ftruncate64]: Make code unconditional.
4879         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4880         * sysdeps/unix/sysv/linux/truncate64.c: Do not
4881         include <kernel-features.h>.
4882         [!__NR_ftruncate64]: Remove conditional code.
4883         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4884         [__NR_ftruncate64]: Make code unconditional.
4885         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4886         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
4887         include <kernel-features.h>.
4888         [!__NR_ftruncate64]: Remove conditional code.
4889         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4890         [__NR_ftruncate64]: Make code unconditional.
4891         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4892         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
4893         include <kernel-features.h>.
4894         [!__NR_ftruncate64]: Remove conditional code.
4895         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4896         [__NR_ftruncate64]: Make code unconditional.
4897         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
4898
4899         * configure.in (libc_cv_fpie): Weaken to a compile test using
4900         LIBC_TRY_CC_OPTION.
4901         * configure: Regenerated.
4902
4903 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4904
4905         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
4906         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
4907         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
4908         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
4909         Refreshed.
4910         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
4911         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
4912         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
4913         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
4914         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
4915         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
4916         Refreshed.
4917
4918 2012-05-27  David S. Miller  <davem@davemloft.net>
4919
4920         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
4921         (___Q_zero): New.
4922         (__Q_simulate_exceptions): Return void.  Change to simulate
4923         exceptions by writing into the %fsr.
4924         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
4925         (__Qp_handle_exceptions): Likewise.
4926         (numbers): Delete.
4927         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
4928         __Qp_handle_exceptions.
4929         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
4930         __Qp_handle_exceptions.
4931         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
4932         as unused and give dummy FP_RND_NEAREST initializer.
4933         (FP_INHIBIT_RESULTS): Define.
4934         (___Q_simulate_exceptions): Update declaration.
4935         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
4936         formatting.
4937         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
4938         as unused and give dummy FP_RND_NEAREST initializer.
4939         (__Qp_handle_exceptions): Update declaration.
4940         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
4941         formatting.
4942
4943 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
4944
4945         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
4946         the temporary FPU control word.
4947         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
4948         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
4949         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
4950         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
4951         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
4952         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
4953         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
4954         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
4955         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
4956         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
4957         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
4958
4959 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4960
4961         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
4962         fields.
4963
4964 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
4965
4966         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
4967         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
4968         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
4969         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
4970         Likewise.
4971         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
4972         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
4973         Likewise.
4974
4975 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
4976
4977         * po/h.po: Update from translation team.
4978
4979 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
4980
4981         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
4982
4983         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
4984         handling of denormals.
4985         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
4986         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
4987         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
4988         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
4989         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
4990         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
4991         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
4992         Likewise.
4993
4994 2012-05-26  Marek Polacek  <polacek@redhat.com>
4995
4996         [BZ #14152]
4997         * math/libm-test.inc (fma_test): Don't always expect underflow
4998         exception.
4999
5000 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
5001
5002         [BZ #12416]
5003         * elf/tst-execstack.c: Include stackinfo.h.
5004         (do_test): Adjust test case to ensure that pthread_getattr_np
5005         behaviour remains the same after marking stack executable.
5006
5007 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
5008
5009         * sysdeps/unix/sysv/linux/kernel-features.h
5010         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
5011         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
5012         kernel-features.h.
5013         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
5014         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
5015         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
5016         kernel-features.h.
5017         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
5018         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
5019
5020 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
5021
5022         * configure.in: Define the default includes to being none.
5023         * configure: Regenerated.
5024
5025 2012-05-25  Roland McGrath  <roland@hack.frob.com>
5026
5027         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
5028         * sysdeps/x86_64/setjmp.S: Likewise.
5029         * sysdeps/i386/bsd-setjmp.S: Likewise.
5030         * sysdeps/i386/bsd-_setjmp.S: Likewise.
5031         * sysdeps/i386/setjmp.S: Likewise.
5032         * sysdeps/i386/__longjmp.S: Likewise.
5033         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
5034         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
5035
5036         * include/stap-probe.h: New file.
5037         * configure.in: Handle --enable-systemtap.
5038         * configure: Regenerated.
5039         * config.h.in (USE_STAP_PROBE): New #undef.
5040         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
5041         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
5042         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
5043
5044 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
5045
5046         [BZ #13717]
5047         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
5048         to 2.4.0 where earlier.
5049         * sysdeps/unix/sysv/linux/configure: Regenerated.
5050         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
5051         <kernel-features.h>.
5052         [__ASSUME_32BITUIDS]: Make code unconditional.
5053         [!__ASSUME_32BITUIDS]: Remove conditional code.
5054         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
5055         <kernel-features.h>.
5056         [__ASSUME_32BITUIDS]: Make code unconditional.
5057         [!__ASSUME_32BITUIDS]: Remove conditional code.
5058         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
5059         [__ASSUME_32BITUIDS]: Make code unconditional.
5060         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
5061         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
5062         <kernel-features.h>.
5063         [__ASSUME_32BITUIDS]: Make code unconditional.
5064         [!__ASSUME_32BITUIDS]: Remove conditional code.
5065         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
5066         <kernel-features.h>.
5067         [__ASSUME_32BITUIDS]: Make code unconditional.
5068         [!__ASSUME_32BITUIDS]: Remove conditional code.
5069         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
5070         <kernel-features.h>.
5071         [__ASSUME_32BITUIDS]: Make code unconditional.
5072         [!__ASSUME_32BITUIDS]: Remove conditional code.
5073         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
5074         <kernel-features.h>.
5075         [__ASSUME_32BITUIDS]: Make code unconditional.
5076         [!__ASSUME_32BITUIDS]: Remove conditional code.
5077         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
5078         <kernel-features.h>.
5079         [__ASSUME_32BITUIDS]: Make code unconditional.
5080         [!__ASSUME_32BITUIDS]: Remove conditional code.
5081         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
5082         <kernel-features.h>.
5083         [__ASSUME_32BITUIDS]: Make code unconditional.
5084         [!__ASSUME_32BITUIDS]: Remove conditional code.
5085         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
5086         <kernel-features.h>.
5087         [__ASSUME_32BITUIDS]: Make code unconditional.
5088         [!__ASSUME_32BITUIDS]: Remove conditional code.
5089         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
5090         <kernel-features.h>.
5091         [__ASSUME_32BITUIDS]: Make code unconditional.
5092         [!__ASSUME_32BITUIDS]: Remove conditional code.
5093         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
5094         <kernel-features.h>.
5095         [__ASSUME_32BITUIDS]: Make code unconditional.
5096         [!__ASSUME_32BITUIDS]: Remove conditional code.
5097         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
5098         <kernel-features.h>.
5099         [__ASSUME_32BITUIDS]: Make code unconditional.
5100         [!__ASSUME_32BITUIDS]: Remove conditional code.
5101         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
5102         <kernel-features.h>.
5103         [__NR_setresgid] (__setresgid): Do not declare.
5104         [__ASSUME_32BITUIDS]: Make code unconditional.
5105         [!__ASSUME_32BITUIDS]: Remove conditional code.
5106         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
5107         <kernel-features.h>.
5108         [__NR_setresuid] (__setresuid): Do not declare.
5109         [__ASSUME_32BITUIDS]: Make code unconditional.
5110         [!__ASSUME_32BITUIDS]: Remove conditional code.
5111         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
5112         <kernel-features.h>.
5113         [__ASSUME_32BITUIDS]: Make code unconditional.
5114         [!__ASSUME_32BITUIDS]: Remove conditional code.
5115         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
5116         <kernel-features.h>.
5117         [__ASSUME_32BITUIDS]: Make code unconditional.
5118         [!__ASSUME_32BITUIDS]: Remove conditional code.
5119         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
5120         <kernel-features.h>.
5121         [__ASSUME_32BITUIDS]: Make code unconditional.
5122         [!__ASSUME_32BITUIDS]: Remove conditional code.
5123         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
5124         <kernel-features.h>.
5125         [__ASSUME_32BITUIDS]: Make code unconditional.
5126         [!__ASSUME_32BITUIDS]: Remove conditional code.
5127         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
5128         <kernel-features.h>.
5129         [__ASSUME_32BITUIDS]: Make code unconditional.
5130         [!__ASSUME_32BITUIDS]: Remove conditional code.
5131         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
5132         <kernel-features.h>.
5133         [__ASSUME_32BITUIDS]: Make code unconditional.
5134         [!__ASSUME_32BITUIDS]: Remove conditional code.
5135         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
5136         <kernel-features.h>.
5137         [__ASSUME_32BITUIDS]: Make code unconditional.
5138         [!__ASSUME_32BITUIDS]: Remove conditional code.
5139         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
5140         <kernel-features.h>.
5141         [__ASSUME_32BITUIDS]: Make code unconditional.
5142         [!__ASSUME_32BITUIDS]: Remove conditional code.
5143         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
5144         <kernel-features.h>.
5145         [__ASSUME_32BITUIDS]: Make code unconditional.
5146         [!__ASSUME_32BITUIDS]: Remove conditional code.
5147         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
5148         <kernel-features.h>.
5149         [__ASSUME_32BITUIDS]: Make code unconditional.
5150         [!__ASSUME_32BITUIDS]: Remove conditional code.
5151         * sysdeps/unix/sysv/linux/kernel-features.h
5152         (__ASSUME_SETRESUID_SYSCALL): Remove.
5153         (__ASSUME_SETRESGID_SYSCALL): Likewise.
5154         (__ASSUME_32BITUIDS): Likewise.
5155         (__ASSUME_LDT_WORKS): Likewise.
5156         (__ASSUME_O_DIRECTORY): Likewise.
5157         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
5158         architecture but not kernel version.
5159         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
5160         (__ASSUME_MMAP2_SYSCALL): Likewise.
5161         (__ASSUME_STAT64_SYSCALL): Likewise.
5162         (__ASSUME_IPC64): Likewise.
5163         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
5164         <kernel-features.h>.
5165         [__ASSUME_32BITUIDS]: Make code unconditional.
5166         [!__ASSUME_32BITUIDS]: Remove conditional code.
5167         * sysdeps/unix/sysv/linux/opendir.c: Do not include
5168         <kernel-features.h>.
5169         [__ASSUME_O_DIRECTORY]: Make code unconditional.
5170         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
5171         132096]: Remove conditional code.
5172         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
5173         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
5174         <kernel-features.h>.
5175         [__ASSUME_32BITUIDS]: Make code unconditional.
5176         [!__ASSUME_32BITUIDS]: Remove conditional code.
5177         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
5178         <kernel-features.h>.
5179         [__ASSUME_32BITUIDS]: Make code unconditional.
5180         [!__ASSUME_32BITUIDS]: Remove conditional code.
5181         * sysdeps/unix/sysv/linux/setegid.c: Do not include
5182         <kernel-features.h>.
5183         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
5184         unconditional.
5185         (__setresgid): Do not declare.
5186         [__ASSUME_32BITUIDS]: Make code unconditional.
5187         [!__ASSUME_32BITUIDS]: Remove conditional code.
5188         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
5189         <kernel-features.h>.
5190         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
5191         unconditional.
5192         (__setresuid): Do not declare.
5193         [__ASSUME_32BITUIDS]: Make code unconditional.
5194         [!__ASSUME_32BITUIDS]: Remove conditional code.
5195         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
5196         <kernel-features.h>.
5197         [__ASSUME_32BITUIDS]: Make code unconditional.
5198         [!__ASSUME_32BITUIDS]: Remove conditional code.
5199         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
5200         <kernel-features.h>.
5201         [__ASSUME_32BITUIDS]: Make code unconditional.
5202         [!__ASSUME_32BITUIDS]: Remove conditional code.
5203
5204 2012-05-25  Richard Henderson  <rth@twiddle.net>
5205
5206         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
5207         dl_hwcap to ifunc resolver.
5208         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
5209         elf_ifunc_invoke.
5210         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
5211         dl_hwcap to ifunc resolver.
5212         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
5213
5214 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
5215
5216         [BZ #14153]
5217         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
5218         for |x| <= 2**-26, not 2**-57.
5219         * math/libm-test.inc (acos_test): Do not allow spurious underflow
5220         exception.
5221
5222 2012-05-24  Jeff Law  <law@redhat.com>
5223
5224         * stdio-common/Makefile (tests): Add bug25.
5225         * stdio-common/bug25.c: New test.
5226
5227 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
5228
5229         [BZ #13576]
5230         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
5231         multiple of MALLOC_ALIGNMENT in size.
5232         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
5233
5234 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
5235
5236         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
5237         Require >= 256.
5238         (FILENAME_MAX): Use macro-int-constant.
5239         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
5240         (_IOFBF): Use macro-int-constant.
5241         (_IOLBF): Likewise.
5242         (_IONBF): Likewise.
5243         (SEEK_CUR): Likewise.
5244         (SEEK_END): Likewise.
5245         (SEEK_SET): Likewise.
5246         (TMP_MAX): Likewise.
5247         (EOF): Use macro-int-constant.  Require < 0.
5248         (NULL): Use macro-constant.  Require == 0.
5249         (stdin): Require type to be FILE *.
5250         (stdout): Likewise.
5251         (stderr): Likewise.
5252         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
5253         macro-int-constant.
5254         (EXIT_SUCCESS): Likewise.
5255         (NULL): Use macro-constant.  Require == 0.
5256         (RAND_MAX): Use macro-int-constant.
5257         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
5258         [C99-based standards] (strtof): Require function.
5259         [C99-based standards] (strtold): Likewise.
5260         [C99-based standards] (strtoll): Likewise.
5261         [C99-based standards] (strtoull): Likewise.
5262         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
5263         [ISO || ISO99 || ISO11] (limits.h): Likewise.
5264         [ISO || ISO99 || ISO11] (math.h): Likewise.
5265         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
5266         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
5267         [ISO || ISO99 || ISO11] (*_t): Do not allow.
5268
5269 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
5270
5271         [BZ #14132]
5272         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
5273         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
5274         * intl/dgettext.c (DCGETTEXT): Likewise.
5275         * intl/gettext.c (DCGETTEXT): Likewise.
5276         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
5277         * posix/regex_internal.h (gettext): Likewise.
5278         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
5279         Remove declaration.
5280         * include/argz.h (__argz_count_internal)
5281         (__argz_stringify_internal): Remove declaration.
5282         (__argz_count, __argz_stringify): Declare hidden proto.
5283         * intl/dcgettext.c: Remove use of INTDEF.
5284         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
5285         * string/argz-stringify.c: Likewise.
5286         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
5287         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
5288         Declare hidden proto.
5289         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
5290         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
5291         Declare hidden proto.
5292         * include/stdio.h (__asprintf_internal): Don't declare.
5293         (__asprintf): Don't define as macro.  Declare hidden proto.
5294         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
5295         (__fsetlocking): Declare hidden proto.
5296         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
5297         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
5298         hidden proto.
5299         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
5300         (_IO_setlinebuf): Remove use of INTUSE.
5301         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
5302         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
5303         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
5304         Remove declaration.
5305         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
5306         (_IO_do_flush): Remove use of INTUSE.
5307         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
5308         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
5309         (_IO_adjust_column, _IO_least_wmarker)
5310         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
5311         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
5312         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
5313         (_IO_default_doallocate, _IO_wdefault_doallocate)
5314         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
5315         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
5316         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
5317         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
5318         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
5319         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
5320         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
5321         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
5322         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
5323         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
5324         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
5325         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
5326         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
5327         proto.
5328         (_IO_flush_all_internal, _IO_adjust_column_internal)
5329         (_IO_default_uflow_internal, _IO_default_finish_internal)
5330         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
5331         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
5332         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
5333         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
5334         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
5335         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
5336         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
5337         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
5338         (_IO_file_close_internal, _IO_file_close_it_internal)
5339         (_IO_file_underflow_internal, _IO_file_overflow_internal)
5340         (_IO_file_init_internal, _IO_file_attach_internal)
5341         (_IO_file_fopen_internal, _IO_file_read_internal)
5342         (_IO_file_sync_internal, _IO_file_seek_internal)
5343         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
5344         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
5345         (_IO_str_underflow_internal, _IO_str_overflow_internal)
5346         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
5347         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
5348         (_IO_list_all_internal, _IO_link_in_internal)
5349         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
5350         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
5351         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
5352         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
5353         (_IO_do_write_internal, _IO_padn_internal)
5354         (_IO_getline_info_internal, _IO_getline_internal)
5355         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
5356         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
5357         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
5358         (_IO_vfscanf_internal, _IO_vfprintf_internal)
5359         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
5360         (_IO_init_internal, _IO_un_link_internal): Don't declare.
5361         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
5362         with libc_hidden_ver, remove use of INTUSE.
5363         * libio/genops.c: Likewise.
5364         * libio/freopen.c: Likewise.
5365         * libio/freopen64.c: Likewise.
5366         * libio/iofclose.c: Likewise.
5367         * libio/iofdopen.c: Likewise.
5368         * libio/iofflush.c: Likewise.
5369         * libio/iofflush_u.c: Likewise.
5370         * libio/iofgets.c: Likewise.
5371         * libio/iofgets_u.c: Likewise.
5372         * libio/iofopen.c: Likewise.
5373         * libio/iofopncook.c: Likewise.
5374         * libio/iofread.c: Likewise.
5375         * libio/iofread_u.c: Likewise.
5376         * libio/ioftell.c: Likewise.
5377         * libio/iofwrite.c: Likewise.
5378         * libio/iogetline.c: Likewise.
5379         * libio/iogets.c: Likewise.
5380         * libio/iogetwline.c: Likewise.
5381         * libio/iopadn.c: Likewise.
5382         * libio/iopopen.c: Likewise.
5383         * libio/ioseekoff.c: Likewise.
5384         * libio/ioseekpos.c: Likewise.
5385         * libio/iosetbuffer.c: Likewise.
5386         * libio/iosetvbuf.c: Likewise.
5387         * libio/ioungetc.c: Likewise.
5388         * libio/ioungetwc.c: Likewise.
5389         * libio/iovdprintf.c: Likewise.
5390         * libio/iovsprintf.c: Likewise.
5391         * libio/iovsscanf.c: Likewise.
5392         * libio/memstream.c: Likewise.
5393         * libio/obprintf.c: Likewise.
5394         * libio/oldfileops.c: Likewise.
5395         * libio/oldiofclose.c: Likewise.
5396         * libio/oldiofdopen.c: Likewise.
5397         * libio/oldiofopen.c: Likewise.
5398         * libio/oldiopopen.c: Likewise.
5399         * libio/oldstdfiles.c: Likewise.
5400         * libio/putc.c: Likewise.
5401         * libio/setbuf.c: Likewise.
5402         * libio/setlinebuf.c: Likewise.
5403         * libio/stdfiles.c: Likewise.
5404         * libio/strops.c: Likewise.
5405         * libio/vasprintf.c: Likewise.
5406         * libio/vscanf.c: Likewise.
5407         * libio/vsnprintf.c: Likewise.
5408         * libio/vswprintf.c: Likewise.
5409         * libio/wfiledoalloc.c: Likewise.
5410         * libio/wfileops.c: Likewise.
5411         * libio/wgenops.c: Likewise.
5412         * libio/wmemstream.c: Likewise.
5413         * libio/wstrops.c: Likewise.
5414         * libio/__fpurge.c: Likewise.
5415         * libio/__fsetlocking.c: Likewise.
5416         * assert/assert.c: Likewise.
5417         * debug/fgets_chk.c: Likewise.
5418         * debug/fgets_u_chk.c: Likewise.
5419         * debug/fread_chk.c: Likewise.
5420         * debug/fread_u_chk.c: Likewise.
5421         * debug/gets_chk.c: Likewise.
5422         * debug/obprintf_chk.c: Likewise.
5423         * debug/vasprintf_chk.c: Likewise.
5424         * debug/vdprintf_chk.c: Likewise.
5425         * debug/vsnprintf_chk.c: Likewise.
5426         * debug/vsprintf_chk.c: Likewise.
5427         * malloc/mtrace.c: Likewise.
5428         * misc/error.c: Likewise.
5429         * misc/syslog.c: Likewise.
5430         * stdio-common/asprintf.c: Likewise.
5431         * stdio-common/fxprintf.c: Likewise.
5432         * stdio-common/getw.c: Likewise.
5433         * stdio-common/isoc99_fscanf.c: Likewise.
5434         * stdio-common/isoc99_scanf.c: Likewise.
5435         * stdio-common/isoc99_vfscanf.c: Likewise.
5436         * stdio-common/isoc99_vscanf.c: Likewise.
5437         * stdio-common/isoc99_vsscanf.c: Likewise.
5438         * stdio-common/printf-prs.c: Likewise.
5439         * stdio-common/printf_fp.c: Likewise.
5440         * stdio-common/printf_fphex.c: Likewise.
5441         * stdio-common/printf_size.c: Likewise.
5442         * stdio-common/putw.c: Likewise.
5443         * stdio-common/scanf.c: Likewise.
5444         * stdio-common/sprintf.c: Likewise.
5445         * stdio-common/tmpfile.c: Likewise.
5446         * stdio-common/vfprintf.c: Likewise.
5447         * stdio-common/vfscanf.c: Likewise.
5448         * stdlib/strfmon_l.c: Likewise.
5449         * sunrpc/openchild.c: Likewise.
5450         * sunrpc/xdr_stdio.c: Likewise.
5451         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
5452         * sysdeps/mach/hurd/tmpfile.c: Likewise.
5453
5454 2012-05-24  Roland McGrath  <roland@hack.frob.com>
5455
5456         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
5457
5458         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
5459         in the third column, to generate for the shared library an IFUNC
5460         that uses _dl_vdso_vsym.
5461         * Makerules (COMPILE.c, compile-stdin.c): New variables.
5462         * Makeconfig (object-suffixes-noshared): New variable.
5463
5464         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
5465         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
5466         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
5467         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
5468
5469         [BZ #14132]
5470         * include/sys/time.h (__gettimeofday): Remove macro.
5471         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
5472         * time/gettimeofday.c (__gettimeofday): Remove #undef.
5473         Remove INTDEF.
5474         (__gettimeofday): Add libc_hidden_def.
5475         (gettimeofday): Add libc_hidden_weak.
5476         * sysdeps/mach/gettimeofday.c: Likewise.
5477         * sysdeps/posix/gettimeofday.c: Likewise.
5478         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
5479         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
5480         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
5481         (__gettimeofday_internal): Remove strong_alias.
5482         (__gettimeofday): Add libc_hidden_def.
5483         (gettimeofday): Add libc_hidden_weak.
5484         * sysdeps/unix/syscalls.list (gettimeofday):
5485         Remove __gettimeofday_internal alias.
5486
5487 2012-05-24  Daniel Jacobowitz  <drow@false.org>
5488             H.J. Lu  <hongjiu.lu@intel.com>
5489
5490         [BZ #12495]
5491         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
5492         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
5493         (largebin_index_32_big): New.
5494         (largebin_index): Use it for 16-byte alignment.
5495         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
5496         correction with front_misalign.
5497
5498 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
5499
5500         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
5501         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
5502         Likewise.
5503         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
5504         Likewise.
5505         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
5506         Likewise.
5507         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
5508         Likewise.
5509         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
5510         Likewise.
5511         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
5512         Likewise.
5513         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
5514         Likewise.
5515         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
5516         Likewise.
5517         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
5518         Likewise.
5519         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
5520         Likewise.
5521         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
5522         Likewise.
5523         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
5524         Likewise.
5525
5526         * scripts/data/c++-types-x32-linux-gnu.data: New file.
5527         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
5528
5529 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
5530
5531         [BZ #10846]
5532         [BZ #14036]
5533         * math/libm-test.inc (exp_test): Add test from bug 14036.
5534         (pow_test): Add test from bug 10846.
5535
5536         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
5537         and other flags.
5538         (special_function): Do not include flags in test name.
5539         (parse_args): Likewise.
5540         * sysdeps/i386/fpu/libm-test-ulps: Update.
5541         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
5542         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
5543         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
5544         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5545
5546         * math/gen-libm-test.pl (%beautify): Add entries for underflow
5547         exceptions.
5548         * math/libm-test.inc ("Philosophy"): Update comment about
5549         exception testing.
5550         (UNDERFLOW_EXCEPTION): New macro.
5551         (UNDERFLOW_EXCEPTION_OK): Likewise.
5552         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
5553         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
5554         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
5555         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
5556         (INVALID_EXCEPTION_OK): Update value.
5557         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
5558         (OVERFLOW_EXCEPTION_OK): Likewise.
5559         (IGNORE_ZERO_INF_SIGN): Likewise.
5560         (test_exceptions): Handle underflow exceptions.
5561         (acos_test): Update for underflow exception expectations.
5562         (cexp_test): Likewise.
5563         (clog_test): Likewise.
5564         (clog10_test): Likewise.
5565         (csqrt_test): Likewise.
5566         (ctan_test): Likewise.
5567         (ctanh_test): Likewise.
5568         (exp_test): Likewise.
5569         (exp10_test): Likewise.
5570         (exp2_test): Likewise.
5571         (expm1_test): Likewise.
5572         (fma_test): Likewise.
5573         (j0_test): Likewise.
5574         (jn_test): Likewise.
5575         (nexttoward_test): Likewise.
5576         (pow_test): Likewise.
5577         (scalbn_test): Likewise.
5578         (scalbln_test): Likewise.
5579         (tan_test): Likewise.
5580         (y1_test): Likewise.
5581         * sysdeps/i386/fpu/libm-test-ulps: Update.
5582         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5583
5584 2012-05-23  David S. Miller  <davem@davemloft.net>
5585
5586         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
5587         (__libc_sigaction): Remove unused local variables.
5588
5589 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
5590
5591         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
5592
5593 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
5594
5595         mktime: avoid signed integer overflow
5596         * time/mktime.c (__mktime_internal): Do not mishandle the case
5597         where diff == INT_MIN.
5598
5599         mktime: simplify computation of average
5600         * time/mktime.c (ranged_convert): Use new time_t_avg function
5601         instead of rolling our own (probably-slower) code.
5602
5603         mktime: do not assume signed right shift propagates sign bit
5604         * time/mktime.c (isdst_differ): New static function.
5605         (__mktime_internal): No need to normalize tm_isdst now.
5606         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
5607         tm_isdst values.
5608
5609         mktime: merge another wrapv change from gnulib
5610         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
5611         from some compilers.
5612
5613         mktime: remove incorrect attempt at unusual arithmetics
5614         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
5615         The code didn't really work on such machines anyway.
5616         (TYPE_MINIMUM): Assume two's complement.
5617         (twos_complement_arithmetic): Verify that long_int and time_t
5618         are two's complement (or unsigned, in the latter case).
5619
5620         mktime: check signed shifts on long_int and time_t, too
5621         * time/mktime.c (SHR): Check that shifts work as desired
5622         on the types long_int and time_t too, as SHR is used on
5623         such types.
5624
5625         mktime: do not assume 'long' is wide enough
5626         * time/mktime.c (verify): Move decl up.
5627         (long_int): New type.
5628         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
5629         to remove assumption in the code that 'long' is wide enough to
5630         store year values.  This assumption is not true on x32 and on
5631         some non-glibc platforms.
5632
5633         mktime: merge wrapv change from gnulib
5634         * time/mktime.c (WRAPV): New macro.
5635         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
5636         (guess_time_tm, __mktime_internal): Do not assume that signed
5637         integer overflow wraps around; modern compilers generate code
5638         where this assumption is no longer valid.
5639
5640 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
5641
5642         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
5643         Replace "jmp L(pseudo_end)" with "ret".
5644         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
5645         Likewise.
5646
5647 2012-05-23  Andreas Jaeger  <aj@suse.de>
5648
5649         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
5650         * sysdeps/unix/sysv/linux/poll.c: Remove file.
5651
5652 2012-05-23  Andreas Jaeger  <aj@suse.de>
5653             Maximilian Attems  <max@stro.at>
5654
5655         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
5656         New macros.
5657
5658 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
5659
5660         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
5661         code so that pseudo_end is just ret and the stack pointer is
5662         correct also for static library in error case.
5663
5664 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
5665
5666         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
5667         move to syscalls.list.
5668         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
5669         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
5670         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
5671         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
5672
5673         * manual/install.texi (Running make install): Do not mention Linux
5674         kernel version for which pt_chown is not needed.
5675         (Linux): Do not mention problems with nscd with 2.0 kernels.
5676         * INSTALL: Regenerated.
5677
5678 2012-05-23  Andreas Jaeger  <aj@suse.de>
5679
5680         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
5681         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
5682         macro.
5683         * sysdeps/unix/sysv/linux/s390/bits/mman.h
5684         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5685         * sysdeps/unix/sysv/linux/sh/bits/mman.h
5686         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5687         * sysdeps/unix/sysv/linux/i386/bits/mman.h
5688         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5689         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
5690         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5691         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
5692         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5693         * sysdeps/unix/sysv/linux/bits/in.h
5694         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
5695
5696 2012-05-22  Roland McGrath  <roland@hack.frob.com>
5697
5698         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
5699         (PREPARE_VERSION): Just use assert instead, it will be elided
5700         under [NDEBUG] anyway.
5701
5702 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
5703
5704         * sysdeps/unix/sysv/linux/Makefile: Include
5705         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
5706         (sysdep_routines): Remove sysctl.
5707         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
5708         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
5709         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
5710         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
5711         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
5712
5713 2012-05-22  Andreas Jaeger  <aj@suse.de>
5714
5715         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
5716         that pseudo_end is just ret and the stack pointer is correct also
5717         for static library in error case.
5718
5719 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
5720
5721         [BZ #14122]
5722         * nss/nsswitch.c (defconfig_entries): New variable.
5723         (__nss_database_lookup): Don't leak defconfig entries.
5724         (nss_parse_service_list): Don't leak on error paths.
5725         (free_database_entries): New function.
5726         (free_defconfig): New function.
5727         (free_mem): Move common code to free_database_entries.
5728
5729 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
5730
5731         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
5732         Add arch_prctl.
5733         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
5734
5735         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
5736         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
5737         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
5738         New macro.
5739         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
5740         (INTERNAL_SYSCALL_TYPES): Likewise.
5741         (LOAD_ARGS_TYPES_[1-6]): Likewise.
5742         (LOAD_REGS_TYPES_[1-6]): Likewise.
5743         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
5744         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
5745
5746 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5747
5748         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
5749         copysignl for GLIBC_2_0.
5750         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
5751         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
5752         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
5753         logbl for GLIBC_2_0.
5754         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
5755         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
5756
5757 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
5758
5759         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
5760         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
5761
5762         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
5763         Use "neg %eax".
5764
5765         * time/mktime.c: Update copyright years.
5766
5767 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
5768
5769         mktime: merge comment-quoting-style change from gnulib
5770         * time/mktime.c: Quote 'like this' in comments.
5771         The GNU coding standards suggest that we no longer quote `like this',
5772         as "`" and "'" are typically rendered asymmetrically nowadays.
5773         The typical gnulib style is to quote 'like this' when quoting
5774         code, and "like this" when quoting English.
5775
5776         * time/mktime.c (compile-command): Add "-I.".
5777
5778         mktime: merge mktime-internal.h change from gnulib
5779         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
5780
5781         mktime: merge time_r change from gnulib
5782         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
5783
5784         mktime: merge DEBUG change from gnulib
5785         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
5786         case system <time.h> has a #define.
5787
5788         mktime: merge <sys/types.h> change from gnulib
5789         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
5790         since <time.t> is now guaranteed to define time_t.
5791
5792         mktime: merge HAVE_CONFIG_H change from gnulib
5793         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
5794
5795 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
5796
5797         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
5798         Use "neg %eax".
5799
5800         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
5801         __rlim_t cast.
5802         (struct rusage): Use anonymous union to pad each field to
5803         __syscall_slong_t.
5804
5805 2012-05-21  David S. Miller  <davem@davemloft.net>
5806
5807         * Makefules (o-iterator): Remove .s cases.
5808         (compile-command.s): Delete.
5809         (COMPILE.s): Delete.
5810         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
5811
5812 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
5813
5814         * configure.in (libc_cv_predef_stack_protector): Only consider
5815         "foobar" and "__stack_chk_fail" lines in libc_undefs.
5816         * configure: Regenerated.
5817
5818 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
5819
5820         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
5821         New macro.  Use R*LP on int and pointer.
5822         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
5823         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
5824         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
5825         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
5826
5827         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
5828         [__WORDSIZE_TIME64_COMPAT32] instead of
5829         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
5830         (struct utmp): Likewise.
5831         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
5832         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
5833         Renamed to ...
5834         (__WORDSIZE_TIME64_COMPAT32): This.
5835         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
5836         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
5837         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
5838         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
5839         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
5840         (__WORDSIZE_TIME64_COMPAT32): New macro.
5841
5842 2012-05-21  Andreas Jaeger  <aj@suse.de>
5843
5844         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
5845         only if [SHARED]. Add prototype for __wcschr_ia32.
5846
5847 2012-05-21  Roland McGrath  <roland@hack.frob.com>
5848
5849         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
5850         of %rbp unmolested in the jmp_buf while mangling the low bits.
5851         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
5852         unmolested high bits of %rbp while demangling the low bits.
5853         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
5854
5855 2012-05-21  Andreas Jaeger  <aj@suse.de>
5856
5857         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
5858         * sunrpc/svc_simple.c: Use it for registerrpc.
5859         * sunrpc/xcrypt.c: Use it for passwd2des.
5860
5861         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
5862
5863 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
5864
5865         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
5866         Don't define if [__SYSCALL_WORDSIZE != 32].
5867         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
5868         New macro.
5869
5870 2012-05-21  Bruno Haible  <bruno@clisp.org>
5871             Andreas Jaeger  <aj@suse.de>
5872
5873         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
5874         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
5875         inptr and inend for must_buffer_ch.
5876         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
5877         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
5878         * stdio-common/Makefile (tests): Remove bug15.
5879         (bug15-ENV): Remove macro.
5880         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
5881         anymore.
5882
5883 2012-05-19  Andreas Jaeger  <aj@suse.de>
5884             Roland McGrath  <roland@hack.frob.com>
5885
5886         * manual/contrib.texi: Completely rewritten. It contains now an
5887         alphabetical list of contributors and their contributions.
5888
5889 2012-05-21  Richard Henderson  <rth@twiddle.net>
5890
5891         * misc/getauxval.c (__getauxval): Use unsigned long int.
5892         * misc/sys/auxv.h: Include <sys/cdefs.h>.
5893         (getauxval): Use unsigned long int.
5894
5895 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
5896
5897         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
5898
5899 2012-05-21  Roland McGrath  <roland@hack.frob.com>
5900
5901         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
5902         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
5903         __alignof__ (long double).
5904
5905 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5906
5907         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5908
5909 2012-05-20  Richard Henderson  <rth@twiddle.net>
5910
5911         * misc/getauxval.c: New file.
5912         * misc/sys/auxv.h: New file.
5913         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
5914         (routines): Add getauxval.
5915         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
5916         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
5917         * elf/dl-sysdep.c (_dl_auxv): Remove.
5918         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
5919         * elf/dl-support.c (_dl_auxv): New variable.
5920         (_dl_aux_init): Initialize it.
5921         * manual/startup.texi (Auxiliary Vector): New node.
5922         * sysdeps/generic/bits/hwcap.h: New file.
5923         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
5924         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
5925         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
5926         * sysdeps/sparc/sysdep.h: ... here.  Include it.
5927         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
5928         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
5929         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
5930         Update.
5931         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
5932         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
5933         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
5934         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
5935         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
5936         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
5937         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
5938         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
5939
5940 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5941
5942         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5943
5944 2012-05-19  David S. Miller  <davem@davemloft.net>
5945
5946         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5947
5948 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
5949
5950         [BZ #14123]
5951         * math/s_ccosh.c: Include <float.h>
5952         (__ccosh): Avoid internal overflow calculating sinh and cosh
5953         values before multiplying by sin and cos values.
5954         * math/s_ccoshf.c: Likewise.
5955         * math/s_ccoshl.c: Likewise.
5956         * math/s_csin.c: Likewise.
5957         * math/s_csinf.c: Likewise.
5958         * math/s_csinl.c: Likewise.
5959         * math/s_csinh.c: Likewise.
5960         * math/s_csinhf.c: Likewise.
5961         * math/s_csinhl.c: Likewise.
5962         * math/libm-test.inc (ccos_test): Add more tests.
5963         (ccosh_test): Likewise.
5964         (csin_test): Likewise.
5965         (csinh_test): Likewise.
5966         * sysdeps/i386/fpu/libm-test-ulps: Update.
5967         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5968
5969 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
5970
5971         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
5972         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
5973
5974         * sysdeps/x86_64/x32/_itoa.h: Add comment.
5975
5976 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
5977
5978         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
5979         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
5980         * sysdeps/powerpc/soft-fp/Versions: Likewise.
5981         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
5982         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
5983         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
5984         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
5985         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
5986         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
5987         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
5988         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
5989         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
5990         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
5991         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
5992         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
5993         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
5994         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
5995         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
5996         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
5997         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
5998         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
5999         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
6000         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
6001         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
6002         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
6003         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
6004         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
6005         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
6006         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
6007         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
6008         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
6009
6010 2012-05-18  Andreas Jaeger  <aj@suse.de>
6011
6012         * csu/.gitignore: Delete.
6013
6014 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
6015
6016         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
6017         (timex): Use __syscall_slong_t.
6018
6019 2012-05-18  Andreas Jaeger  <aj@suse.de>
6020             Carlos O'Donell  <carlos_odonell@mentor.com>
6021
6022         * manual/install.texi (Configuring and compiling): Update
6023         description about files modified in the source directory.
6024         * INSTALL: Regenerated.
6025
6026 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
6027
6028         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
6029         value.  Use "or" to set return value to -1.
6030         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
6031         negate return value.
6032
6033 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
6034
6035         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
6036         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
6037         failure if the compiler has Graphite support disabled.
6038         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
6039         Likewise.
6040         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
6041         CFLAGS-memmove.c): Likewise.
6042         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
6043         Likewise.
6044
6045 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
6046
6047         * sysdeps/x86_64/x32/_itoa.h: New file.
6048
6049         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
6050         getdents system call only if kernel and user dirents have the
6051         same d_ino and d_off.
6052
6053         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
6054         LLONG_MAX != LONG_MAX.
6055         (_itoa_word): Use _ITOA_WORD_TYPE on value.
6056         (_fitoa_word): Likewise.
6057
6058         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
6059         years.
6060         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
6061         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
6062         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
6063
6064         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
6065         include <bits/wordsize.h>.  Check __x86_64__ instead of
6066         __WORDSIZE.
6067         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
6068         if __x86_64__ is defined.  Use anonymous union on fpstate.
6069
6070         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
6071         anonymous union.
6072
6073 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
6074
6075         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
6076         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
6077         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
6078         Refer to _rtld_local_ro instead of _rtld_global_ro.
6079         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
6080         Likewise.
6081         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
6082         Likewise.
6083         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
6084         Likewise.
6085         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
6086         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
6087         of _rtld_global, and rtld_progname instead of _dl_argv[0].
6088
6089         * sysdeps/powerpc/powerpc32/dl-machine.c
6090         (__elf_machine_runtime_setup) [PROF]: Don't reference
6091         _dl_prof_resolve.
6092
6093 2012-05-18  Andreas Jaeger  <aj@suse.de>
6094
6095         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
6096         function only available for GCCs before 3.4 since GCC 3.4
6097         introduced a builtin.
6098         (lrint): Likewise.
6099         (llrintf): Likewise.
6100         (llrint): Likewise.
6101         (fmaxf): Likewise.
6102         (fmax): Likewise.
6103         (fminf): Likewise.
6104         (fmin): Likewise.
6105         (rint): Likewise.
6106         (rintf): Likewise.
6107         (nearbyint): Likewise.
6108         (nearbyintf): Likewise.
6109         (ceil): Likewise.
6110         (ceilf): Likewise.
6111         (floor): Likewise.
6112         (floorf): Likewise.
6113
6114 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
6115
6116         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
6117         on both fields and cast pointer to __syscall_ulong_t.
6118
6119         * bits/types.h (__fsword_t): New type.
6120         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
6121         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
6122         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
6123         (__FSWORD_T_TYPE): Likewise.
6124         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
6125         (__FSWORD_T_TYPE): Likewise.
6126         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
6127         (__FSWORD_T_TYPE): Likewise.
6128         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
6129         (__FSWORD_T_TYPE): Likewise.
6130         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
6131         __SWORD_TYPE with __fsword_t.
6132         (statfs64): Likewise.
6133
6134 2012-05-17  David S. Miller  <davem@davemloft.net>
6135
6136         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
6137
6138 2012-05-17  Andreas Jaeger  <aj@suse.de>
6139
6140         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
6141         warning.
6142
6143 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
6144
6145         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
6146
6147 2012-05-17  Andreas Jaeger  <aj@suse.de>
6148
6149         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
6150         when it is used.
6151
6152 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
6153
6154         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
6155
6156 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
6157
6158         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
6159         * sysdeps/x86_64/tst-mallocalign1.c: New file.
6160
6161 2012-05-17  Andreas Jaeger  <aj@suse.de>
6162             Carlos O'Donell  <carlos_odonell@mentor.com>
6163
6164         [BZ #14059]
6165         * sysdeps/x86_64/multiarch/init-arch.h
6166         (bit_YMM_Usable): Rename to...
6167         (bit_AVX_Usable): ... this.
6168         (bit_FMA4_Usable): New macro.
6169         (bit_XMM_state): New macro.
6170         (bit_YMM_state): New macro.
6171         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
6172         [__ASSEMBLER__] (index_AVX_Usable): ... this.
6173         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
6174         (CPUID_OSXSAVE): New macro.
6175         (CPUID_AVX): New macro.
6176         (CPUID_FMA4): New macro.
6177         (index_YMM_Usable): Rename to...
6178         (index_AVX_Usable): ... this.
6179         (HAS_AVX): Use HAS_ARCH_FEATURE.
6180         (HAS_FMA4): Likewise.
6181         (HAS_YMM_USABLE): Remove.
6182         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
6183         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
6184         are present.
6185         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
6186         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
6187         * sysdeps/x86_64/multiarch/Makefile: Likewise.
6188         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
6189         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
6190
6191 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
6192
6193         * math/libm-test.c: Support platforms without multiple rounding modes.
6194         * math/bug-nextafter.c: Support platforms without FP exceptions.
6195         * math/bug-nexttoward.c: Likewise.
6196         * math/test-fenv.c: Likewise.
6197         * math/test-misc.c: Likewise.
6198         * stdlib/bug-getcontext.c: Likewise.
6199
6200 2012-05-17  Andreas Jaeger  <aj@suse.de>
6201
6202         * manual/examples/search.c (critter_cmp): Change signature to
6203         avoid warnings.
6204         * manual/string.texi (Collation Functions): Likewise.
6205
6206 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6207
6208         * bits/types.h: Fold copyright years.
6209         * bits/typesizes.h: Likewise.
6210         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
6211         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
6212         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
6213         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
6214         * time/time.h: Likewise.
6215
6216 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
6217
6218         [BZ #208]
6219         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
6220         in instead of returning them.  Return void.
6221         (__libc_mallinfo): Accumulate over all arenas.
6222         (__malloc_stats): Adjust for change in int_mallinfo interface.
6223
6224 2012-05-16  Roland McGrath  <roland@hack.frob.com>
6225
6226         [BZ #10375]
6227         * configure.in (NM): Add AC_CHECK_TOOL for it.
6228         (libc_extra_cflags): New substituted variable.
6229         Check for -fstack-protector being used implicitly.
6230         * configure: Regenerated.
6231         * config.make.in (config-extra-cflags): New variable,
6232         gets @libc_extra_cflags@.
6233         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
6234
6235         [BZ #10375]
6236         * configure.in: Check for _FORTIFY_SOURCE being predefined.
6237         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
6238         * configure: Regenerated.
6239         * config.make.in (CPPUNDEFS): New substituted variable.
6240         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
6241         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
6242         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
6243
6244 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6245
6246         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
6247         (mq_attr): Use __syscall_slong_t.
6248
6249 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6250
6251         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
6252         Check __x86_64__ instead of __WORDSIZE.
6253         (_STAT_VER_LINUX): Likewise.
6254         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
6255         __syscall_ulong_t and __syscall_slong_t.
6256         (stat64): Likewise.
6257
6258 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6259
6260         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
6261
6262 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6263
6264         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
6265
6266 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6267
6268         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
6269         __syscall_ulong_t.
6270
6271         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
6272         include <bits/wordsize.h>.  Check __x86_64__ instead of
6273         __WORDSIZE.
6274         (greg_t): Use "__extension__ long long int" if __x86_64__ is
6275         defined.
6276         (mcontext_t): Replace "unsigned long" with "unsigned long long".
6277
6278         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
6279         include <bits/wordsize.h>.  Check __x86_64__ instead of
6280         __WORDSIZE.
6281         (user_regs_struct): Use "__extension__ unsigned long long"
6282         instead of "unsigned long" if __x86_64__ is defined.
6283         (user): Likewise.  Pad after pointer field if __ILP32__ is
6284         defined.
6285
6286 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
6287
6288         * configure.in (makeinfo): Require version 4.5 or later.  Allow
6289         versions 5 to 9.
6290         * configure: Regenerated.
6291         * manual/install.texi (texinfo): Increase version requirement to
6292         4.5 or later.
6293         * INSTALL: Regenerated.
6294
6295         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
6296
6297 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6298
6299         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
6300
6301         * sysdeps/x86_64/x32/ffs.c: New file.
6302
6303         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
6304         __syscall_ulong_t.
6305         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
6306         defined.  Use __syscall_ulong_t.
6307         (shminfo): Use __syscall_ulong_t.
6308         (shm_info): Likewise.
6309
6310         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
6311         __syscall_ulong_t.
6312
6313         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
6314         <bits/wordsize.h>.
6315         (msgqnum_t): Use __syscall_ulong_t.
6316         (msglen_t): Likewise.
6317         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
6318         __syscall_ulong_t.
6319
6320         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
6321         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
6322
6323         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
6324
6325         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
6326         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
6327
6328         * sysvipc/sys/msg.h (msgbuf): Replace long int with
6329         __syscall_slong_t.
6330
6331         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
6332         include <bits/wordsize.h>.  Check __x86_64__ instead of
6333         __WORDSIZE.
6334
6335         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
6336         "unsigned long long int" if __x86_64__ is defined.
6337         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
6338
6339         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
6340         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
6341         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
6342
6343         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
6344         <stdint.h>.
6345         (GET_PC): Cast to uintptr_t first.
6346         (GET_FRAME): Likewise.
6347         (GET_STACK): Likewise.
6348
6349         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
6350         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
6351         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
6352         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
6353         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
6354         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
6355         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
6356         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
6357         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
6358         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
6359         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
6360         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
6361         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
6362         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
6363         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
6364         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
6365         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
6366         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
6367         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
6368         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
6369         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
6370         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
6371         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
6372         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
6373         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
6374         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
6375         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
6376         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
6377         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
6378
6379 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
6380
6381         * Makerules (+depfiles): Also collect depfiles from .oS in
6382         $(extra-objs).
6383         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
6384         .oS, $(libnldbl-routines)).
6385
6386         * Makerules (native-compile-mkdep-flags): Define.
6387         * sunrpc/Makefile (extra-objs): Add $(addprefix
6388         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
6389         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
6390         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
6391         calling $(make-target-directory).
6392
6393 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6394
6395         * bits/types.h (__snseconds_t): Removed.
6396         * time/time.h (struct timespec): Replace __snseconds_t with
6397         __syscall_slong_t.
6398         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
6399         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
6400         Likewise.
6401         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
6402         (__SNSECONDS_T_TYPE): Likewise.
6403         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
6404         (__SNSECONDS_T_TYPE): Likewise.
6405         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
6406         (__SNSECONDS_T_TYPE): Likewise.
6407
6408 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6409
6410         * sysdeps/mach/hurd/bits/typesizes.h
6411         (__SYSCALL_SLONG_TYPE): New macro.
6412         (__SYSCALL_ULONG_TYPE): Likewise.
6413
6414 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6415
6416         * bits/types.h (__syscall_slong_t): New type.
6417         (__syscall_ulong_t): Likewise.
6418
6419         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
6420         (__SYSCALL_ULONG_TYPE): Likewise.
6421         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
6422         (__SYSCALL_SLONG_TYPE): Likewise.
6423         (__SYSCALL_ULONG_TYPE): Likewise.
6424         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
6425         (__SYSCALL_SLONG_TYPE): Likewise.
6426         (__SYSCALL_ULONG_TYPE): Likewise.
6427         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
6428         (__SYSCALL_SLONG_TYPE): Likewise.
6429         (__SYSCALL_ULONG_TYPE): Likewise.
6430
6431 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6432
6433         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
6434         Add sigaltstack-offsets.sym.
6435         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
6436         <sigaltstack-offsets.h>.
6437         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
6438         longjmp_msg pointer.
6439         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
6440         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
6441         signal stack.
6442         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
6443
6444 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
6445
6446         * elf/stackguard-macros.h: Remove file.
6447         * sysdeps/generic/stackguard-macros.h: New file.
6448         * sysdeps/i386/stackguard-macros.h: Likewise.
6449         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
6450         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
6451         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
6452         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
6453         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
6454         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
6455         * sysdeps/x86_64/stackguard-macros.h: Likewise.
6456         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
6457         <elf/stackguard-macros.h>.
6458
6459         [BZ #14109]
6460         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
6461         __aligned__ in attribute.
6462         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
6463         (gregset_t): Likewise.
6464
6465 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6466
6467         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
6468         * sysdeps/x86_64/64/Implies-after: Here.  New file.
6469         * sysdeps/x86_64/x32/Implies-after: New file.
6470
6471 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6472
6473         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
6474         and access return value for _dl_profile_fixup.  Use R10_LP to
6475         load frame size.
6476
6477 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6478
6479         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
6480
6481 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6482
6483         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
6484         * sysdeps/x86_64/x32/sysdep.h: New file.
6485
6486 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6487
6488         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
6489         * sysdeps/x86_64/setjmp.S: Likewise.
6490
6491 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6492
6493         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
6494         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
6495         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
6496         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
6497         remove unused global constant.
6498
6499 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
6500
6501         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
6502         include of <not-cancel.h>.
6503
6504 2012-05-15  Roland McGrath  <roland@hack.frob.com>
6505
6506         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
6507
6508 2012-05-15  Jeff Law  <law@redhat.com>
6509             Andreas Jaeger  <aj@suse.de>
6510
6511         [BZ #13594]
6512         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
6513         out from...
6514         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
6515         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
6516         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
6517         code changing __hst_map_handle.map.
6518
6519 2012-05-15  Roland McGrath  <roland@hack.frob.com>
6520
6521         * configure.in (sysnames): Look for Implies-before and Implies-after
6522         files.
6523         * configure: Regenerated.
6524
6525 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6526
6527         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
6528         8-byte data alignment with LP_SIZE alignment.
6529
6530 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6531
6532         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
6533         into R10_LP.
6534
6535 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6536
6537         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
6538
6539 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6540
6541         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
6542         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
6543         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
6544         Likewise.
6545         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
6546
6547 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6548
6549         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
6550         (stackinfo_sub_sp): Likewise.
6551
6552 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6553
6554         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
6555         RAX_LP.
6556
6557 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6558
6559         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
6560         into R*_LP.
6561
6562 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6563
6564         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
6565         sizes into R*_LP.
6566
6567 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6568
6569         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
6570
6571 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6572
6573         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
6574         into R11_LP and load __x86_64_shared_cache_size_half into
6575         R8_LP.
6576
6577 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6578
6579         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
6580         R8_LP.
6581
6582 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6583
6584         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
6585         logb for POWER7.
6586         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
6587         logbf for POWER7.
6588         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
6589         logbl for POWER7.
6590         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
6591         powerpc32/power7/fpu/s_logb.c via #include.
6592         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
6593         powerpc32/power7/fpu/s_logbf.c via #include.
6594         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
6595         powerpc32/power7/fpu/s_logbl.c via #include.
6596
6597 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
6598
6599         * README.libm: Remove file.
6600
6601 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6602
6603         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
6604         count for x32.  Use R*_LP and omit operand-size suffix.
6605
6606 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6607
6608         * shlib-versions: Move x86_64-.*-linux.* entries to ...
6609         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
6610         * sysdeps/x86_64/x32/shlib-versions: New file.
6611
6612 2012-05-14  Roland McGrath  <roland@hack.frob.com>
6613
6614         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
6615         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
6616         Use _dl_fatal_printf instead.
6617
6618 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
6619
6620         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
6621         set if not set by the user.  Do not allow for being unset.
6622         * sysdeps/unix/sysv/linux/configure: Regenerated.
6623
6624 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6625
6626         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
6627         the `q' suffix from lea and replace .quad with ASM_ADDR.
6628
6629 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6630
6631         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
6632         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
6633         instead of $17.
6634         (PTR_DEMANGLE): Likewise.
6635
6636 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6637
6638         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
6639         (LP_OP): Likewise.
6640         (ASM_ADDR): Likewise.
6641         (RAX_LP): Likewise.
6642         (RBP_LP): Likewise.
6643         (RBX_LP): Likewise.
6644         (RCX_LP): Likewise.
6645         (RDI_LP): Likewise.
6646         (RSI_LP): Likewise.
6647         (RSP_LP): Likewise.
6648         (R8_LP): Likewise.
6649         (R9_LP): Likewise.
6650         (R10_LP): Likewise.
6651         (R10_LP): Likewise.
6652         (R11_LP): Likewise.
6653         (R12_LP): Likewise.
6654         (R13_LP): Likewise.
6655         (R14_LP): Likewise.
6656         (R15_LP): Likewise.
6657
6658 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6659
6660         * sysdeps/x86_64/x32/dl-machine.h: New file.
6661
6662 2012-05-14  Andreas Jaeger  <aj@suse.de>
6663
6664         * manual/Makefile (subdir): Remove export of subdir.
6665         (all): Remove target.
6666         (.PHONY): Remove all from list.
6667         (mkinstalldirs): Remove.
6668         (.PHONY): Remove installdirs from list.
6669         ($(inst_infodir)/libc.info): Use make-target-directory.
6670         (installdirs): Remove.
6671         (subdir_%): Remove.
6672         (glibc-targets): Remove.
6673         (lib): Remove.
6674         (stubs): Remove.
6675         ($(objpfx)stubs ../po/manual.pot): Remove.
6676         ($(objpfx)stamp%): Remove.
6677         (make-target-directory): Remove.
6678         (subdir_install): Remove.
6679         (routines): Remove.
6680         (aux): Remove.
6681         (sources): Remove.
6682         (objects): Remove.
6683         (headers): Remove.
6684
6685         [BZ #13750]
6686         * manual/.gitignore: Remove, it's not needed anymore.
6687         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
6688         all files in it.
6689         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
6690         directory.
6691         (texis): Renamed to $(objpfx)texis.
6692         (texis-path): New, contains path to generated files.
6693         (chapters.%): Use texis-path for complete path, add extra argument
6694         libc-texinfo.sh.
6695         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
6696         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
6697         (summary,texi, stamp-summary): Use complete path of
6698         files. Generate files in build dir.
6699         (dir-add.texi): Build in build dir.
6700         (libm-err.texi,stamp-libm-err): Likewise.
6701         (version.texi, stamp-version): Likewise.
6702         (.%c.texi): Likewise.
6703         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
6704         (mostlyclean): Remove target.
6705         (realclean): Remove target.
6706         (generated): Add new variable with contents from mostlyclean and
6707         realclean, remove entries duplicated in common-mostlyclean, add
6708         stamp-libm-err and stamp-version.
6709         (generated-dirs): Add libc directory.
6710         ($(inst_infodir)/libc.info): Install files from build dir.
6711
6712         * manual/install.texi (Configuring and compiling): Adjust since
6713         the info files are not part of the tar ball anymore.
6714
6715 2012-05-14  Andreas Jaeger  <aj@suse.de>
6716
6717         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
6718         variable.
6719
6720 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
6721
6722         [BZ #13717]
6723         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
6724         to 2.2.0 where earlier.
6725         * sysdeps/unix/sysv/linux/configure: Regenerated.
6726         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
6727         Remove conditional code.
6728         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
6729         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
6730         Remove conditional code.
6731         [!__NR_lchown]: Likewise.
6732         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
6733         [__NR_lchown]: Likewise.
6734         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
6735         comment referencing __ASSUME_LCHOWN_SYSCALL.
6736         * sysdeps/unix/sysv/linux/i386/sigaction.c
6737         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
6738         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
6739         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
6740         Remove conditional code.
6741         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
6742         (__protocol_available): Remove #if 0 code.
6743         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
6744         conditional code.
6745         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
6746         * sysdeps/unix/sysv/linux/kernel-features.h
6747         (__ASSUME_GETCWD_SYSCALL): Don't define.
6748         (__ASSUME_REALTIME_SIGNALS): Likewise.
6749         (__ASSUME_PREAD_SYSCALL): Likewise.
6750         (__ASSUME_PWRITE_SYSCALL): Likewise.
6751         (__ASSUME_POLL_SYSCALL): Likewise.
6752         (__ASSUME_LCHOWN_SYSCALL): Likewise.
6753         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
6754         non-SPARC.
6755         (__ASSUME_SIOCGIFNAME): Don't define.
6756         (__ASSUME_MSG_NOSIGNAL): Likewise.
6757         (__ASSUME_SENDFILE): Define unconditionally.
6758         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
6759         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
6760         conditional code.
6761         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
6762         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
6763         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
6764         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
6765         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
6766         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
6767         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
6768         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
6769         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
6770         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6771         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
6772         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
6773         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6774         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
6775         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
6776         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6777         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
6778         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
6779         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6780         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
6781         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
6782         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6783         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
6784         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
6785         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6786         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
6787         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
6788         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6789         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
6790         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
6791         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6792         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
6793         Remove conditional code.
6794         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6795         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
6796         Remove conditional code.
6797         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6798         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
6799         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
6800         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
6801         Remove conditional code.
6802         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6803         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
6804         Remove conditional code.
6805         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6806         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
6807         Remove conditional code.
6808         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6809         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
6810         Remove conditional code.
6811         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6812         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
6813         Remove conditional code.
6814         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6815         * sysdeps/unix/sysv/linux/sh/pwrite64.c
6816         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
6817         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6818         * sysdeps/unix/sysv/linux/sigaction.c
6819         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
6820         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
6821         * sysdeps/unix/sysv/linux/sigpending.c
6822         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
6823         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
6824         * sysdeps/unix/sysv/linux/sigprocmask.c
6825         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
6826         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
6827         * sysdeps/unix/sysv/linux/sigsuspend.c
6828         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
6829         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
6830         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
6831         (__libc_missing_rt_sigs): Remove.
6832         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
6833         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
6834         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
6835         Remove conditional code.
6836         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
6837         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
6838         return 1.
6839         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
6840         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
6841         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
6842         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
6843
6844 2012-05-14  Andreas Jaeger  <aj@suse.de>
6845
6846         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
6847         it's not used in glibc.
6848         (__coshm1): Likewise.
6849         (__acosh1p): Likewise.
6850         (__sgn): Likewise.
6851
6852         * manual/string.texi (Copying and Concatenation): Add missing
6853         variable in concat example.
6854         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
6855
6856 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6857
6858         [BZ #14103]
6859         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
6860         __builtin_clzl with __builtin_clzll.
6861
6862 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6863
6864         [BZ #14104]
6865         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
6866         libc_freeres_ptr.
6867
6868 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6869
6870         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
6871         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
6872         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
6873         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
6874
6875 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
6876
6877         * NEWS: Update ia64 info.
6878
6879 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
6880
6881         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
6882         used as bcopy.
6883
6884 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
6885
6886         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
6887         * sysdeps/unix/syscalls.list (dup3): Likewise.
6888         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
6889         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
6890
6891 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
6892
6893         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
6894         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
6895
6896 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
6897
6898         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
6899         thread pointer.
6900         (TLS_IE): Use mov/add instead of movq/addq to load thread
6901         pointer.
6902         (TLS_GD_PREFIX): New.
6903         (TLS_GD): Use it.
6904
6905 2012-05-11  David S. Miller  <davem@davemloft.net>
6906
6907         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
6908         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
6909         (_FPU_SETCW): Likewise.
6910
6911 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
6912
6913         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
6914         is 32-byte aligned.
6915
6916 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
6917
6918         [BZ #11837]
6919         * iconvdata/gb18030.c: Update tables.
6920         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
6921         characters specially.
6922         (BODY for TO_LOOP): Add encoding of missing ranges.
6923
6924 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
6925
6926         [BZ #13673]
6927         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
6928         * sysdeps/mach/hurd/dup3.c: Likewise.
6929         * sysdeps/mach/hurd/readlinkat.c: Likewise.
6930         * sysdeps/powerpc/memmove.c:: Likewise.
6931
6932 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
6933
6934         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
6935         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
6936
6937 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
6938
6939         * elf/elf.h (R_X86_64_RELATIVE64): New.
6940         (R_X86_64_NUM): Updated.
6941         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
6942         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
6943         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
6944         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
6945         tst-quad1pie tst-quad2pie
6946         (modules-names): Add tst-quadmod1 tst-quadmod2.
6947         ($(objpfx)tst-quad1): New dependency.
6948         ($(objpfx)tst-quad2): Likewise.
6949         ($(objpfx)tst-quad1pie): Likewise.
6950         ($(objpfx)tst-quad2pie): Likewise.
6951         * sysdeps/x86_64/tst-quad1.c: New file.
6952         * sysdeps/x86_64/tst-quad1pie.c: New file.
6953         * sysdeps/x86_64/tst-quad2.c: Likewise.
6954         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
6955         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
6956         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
6957         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
6958         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
6959
6960 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
6961
6962         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
6963         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
6964         * streams/stropts.h (t_scalar_t): Define type.
6965
6966         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
6967         (_PATH_PRESERVE): Set to "/var/lib".
6968         (_PATH_RWHODIR): Set to "/var/spool/rwho".
6969
6970         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
6971         instead of int.
6972
6973         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
6974         if __dir_mkfile succeeded.
6975
6976         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
6977         checking for _hurd_dtablesize.  Unlock it right after having
6978         finished _hurd_dtable allocation.
6979
6980 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
6981
6982         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
6983         * sysdeps/mach/hurd/configure: Regenerated.
6984         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
6985         special-casing to...
6986         * sysdeps/gnu/configure.in: ... this new file.
6987         * sysdeps/unix/sysv/linux/configure: Regenerated.
6988         * sysdeps/gnu/configure: New generated file.
6989
6990         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
6991         for Linux: use nsec instead of usec, as well as:
6992         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
6993         members of type struct timespec.
6994         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
6995         New macros.
6996         (struct stat64): Likewise.
6997         (_STATBUF_ST_NSEC): New macro.
6998         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
6999
7000         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
7001         __strtoul_internal rather than strtoul.
7002
7003 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
7004
7005         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
7006         and reject them.
7007
7008 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7009
7010         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
7011         which preserves existing values.
7012         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
7013
7014 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
7015
7016         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
7017         TIMEOUT values.  Return EINVAL for NFDS values either negative or
7018         greater than FD_SETSIZE.
7019
7020 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7021
7022         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
7023         allocated, call __vm_protect to finish enabling the existing space, and
7024         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
7025         allocate the remainder.
7026
7027 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
7028
7029         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
7030         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
7031
7032 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7033
7034         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
7035         sysdeps/mach/hurd/readlink.c.
7036
7037         * posix/tst-sysconf.c (posix_options): Only use
7038         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
7039         _POSIX_SYNCHRONIZED_IO when they are defined
7040         * sysdeps/mach/hurd/bits/posix_opt.h:
7041         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
7042         (_XOPEN_REALTIME): Undefine macro.
7043         (_XOPEN_REALTIME_THREADS): Undefine macro.
7044         (_XOPEN_SHM): Undefine macro.
7045         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
7046         macro to -1.
7047         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
7048         macro to -1.
7049         (_POSIX_ASYNC_IO): Undefine macro.
7050         (_POSIX_PRIORITIZED_IO): Undefine macro.
7051         (_POSIX_SPIN_LOCKS): Define macro to -1.
7052
7053         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
7054         SA_NODEFER, SA_RESETHAND.
7055         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
7056         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
7057         F_DUPFD_CLOEXEC.
7058
7059 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7060
7061         * elf/Makefile (pldd-modules): Define unconditionally.
7062
7063 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7064
7065         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
7066
7067 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7068
7069         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
7070         Return ENOENT when name is empty.
7071         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
7072
7073 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7074
7075         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
7076
7077         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
7078
7079 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7080
7081         Fix mlock in all cases except non-readable pages.
7082         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
7083         instead of VM_PROT_ALL as parameter to __vm_wire function.
7084
7085         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
7086         (__mkdir): When path is `/', just fail with EEXIST.
7087         * sysdeps/mach/hurd/mkdirat.c: Likewise.
7088
7089 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7090
7091         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
7092         <sys/uio.h> (for writev).
7093         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
7094         and <sys/param.h> (for MIN).
7095
7096 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
7097
7098         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
7099         REQUESTED_TIME.  Properly set the remaining time and return EINTR
7100         if interrupted.
7101
7102 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7103
7104         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
7105         Depend on against $(link-rpcuserlibs).
7106
7107 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7108
7109         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
7110         (__libc_stack_end): Do not use attribute_relro.
7111         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
7112         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
7113         to libthread-provided value.
7114         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
7115         attribute_relro.
7116
7117 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7118
7119         [BZ #3748]
7120         * bits/libc-lock.h (__libc_once_get): New macro.
7121         * sysdeps/mach/bits/libc-lock.h: Likewise.
7122         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
7123         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
7124         instead of using implementation details.
7125
7126         * libio/fileops.c: Unconditionally include <kernel-features.h>.
7127         * libio/freopen.c: Likewise.
7128         * libio/freopen64.c: Likewise.
7129         * misc/syslog.c: Likewise.
7130         * nscd/connections.c: Likewise.
7131         * nscd/netgroupcache.c: Likewise.
7132         * sysdeps/posix/getcwd.c: Likewise.
7133
7134 2012-05-10  Roland McGrath  <roland@hack.frob.com>
7135
7136         * math/w_ilogbf.c: Add #include <limits.h>.
7137
7138 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7139
7140         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
7141         path instead of returning without unlocking.
7142
7143         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
7144         immediate-write ioctls.
7145         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
7146
7147 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7148
7149         * sysdeps/mach/hurd/i386/init-first.c (init): Use
7150         __builtin_frame_address instead of making assumptions about the
7151         location of the return address relative to DATA.  Force early load of
7152         the return address.
7153         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
7154         __builtin_frame_address.
7155
7156         dup3 for GNU Hurd.
7157         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
7158         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
7159         implement dup3 and do some further code clean-ups.
7160         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
7161         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
7162
7163 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7164
7165         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
7166
7167         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
7168         HURD_CRITICAL_END around holding _hurd_dtable_lock.
7169         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
7170         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
7171         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
7172         d->port.lock.
7173
7174         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
7175         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
7176         when handler == SIG_ERR, not when handler != SIG_ERR.
7177
7178 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7179
7180         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
7181         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
7182         definitions.
7183
7184         accept4 for GNU Hurd.
7185         * include/sys/socket.h (__libc_accept4): New prototype.
7186         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
7187         to implement __libc_accept4.
7188         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
7189         __libc_accept4.
7190         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
7191
7192         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
7193         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
7194         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
7195         signal-defines.sym.
7196
7197 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7198
7199         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
7200
7201 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7202
7203         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
7204         assertion on O_CLOEXEC flag.
7205         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
7206         * hurd/intern-fd.c: Likewise.
7207         * hurd/port2fd.c: Likewise.
7208
7209 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7210
7211         [BZ #3906]
7212         * bits/in.h (IPV6_PKTINFO): Define new macro.
7213         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
7214
7215 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7216
7217         [BZ #13954]
7218         [BZ #13955]
7219         [BZ #13956]
7220         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
7221         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
7222         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
7223         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
7224         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
7225         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
7226         * math/libm-test.inc (logb_test) : Additional logb tests.
7227
7228 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
7229             Andreas Jaeger  <aj@suse.de>
7230
7231         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
7232         * configure: Regenerated.
7233         * config.h.in (LINK_OBSOLETE_RPC): New macro.
7234         * config.make.in (link-obsolete-rpc): New substituted variable.
7235         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
7236         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
7237         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
7238         (shared-only-routines): Don't set it under [link-obsolete-rpc],
7239         so that libc.a contains the symbols.
7240         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
7241         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
7242         * sunrpc/auth_none.c: Likewise.
7243         * sunrpc/auth_unix.c: Likewise.
7244         * sunrpc/authdes_prot.c: Likewise.
7245         * sunrpc/authuxprot.c: Likewise.
7246         * sunrpc/clnt_gen.c: Likewise.
7247         * sunrpc/clnt_perr.c: Likewise.
7248         * sunrpc/clnt_raw.c: Likewise.
7249         * sunrpc/clnt_simp.c: Likewise.
7250         * sunrpc/clnt_tcp.c: Likewise.
7251         * sunrpc/clnt_udp.c: Likewise.
7252         * sunrpc/clnt_unix.c: Likewise.
7253         * sunrpc/des_crypt.c: Likewise.
7254         * sunrpc/des_soft.c: Likewise.
7255         * sunrpc/get_myaddr.c: Likewise.
7256         * sunrpc/key_call.c: Likewise.
7257         * sunrpc/key_prot.c: Likewise.
7258         * sunrpc/netname.c: Likewise.
7259         * sunrpc/pm_getmaps.c: Likewise.
7260         * sunrpc/pm_getport.c: Likewise.
7261         * sunrpc/pmap_clnt.c: Likewise.
7262         * sunrpc/pmap_prot.c: Likewise.
7263         * sunrpc/pmap_prot2.c: Likewise.
7264         * sunrpc/pmap_rmt.c: Likewise.
7265         * sunrpc/publickey.c: Likewise.
7266         * sunrpc/rpc_cmsg.c: Likewise.
7267         * sunrpc/rpc_common.c: Likewise.
7268         * sunrpc/rpc_dtable.c: Likewise.
7269         * sunrpc/rpc_prot.c: Likewise.
7270         * sunrpc/rpc_thread.c: Likewise.
7271         * sunrpc/rtime.c: Likewise.
7272         * sunrpc/svc.c: Likewise.
7273         * sunrpc/svc_auth.c: Likewise.
7274         * sunrpc/svc_raw.c: Likewise.
7275         * sunrpc/svc_run.c: Likewise.
7276         * sunrpc/svc_tcp.c: Likewise.
7277         * sunrpc/svc_udp.c: Likewise.
7278         * sunrpc/svc_unix.c: Likewise.
7279         * sunrpc/svcauth_des.c: Likewise.
7280         * sunrpc/xcrypt.c: Likewise.
7281         * sunrpc/xdr.c: Likewise.
7282         * sunrpc/xdr_array.c: Likewise.
7283         * sunrpc/xdr_float.c: Likewise.
7284         * sunrpc/xdr_intXX_t.c: Likewise.
7285         * sunrpc/xdr_mem.c: Likewise.
7286         * sunrpc/xdr_rec.c: Likewise.
7287         * sunrpc/xdr_ref.c: Likewise.
7288         * sunrpc/xdr_sizeof.c: Likewise.
7289         * sunrpc/xdr_stdio.c: Likewise.
7290
7291 2012-05-10  Roland McGrath  <roland@hack.frob.com>
7292
7293         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
7294         change.  Update copyright years.
7295
7296 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
7297
7298         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
7299
7300 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
7301             Joseph Myers  <joseph@codesourcery.com>
7302             Paul Pluzhnikov  <ppluzhnikov@google.com>
7303
7304         [BZ #14012]
7305         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
7306         requiring rpcgen.
7307         [cross-compiling] (extra-libs): Likewise.
7308         [cross-compiling] (extra-libs-others): Likewise.
7309         [cross-compiling] (librpcsvc-routines): Likewise.
7310         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
7311         [cross-compiling] (omit-deps): Likewise.
7312         (sunrpc-CPPFLAGS): New variable.
7313         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
7314         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
7315         (cross-rpcgen-objs): New variable.
7316         (extra-objs): Append $(cross-rpcgen-objs).
7317         ($(cross-rpcgen-objs)): New rule.
7318         ($(objpfx)cross-rpcgen): Likewise.
7319         (rpcgen-cmd): Define to use $(built-program-file).  Expand
7320         comment.
7321         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
7322         ($(objpfx)x%.stmp): Likewise.
7323         * sunrpc/proto.h [IS_IN_build] (_): Define.
7324         [IS_IN_build] (_libc_intl_domainname): Likewise.
7325
7326 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
7327
7328         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
7329         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
7330         and R_X86_64_TPOFF64.
7331
7332 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
7333
7334         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
7335         sysdeps/unix/sysv/syscalls.list.
7336         (stime): Likewise.
7337         (utime): Likewise.
7338         * sysdeps/unix/sysv/syscalls.list: Remove file.
7339
7340 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
7341
7342         [BZ #3440]
7343         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
7344         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
7345         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
7346         (__LC_IDENTIFICATION): Make these macros useful in #if
7347         expressions, as required by C99.
7348
7349 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
7350
7351         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
7352         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
7353         after this.
7354
7355 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
7356
7357         * stdlib/longlong.h: Updated from GCC.
7358
7359 2012-05-09  Andreas Jaeger  <aj@suse.de>
7360
7361         * nscd/nscd.c (run_modes): Make named enum, reorder so that
7362         default is first entry.
7363         (run_mode): Set type.
7364         (main): Remove informal message about syslog.
7365         (options): Fix typo.
7366
7367         [BZ #14053]
7368         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
7369         to asm.
7370         (lrint): Likewise.
7371         (llrintf): Likewise.
7372         (llrint): Likewise.
7373         (rint): Likewise.
7374         (rintf): Likewise.
7375         (nearbyint): Likewise.
7376         (nearbyintf): Likewise.
7377
7378 2012-05-09  Andreas Jaeger  <aj@suse.de>
7379             Pedro Alves  <palves@redhat.com>
7380
7381         * nscd/nscd.c (run_mode): Use enum.
7382         (main): Cleanup coding style issue.
7383
7384 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
7385             Andreas Jaeger  <aj@suse.de>
7386
7387         * nscd/nscd.c (go_background): Replaced with...
7388         (run_mode): ... this.
7389         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
7390         (options): Add -F --foreground.
7391         (main): Implement it.
7392         (parse_opt): Parse it.
7393
7394 2012-05-09  Andreas Jaeger  <aj@suse.de>
7395
7396         [BZ #14083]
7397         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
7398         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
7399         -Wconversion warning.
7400         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
7401         Likewise.
7402
7403 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
7404
7405         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
7406         == 0.
7407         (LC_ALL): Use macro-int-constant.
7408         (LC_COLLATE): Likewise.
7409         (LC_CTYPE): Likewise.
7410         (LC_MESSAGES): Likewise.
7411         (LC_MONETARY): Likewise.
7412         (LC_NUMERIC): Likewise.
7413         (LC_TIME): Likewise.
7414         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
7415         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
7416         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7417         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
7418         Specify type.
7419         [C99-based standards] (float_t): Expect type.
7420         [C99-based standards] (double_t): Expect type.
7421         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
7422         type.
7423         [C99-based standards] (HUGE_VALL): Likewise.
7424         [C99-based standards] (INFINITY): Likewise.
7425         [C99-based standards] (NAN): Likewise.
7426         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
7427         [C99-based standards] (FP_NAN): Likewise.
7428         [C99-based standards] (FP_NORMAL): Likewise.
7429         [C99-based standards] (FP_SUBNORMAL): Likewise.
7430         [C99-based standards] (FP_ZERO): Likewise.
7431         [C99-based standards] (FP_FAST_FMA): Use
7432         optional-macro-int-constant.  Specify type.  Require == 1.
7433         [C99-based standards] (FP_FAST_FMAF): Likewise.
7434         [C99-based standards] (FP_FAST_FMAL): Likewise.
7435         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
7436         [C99-based standards] (FP_ILOGBNAN): Likewise.
7437         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
7438         Specify type.
7439         [C99-based standards] (MATH_ERREXCEPT): Likewise.
7440         [C99-based standards] (math_errhandling): Specify type.
7441         [ISO99 || ISO11] (signgam): Do not allow.
7442         [non-C99-based standards] (copysignf): Do not allow.
7443         [non-C99-based standards] (exp2f): Likewise.
7444         [non-C99-based standards] (log2f): Likewise.
7445         [non-C99-based standards] (modff): Allow.
7446         [non-C99-based standards] (erff): Do not allow.
7447         [non-C99-based standards] (erfcf): Likewise.
7448         [non-C99-based standards] (gammaf): Likewise.
7449         [non-C99-based standards] (hypotf): Likewise.
7450         [non-C99-based standards] (j0f): Likewise.
7451         [non-C99-based standards] (j1f): Likewise.
7452         [non-C99-based standards] (jnf): Likewise.
7453         [non-C99-based standards] (lgammaf): Likewise.
7454         [non-C99-based standards] (tgammaf): Likewise.
7455         [non-C99-based standards] (y0f): Likewise.
7456         [non-C99-based standards] (y1f): Likewise.
7457         [non-C99-based standards] (ynf): Likewise.
7458         [non-C99-based standards] (isnanf): Likewise.
7459         [non-C99-based standards] (acoshf): Likewise.
7460         [non-C99-based standards] (asinhf): Likewise.
7461         [non-C99-based standards] (atanhf): Likewise.
7462         [non-C99-based standards] (cbrtf): Likewise.
7463         [non-C99-based standards] (expm1f): Likewise.
7464         [non-C99-based standards] (ilogbf): Likewise.
7465         [non-C99-based standards] (log1pf): Likewise.
7466         [non-C99-based standards] (logbf): Likewise.
7467         [non-C99-based standards] (nextafterf): Likewise.
7468         [non-C99-based standards] (remainderf): Likewise.
7469         [non-C99-based standards] (rintf): Likewise.
7470         [non-C99-based standards] (scalbf): Likewise.
7471         [non-C99-based standards] (copysignl): Likewise.
7472         [non-C99-based standards] (exp2l): Likewise.
7473         [non-C99-based standards] (log2l): Likewise.
7474         [non-C99-based standards] (modfl): Allow.
7475         [non-C99-based standards] (erfl): Do not allow.
7476         [non-C99-based standards] (erfcl): Likewise.
7477         [non-C99-based standards] (gammal): Likewise.
7478         [non-C99-based standards] (hypotl): Likewise.
7479         [non-C99-based standards] (j0l): Likewise.
7480         [non-C99-based standards] (j1l): Likewise.
7481         [non-C99-based standards] (jnl): Likewise.
7482         [non-C99-based standards] (lgammal): Likewise.
7483         [non-C99-based standards] (tgammal): Likewise.
7484         [non-C99-based standards] (y0l): Likewise.
7485         [non-C99-based standards] (y1l): Likewise.
7486         [non-C99-based standards] (ynl): Likewise.
7487         [non-C99-based standards] (isnanl): Likewise.
7488         [non-C99-based standards] (acoshl): Likewise.
7489         [non-C99-based standards] (asinhl): Likewise.
7490         [non-C99-based standards] (atanhl): Likewise.
7491         [non-C99-based standards] (cbrtl): Likewise.
7492         [non-C99-based standards] (expm1l): Likewise.
7493         [non-C99-based standards] (ilogbl): Likewise.
7494         [non-C99-based standards] (log1pl): Likewise.
7495         [non-C99-based standards] (logbl): Likewise.
7496         [non-C99-based standards] (nextafterl): Likewise.
7497         [non-C99-based standards] (remainderl): Likewise.
7498         [non-C99-based standards] (rintl): Likewise.
7499         [non-C99-based standards] (scalbl): Likewise.
7500         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7501         [non-C99-based standards] (FP_*): Do not allow.
7502         [C99-based standards] (FP_*): Change to
7503         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
7504         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
7505         allow.
7506         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
7507         (SIG_ERR): Likewise.
7508         [X/Open-based standards] (SIG_HOLD): Likewise.
7509         (SIG_IGN): Likewise.
7510         (SIGABRT): Use macro-int-constant.  Specify type.  Require
7511         positive value.
7512         (SIGFPE): Likewise.
7513         (SIGILL): Likewise.
7514         (SIGINT): Likewise.
7515         (SIGSEGV): Likewise.
7516         (SIGTER): Likewise.
7517         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
7518         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
7519         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
7520         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
7521         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
7522         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
7523         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
7524         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
7525         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
7526         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
7527         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
7528         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
7529         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
7530         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
7531         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
7532         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
7533         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
7534         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
7535         [X/Open-based standards] (SIGTRAP): Likewise.
7536         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
7537         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
7538         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
7539         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
7540         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
7541         allow.
7542
7543 2012-05-08  Ian Wienand  <ianw@vmware.com>
7544
7545         [BZ #14080]
7546         * time/tzset.c (__tzset_parse_tz): Update default rules for
7547         daylight time changes in the Energy Policy Act of 2005.
7548
7549 2012-05-09  Andreas Jaeger  <aj@suse.de>
7550
7551         [BZ #13983]
7552         * elf/ldconfig.c (parse_conf): Change string to make clear that
7553         ldconfig only issued a warning if ld.so.conf does not exist.
7554
7555 2012-05-08  David S. Miller  <davem@davemloft.net>
7556
7557         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
7558         movxtod instead of popping the value on the stack.
7559
7560         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7561
7562 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
7563
7564         * config.h.in: Add HAVE_ARM_PCS_VFP.
7565
7566 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
7567
7568         [BZ #13979]
7569         * include/features.h: Warn if user requests __FORTIFY_SOURCE
7570         checking but the checks are disabled for any reason.
7571
7572 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
7573
7574         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
7575         and ELF64_R_TYPE with ELFW(R_TYPE).
7576
7577 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
7578
7579         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
7580         (ulimit): Likewise.
7581
7582         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
7583         (settimeofday): Likewise.
7584
7585 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
7586
7587         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
7588         a struct th_u2 inside the union, and move tu_block/tu_code into
7589         a new th_u3 union of tu_block/tu_code inside of that.  Move
7590         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
7591         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
7592         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
7593         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
7594         (th_stuff): Change to th_u1.tu_stuff.
7595         (th_data): Define.
7596         (th_msg): Change to th_u1.th_u2.tu_data.
7597
7598 2012-05-07  David S. Miller  <davem@davemloft.net>
7599
7600         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7601
7602         [BZ #14074]
7603         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
7604         (SETUP_PIC_REG): Use it.
7605         (SETUP_PIC_REG_LEAF): Use it.
7606
7607 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
7608
7609         [BZ #13885]
7610         [BZ #13923]
7611         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7612         USE_AS_EXPM1L.
7613         (EXPL_FINITE): Likewise.
7614         (FLDLOG): Likewise.
7615         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
7616         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
7617         e_expl.S.
7618         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7619         USE_AS_EXPM1L.
7620         (EXPL_FINITE): Likewise.
7621         (FLDLOG): Likewise.
7622         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
7623         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
7624         e_expl.S.
7625         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
7626         test of -max_value argument for long double.
7627         * sysdeps/i386/fpu/libm-test-ulps: Update.
7628         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7629
7630 2012-05-06  David S. Miller  <davem@davemloft.net>
7631
7632         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
7633         quad soft-float symbols whose references which are compiler
7634         generated.
7635         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
7636
7637 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
7638
7639         [BZ #13884]
7640         [BZ #13914]
7641         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7642         USE_AS_EXP10L.
7643         (EXPL_FINITE): Likewise.
7644         (FLDLOG): Likewise.
7645         (c0): Likewise.
7646         (c1): Likewise.
7647         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
7648         Adjust comments for base varying.
7649         (__expl_finite): Change alias to EXPL_FINITE.
7650         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
7651         e_expl.S.
7652         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
7653         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
7654         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
7655         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
7656         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7657         USE_AS_EXP10L.
7658         (EXPL_FINITE): Likewise.
7659         (FLDLOG): Likewise.
7660         (c0): Likewise.
7661         (c1): Likewise.
7662         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
7663         Adjust comments for base varying.
7664         (__expl_finite): Change alias to EXPL_FINITE.
7665         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
7666         tests for bugs.
7667         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7668
7669         [BZ #14064]
7670         * math/libm-test.inc (check_float_internal): Correct ulp
7671         calculation for subnormal expected results.
7672
7673 2012-05-06  Andreas Jaeger  <aj@suse.de>
7674
7675         * Makeconfig (+math-flags): New, set to -frounding-math.
7676         (+cflags): Add +math-flags so that all of glibc gets compiled with
7677         it.
7678
7679         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
7680
7681 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
7682
7683         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
7684         Disable one test.
7685
7686         [BZ #13787]
7687         [BZ #13922]
7688         [BZ #14036]
7689         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
7690         (__ieee754_expl): Allow for and saturate large arguments.
7691         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
7692         (u_threshold): Likewise.
7693         (__exp): Call __ieee754_exp before checking for overflow and
7694         underflow.
7695         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
7696         (u_threshold): Likewise.
7697         (__expf): Call __ieee754_expf before checking for overflow and
7698         underflow.
7699         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
7700         (u_threshold): Likewise.
7701         (__expl): Call __ieee754_expl before checking for overflow and
7702         underflow.
7703         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
7704         (__ieee754_expl): Allow for and saturate large arguments.
7705         * math/libm-test.inc (exp_test): Add another test.  Do not allow
7706         missing overflow exception on overflow.
7707         (expm1_test): Do not allow missing overflow exception on overflow.
7708
7709         * sysdeps/i386/fpu/e_expl.c: Move to ...
7710         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
7711         rather than using inline asm.
7712         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
7713         * sysdeps/x86_64/fpu/e_expl.S: Copy from
7714         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
7715
7716         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
7717         (nice): Likewise.
7718         (poll): Likewise.
7719         (signal): Likewise.
7720         (time): Likewise.
7721         (times): Likewise.
7722
7723 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
7724
7725         * sysdeps/unix/syscalls.list (adjtime): Add entry from
7726         sysdeps/unix/common/syscalls.list.
7727         (fchmod): Likewise.
7728         (fchown): Likewise.
7729         (ftruncate): Likewise.
7730         (getrusage): Likewise.
7731         (gettimeofday): Likewise.
7732         (setpgid): Likewise.
7733         (setregid): Likewise.
7734         (setreuid): Likewise.
7735         (sigaction): Likewise.
7736         (truncate): Likewise.
7737         (vhangup): Likewise.
7738         * sysdeps/unix/common/syscalls.list: Remove file.
7739         * sysdeps/unix/bsd/Implies: Don't include unix/common.
7740         * sysdeps/unix/sysv/linux/Implies: Likewise.
7741
7742 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
7743
7744         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
7745         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
7746         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
7747         Moved to ...
7748         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
7749         Here.
7750         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
7751         to ...
7752         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
7753         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
7754         to ...
7755         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
7756         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
7757         to ...
7758         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
7759         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
7760         to ...
7761         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
7762         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
7763         to ...
7764         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
7765         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
7766         to ...
7767         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
7768         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
7769         to ...
7770         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
7771         Here.
7772         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
7773         to ...
7774         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
7775         Here.
7776         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
7777         to ...
7778         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
7779         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
7780         Moved to ...
7781         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
7782         Here.
7783         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
7784         to ...
7785         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
7786
7787 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
7788
7789         * sysdeps/unix/common/bits/dirent.h: Remove file.
7790         * sysdeps/unix/common/bits/fcntl.h: Likewise.
7791
7792         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
7793         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
7794         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
7795         * sysdeps/unix/bsd/isatty.c: Likewise.
7796         * sysdeps/unix/bsd/tcdrain.c: Likewise.
7797         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
7798         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
7799
7800 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7801
7802         [BZ #13563]
7803         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
7804         long double comparison inaccuracies.
7805         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
7806         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7807
7808 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
7809
7810         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
7811         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
7812
7813 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
7814
7815         [BZ #14049]
7816         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
7817         nonzero digits before rounding a hex value.
7818         * stdlib/tst-strtod.c (tests): Add another test.
7819
7820 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7821
7822         * sysdeps/s390/fpu/libm-test-ulps: Update.
7823
7824 2012-05-03  Andreas Jaeger  <aj@suse.de>
7825
7826         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
7827         does not get optimized out.
7828         (malloc_opt_barrier): New.
7829
7830 2012-05-03  Andreas Jaeger  <aj@suse.de>
7831             Roland McGrath  <roland@hack.frob.com>
7832
7833         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
7834         intermediate file deletion.
7835         (generated): Add .symlist files.
7836
7837 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
7838
7839         [BZ #13775]
7840         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
7841         Redirect under this condition.
7842         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
7843         [__USE_GNU] (__dprintf_chk): Not under this condition.
7844         [__USE_GNU] (__vdprintf_chk): Likewise.
7845         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
7846         under this condition.
7847         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
7848         [__USE_XOPEN2K8] (dprintf): Define under this condition.
7849         [__USE_XOPEN2K8] (vdprintf): Likewise.
7850         [__USE_GNU] (__dprintf_chk): Not under this condition.
7851         [__USE_GNU] (__vdprintf_chk): Likewise.
7852         [__USE_GNU] (dprintf): Likewise.
7853         [__USE_GNU] (vdprintf): Likewise.
7854
7855 2012-05-03  Roland McGrath  <roland@hack.frob.com>
7856
7857         * elf/Makefile (common-generated): Set this instead of generated for
7858         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
7859         $(all-built-dso)-derived lists.
7860
7861 2012-05-03  Andreas Jaeger  <aj@suse.de>
7862
7863         * sysdeps/i386/fpu/libm-test-ulps: Update.
7864
7865         * FAQ: Removed.
7866         * FAQ.in: Likewise.
7867         * scripts/gen-FAQ.pl: Likewise.
7868         * manual/install.texi (Installation): Point to online location of
7869         FAQ.
7870         * Makefile (files-for-dist): Remove FAQ.
7871         (FAQ): Remove.
7872
7873 2012-05-02  Allan McRae  <allan@archlinux.org>
7874
7875         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
7876         (LDFLAGS-reldepmod5.so): Likewise.
7877         (LDFLAGS-reldep6mod1.so): Likewise.
7878         (LDFLAGS-reldep6mod4.so): Likewise.
7879         (LDFLAGS-reldep8mod3.so): Likewise.
7880         (LDFLAGS-unload4mod1.so): Likewise.
7881         (LDFLAGS-unload4mod2.so): Likewise.
7882         (LDFLAGS-tst-initorder): Likewise.
7883         (LDFLAGS-tst-initordera2.so): Likewise.
7884         (LDFLAGS-tst-initordera3.so): Likewise.
7885         (LDFLAGS-tst-initordera4.so): Likewise.
7886         (LDFLAGS-tst-initorderb2.so): Likewise.
7887         (LDFLAGS-noload): Likewise.
7888         (LDFLAGS-next): Likewise.
7889         (LDFLAGS-order2mod1.so): Likewise.
7890         (LDFLAGS-order2mod2.so): Likewise.
7891         (LDFLAGS-tst-initorder2): Likewise.
7892         (LDFLAGS-tst-initorder2a.so): Likewise.
7893         (LDFLAGS-tst-initorder2b.so): Likewise.
7894         (LDFLAGS-tst-initorder2c.so): Likewise.
7895         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
7896
7897 2012-05-02  David S. Miller  <davem@davemloft.net>
7898
7899         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7900
7901 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
7902
7903         [BZ #14055]
7904         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
7905
7906 2012-05-02  Andreas Jaeger  <aj@suse.de>
7907
7908         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
7909         since we manipulate rounding mode.
7910         (CPPFLAGS-test-idouble.c): Likewise.
7911         (CPPFLAGS-test-ifloat.c): Likewise.
7912         (CFLAGS-test-ldouble.c): Likewise.
7913         (CFLAGS-test-double.c): Likewise.
7914         (CFLAGS-test-float.c): Likewise.
7915         (CFLAGS-test-misc.c): Likewise.
7916         (CFLAGS-test-test-fenv.c): Likewise.
7917
7918 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7919
7920         [BZ #2550]
7921         [BZ #2570]
7922         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
7923         comparisons to determine direction to adjust input.
7924
7925 2012-05-01  Roland McGrath  <roland@hack.frob.com>
7926
7927         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
7928         output to the target.
7929
7930         * scripts/localplt.awk: New file.
7931         * elf/Makefile ($(objpfx)check-localplt): Target removed.
7932         (check-localplt-CFLAGS): Variable removed.
7933         ($(all-built-dso:=.jmprel)): New static pattern rule.
7934         (generated): Add those targets.
7935         (localplt-built-dso): New variable.
7936         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
7937
7938         * elf/check-localplt.c: File removed.
7939
7940         * scripts/check-execstack.awk: New file.
7941         * elf/Makefile ($(objpfx)check-execstack): Target removed.
7942         (check-execstack-CFLAGS): Variable removed.
7943         ($(objpfx)check-execstack.h): Target removed.
7944         ($(objpfx)execstack-default): New target.
7945         (generated): Add that instead of check-execstack.h.
7946         ($(all-built-dso:=.phdr)): New static pattern rule.
7947         (generated): Add those targets.
7948         * elf/check-execstack.c: File removed.
7949
7950         * scripts/check-textrel.awk: New file.
7951         * elf/Makefile ($(objpfx)check-textrel): Target removed.
7952         (check-textrel-CFLAGS): Variable removed.
7953         (all-built-dso): Use := to define.o
7954         ($(all-built-dso:=.dyn)): New static pattern rule.
7955         (generated): Add those targets.
7956         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
7957         * config.make.in (READELF): New substituted variable.
7958         * elf/check-textrel.c: File removed.
7959
7960 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
7961
7962         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
7963         allow.
7964         * conform/data/ctype.h-data [C99-based standards] (isblank):
7965         Expect function.
7966         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
7967         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
7968         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7969         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
7970         Specify type.  Require positive value.
7971         (EILSEQ): Likewise.
7972         (ERANGE): Likewise.
7973         [ISO || POSIX] (EILSEQ): Do not expect.
7974         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
7975         Specify type.  Require positive value.
7976         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
7977         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
7978         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
7979         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
7980         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
7981         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
7982         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
7983         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
7984         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
7985         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
7986         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
7987         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
7988         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
7989         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
7990         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
7991         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
7992         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
7993         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
7994         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
7995         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
7996         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
7997         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
7998         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
7999         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
8000         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
8001         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
8002         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
8003         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
8004         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
8005         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
8006         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
8007         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
8008         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
8009         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
8010         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
8011         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
8012         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
8013         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
8014         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
8015         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
8016         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
8017         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
8018         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
8019         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
8020         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
8021         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
8022         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
8023         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
8024         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
8025         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
8026         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
8027         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
8028         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
8029         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
8030         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
8031         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
8032         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
8033         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
8034         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
8035         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
8036         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
8037         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
8038         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
8039         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
8040         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
8041         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
8042         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
8043         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
8044         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
8045         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
8046         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
8047         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
8048         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
8049         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
8050         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
8051         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
8052         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
8053         Require >= 2.
8054         (FLT_ROUNDS): Expect as macro, not constant.
8055         (FLT_MANT_DIG): Use macro-int-constant.
8056         (DBL_MANT_DIG): Likewise.
8057         (LDBL_MANT_DIG): Likewise.
8058         (FLT_DIG): Likewise.
8059         (DBL_DIG): Likewise.
8060         (LDBL_DIG): Likewise.
8061         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
8062         (DBL_MIN_EXP): Likewise.
8063         (LDBL_MIN_EXP): Likewise.
8064         (FLT_MAX_EXP): Use macro-int-constant.
8065         (DBL_MAX_EXP): Likewise.
8066         (LDBL_MAX_EXP): Likewise.
8067         (FLT_MAX_10_EXP): Likewise.
8068         (DBL_MAX_10_EXP): Likewise.
8069         (LDBL_MAX_10_EXP): Likewise.
8070         (FLT_MAX): Use macro-constant.
8071         (DBL_MAX): Likewise.
8072         (LDBL_MAX): Likewise.
8073         (FLT_EPSILON): Use macro-constant.  Give upper bound.
8074         (DBL_EPSILON): Likewise.
8075         (LDBL_EPSILON): Likewise.
8076         (FLT_MIN): Likewise.
8077         (DBL_MIN): Likewise.
8078         (LDBL_MIN): Likewise.
8079         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
8080         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
8081         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
8082         [ISO11] (FLT_HAS_SUBNORM): Likewise.
8083         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
8084         [ISO11] (DBL_DECIMAL_DIG): Likewise.
8085         [ISO11] (FLT_DECIMAL_DIG): Likewise.
8086         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
8087         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
8088         [ISO11] (FLT_TRUE_MIN): Likewise.
8089         [ISO11] (LDBL_TRUE_MIN): Likewise.
8090         [ISO || ISO99 || ISO11] (*_t): Do not allow.
8091         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
8092         (SCHAR_MIN): Use macro-int-constant.  Specify type.
8093         (SCHAR_MAX): Likewise.
8094         (UCHAR_MAX): Likewise.
8095         (CHAR_MIN): Likewise.
8096         (CHAR_MAX): Likewise.
8097         (MB_LEN_MAX): Use macro-int-constant.
8098         (SHRT_MIN): Use macro-int-constant.  Specify type.
8099         (SHRT_MAX): Likewise.
8100         (USHRT_MAX): Likewise.
8101         (INT_MAX): Likewise.
8102         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
8103         bound negative.
8104         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
8105         bound with "U".
8106         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
8107         bound with "L".
8108         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
8109         bound negative.  Suffix upper bound with "L".
8110         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
8111         bound with "UL".
8112         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
8113         Specify type.
8114         [C99-based standards] (LLONG_MAX): Likewise.
8115         [C99-based standards] (ULLONG_MAX): Likewise.
8116         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
8117         == 0.
8118         [ISO11] (max_align_t): Require type.
8119         [ISO || ISO99 || ISO11] (*_t): Do not allow.
8120
8121         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
8122         from $CFLAGS, without defining away __attribute__ calls.
8123         (checknamespace): Use $CFLAGS_namespace.
8124
8125         * conform/conformtest.pl (@keywords): Only include C99 keywords
8126         for standards based on C99 or C11.
8127
8128         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
8129         Disable tests.
8130         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
8131         UNIX98]: Likewise.
8132
8133         * conform/conformtest.pl: Handle "macro-int-constant" and test for
8134         usability of symbols in #if.
8135
8136         * conform/conformtest.pl: If macro or constant types start
8137         "promoted:", expect the symbol to be of the following type
8138         promoted by the integer promotions.
8139
8140         * conform/conformtest.pl: Parse all "constant" and "macro" lines
8141         in one place.  Also handle "macro-constant".
8142
8143         * conform/conformtest.pl: Only accept expected macro values with
8144         "==".  Parse all "macro" lines in one place.
8145         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
8146
8147         * conform/conformtest.pl: Handle braced types on "constant" lines
8148         instead of handling "typed-constant".
8149         * conform/data/signal.h-data: Use "constant" instead of
8150         "typed-constant".
8151
8152         * conform/conformtest.pl: Handle "optional-" at start of lines in
8153         one place rather than duplicating several cases.  Handle each
8154         format of "macro" line with initial "optional-".
8155
8156         * conform/conformtest.pl: Only accept expected constant or
8157         optional-constant values with "==".  Parse all "constant" lines in
8158         one place.  Parse all "optional-constant" lines in one place.
8159         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
8160         * conform/data/fmtmsg.h-data: Likewise.
8161         * conform/data/netinet/in.h-data: Likewise.
8162         * conform/data/tar.h-data: Likewise.
8163         * conform/data/limits.h-data: Use "==" form on "constant" and
8164         "optional-constant" lines.
8165
8166         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
8167         Use -std=c99 for XOPEN2K.
8168         (@knownproblems): Remove.
8169         (newtoken): Don't check %isknown.
8170
8171         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
8172         Do not expect macro.
8173         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
8174         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
8175         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
8176         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
8177         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
8178         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
8179         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
8180         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
8181         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
8182         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
8183         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
8184         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
8185         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
8186         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
8187         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
8188         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
8189         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
8190         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
8191         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
8192         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
8193         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
8194         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
8195         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
8196         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
8197         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
8198         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
8199         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
8200         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
8201         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
8202         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
8203         [XPG3] (acosh): Likewise.
8204         [XPG3] (asinh): Likewise.
8205         [XPG3] (atanh): Likewise.
8206         [XPG3] (cbrt): Likewise.
8207         [XPG3] (expm1): Likewise.
8208         [XPG3] (ilogb): Likewise.
8209         [XPG3] (log1p): Likewise.
8210         [XPG3] (logb): Likewise.
8211         [XPG3] (nextafter): Likewise.
8212         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
8213         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
8214         [XPG3] (remainder): Likewise.
8215         [XPG3] (rint): Likewise.
8216         [XPG3 || XPG4 || UNIX98] (round): Likewise.
8217         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
8218         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
8219         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
8220         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
8221         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
8222         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
8223         [UNIX98 || XOPEN2K] (scalb): Expect.
8224         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
8225         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
8226         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
8227         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
8228         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
8229         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
8230         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
8231         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
8232         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
8233         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
8234         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
8235         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
8236         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
8237         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
8238         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
8239         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
8240         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
8241         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
8242         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
8243         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
8244         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
8245         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
8246         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
8247         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
8248         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
8249         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
8250         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
8251         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
8252         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
8253         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
8254         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
8255         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
8256         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
8257         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
8258         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
8259         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
8260         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
8261         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
8262         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
8263         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
8264         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
8265         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
8266         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
8267         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
8268         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
8269         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
8270         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
8271         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
8272         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
8273         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
8274         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
8275         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
8276         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
8277         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
8278         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
8279         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
8280         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
8281         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
8282         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
8283         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
8284         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
8285         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
8286         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
8287         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
8288         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
8289         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
8290         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
8291         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
8292         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
8293         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
8294         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
8295         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
8296         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
8297         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
8298         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
8299         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
8300         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
8301         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
8302         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
8303         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
8304         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
8305         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
8306         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
8307         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
8308         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
8309         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
8310         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
8311         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
8312         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
8313         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
8314         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
8315         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
8316         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
8317         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
8318         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
8319         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
8320         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
8321         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
8322         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
8323         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
8324         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
8325         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
8326         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
8327         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
8328         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
8329         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
8330         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
8331         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
8332         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
8333         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
8334         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
8335         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
8336         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
8337         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
8338         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
8339         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
8340         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
8341         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
8342         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
8343         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
8344         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
8345         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
8346         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
8347         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
8348         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
8349         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
8350         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
8351         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
8352         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
8353         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
8354         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
8355         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
8356         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
8357         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
8358         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
8359         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
8360         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
8361
8362         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
8363         _XOPEN_SOURCE_EXTENDED for XPG4.
8364
8365         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
8366
8367         * Makeconfig (localtime): Remove variable.
8368         (inst_localtime-file): Likewise.
8369
8370 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
8371
8372         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
8373         Update.
8374         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
8375         Update.
8376         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
8377         Update.
8378         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
8379         Update.
8380         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
8381         Update.
8382         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
8383         Update.
8384         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
8385         Update.
8386         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
8387         Update.
8388         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
8389         Update.
8390
8391 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
8392
8393         [BZ #2550]
8394         [BZ #2570]
8395         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
8396         comparisons to determine direction to adjust input.
8397         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
8398         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
8399         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
8400         Likewise.
8401         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
8402         Likewise.
8403         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
8404         Likewise.
8405         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
8406         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
8407         Likewise.
8408         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
8409         Likewise.
8410         * math/libm-test.inc (nexttoward_test): Add more tests.
8411
8412 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
8413
8414         [BZ #14040]
8415         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
8416         in version GLIBC_2.1, not GLIBC_2.0.
8417         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
8418         Likewise.
8419
8420 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
8421
8422         [BZ #13942]
8423         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
8424         (1 - x) * (1 + x).
8425         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
8426         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
8427         * math/libm-test.inc (acos_test): Add more tests.
8428         (asin_test): Likewise.
8429         * sysdeps/i386/fpu/libm-test-ulps: Update.
8430         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8431
8432         [BZ #14034]
8433         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
8434         of square root.
8435         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
8436         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
8437         * math/libm-test.inc (acos_test_tonearest): New function.
8438         (acos_test_towardzero): Likewise.
8439         (acos_test_downward): Likewise.
8440         (acos_test_upward): Likewise.
8441         (asin_test_tonearest): Likewise.
8442         (asin_test_towardzero): Likewise.
8443         (asin_test_downward): Likewise.
8444         (asin_test_upward): Likewise.
8445         (main): Call the new functions.
8446         * sysdeps/i386/fpu/libm-test-ulps: Update.
8447         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8448
8449         [BZ #13884]
8450         [BZ #13924]
8451         * math/e_exp10.c: Include <float.h>.
8452         (__ieee754_exp10): Handle underflow here rather than multiplying
8453         large negative argument by M_LN10.
8454         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
8455         of __ieee754_expf.
8456         * math/e_exp10l.c: Include <float.h>.
8457         (__ieee754_exp10l): Handle underflow here rather than multiplying
8458         large negative argument by M_LN10l.
8459         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
8460         spurious overflow exception on underflow.
8461
8462 2012-04-29  Marek Polacek  <polacek@redhat.com>
8463
8464         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
8465         (__fortify_function): New macro.
8466         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
8467         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
8468         __extern_always_inline.
8469         * libio/bits/stdio2.h: Likewise.
8470         * libio/bits/stdio.h: Likewise.
8471         * string/string.h: Likewise.
8472         * string/bits/string3.h: Likewise.
8473         * include/stdio.h: Likewise.
8474         * stdlib/bits/stdlib.h: Likewise.
8475         * stdlib/stdlib.h: Likewise.
8476         * rt/bits/mqueue2.h: Likewise.
8477         * rt/mqueue.h: Likewise.
8478         * posix/bits/unistd.h: Likewise.
8479         * posix/unistd.h: Likewise.
8480         * io/bits/poll2.h: Likewise.
8481         * io/bits/fcntl2.h: Likewise.
8482         * io/fcntl.h: Likewise.
8483         * io/sys/poll.h: Likewise.
8484         * misc/bits/syslog.h: Likewise.
8485         * misc/bits/syslog-ldbl.h: Likewise.
8486         * misc/sys/syslog.h: Likewise.
8487         * socket/bits/socket2.h: Likewise.
8488         * socket/sys/socket.h: Likewise.
8489         * debug/tst-chk1.c: Likewise.
8490         * wcsmbs/bits/wchar2.h: Likewise.
8491         * wcsmbs/bits/wchar-ldbl.h: Likewise.
8492         * wcsmbs/wchar.h: Likewise.
8493
8494 2012-04-29  Andreas Jaeger  <aj@suse.de>
8495
8496         * Makerules (tests): Remove enable-check-abi protection.
8497         (check-abi-warn): Remove.
8498         (check-abi-%): Remove check-abi-warn usage.
8499
8500         * configure.in: Remove check-abi configure option.
8501         * configure: Regenerated.
8502         * config.make.in (enable-check-abi): Remove.
8503
8504 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
8505
8506         [BZ #14033]
8507         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
8508         double functions to double *_finite functions.
8509
8510         [BZ #13941]
8511         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
8512         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
8513         LDBL_MIN_EXP.
8514         * stdio-common/Makefile (tests): Add tst-sprintf3.
8515         * stdio-common/tst-sprintf3.c: New file.
8516
8517         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
8518         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
8519
8520 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
8521
8522         * conform/conformtest.pl: Remove duplicate typed-constant
8523         handling.
8524
8525 2012-04-28  David S. Miller  <davem@davemloft.net>
8526
8527         * Makerules (%.abilist): Add vpath on sysdep_dirs.
8528         (check-abi-%): Remove AWK script prerequisite and explicit
8529         abilist directory.
8530         (check-abi): Rewrite to just diff the symlist with the abilist.
8531         (config-tls, config-abi-config): Delete, no longer used.
8532         (update-abi-%): Remove AWK script and explicit abilist directory.
8533         (update-abi): Rewrite to simply compare and conditionally copy the
8534         symlist and the sysdep abilist file.  Remove update-abi-config
8535         checks.
8536         * abilist/ld.abilist: Remove.
8537         * abilist/libBrokenLocale.abilist: Remove.
8538         * abilist/libanl.abilist: Remove.
8539         * abilist/libcrypt.abilist: Remove.
8540         * abilist/libdl.abilist: Remove.
8541         * abilist/librt.abilist: Remove.
8542         * abilist/libthread_db.abilist: Remove.
8543         * abilist/libutil.abilist: Remove.
8544         * scripts/extract-abilist.awk: Remove.
8545         * scripts/merge-abilist.awk: Remove.
8546         * sysdeps/generic/libcidn.abilist: New file.
8547         * sysdeps/generic/libnss_compat.abilist: New file.
8548         * sysdeps/generic/libnss_db.abilist: New file.
8549         * sysdeps/generic/libnss_dns.abilist: New file.
8550         * sysdeps/generic/libnss_files.abilist: New file.
8551         * sysdeps/generic/libnss_hesiod.abilist: New file.
8552         * sysdeps/generic/libnss_nis.abilist: New file.
8553         * sysdeps/generic/libnss_nisplus.abilist: New file.
8554         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
8555         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
8556         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
8557         file.
8558         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
8559         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
8560         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
8561         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
8562         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
8563         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
8564         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
8565         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
8566         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
8567         file.
8568         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
8569         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
8570         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
8571         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
8572         file.
8573         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
8574         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
8575         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
8576         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
8577         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
8578         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
8579         file.
8580         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
8581         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
8582         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
8583         file.
8584         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
8585         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
8586         New file.
8587         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
8588         New file.
8589         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
8590         New file.
8591         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
8592         New file.
8593         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
8594         New file.
8595         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
8596         New file.
8597         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
8598         New file.
8599         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
8600         New file.
8601         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
8602         New file.
8603         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
8604         New file.
8605         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
8606         New file.
8607         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
8608         New file.
8609         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
8610         New file.
8611         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
8612         file.
8613         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
8614         New file.
8615         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
8616         New file.
8617         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
8618         file.
8619         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
8620         New file.
8621         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
8622         New file.
8623         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
8624         file.
8625         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
8626         New file.
8627         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
8628         New file.
8629         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
8630         New file.
8631         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
8632         New file.
8633         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
8634         New file.
8635         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
8636         New file.
8637         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
8638         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
8639         file.
8640         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
8641         New file.
8642         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
8643         file.
8644         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
8645         file.
8646         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
8647         file.
8648         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
8649         file.
8650         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
8651         file.
8652         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
8653         New file.
8654         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
8655         file.
8656         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
8657         file.
8658         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
8659         New file.
8660         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
8661         file.
8662         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
8663         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
8664         file.
8665         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
8666         New file.
8667         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
8668         file.
8669         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
8670         file.
8671         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
8672         file.
8673         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
8674         file.
8675         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
8676         file.
8677         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
8678         New file.
8679         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
8680         file.
8681         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
8682         file.
8683         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
8684         New file.
8685         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
8686         file.
8687         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
8688         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
8689         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
8690         file.
8691         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
8692         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
8693         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
8694         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
8695         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
8696         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
8697         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
8698         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
8699         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
8700         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
8701         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
8702         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
8703         file.
8704         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
8705         New file.
8706         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
8707         file.
8708         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
8709         file.
8710         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
8711         file.
8712         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
8713         file.
8714         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
8715         file.
8716         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
8717         New file.
8718         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
8719         New file.
8720         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
8721         file.
8722         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
8723         New file.
8724         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
8725         file.
8726         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
8727         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
8728         file.
8729         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
8730         New file.
8731         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
8732         file.
8733         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
8734         file.
8735         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
8736         file.
8737         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
8738         file.
8739         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
8740         file.
8741         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
8742         New file.
8743         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
8744         New file.
8745         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
8746         file.
8747         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
8748         New file.
8749         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
8750         file.
8751
8752 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
8753
8754         * conform/conformtest.pl: Fix typo in handling typed-constant from
8755         allow-header.
8756
8757 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
8758
8759         * README: Cut down references to pre-2.6 Linux kernels and
8760         Linuxthreads.  Update lists of configurations in libc and ports
8761         and sort alphabetically.  Say "or newer" with Linux kernel version
8762         requirements.
8763
8764         * config.h.in [IS_IN_build]: Allow compiling without optimization.
8765
8766 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
8767
8768         [BZ #887]
8769         * math/libm-test.inc (logb_test_downward): New test to expose
8770         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
8771         rounding mode.
8772
8773 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
8774
8775         [BZ #14027]
8776         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
8777         to be done.
8778         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
8779         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
8780
8781 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
8782
8783         * sysdeps/unix/i386/brk.S: Remove file.
8784         * sysdeps/unix/i386/dl-brk.S: Likewise.
8785         * sysdeps/unix/i386/pipe.S: Likewise.
8786         * sysdeps/unix/i386/sigreturn.S: Likewise.
8787         * sysdeps/unix/i386/syscall.S: Likewise.
8788         * sysdeps/unix/i386/vfork.S: Likewise.
8789         * sysdeps/unix/i386/wait.S: Likewise.
8790
8791         * sysdeps/unix/common/tcsendbrk.c: Move to ...
8792         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
8793
8794         * configure.in (arm*-none*): Do not allow without
8795         --enable-hacker-mode.
8796         (netbsd*): Remove case setting base_os.
8797         (386bsd*): Likewise.
8798         (freebsd*): Likewise.
8799         (bsdi*): Likewise.
8800         (osf*): Likewise.
8801         (sunos*): Likewise.
8802         (ultrix*): Likewise.
8803         (newsos*): Likewise.
8804         (dynix*): Likewise.
8805         (*bsd*): Likewise.
8806         (sysv*): Likewise.
8807         (isc*): Likewise.
8808         (esix*): Likewise.
8809         (sco*): Likewise.
8810         (minix*): Likewise.
8811         (irix4*): Likewise.
8812         (irix6*): Likewise.
8813         (solaris[2-9]*): Likewise.
8814         (none): Likewise.
8815         * configure: Regenerated.
8816
8817 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8818
8819         [BZ #11521]
8820         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
8821         overflow or cancellation in calculating denominator.
8822         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
8823         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
8824         down expression to avoid unexpected rounding in newer GCCs.
8825         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
8826
8827 2012-04-26  David S. Miller  <davem@davemloft.net>
8828
8829         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
8830         long-double compat symbols.
8831         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
8832         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
8833         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
8834         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
8835         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
8836         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
8837         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
8838         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
8839         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
8840         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
8841         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
8842         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
8843         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
8844
8845 2012-04-25  David S. Miller  <davem@davemloft.net>
8846
8847         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
8848         HWCAP_* values only after the memory barriers have been defined.
8849         (atomic_full_barrier): Define.
8850         (atomic_read_barrier): Define.
8851         (atomic_write_barrier): Define.
8852
8853 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
8854
8855         * shlib-versions: Add libgcc_s version information.
8856         * sysdeps/generic/libgcc_s.h: Remove.
8857         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
8858         libgcc_s.h.
8859         * sysdeps/gnu/unwind-resume.c: Likewise.
8860         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
8861
8862 2012-04-25  David S. Miller  <davem@davemloft.net>
8863
8864         * sysdeps/unix/sparc/brk.S: Delete.
8865         * sysdeps/unix/sparc/dl-brk.S: Delete.
8866         * sysdeps/unix/sparc/pipe.S: Delete.
8867         * sysdeps/unix/sparc/sysdep.S: Delete.
8868         * sysdeps/unix/sparc/sysdep.h: Delete.
8869         * sysdeps/unix/sparc/vfork.S: Delete.
8870         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
8871         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
8872         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
8873         ret_ERRVAL, r0, r1, MOVE): Define.
8874         (JUMPTARGET): Remove.
8875         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
8876         sysdeps/unix/sparc/sysdep.h
8877         (ENTRY, END): Remove.
8878         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
8879
8880 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
8881
8882         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
8883         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
8884         -DIS_IN_build.
8885
8886         * timezone/README: Update upstream location and email address for
8887         tzcode and tzdata.
8888         * timezone/zdump.c: Update from tzcode 2012b.
8889         * timezone/zic.c: Likewise.
8890
8891         * configure.in (libc_cv_as_needed): Remove test.
8892         * configure: Regenerated.
8893         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
8894         conditional definition.
8895         [$(have-as-needed) != yes] (no-as-needed): Likewise.
8896         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
8897         * config.make.in (have-as-needed): Remove variable.
8898
8899 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
8900             Paul Pluzhnikov  <ppluzhnikov@google.com>
8901
8902         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
8903         strings correctly.
8904
8905 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
8906
8907         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
8908         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
8909         * sysdeps/sh/strlen.S: Likewise.
8910
8911 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
8912
8913         * sysdeps/unix/fork.S: Remove file.
8914         * sysdeps/unix/i386/fork.S: Likewise.
8915         * sysdeps/unix/sparc/fork.S: Likewise.
8916
8917         * sysdeps/unix/system.c: Remove file.
8918         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
8919
8920         * sysdeps/unix/getegid.S: Remove file.
8921         * sysdeps/unix/geteuid.S: Likewise.
8922
8923 2012-04-24  Roland McGrath  <roland@hack.frob.com>
8924
8925         * scripts/check-localplt.awk: New file.
8926         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
8927         of diff.
8928         * scripts/data/localplt-generic.data: Add a comment.
8929
8930         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
8931         NODE when __dir_mkfile failed.
8932         * sysdeps/mach/hurd/symlinkat.c: Likewise.
8933         Reported by Ludovic Courtès <ludo@gnu.org>.
8934
8935 2012-04-24  Andreas Jaeger  <aj@suse.de>
8936
8937         * Makerules (common-clean): Also remove gen-as-const-headers
8938         files.
8939
8940 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
8941
8942         * Makerules (native-compile): Do not change working directory for
8943         build.  Use $(OUTPUT_OPTION) in command.
8944         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
8945
8946 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8947
8948         [BZ #13886]
8949         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
8950         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
8951         * math/libm-test.inc (floor_test): Add more tests.
8952         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
8953
8954 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
8955
8956         * sysdeps/unix/getdents.c: Remove file.
8957         * sysdeps/unix/sysv/getdents.c: Likewise.
8958         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
8959
8960         * sysdeps/unix/syscalls.list (madvise): Add syscall from
8961         sysdeps/unix/mman/syscalls.list.
8962         (mmap): Likewise.
8963         (mprotect): Likewise.
8964         (msync): Likewise.
8965         (munmap): Likewise.
8966         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
8967         * sysdeps/unix/mman/syscalls.list: Remove.
8968         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
8969
8970         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
8971         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
8972         * configure: Regenerated.
8973         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
8974         $(libgcc_s_suffix).
8975         * config.make.in (libgcc_s_suffix): Remove variable.
8976
8977 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
8978
8979         * sysdeps/unix/sysv/gethostname.c: Move to ...
8980         * sysdeps/posix/gethostname.c: ... here.
8981
8982         * sysdeps/unix/execve.S: Remove file.
8983
8984         * sysdeps/unix/_exit.S: Remove file.
8985
8986 2012-04-23  Andreas Jaeger  <aj@suse.de>
8987
8988         [BZ #13739]
8989         * manual/Makefile: Remove make dist support, there's no
8990         need for a stand-alone documentation tar ball.
8991         (TEXI2DVI): Define always, it's not in Makeconfig.
8992         (dist): Removed.
8993         (tar-it): Removed.
8994         (edition): Removed.
8995         (glibc-doc-$(edition).tar): Removed
8996         (%.Z): Removed.
8997         (%.gz): Removed.
8998         (%.uu): Removed.
8999         (ETAGS): Remove, it's in Makeconfig.
9000         (move-if-change): Remove, it's in Makeconfig.
9001
9002 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
9003
9004         [BZ #13970]
9005         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
9006         (strtod, strtof, strtold, strtol, strtoul, strtoq)
9007         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
9008         (strtod_l, strtof_l, strtold_l): Remove __wur.
9009         It is not necessarily an error to ignore strtol's return value.
9010         One can reliably look at the stored endptr to decide whether
9011         the number had valid syntax.
9012
9013 2012-04-21  Andreas Jaeger  <aj@suse.de>
9014
9015         [BZ #13739]
9016         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
9017
9018 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
9019
9020         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
9021         * sysdeps/unix/sysv/Versions: Remove file.
9022
9023 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
9024
9025         [BZ #13927]
9026         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9027
9028 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
9029
9030         [BZ #7064]
9031         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
9032         version from __vm86.
9033
9034 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
9035
9036         * sysdeps/unix/common/lxstat.c: Remove file.
9037         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
9038
9039         * sysdeps/unix/sysv/Makefile: Remove file.
9040
9041         * sysdeps/unix/sysv/direct.h: Remove file.
9042
9043         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
9044         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
9045         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
9046         * sysdeps/unix/sysv/bits/signum.h: Likewise.
9047         * sysdeps/unix/sysv/bits/stat.h: Likewise.
9048         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
9049         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
9050
9051         * sysdeps/unix/sysv/setrlimit.c: Remove file.
9052
9053         * sysdeps/unix/xmknod.c: Remove file.
9054         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
9055
9056         * sysdeps/unix/sysv/settimeofday.c: Remove file.
9057
9058         * sysdeps/unix/sysv/i386/time.S: Remove file.
9059
9060         * sysdeps/unix/fxstat.c: Remove file.
9061         * sysdeps/unix/xstat.c: Likewise.
9062         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
9063
9064         * sysdeps/unix/sysv/sigaction.c: Remove file.
9065
9066         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
9067         (sysdep_headers): Remove variable.
9068         [termio.h not in sysdep_headers] (generated): Likewise.
9069         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
9070         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
9071         * sysdeps/unix/sysv/tcdrain.c: Likewise.
9072         * sysdeps/unix/sysv/tcflow.c: Likewise.
9073         * sysdeps/unix/sysv/tcflush.c: Likewise.
9074         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
9075         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
9076         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
9077         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
9078         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
9079
9080         * sysdeps/unix/siglist.c: Remove file.
9081
9082         * sysdeps/unix/getppid.S: Remove file.
9083
9084         * sysdeps/unix/mkdir.c: Remove file.
9085         * sysdeps/unix/rmdir.c: Likewise.
9086
9087 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
9088
9089         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
9090         ERR_MAX value.
9091         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
9092         errlist-compat value.
9093
9094 2012-04-18  David S. Miller  <davem@davemloft.net>
9095
9096         * sysdeps/generic/memcopy.h (reg_char): Delete.
9097         * debug/strcat_chk.c: Use char, not reg_char.
9098         * debug/strcpy_chk.c: Likewise.
9099         * debug/strncat_chk.c: Likewise.
9100         * debug/strncpy_chk.c: Likewise.
9101         * string/memchr.c: Likewise.
9102         * string/memrchr.c: Likewise.
9103         * string/rawmemchr.c: Likewise.
9104         * string/strcat.c: Likewise.
9105         * string/strchr.c: Likewise.
9106         * string/strchrnul.c: Likewise.
9107         * string/strcmp.c: Likewise.
9108         * string/strcpy.c: Likewise.
9109         * string/strncat.c: Likewise.
9110         * string/strncmp.c: Likewise.
9111         * string/strncpy.c: Likewise.
9112
9113 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
9114
9115         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
9116         __builtin_memcopy is called when src and dest ranges are known to not
9117         overlap.
9118
9119 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
9120
9121         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
9122         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
9123         fwd_align_merge macro call.
9124         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
9125         bwd_align_merge macro call.
9126         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
9127
9128 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
9129
9130         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
9131         bwd_align_merge macros.
9132         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
9133         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
9134         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
9135
9136 2012-04-18  David S. Miller  <davem@davemloft.net>
9137
9138         * sysdeps/sparc/sparc64/memcopy.h: Delete.
9139
9140 2012-04-18  Andreas Jaeger  <aj@suse.de>
9141
9142         [BZ# 6794]
9143         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
9144         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
9145         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
9146
9147         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
9148         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
9149         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
9150
9151         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
9152         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
9153         Adjust for changed ldbl-128 files.
9154
9155         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
9156         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
9157         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
9158
9159 2012-04-17  David S. Miller  <davem@davemloft.net>
9160
9161         * sysdeps/sparc/sparc32/memcopy.h: Delete.
9162
9163 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
9164
9165         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
9166         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
9167         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
9168         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
9169         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
9170         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
9171
9172 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9173
9174         [BZ #6794]
9175         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
9176         * math/libm-test.inc: Add ilogb errno and exception tests.
9177         * math/w_ilogb.c: New file: ilogb wrapper.
9178         * math/w_ilogbf.c: New file: ilogbf wrapper.
9179         * math/w_ilogbl.c: New file: ilogbl wrapper.
9180         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
9181         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
9182         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
9183         exception being thrown with 0.0 as argument.
9184         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
9185         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
9186         exception being thrown with 0.0 as argument.
9187         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
9188         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
9189         exception being thrown with 0.0 as argument.
9190         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
9191         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
9192         exception being thrown with 0.0 as argument.
9193         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
9194         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
9195         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
9196         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
9197         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
9198         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
9199         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
9200         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
9201         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
9202
9203 2012-04-17  Petr Baudis  <pasky@ucw.cz>
9204
9205         * include/sys/uio.h: Change __vector to __iovec to avoid clash
9206         with altivec.
9207
9208 2012-04-16  Marek Polacek  <polacek@redhat.com>
9209
9210         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
9211
9212 2012-04-16  Marek Polacek  <polacek@redhat.com>
9213
9214         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
9215         operands of fdivp instruction.
9216
9217 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
9218
9219         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
9220         * elf/tst-auditmod3b.c: Likewise.
9221         * elf/tst-auditmod4b.c: Likewise.
9222         * elf/tst-auditmod5b.c: Likewise.
9223         * elf/tst-auditmod6b.c: Likewise.
9224         * elf/tst-auditmod6c.c: Likewise.
9225         * elf/tst-auditmod7b.c: Likewise.
9226         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
9227         * sysdeps/x86_64/preconfigure.in: Likewise.
9228         * sysdeps/x86_64/preconfigure: Regenerated.
9229
9230 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
9231
9232         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
9233         __ILP32__.
9234
9235 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
9236
9237         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
9238         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
9239
9240 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
9241
9242         [BZ #13973]
9243         * locale/iso-639.def: Fix gl language name. Spotted by
9244         Yaron Shahrabani.
9245
9246 2012-04-12  Roland McGrath  <roland@hack.frob.com>
9247
9248         [BZ #2074]
9249         * libio/libio.h (__io_write_fn): Update comment.
9250
9251 2012-04-12  Petr Baudis  <pasky@ucw.cz>
9252
9253         [BZ #2074]
9254         * stdio.texi (Hook Functions): The user provided writer function
9255         is not allowed to return -1.
9256
9257 2012-04-11  David S. Miller  <davem@davemloft.net>
9258
9259         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9260
9261 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
9262
9263         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
9264         Add a leading slash to rtkaio.
9265
9266 2012-04-11  Jim Meyering  <meyering@redhat.com>
9267
9268         [BZ #11959]
9269         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
9270         It is not necessarily an error to ignore fwrite's return
9271         value.  One can reliably use ferror to test for errors after
9272         the fact.
9273
9274 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
9275
9276         * bits/types.h (__snseconds_t): New type.
9277         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
9278
9279         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
9280         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
9281         (__SNSECONDS_T_TYPE): Likewise.
9282         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
9283         (__SNSECONDS_T_TYPE): Likewise.
9284         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
9285         (__SNSECONDS_T_TYPE): Likewise.
9286
9287 2012-04-10  Andreas Jaeger  <aj@suse.de>
9288
9289         [BZ #2636]
9290         * manual/time.texi (Processor Time): Return type of times is
9291         elapsed real time since an arbitrary point in the past.
9292         (CPU Time): Move CLK_TCK from here...
9293         (Processor Time): ...to here.  Correct description.
9294         * manual/conf.texi (Constants for Sysconf): Correct description of
9295         _SC_CLK_TCK.
9296
9297 2012-04-10  David S. Miller  <davem@davemloft.net>
9298
9299         [BZ #13967]
9300         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
9301         where the is a gap between DT_REL(A) and DT_JMPREL.
9302
9303 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
9304
9305         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
9306         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
9307         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
9308
9309 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
9310
9311         * elf/dl-support.c (_dl_inhibit_cache): New variable.
9312         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
9313         (dl_main): Handle --inhibit-cache.
9314         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
9315         _dl_inhibit_cache.
9316         * elf/dl-load.c (_dl_map_object): Use it.
9317         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
9318
9319 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
9320
9321         [BZ #13872]
9322         * sysdeps/i386/fpu/e_powl.S (p78): New object.
9323         (__ieee754_powl): Saturate large exponents rather than testing for
9324         overflow of y*log2(x).
9325         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
9326         * math/libm-test.inc (pow_test): Do not permit spurious overflow
9327         exceptions.
9328
9329         [BZ #11521]
9330         * math/s_ctan.c: Include <float.h>.
9331         (__ctan): Avoid internal overflow or cancellation in calculating
9332         denominator.
9333         * math/s_ctanf.c: Likewise.
9334         * math/s_ctanl.c: Likewise.
9335         * math/s_ctanh.c: Likewise.
9336         * math/s_ctanhf.c: Likewise.
9337         * math/s_ctanhl.c: Likewise.
9338         * math/libm-test.inc (ctan_test): Add more tests.
9339         (ctanh_test): Likewise.
9340         * sysdeps/i386/fpu/libm-test-ulps: Update.
9341         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9342
9343 2012-04-09  Andreas Jaeger  <aj@suse.de>
9344
9345         [BZ #6894]
9346         * manual/filesys.texi (Directory Entries): Mention that d_namlen
9347         is an optional BSD extension.
9348
9349         [BZ #10254]
9350         * manual/stdio.texi (Opening Streams): Document additional fopen
9351         parameters.
9352
9353 2012-04-09  Roland McGrath  <roland@hack.frob.com>
9354
9355         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
9356         %eax without telling the compiler.
9357
9358 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
9359
9360         [BZ # 13963]
9361         * manual/install.texi: Use sourceware.org.
9362
9363 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
9364
9365         [BZ #13873]
9366         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
9367         (__ieee754_pow): Generate overflow and underflow using huge*huge
9368         and tiny*tiny rather than just returning constant infinity or zero
9369         for large exponents.
9370         * math/libm-test.inc (pow_test): Require overflow exceptions for
9371         applicable cases of large exponents.
9372
9373         [BZ #706]
9374         * sysdeps/i386/fpu/e_pow.S (p10): New object.
9375         (__ieee754_pow): Use iterative multiplication algorithm only for
9376         integer exponents with absolute value below 1024.  Check for odd
9377         integer exponents when using algorithm for real exponents.
9378         * math/libm-test.inc (pow_test): Add more tests.
9379         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9380
9381 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
9382
9383         [BZ #13705]
9384         * math/libm-test.inc (exp_test): Do not allow overflow exception
9385         on underflow test.
9386
9387 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
9388
9389         [BZ #13705]
9390         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
9391         instead of __kernel_standard_f.
9392
9393 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
9394
9395         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
9396         * sysdeps/x86_64/memset_chk.S: Likewise.
9397
9398 2012-04-08  Andreas Jaeger  <aj@suse.de>
9399
9400         [BZ #10153]
9401         * manual/startup.texi (Environment Access): Describe return value
9402         for putenv and setenv.
9403
9404         [BZ #6895]
9405         * manual/filesys.texi (Directory Entries): Add description for
9406         DT_LNK.
9407
9408         [BZ #6890]
9409         * manual/filesys.texi (Directory Entries): Clarify that it's file
9410         system not operating system in the description of DT_UNKNOWN.
9411
9412         [BZ #6578]
9413         * manual/syslog.texi (closelog): Fix reference, it's openlog.
9414
9415 2012-04-08  Stephen Compall  <s11@member.fsf.org>
9416
9417         [BZ #6649]
9418         * manual/llio.texi (Opening and Closing Files): Add cross
9419         reference to explain mode argument.
9420
9421 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
9422
9423         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
9424         * sysdeps/x86_64/memset_chk.S: Likewise.
9425
9426 2012-04-07  David S. Miller  <davem@davemloft.net>
9427
9428         * elf/elf.h (R_SPARC_WDISP10): Define.
9429         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
9430         R_SPARC_SIZE32.
9431         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
9432         R_SPARC_SIZE64 and R_SPARC_H34.
9433
9434 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
9435
9436         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
9437         conditions and remove no longer applicable assertion.
9438
9439 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
9440
9441         * bits/byteswap.h: Include <features.h>.
9442         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
9443         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
9444
9445 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
9446
9447         * bits/byteswap.h (__bswap_16): Removed.
9448         Include <bits/byteswap-16.h> to get __bswap_16.
9449         * sysdeps/i386/bits/byteswap.h: Likewise.
9450         * sysdeps/s390/bits/byteswap.h: Likewise.
9451         * sysdeps/x86_64/bits/byteswap.h: Likewise.
9452         * bits/byteswap-16.h: New file.
9453         * sysdeps/i386/bits/byteswap-16.h: Likewise.
9454         * sysdeps/s390/bits/byteswap-16.h: Likewise.
9455         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
9456         * string/Makefile (headers): Add bits/byteswap-16.h.
9457
9458 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
9459
9460         [BZ #13895]
9461         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
9462         extra indirection.
9463         * nss/Makefile (tests-static, tests): Add tst-nss-static.
9464         * nss/tst-nss-static.c: New.
9465
9466 2012-04-06  Robert Millan  <rmh@gnu.org>
9467
9468         [BZ #6486]
9469         * manual/llio.texi (File Position Primitive): lseek
9470         refers to WHENCE when it really means OFFSET.
9471
9472 2012-04-06  Andreas Jaeger  <aj@suse.de>
9473
9474         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
9475         strncmp declarations.
9476
9477         * abilist/libc.abilist: Add __poll and __ppoll.
9478
9479 2012-04-05  David S. Miller  <davem@davemloft.net>
9480
9481         * scripts/check-local-headers.sh: Accept a host triplet in the
9482         path matched by the exclude regexp.
9483
9484         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
9485         definition.
9486         * sysdeps/powerpc/powerpc32/dl-machine.h
9487         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
9488         * sysdeps/s390/s390-32/dl-machine.h
9489         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
9490         * sysdeps/sparc/sparc32/dl-machine.h
9491         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
9492         * sysdeps/sparc/sparc64/dl-machine.h
9493         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
9494
9495         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
9496         lazy binding.
9497         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
9498         undefined symbol errors.
9499
9500         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
9501         DT_NEEDED entries.
9502
9503 2012-04-05  Michael Matz  <matz@suse.de>
9504
9505         [BZ #13592]
9506         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
9507
9508 2012-04-05  Andreas Jaeger  <aj@suse.de>
9509
9510         [BZ #13908]
9511         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
9512         comment.
9513
9514 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9515
9516         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
9517         which ROUND is no valid rounding mode.
9518
9519 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9520
9521         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
9522         read again.
9523         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
9524
9525 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9526
9527         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
9528         an exception using FPU order intentionally.
9529
9530 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9531
9532         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
9533         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
9534         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
9535         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
9536
9537 2012-04-05  Simon Josefsson  <simon@josefsson.org>
9538
9539         [BZ #12340]
9540         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
9541         EINVAL when BUFLEN is too smal.
9542
9543 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
9544
9545         [BZ #13553]
9546         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
9547         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
9548
9549 2012-04-03  Andreas Jaeger  <aj@suse.de>
9550
9551         [BZ #13938]
9552         * manual/setjmp.texi (System V contexts): Fix sentence.
9553
9554         [BZ #13926]
9555         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
9556         New macro for this case.
9557         [!__GNUC__] (__bswap_64): New inline function for this case.
9558         * sysdeps/x86_64/bits/byteswap.h: Likewise.
9559         * bits/byteswap.h: Likewise.
9560         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
9561         ull, guard with __GLIBC_HAVE_LONG_LONG.
9562
9563         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
9564         __GLIBC_HAVE_LONG_LONG.
9565
9566         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
9567         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
9568
9569 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
9570
9571         [BZ #13691]
9572         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
9573         inptr and inend, rather than using last_ch.
9574
9575 2012-04-02  David S. Miller  <davem@davemloft.net>
9576
9577         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
9578         * stdio-common/printf-parse.h (read_int): Change return type to
9579         'int', return -1 on INT_MAX overflow.
9580         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
9581         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
9582         overflows INT_MAX.  Check for overflow of in-format-string precision
9583         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
9584         SIZE_MAX not INT_MAX for integer overflow test.
9585         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
9586         skip the construct in the format string but do not record anything.
9587         * stdio-common/bug22.c: Adjust to test both width/prevision
9588         INT_MAX overflow as well as total length INT_MAX overflow.  Check
9589         explicitly for proper errno values.
9590
9591 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
9592
9593         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
9594         CHAR_MAX.
9595         * string/test-strcmp.c [! WIDE]: Likewise.
9596         * time/tst-mktime2.c: Likewise for INT_MAX.
9597         * string/test-string.h: #include <sys/param.h> for MIN.
9598
9599         * csu/init-first.c (__libc_init_first): Call __ctype_init.
9600         * sysdeps/i386/init-first.c (init): Likewise.
9601         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
9602         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
9603         * sysdeps/sh/init-first.c (init): Likewise.
9604
9605 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
9606
9607         * po/ru.po: Update from translation team.
9608         * po/vi.po: Likewise.
9609
9610 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
9611
9612         * resolv/nss_dns/dns-host.c: Merge copyright years.
9613
9614 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9615
9616         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
9617         Optimize memcpy with prefetch if
9618         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
9619         src, dst pointers have unequal 16 byte alignments.
9620
9621 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
9622
9623         [BZ #13928]
9624         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
9625         from a CNAME entry and return the minimum ttl for the query.
9626         (gaih_getanswer_slice): Likewise.
9627
9628 2012-03-30  Jeff Law  <law@redhat.com>
9629
9630         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
9631         due to long keys.
9632         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
9633         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
9634
9635         * resolv/nss_dns/dns-host.c: Update copyright year.
9636
9637 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
9638
9639         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
9640         requests to save a system call.  Fix check that all bytes are sent.
9641
9642         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
9643         comments for sendmmsg.
9644
9645 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
9646
9647         [BZ #13691]
9648         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
9649         with only 1 character between 0x0041 and 0x01b0.
9650         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
9651         * wcsmbs/tst-mbsnrtowcs.c: New file.
9652
9653 2012-03-29  David S. Miller  <davem@davemloft.net>
9654
9655         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
9656         small copies by hand.
9657
9658 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
9659
9660         [BZ #13761]
9661         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
9662         _nss_compat_initgroups_dyn): Fall back to malloc/free
9663         for large group memberships.
9664
9665 2012-03-28  David S. Miller  <davem@davemloft.net>
9666
9667         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
9668         that branches into memcpy.
9669         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
9670         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
9671         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
9672         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
9673         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
9674         bits.
9675         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
9676         implementation too.
9677         * sysdeps/sparc/mempcpy.S: New file.
9678
9679         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
9680         the IFUNC routine in the libc case.
9681         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
9682
9683         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
9684         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
9685         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
9686         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
9687         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
9688         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
9689         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
9690         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
9691
9692         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
9693         loop to 256 bytes instead of 64 bytes and fix test signedness.
9694
9695         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
9696         * sysdeps/sparc/sparc32/Makefile: rather than here...
9697         * sysdeps/sparc/sparc64/Makefile: and here.
9698
9699 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
9700
9701         * malloc/mallocbug.c: Avoid warnings about unused variables.
9702
9703 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
9704
9705         [BZ #13760]
9706         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
9707         in the right place. Discard and retry query if response is
9708         larger than input buffer size.
9709
9710 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
9711
9712         [BZ #369]
9713         [BZ #2678]
9714         [BZ #3866]
9715         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
9716         x for large integer exponent.
9717         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
9718         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
9719         sign of result as needed afterwards.
9720         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
9721         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
9722         result for underflowing pow the same as for overflow.
9723         (__kernel_standard_l): Handle powl overflow and underflow here
9724         rather than calling __kernel_standard.
9725         * math/libm-test.inc (pow_test): Add more tests.
9726
9727         [BZ #3868]
9728         [BZ #13879]
9729         [BZ #13910]
9730         [BZ #13911]
9731         [BZ #13912]
9732         [BZ #13913]
9733         [BZ #13915]
9734         [BZ #13916]
9735         [BZ #13917]
9736         [BZ #13918]
9737         [BZ #13919]
9738         [BZ #13920]
9739         [BZ #13921]
9740         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
9741         * sysdeps/ieee754/k_standard.c: Include <float.h>.
9742         (__kernel_standard_l): New function.
9743         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
9744         __kernel_standard.
9745         * math/w_acosl.c (__acosl): Likewise.
9746         * math/w_asinl.c (__asinl): Likewise.
9747         * math/w_atan2l.c (__atan2l): Likewise.
9748         * math/w_atanhl.c (__atanhl): Likewise.
9749         * math/w_coshl.c (__coshl): Likewise.
9750         * math/w_exp10l.c (__exp10l): Likewise.
9751         * math/w_exp2l.c (__exp2l): Likewise.
9752         * math/w_fmodl.c (__fmodl): Likewise.
9753         * math/w_hypotl.c (__hypotl): Likewise.
9754         * math/w_j0l.c (__j0l, __y0l): Likewise.
9755         * math/w_j1l.c (__j1l, __y1l): Likewise.
9756         * math/w_jnl.c (__jnl, __ynl): Likewise.
9757         * math/w_lgammal.c (__lgammal): Likewise.
9758         * math/w_log10l.c (__log10l): Likewise.
9759         * math/w_log2l.c (__log2l): Likewise.
9760         * math/w_logl.c (__logl): Likewise.
9761         * math/w_powl.c (__powl): Likewise.
9762         * math/w_remainderl.c (__remainderl): Likewise.
9763         * math/w_scalbl.c (sysv_scalbl): Likewise.
9764         * math/w_sinhl.c (__sinhl): Likewise.
9765         * math/w_sqrtl.c (__sqrtl): Likewise.
9766         * math/w_tgammal.c (__tgammal): Likewise.
9767         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
9768         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
9769         * math/libm-test.inc (acos_test): Add more tests.
9770         (acosh_test): Likewise.
9771         (asin_test): Likewise.
9772         (atanh_test): Likewise.
9773         (exp_test): Likewise.
9774         (exp10_test): Likewise.
9775         (exp2_test): Likewise.
9776         (expm1_test): Likewise.
9777         (lgamma_test): Likewise.
9778         (log_test): Likewise.
9779         (log10_test): Likewise.
9780         (log1p_test): Likewise.
9781         (log2_test): Likewise.
9782         (pow_test): Do not allow some spurious overflow exceptions.
9783         (sqrt_test): Add more tests.
9784         (tgamma_test): Likewise.
9785         (y0_test): Likewise.
9786         (y1_test): Likewise.
9787         (yn_test): Likewise.
9788
9789 2012-03-27  Anton Blanchard  <anton@samba.org>
9790
9791         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
9792         MAP_HUGETLB.
9793         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
9794         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
9795         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
9796
9797 2012-03-27  David S. Miller  <davem@davemloft.net>
9798
9799         * conform/Makefile: Run run-conformtest.sh using $(BASH).
9800
9801         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
9802         have-as-vis3 check.
9803
9804 2012-03-27  Andreas Jaeger  <aj@suse.de>
9805
9806         * sysdeps/x86_64/elf/configure.in: Moved to ...
9807         * sysdeps/x86_64/configure.in: ... here.
9808         * sysdeps/x86_64/elf/start.S: Moved to ...
9809         * sysdeps/x86_64/start.S: ... here.
9810         * sysdeps/x86_64/elf/configure: Delete.
9811
9812         * sysdeps/x86_64/configure.in: Merge contents from
9813         sysdeps/i386/configure.in (without i686 check).
9814
9815         * sysdeps/i386/elf/Versions: Merge into ...
9816         * sysdeps/i386/Versions: ... this.
9817         * sysdeps/i386/elf/Versions: Delete file.
9818         * sysdeps/i386/elf/start.S: Moved to ...
9819         * sysdeps/i386/start.S: ...here.
9820         * sysdeps/i386/elf/configure.in: Merge into...
9821         * sysdeps/i386/configure.in: ...here.
9822         * sysdeps/i386/elf/configure.in: Delete file.
9823         * sysdeps/i386/elf/configure: Delete file.
9824
9825         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
9826         * debug/backtracesyms.c: ... here.
9827         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
9828         * debug/backtracesymsfd.c: ... here.
9829         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
9830         * sysdeps/generic/ifunc-sel.h: ... here.
9831
9832         * sysdeps/unix/i386/start.c: Delete file.
9833         * sysdeps/unix/sparc/start.c: Delete file.
9834         * sysdeps/unix/start.c: Delete file.
9835
9836         * sysdeps/sh/elf/configure.in: Moved to ...
9837         * sysdeps/sh/configure.in: ... here.
9838         * sysdeps/sh/elf/start.S: Moved to ...
9839         * sysdeps/sh/start.S: ... here.
9840         * sysdeps/sh/elf/configure: Delete file.
9841
9842         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
9843         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
9844         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
9845         * sysdeps/powerpc/powerpc64/entry.h: ... here.
9846         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
9847         * sysdeps/powerpc/powerpc64/start.S: here.
9848         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
9849         * sysdeps/powerpc/powerpc64/Makefile: ... this.
9850         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
9851         * sysdeps/powerpc/powerpc64/configure.in: ... this.
9852         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
9853
9854         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
9855         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
9856         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
9857         * sysdeps/powerpc/powerpc32/start.S: ... here.
9858         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
9859         * sysdeps/powerpc/powerpc32/configure.in: ... this.
9860         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
9861
9862         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
9863         * sysdeps/powerpc/ifunc-sel.h: ... here.
9864         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
9865         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
9866
9867         * sysdeps/sparc/elf/configure.in: Moved to ...
9868         * sysdeps/sparc/configure.in: ... here.
9869         * sysdeps/sparc/elf/configure: Delete file.
9870         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
9871         * sysdeps/sparc/sparc32/start.S: ... here.
9872         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
9873         * sysdeps/sparc/sparc64/start.S: ... here.
9874         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
9875         * sysdeps/sparc/sparc32/Makefile: ... this.
9876         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
9877         * sysdeps/sparc/sparc64/Makefile: ... this.
9878
9879         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
9880         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
9881         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
9882         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
9883         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
9884         * sysdeps/s390/s390-32/setjmp.S: ... here.
9885         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
9886         * sysdeps/s390/s390-32/configure.in: ... here.
9887         * sysdeps/s390/s390-32/elf/configure: Delete file.
9888         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
9889         * sysdeps/s390/s390-32/start.S: ... here.
9890
9891         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
9892         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
9893         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
9894         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
9895         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
9896         * sysdeps/s390/s390-64/setjmp.S: ... here.
9897         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
9898         * sysdeps/s390/s390-64/configure.in: ... here
9899         * sysdeps/s390/s390-64/elf/configure: Delete file.
9900         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
9901         * sysdeps/s390/s390-64/start.S: ... here.
9902         * sysdeps/s390/s390-64/elf/configure: Delete.
9903
9904         * configure.in: Remove support for elf directories in sysdeps.
9905
9906         * configure: Regenerated.
9907         * sysdeps/i386/configure: Regenerated.
9908         * sysdeps/powerpc/powerpc32/configure: Regenerated.
9909         * sysdeps/powerpc/powerpc64/configure: Regenerated.
9910         * sysdeps/s390/s390-32/configure: Regenerated.
9911         * sysdeps/s390/s390-64/configure: Regenerated.
9912         * sysdeps/sh/configure: Regenerated.
9913         * sysdeps/sparc/configure: Regenerated.
9914         * sysdeps/x86_64/configure: Regenerated.
9915
9916 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
9917
9918         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9919
9920         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
9921         denormal result into account.
9922
9923 2012-03-25  Roland McGrath  <roland@hack.frob.com>
9924
9925         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
9926         Reported by Allan McRae <allan@archlinux.org>.
9927
9928 2012-03-23  Jeff Law  <law@redhat.com>
9929
9930         * nss/getnssent.c (__nss_getent): Fix typo.
9931
9932 2012-03-23  David S. Miller  <davem@davemloft.net>
9933
9934         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9935
9936 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
9937
9938         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
9939         to pad to uint64_t for each field.
9940         (dl_tls_index): Replace unsigned long with uint64_t.
9941
9942 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
9943         Paul Pluzhnikov  <ppluzhnikov@google.com>
9944
9945         [BZ #6528]
9946         * grp/Makefile (otherlibs): Don't set it.
9947         * inet/Makefile (otherlibs): Likewise.
9948         * login/Makefile (otherlibs): Likewise.
9949         * nscd/Makefile (otherlibs): Likewise.
9950         * posix/Makefile (otherlibs): Likewise.
9951         * pwd/Makefile (otherlibs): Likewise.
9952         * rt/Makefile (otherlibs): Likewise.
9953         * sunrpc/Makefile (otherlibs): Likewise.
9954         * nss/Makefile (otherlibs): Likewise.
9955         Add libnss_files to routines and static-only-routines.
9956         ($(objpfx)getent): Remove rule.
9957         * resolv/Makefile: Add libnss_dns and libresolv to routines and
9958         static-only-routines.
9959
9960 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
9961
9962         [BZ #13892]
9963         * math/s_cexp.c: Include <float.h>.
9964         (__cexp): Handle exp result overflowing not necessarily
9965         overflowing both real and imaginary parts of result.
9966         * math/s_cexpf.c: Likewise.
9967         * math/s_cexpl.c: Likewise.
9968         * math/libm-test.inc (cexp_test): Add more tests.
9969         * sysdeps/i386/fpu/libm-test-ulps: Update.
9970         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9971
9972 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
9973
9974         * include/link.h (ELFW): New macro.
9975         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
9976         Replace ELF64_R_TYPE with ELFW(R_TYPE).
9977
9978 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
9979
9980         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
9981         with uint64_t.
9982
9983 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
9984
9985         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
9986         declaration.
9987         (struct La_x32_retval): Likewise.
9988
9989 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
9990
9991         * sysdeps/x86_64/preconfigure.in: New file.
9992         * sysdeps/x86_64/preconfigure: New generated file.
9993
9994 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
9995
9996         [BZ #13824]
9997         * math/e_exp2l.c: Include <float.h>.
9998         (__ieee754_exp2l): Handle overflow and underflow cases
9999         separately.  Only pass fractional part of argument to
10000         __ieee754_expl.
10001         * math/libm-test.inc (exp2_test): Add more tests.
10002
10003         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
10004         negating x to take absolute value.
10005         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
10006         Likewise.
10007         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
10008         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
10009         Likewise.
10010         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
10011         computing low part if x was negated.
10012         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
10013
10014 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
10015
10016         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
10017         la_x32_gnu_pltexit.
10018         (pltexit): Cast int_retval to ptrdiff_t.
10019         * elf/tst-auditmod3b.c: Likewise.
10020         * elf/tst-auditmod4b.c: Likewise.
10021         * elf/tst-auditmod5b.c: Likewise.
10022         * elf/tst-auditmod6b.c: Likewise.
10023         * elf/tst-auditmod6c.c: Likewise.
10024         * elf/tst-auditmod7b.c: Likewise.
10025
10026         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
10027         and x32_gnu_pltexit.
10028
10029         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
10030         __ELF_NATIVE_CLASS.
10031         (La_x32_regs): New macro.
10032         (La_x32_retval): Likewise.
10033         (la_x32_gnu_pltenter): New function prototype.
10034         (la_x32_gnu_pltexit): Likewise.
10035
10036 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
10037
10038         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
10039         exponent.
10040
10041         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10042
10043         * configure.in (libc_cv_cc_nofma): Check for option to disable
10044         generation of FMA instructions.
10045         * configure: Regenerate.
10046         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
10047         * sysdeps/ieee754/dbl-64/Makefile: New file.
10048         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
10049         Remove brandred-fma4.
10050         (CFLAGS-brandred-fma4.c): Remove.
10051         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
10052         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
10053         define.
10054         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
10055         define.
10056
10057 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
10058
10059         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
10060         LLONG_MAX != LONG_MAX.
10061         (_itoa_word): Use _ITOA_WORD_TYPE on value.
10062         (_fitoa_word): Likewise.
10063         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
10064         LLONG_MAX != LONG_MAX.
10065         * stdio-common/_itowa.h: Include <_itoa.h>.
10066         (_itowa_word): Use _ITOA_WORD_TYPE on value.
10067         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
10068         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
10069         only if not defined.
10070         (_ITOA_WORD_TYPE): Likewise.
10071         (_itoa_word): Use _ITOA_WORD_TYPE on value.
10072         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
10073
10074 2012-03-21  David S. Miller  <davem@davemloft.net>
10075
10076         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10077
10078 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
10079
10080         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
10081         of x86_64 when setting libc_cv_slibdir, libdir and
10082         libc_cv_localedir.
10083         * sysdeps/unix/sysv/linux/configure: Regenerated.
10084
10085 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
10086
10087         * manual/lang.texi (Old Varargs): Remove section.
10088         (How Variadic): Update menu.
10089         (va_start): Do not mention varargs.h.
10090
10091 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
10092             Joseph Myers  <joseph@codesourcery.com>
10093
10094         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
10095         link test.
10096         * configure: Regenerated.
10097
10098 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
10099
10100         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
10101         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
10102         conformtest.pl
10103
10104 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
10105
10106         * NOTES: Remove.
10107         * Makefile (files-for-dist): Remove NOTES.
10108         (NOTES): Remove rule.
10109         * README: Don't refer to NOTES.
10110         * manual/creature.texi: Don't include macros.texi.
10111         * manual/intro.texi (creature.texi): Remove comment referring to
10112         NOTES.
10113
10114         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
10115         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
10116         * configure: Regenerated.
10117         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
10118         LIBC_TRY_CC_OPTION.
10119         (libc_cv_as_i686): Likewise.
10120         (libc_cv_cc_avx): Likewise.
10121         (libc_cv_cc_sse2avx): Likewise.
10122         (libc_cv_cc_fma4): Likewise.
10123         (libc_cv_cc_novzeroupper): Likewise.
10124         * sysdeps/i386/configure: Regenerated.
10125
10126         [BZ #13883]
10127         * sysdeps/i386/fpu/s_cexp.S: Remove.
10128         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
10129         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
10130         * math/libm-test.inc (cexp_test): Add more tests.
10131         * sysdeps/i386/fpu/libm-test-ulps: Update.
10132         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10133
10134 2012-03-21  Allan McRae  <allan@archlinux.org>
10135
10136         * timezone/Makefile: Do not install iso3166.tab and zone.tab
10137
10138 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
10139
10140         [BZ #13871]
10141         * math/w_exp2.c: Do not include <float.h>.
10142         (o_threshold, u_threshold): Remove.
10143         (__exp2): Calculate result before checking finiteness and calling
10144         __kernel_standard.
10145         * math/w_exp2f.c: Likewise.
10146         * math/w_exp2l.c: Likewise.
10147         * math/libm-test.inc (exp2_test): Require overflow exception for
10148         1e6 input.
10149
10150         [BZ #3866]
10151         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
10152         range of signed 64-bit integers before using fistpll.  Remove
10153         checks for whether integers fit in mantissa bits.
10154         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
10155         the range of signed 32-bit integers before using fistpl.  Remove
10156         checks for whether integers fit in mantissa bits.
10157         * sysdeps/i386/fpu/e_powl.S (p64): New object.
10158         (__ieee754_powl): Test for y outside the range of signed 64-bit
10159         integers before using fistpll.  Reduce 64-bit values to 63-bit
10160         ones as needed.
10161         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
10162         divide-by-zero is raised for zero to large negative powers.
10163         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
10164         (__ieee754_powl): Test for y outside the range of signed 64-bit
10165         integers before using fistpll.  Reduce 64-bit values to 63-bit
10166         ones as needed.
10167         * math/libm-test.inc (pow_test): Add more tests.
10168
10169 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
10170
10171         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
10172         <stdio-common/_itoa.h>.
10173         * debug/segfault.c: Likewise.
10174         * elf/dl-cache.c: Likewise.
10175         * elf/dl-minimal.c: Likewise.
10176         * elf/dl-misc.c: Likewise.
10177         * elf/dl-sysdep.c: Likewise.
10178         * elf/dl-version.c: Likewise.
10179         * elf/rtld.c: Likewise.
10180         * hurd/hurdsock.c: Likewise.
10181         * hurd/lookup-retry.c: Likewise.
10182         * malloc/malloc.c: Likewise.
10183         * malloc/mtrace.c: Likewise.
10184         * nscd/nscd_getgr_r.c: Likewise.
10185         * nscd/nscd_getpw_r.c: Likewise.
10186         * nscd/nscd_getserv_r.c: Likewise.
10187         * posix/getopt_init.c: Likewise.
10188         * posix/wordexp.c: Likewise.
10189         * stdio-common/_itoa.c: Likewise.
10190         * stdio-common/printf_fphex.c: Likewise.
10191         * stdio-common/vfprintf.c: Likewise.
10192         * string/_strerror.c: Likewise.
10193         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
10194         * sysdeps/i386/i686/hp-timing.h: Likewise.
10195         * sysdeps/mach/_strerror.c: Likewise.
10196         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
10197         * sysdeps/mach/hurd/sethostid.c: Likewise.
10198         * sysdeps/mach/hurd/xmknodat.c: Likewise.
10199         * sysdeps/mach/xpg-strerror.c: Likewise.
10200         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
10201         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
10202         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
10203         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
10204         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
10205         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
10206         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
10207         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
10208         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
10209         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
10210         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
10211         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
10212         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
10213         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
10214         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
10215         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
10216         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
10217         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
10218         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
10219         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
10220         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
10221
10222         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
10223
10224         * stdio-common/_itoa.h: Moved to ...
10225         * sysdeps/generic/_itoa.h: Here.
10226
10227         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
10228
10229         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
10230         instead of "_itoa.h" and "_itowa.h".
10231         * stdio-common/vfprintf.: Likewise.
10232
10233 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
10234
10235         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
10236         <bits/wordsize.h>.
10237         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
10238         (__signbit): Likwise.
10239         (llrintf): Likwise.
10240         (llrint): Likwise.
10241
10242 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
10243
10244         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
10245         __WORDSIZE != 64.
10246
10247 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
10248
10249         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
10250         OVERFLOW_EXCEPTION_OK.
10251         * math/libm-test.inc ("Philosophy"): Update comment about
10252         exception testing.
10253         (OVERFLOW_EXCEPTION): Define.
10254         (OVERFLOW_EXCEPTION_OK): Likewise.
10255         (INVALID_EXCEPTION_OK): Renumber.
10256         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
10257         (IGNORE_ZERO_INF_SIGN): Likewise.
10258         (test_exceptions): Handle FE_OVERFLOW.
10259         (exp10_test): Expect overflow exceptions.
10260         (exp2_test): Likewise.
10261         (expm1_test): Likewise.
10262         (nextafter_test): Likewise.
10263         (pow_test): Likewise.
10264         (scalbn_test): Likewise.
10265         (scalbln_test): Likewise.
10266
10267 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10268
10269         * sysdeps/x86_64/bits/atomic.h
10270         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
10271         64bit integer.
10272         (atomic_exchange_acq): Likewise.
10273         (__arch_exchange_and_add_body): Likewise.
10274         (__arch_add_body): Likewise.
10275         (atomic_add_negative): Likewise.
10276         (atomic_add_zero): Likewise.
10277
10278 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10279
10280         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
10281         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
10282
10283 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10284
10285         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
10286         Check __x86_64__ instead of __WORDSIZE.
10287
10288 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10289
10290         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
10291
10292 2012-03-19  David S. Miller  <davem@davemloft.net>
10293
10294         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10295
10296         * sysdeps/sparc/fpu/fenv_private.h: New file.
10297         * sysdeps/sparc/fpu/math_private.h: Use it.
10298         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
10299         Remove.
10300         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
10301         (libc_feholdexcept_setroundl): Remove.
10302         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
10303         Remove.
10304         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
10305         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
10306
10307 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10308
10309         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
10310         int64_t instead of long int.
10311         (INSERT_WORDS64): Likwise.
10312
10313 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10314
10315         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
10316         _Unwind_GetCFA return to _Unwind_Ptr first.
10317
10318 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
10319
10320         [BZ #13629]
10321         * math/s_clog.c: Include <float.h>.
10322         (__clog): Scale large or subnormal inputs.
10323         * math/s_clogf.c: Likewise.
10324         * math/s_clogl.c: Likewise.
10325         * math/s_clog10.c: Include <float.h>.
10326         (M_LOG10_2): Define.
10327         (__clog10): Scale large or subnormal inputs.
10328         * math/s_clog10f.c: Likewise.
10329         * math/s_clog10l.c: Likewise.
10330         * math/libm-test.inc (clog_test): Add more tests.
10331         (clog10_test): Likewise.
10332         * sysdeps/i386/fpu/libm-test-ulps: Update.
10333         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10334
10335         [BZ #11451]
10336         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
10337         x and y.
10338         * math/libm-test.inc (atan2_test): Add another test.
10339
10340         * Makerules (common-objdir-compile): Remove.
10341         * sysdeps/unix/Makefile (config-generated): Do not add
10342         $(unix-generated) to variable.
10343         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
10344         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
10345         Remove rule.
10346         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
10347         Likewise.
10348         [generic bits/local_lim.h] (before-compile): Do not append to
10349         variable.
10350         [generic bits/local_lim.h] (common-generated): Likewise.
10351         [generic sys/param.h] (before-compile): Do not append to variable.
10352         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
10353         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
10354         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
10355         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
10356         include.
10357         [generic sys/param.h] (sys/param.h-includes): Remove variable.
10358         [generic sys/param.h] (sys/param.h-includes): Remove rule.
10359         [generic sys/param.h] ($(addprefix
10360         $(common-objpfx),$(sys/param.h-includes))): Likewise.
10361         [generic sys/param.h] (common-generated): Do not append to
10362         variable.
10363         [generic sys/param.h] (sysdep_headers): Likewise.
10364         [generic bits/errno.h] (before-compile): Do not append to
10365         variable.
10366         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
10367         rule.
10368         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
10369         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
10370         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
10371         [generic bits/errno.h] (common-generated): Do not append to
10372         variable.
10373         [generic bits/ioctls.h] (before-compile): Do not append to
10374         variable.
10375         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
10376         rule.
10377         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
10378         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
10379         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
10380         rule.
10381         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
10382         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
10383         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
10384         [generic bits/ioctls.h] (common-generated): Do not append to
10385         variable.
10386         [generic sys/syscall.h] (syscall.h): Remove variable.
10387         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
10388         rule.
10389         [generic sys/syscall.h] (before-compile): Do not append to
10390         variable.
10391         [generic sys/syscall.h] (common-generated): Likewise.
10392         * sysdeps/unix/errnos-tmpl.c: Remove file.
10393         * sysdeps/unix/errnos.awk: Likewise.
10394         * sysdeps/unix/ioctls-tmpl.c: Likewise.
10395         * sysdeps/unix/ioctls.awk: Likewise.
10396         * sysdeps/unix/mk-local_lim.c: Likewise.
10397         * sysdeps/unix/snarf-ioctls: Likewise.
10398
10399 2012-03-19  Richard Henderson  <rth@twiddle.net>
10400
10401         * sysdeps/i386/fpu/fenv_private.h: New file.
10402         * sysdeps/i386/fpu/math_private.h: Use it.
10403         (math_opt_barrier, math_force_eval): Remove.
10404         (libc_feholdexcept_setround_53bit): Remove.
10405         (libc_feupdateenv_53bit): Remove.
10406         * sysdeps/x86_64/fpu/math_private.h: Likewise.
10407         (math_opt_barrier, math_force_eval): Remove.
10408         (libc_feholdexcept): Remove.
10409         (libc_feholdexcept_setround): Remove.
10410         (libc_fetestexcept, libc_fesetenv): Remove.
10411         (libc_feupdateenv_test): Remove.
10412         (libc_feupdateenv, libc_feholdsetround): Remove.
10413         (libc_feresetround): Remove.
10414
10415         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
10416         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
10417
10418         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
10419         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
10420         (libc_feupdateenv_testl): New.
10421         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
10422         (libc_feupdateenv_testf): New.
10423         (libc_feupdateenv): Use libc_feupdateenv_test.
10424         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
10425         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
10426
10427         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
10428         (libc_feholdsetroundf, libc_feholdsetroundl): New.
10429         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
10430         (libc_feresetround_noex): New.
10431         (libc_feresetround_noexf): New.
10432         (libc_feresetround_noexl): New.
10433         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
10434         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
10435         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
10436         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
10437         SET_RESTORE_ROUND.
10438         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
10439         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
10440         (__cos): Likewise.
10441         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
10442         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
10443         SET_RESTORE_ROUND_NOEX.
10444         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
10445         SET_RESTORE_ROUND_NOEXF.
10446         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
10447         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
10448         (libc_feholdsetroundf): New.
10449         (libc_feresetround, libc_feresetroundf): New.
10450
10451         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
10452         (libc_feholdexcept_setround_53bit): Convert from macro to function.
10453         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
10454
10455         * sysdeps/generic/math_private.h: Include <fenv.h>.
10456         (default_libc_feholdexcept): New.
10457         (default_libc_feholdexcept_setround): New.
10458         (default_libc_fesetenv, default_libc_feupdateenv): New.
10459         (libc_feholdexcept): Only define if undefined.
10460         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
10461         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
10462         (libc_feholdexcept_setroundl): Likewise.
10463         (libc_feholdexcept_setround_53bit): Likewise.
10464         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
10465         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
10466         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
10467         (libc_feupdateenv_53bit): Likewise.
10468         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
10469         (libc_feholdexcept): Convert from macro to inline function.
10470         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
10471         (libc_fesetenv, libc_feupdateenv): Likewise.
10472
10473         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
10474         not previously defined.
10475         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
10476         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
10477         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
10478         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
10479         * sysdeps/ieee754/flt-32/math_private.h: New file.
10480         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
10481         math_private.h below SET_FLOAT_WORD.
10482         (__isnan, __isinf_ns, __finite): Remove.
10483         (__isnanf, __isinf_nsf, __finitef): Remove.
10484
10485 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
10486
10487         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10488
10489 2012-03-17  David S. Miller  <davem@davemloft.net>
10490
10491         [BZ #6471]
10492         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
10493         for 2.16.
10494
10495 2012-03-16  David S. Miller  <davem@davemloft.net>
10496
10497         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
10498         warnings.
10499
10500         [BZ #6471]
10501         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
10502         properly.
10503         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
10504         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
10505         sysdep_routines when subdir is sysvipc.
10506         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
10507         __getshmlba helper.
10508
10509         * sysdeps/sparc/fpu/libm-test/ulps: Update.
10510
10511 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10512
10513         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
10514         [__LP64__].
10515
10516 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10517
10518         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
10519         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
10520         (__lround): Renamed to ...
10521         (__llround): This.  Replace long int with long long int.
10522         Define lround functions as aliases of llround functions.
10523         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
10524
10525 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10526
10527         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
10528         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
10529         adresses to uintptr_t.  Replace "long int" and "unsigned long
10530         int" with "greg_t" on va_arg.
10531
10532 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10533
10534         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
10535         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
10536
10537         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
10538         Move e_machine check before EI_CLASS check.  Handle x32
10539         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
10540         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
10541         SKIP_EM_IA_64 and include
10542         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
10543
10544         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
10545         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
10546         (add_system_dir): New macro.
10547
10548         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
10549         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
10550
10551 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
10552
10553         [BZ #2551]
10554         [BZ #2552]
10555         [BZ #2553]
10556         [BZ #2554]
10557         [BZ #2562]
10558         [BZ #2563]
10559         [BZ #2565]
10560         [BZ #2566]
10561         [BZ #2576]
10562         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
10563         (y0): Likewise.
10564         * math/w_j0f.c (j0f): Likewise.
10565         (y0f): Likewise.
10566         * math/w_j0l.c (__j0l): Likewise.
10567         (__y0l): Likewise.
10568         * math/w_j1.c (j1): Likewise.
10569         (y1): Likewise.
10570         * math/w_j1f.c (j1f): Likewise.
10571         (y1f): Likewise.
10572         * math/w_j1l.c (__j1l): Likewise.
10573         (__y1l): Likewise.
10574         * math/w_jn.c (jn): Likewise.
10575         (yn): Likewise.
10576         * math/w_jnf.c (jnf): Likewise.
10577         (ynf): Likewise.
10578         * math/w_jnl.c (__jnl): Likewise.
10579         (__ynl): Likewise.
10580         * math/libm-test.inc (j0_test): Add more tests.
10581         (j1_test): Likewise.
10582         (jn_test): Likewise.  Add trailing semicolon to existing test.
10583         (y0_test): Likewise.
10584         (y1_test): Likewise.
10585         * sysdeps/i386/fpu/libm-test-ulps: Update.
10586         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10587
10588         [BZ #13851]
10589         [BZ #13854]
10590         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
10591         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
10592         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
10593         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
10594         (__tanl): Set errno for infinite argument.
10595         * sysdeps/i386/fpu/mptan.c: Remove.
10596         * sysdeps/i386/fpu/s_tan.S: Likewise.
10597         * sysdeps/i386/fpu/s_tanl.S: Likewise.
10598         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
10599         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
10600         * math/libm-test.inc (tan_test): Add more tests and enable more
10601         tests for double and long double.
10602         * sysdeps/i386/fpu/libm-test-ulps: Update.
10603         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10604
10605 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
10606
10607         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
10608         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
10609
10610 2012-03-16  Roland McGrath  <roland@hack.frob.com>
10611
10612         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
10613         * configure.in: Use it for both main tree and add-ons.
10614         * configure: Regenerated.
10615
10616 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10617
10618         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
10619
10620 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
10621
10622         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
10623         in comment.
10624
10625         [BZ #13851]
10626         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
10627         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
10628         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
10629         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
10630         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
10631         infinite argument.
10632         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
10633         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
10634         != 0 for prec == 2.
10635         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
10636         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
10637         * sysdeps/i386/fpu/s_cosl.S: Likewise.
10638         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
10639         * sysdeps/i386/fpu/s_sinl.S: Likewise.
10640         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
10641         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
10642         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
10643         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
10644         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
10645         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
10646         * math/libm-test.inc (cos_test): Add more tests and enable more
10647         tests for long double.
10648         (sin_test): Likewise.
10649         (sincos_test): Likewise.
10650         * sysdeps/i386/fpu/libm-test-ulps: Update.
10651         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10652
10653 2012-03-16  David S. Miller  <davem@davemloft.net>
10654
10655         * sysdeps/sparc/fpu/math_private.h: New file.
10656
10657 2012-03-15  David S. Miller  <davem@davemloft.net>
10658
10659         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
10660         file.
10661         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
10662         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
10663         file.
10664         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
10665         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
10666         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
10667         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
10668         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
10669         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
10670         sysdep routines.
10671         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
10672
10673         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
10674         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
10675
10676         * sysdeps/sparc/sparc-ifunc.h: New file.
10677         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
10678         sparc-ifunc.h
10679         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
10680         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
10681         Likewise.
10682         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
10683         Likewise.
10684         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
10685         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
10686         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
10687         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
10688         Likewise.
10689         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
10690         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
10691         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
10692         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
10693         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
10694         Likewise.
10695         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
10696         Likewise.
10697         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
10698         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
10699         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
10700         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
10701         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
10702         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
10703         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
10704         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
10705         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
10706         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
10707         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
10708         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
10709         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
10710         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
10711         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
10712         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
10713         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
10714         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
10715         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
10716         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
10717         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
10718         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
10719         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
10720         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
10721
10722 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
10723
10724         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
10725         scaling.
10726         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10727
10728 2012-03-15  Andreas Jaeger  <aj@suse.de>
10729
10730         [BZ #13852]
10731         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
10732         ieee754/flt-32 implementation for sin, cos and sincos.
10733         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
10734         * sysdeps/i386/fpu/s_cosf.S: Likewise.
10735         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
10736         * sysdeps/i386/fpu/s_sinf.S: Likewise.
10737         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
10738         ieee754/flt-32 implementation for tan.
10739
10740         * math/libm-test.inc (cos_test): Enable some large input tests for
10741         float as well
10742         (sin_test): Likewise.
10743         (sincos_test): Likewise.
10744         (tan_test): Add tests for large input.
10745
10746         * sysdeps/i386/fpu/libm-test-ulps: Update.
10747
10748 2012-03-15  Andreas Jaeger  <aj@suse.de>
10749
10750         [BZ #13658]
10751         * math/libm-test.inc (cos_test): Add more test cases.
10752         (sin_test): Likewise.
10753         (sincos_test): Likewise.
10754
10755 2012-03-15  Andreas Jaeger  <aj@suse.de>
10756
10757         [BZ #13837]
10758         * math/libm-test.inc (cos_test): Add a test case for large input
10759         value.
10760         (sin_test): Likewise.
10761         (sincos_test): Likewise.
10762
10763 2012-03-15  Andreas Jaeger  <aj@suse.de>,
10764         Joseph Myers  <joseph@codesourcery.com>
10765
10766         [BZ #13658]
10767         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
10768         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
10769         * sysdeps/i386/fpu/branred.c: Likewise.
10770         * sysdeps/i386/fpu/dosincos.c: Likewise.
10771         * sysdeps/i386/fpu/mpa.c: Likewise.
10772         * sysdeps/i386/fpu/s_cos.S: Likewise.
10773         * sysdeps/i386/fpu/s_sin.S: Likewise.
10774         * sysdeps/i386/fpu/s_sincos.S: Likewise.
10775         * sysdeps/i386/fpu/sincos32.c: Likewise.
10776
10777         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
10778         Define.
10779         (libc_feupdateenv_53bit): Define.
10780         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
10781         Define.
10782         (libc_feupdateenv_53bit): Define.
10783
10784         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
10785         53 bit (without extend i386 double precision).
10786
10787         * math/libm-test.inc (sincos_test): Add tests for large input.
10788         (sin): Likewise.
10789         (cos): Likewise.
10790
10791         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
10792
10793 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
10794
10795         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10796
10797 2012-03-15  David S. Miller  <davem@davemloft.net>
10798
10799         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
10800         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
10801         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
10802         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
10803         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
10804         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
10805         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
10806         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
10807         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
10808         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
10809         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
10810         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
10811         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
10812         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
10813         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
10814         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
10815         file.
10816         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
10817         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
10818         file.
10819         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
10820         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
10821         file.
10822         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
10823         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
10824         file.
10825         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
10826         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
10827         fmin/fmax sysdep routines.
10828         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
10829
10830 2012-03-14  David S. Miller  <davem@davemloft.net>
10831
10832         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
10833         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
10834         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
10835         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
10836         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
10837         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
10838         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
10839         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
10840         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
10841         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
10842         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
10843         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
10844         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
10845         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
10846         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
10847         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
10848         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
10849         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
10850         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
10851         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
10852         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
10853         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
10854         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
10855         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
10856         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
10857         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
10858         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
10859         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
10860         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
10861         routines.
10862         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
10863         file.
10864         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
10865         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
10866         file.
10867         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
10868         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
10869         file.
10870         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
10871         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
10872         file.
10873         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
10874         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
10875         file.
10876         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
10877         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
10878         file.
10879         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
10880         file.
10881         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
10882         file.
10883         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
10884         file.
10885         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
10886         New file.
10887         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
10888         file.
10889         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
10890         file.
10891         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
10892         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
10893         file.
10894         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
10895         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
10896         file.
10897         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
10898         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
10899         file.
10900         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
10901         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
10902         VIS3 routines.
10903
10904         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
10905         New file.
10906
10907         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10908
10909         * sysdeps/sparc/configure.in: New file.
10910         * sysdeps/sparc/configure: Generate.
10911         * configure.in (libc_cv_sparc_as_vis3): Substitute.
10912         * configure: Regenerate.
10913         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
10914         * config.make.in (have-as-vis3): New.
10915         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
10916         available use -Av9d instead of -Av9a.
10917         * sysdeps/sparc/sparc64/Makefile: Likewise.
10918         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
10919         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
10920         New file.
10921         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
10922         file.
10923         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
10924         New file.
10925         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
10926         file.
10927         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
10928         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
10929         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
10930         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
10931         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
10932
10933         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
10934         fzeros/fnegs to load 0x80000000 into a float register instead of
10935         using the stack.
10936         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
10937
10938 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
10939
10940         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
10941         bits/syscall.h.
10942         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
10943         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
10944         ($(inst_includedir)/bits/syscall.h): Remove rule.
10945         ($(objpfx)bits/syscall.d): Include instead of
10946         $(objpfx)syscall-list.d.
10947         (generated): Change syscall-list.h and syscall-list.d to
10948         bits/syscall.h and bits/syscall.d.
10949
10950 2012-03-14  Roland McGrath  <roland@hack.frob.com>
10951
10952         [BZ #13846]
10953         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
10954
10955 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
10956
10957         [BZ #13841]
10958         * math/s_csqrt.c: Include <float.h>.
10959         (__csqrt): Scale large or subnormal inputs.
10960         * math/s_csqrtf.c: Likewise.
10961         * math/s_csqrtl.c: Likewise.
10962         * math/libm-test.inc (csqrt_test): Add more tests.
10963         * sysdeps/i386/fpu/libm-test-ulps: Update.
10964         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10965
10966         [BZ #13840]
10967         * math/libm-test.inc (hypot_test): Add more tests.
10968
10969 2012-03-13  David S. Miller  <davem@davemloft.net>
10970
10971         [BZ #13840]
10972         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
10973         double-precision for the calculation instead of scaling.
10974
10975 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
10976
10977         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
10978         manipulate bits before adding and subtracting TWO52[sx].
10979         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
10980         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
10981         Likewise.
10982         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
10983
10984 2012-03-13  David S. Miller  <davem@davemloft.net>
10985
10986         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
10987         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
10988         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
10989         rtld-global-offsets.h
10990         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
10991
10992         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
10993         large parameters.
10994
10995         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
10996
10997         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
10998         'err' in the ifdef scope in which it is actually used.
10999
11000         * nss/nss_db/db-init.c: Include string.h
11001
11002 2012-03-12  David S. Miller  <davem@davemloft.net>
11003
11004         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
11005         masking out of the most significant byte of random value used.
11006         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
11007         Fix coding style in previous change.
11008
11009         * sysdeps/unix/sysv/linux/kernel-features.h
11010         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
11011         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
11012         expression.
11013         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
11014         later.
11015
11016 2012-03-11  David S. Miller  <davem@davemloft.net>
11017
11018         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
11019         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
11020         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
11021         for 'resultvar' otherwise things get truncated on 64-bit.
11022
11023         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
11024         Fix masking out of the most significant byte of random value used.
11025
11026         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11027
11028 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
11029
11030         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11031
11032 2012-03-09  David S. Miller  <davem@davemloft.net>
11033
11034         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
11035         variables with appropriate CPP guards.
11036         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
11037         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
11038         on resulting framesize and the management of the outregs buffer for pltexit.
11039         Preserve floating point return values across _dl_call_pltexit call.
11040         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
11041         framesize and the management of the outregs buffer for pltexit.
11042         Preserve floating point return values across _dl_call_pltexit
11043         call.
11044         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
11045         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
11046         (print_exit): Fix format string for return register value.
11047
11048 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
11049
11050         * sunrpc/Makefile (others): Add rpcgen.
11051         ($(objpfx)rpcgen): Remove special build rule and dependency on
11052         libc.
11053         * sunrpc/rpcgen.c: New file.
11054
11055 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
11056
11057         [BZ #13673]
11058         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
11059         * stdio-common/bug-vfprintf-nargs.c: Likewise.
11060         * sysdeps/i386/crti.S: Likewise.
11061         * sysdeps/i386/crtn.S: Likewise.
11062         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
11063         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
11064         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
11065         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
11066         * sysdeps/sh/crti.S: Likewise.
11067         * sysdeps/sh/crtn.S: Likewise.
11068         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
11069
11070         [BZ #13673]
11071         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
11072         with URL.
11073         * locale/programs/locfile-kw.gperf: Likewise.
11074         * locale/programs/charmap-kw.h: Regenerated.
11075         * locale/programs/locfile-kw.h: Likewise.
11076
11077         [BZ #13673]
11078         * intl/plural.y: Replace FSF snail mail address with URL.
11079         * intl/plural.c: Regenerated.
11080
11081 2012-03-09  Richard Henderson  <rth@twiddle.net>
11082
11083         * include/math_private.h: Remove file.
11084         * math/math_private.h: Move file ...
11085         * sysdeps/generic/math_private.h: ... here.
11086
11087         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
11088         * sysdeps/powerpc/fpu/math_private.h: Likewise.
11089         * sysdeps/x86_64/fpu/math_private.h: Likewise.
11090
11091         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
11092         and <math_private.h>.
11093         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
11094         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
11095         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
11096         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
11097         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
11098         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
11099         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
11100         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
11101         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
11102         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
11103         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
11104         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
11105         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
11106         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
11107         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
11108         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
11109         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
11110         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
11111         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
11112         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
11113         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
11114         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
11115         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
11116         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
11117         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
11118         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
11119         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
11120         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
11121         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
11122         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
11123         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
11124         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
11125         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
11126         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
11127         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
11128         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
11129         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
11130         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
11131         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
11132         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
11133         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
11134         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
11135         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
11136         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
11137         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
11138         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
11139         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
11140         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
11141         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
11142         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
11143         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
11144         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
11145         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
11146         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
11147         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
11148         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
11149         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
11150         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
11151         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
11152         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
11153         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
11154         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
11155         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
11156         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
11157         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
11158         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
11159         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
11160         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
11161         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
11162         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
11163         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
11164         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
11165         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
11166         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
11167         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
11168         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
11169         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
11170         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
11171         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
11172         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
11173         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
11174         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
11175         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
11176         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
11177         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
11178         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
11179         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
11180         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
11181         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
11182         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
11183         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
11184         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
11185         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
11186         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
11187         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
11188         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
11189         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
11190         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
11191         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
11192         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
11193         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
11194         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
11195         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
11196         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
11197         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
11198         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
11199         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
11200         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
11201         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
11202         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
11203         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
11204         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
11205         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
11206         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
11207         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
11208         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
11209         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
11210         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
11211         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
11212         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
11213         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
11214         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
11215         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
11216         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
11217         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
11218         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
11219         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
11220         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
11221         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
11222         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
11223         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
11224         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
11225         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
11226         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
11227         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
11228         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
11229         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
11230         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
11231         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
11232         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
11233         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
11234         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
11235         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
11236         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
11237         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
11238         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
11239         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
11240         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
11241         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
11242         * sysdeps/ieee754/k_standard.c: Likewise.
11243         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
11244         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
11245         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
11246         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
11247         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
11248         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
11249         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
11250         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
11251         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
11252         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
11253         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
11254         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
11255         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
11256         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
11257         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
11258         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
11259         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
11260         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
11261         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
11262         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
11263         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
11264         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
11265         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
11266         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
11267         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
11268         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
11269         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
11270         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
11271         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
11272         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
11273         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
11274         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
11275         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
11276         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
11277         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
11278         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
11279         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
11280         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
11281         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
11282         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
11283         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
11284         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
11285         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
11286         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
11287         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
11288         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
11289         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
11290         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
11291         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
11292         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
11293         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
11294         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
11295         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
11296         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
11297         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
11298         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
11299         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
11300         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
11301         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
11302         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
11303         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
11304         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
11305         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
11306         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
11307         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
11308         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
11309         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
11310         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
11311         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
11312         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
11313         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
11314         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
11315         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
11316         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
11317         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
11318         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
11319         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
11320         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
11321         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
11322         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
11323         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
11324         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
11325         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
11326         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
11327         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
11328         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
11329         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
11330         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
11331         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
11332         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
11333         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
11334         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
11335         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
11336         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
11337         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
11338         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
11339         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
11340         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
11341         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
11342         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
11343         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
11344         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
11345         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
11346         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
11347         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
11348         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
11349         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
11350         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
11351         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
11352         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
11353         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
11354         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
11355         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
11356         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
11357         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
11358         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
11359         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
11360         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
11361         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
11362         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
11363         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
11364         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
11365         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
11366         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
11367         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
11368         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
11369         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
11370         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
11371         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
11372         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
11373         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
11374         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
11375         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
11376         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
11377         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
11378         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
11379         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
11380         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
11381         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
11382         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
11383         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
11384         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
11385         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
11386         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
11387         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
11388         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
11389         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
11390         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
11391         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
11392         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
11393         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
11394         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
11395         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
11396         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
11397         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
11398         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
11399         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
11400         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
11401         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
11402         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
11403         * sysdeps/ieee754/s_lib_version.c: Likewise.
11404         * sysdeps/ieee754/s_matherr.c: Likewise.
11405         * sysdeps/ieee754/s_signgam.c: Likewise.
11406         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
11407         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
11408         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
11409         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
11410         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
11411         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
11412         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
11413         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
11414         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
11415         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
11416         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
11417         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
11418         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
11419         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
11420         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
11421         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
11422         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
11423         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
11424         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
11425         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
11426         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
11427
11428 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
11429
11430         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
11431         * sunrpc/rpc_main.c: Likewise.
11432         * sunrpc/rpc_svcout.c: Likewise.
11433
11434 2012-03-09  David S. Miller  <davem@davemloft.net>
11435
11436         * include/math_private.h: New file.
11437
11438 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
11439
11440         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
11441         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
11442         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
11443         from <bits/socket_type.h>.
11444         (enum __socket_type): Don't define here.
11445         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
11446         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11447         bits/socket_type.h.
11448
11449         [BZ #13566]
11450         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
11451         checking __USE_GNU.
11452
11453         * Makerules ($(inst_includedir)/%.h): New rule.
11454         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
11455         (install-others): Remove variable setting.
11456         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
11457
11458 2012-03-08  Richard Henderson  <rth@twiddle.net>
11459
11460         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
11461         from macro to inline function; merge with the
11462         !__LIBC_INTERNAL_MATH_INLINES version.
11463         (__ieee754_sqrtf): Likewise.
11464
11465         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
11466         to inline function.
11467         (__rintf, __floor, __floorf): Likewise.
11468
11469         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
11470         macro to inline function.
11471         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
11472
11473         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
11474         not <math/math_private.h>.
11475
11476 2012-03-08  David S. Miller  <davem@davemloft.net>
11477
11478         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
11479         copyright year.
11480         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
11481
11482 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
11483
11484         * resolv/gai_misc.c (handle_requests): Fix struct timespec
11485         normalization.
11486         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
11487         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
11488
11489 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
11490
11491         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
11492         be defined individually, they must be defined as a block.  Define
11493         S for printing a string instead of hidint the different by using a
11494         macro for adding the 'l'.
11495         * stdio-common/tst-fphex-wide.c: Adjust.
11496
11497 2012-03-07  Marek Polacek  <polacek@redhat.com>
11498
11499         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
11500
11501 2012-03-08  Marek Polacek  <polacek@redhat.com>
11502
11503         [BZ #13806]
11504         * stdio-common/Makefile (tests): Add tst-fphex-wide.
11505         * stdio-common/tst-fphex.c: Define a few macros to make the
11506         test reusable.  Use them.
11507         * stdio-common/tst-fphex-wide.c: New file.
11508
11509 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
11510
11511         [BZ #6911]
11512         * manual/macros.texi (gnusystems): New macro.
11513         (nongnusystems): Likewise.
11514         (gnulinuxhurdsystems): Likewise.
11515         (gnuhurdsystems): Likewise..
11516         (gnulinuxsystems): Likewise.
11517         * manual/charset.texi: Use new macros or @theglibc{} to refer to
11518         variants of the GNU system, not "GNU system".
11519         * manual/conf.texi: Likewise.
11520         * manual/errno.texi: Likewise.  Update example of errno macro
11521         expansion.
11522         * manual/filesys.texi: Likewise.
11523         (getumask): Document as specific to GNU/Hurd.
11524         * manual/install.texi: Likewise.  Reword some references to
11525         GNU/Linux.
11526         * manual/intro.texi: Likewise.
11527         * manual/io.texi: Likewise.
11528         (File Name Portability): Detail which constraints are inapplicable
11529         to all GNU systems and which are only inapplicable to GNU/Hurd.
11530         * manual/job.texi: Likewise.
11531         * manual/llio.texi: Likewise.
11532         (O_NOCTTY): Document as present on GNU/Linux.
11533         * manual/maint.texi: Likewise.
11534         * manual/memory.texi: Likewise.
11535         * manual/pattern.texi: Likewise.
11536         * manual/pipe.texi: Likewise.
11537         * manual/process.texi: Likewise.
11538         * manual/resource.texi: Likewise.
11539         (RUSAGE_CHILDREN): Remove statement about specifying a particular
11540         child on GNU/Hurd.
11541         * manual/setjmp.texi: Likewise.
11542         * manual/signal.texi: Likewise.
11543         * manual/startup.texi: Likewise.
11544         * manual/stdio.texi: Likewise.
11545         * manual/terminal.texi: Likewise.
11546         (ONLCR): Document as POSIX.
11547         (OXTABS): Document availability on GNU/Linux as XTABS.
11548         (ONOEOT): Document availability separately from other bits.
11549         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
11550         * manual/time.texi: Likewise.
11551         * manual/users.texi: Likewise.
11552         * INSTALL: Regenerated.
11553         * sysdeps/gnu/errlist.c: Regenerated.
11554
11555         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
11556         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
11557         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
11558         puts.
11559         * configure: Regenerated.
11560
11561 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
11562
11563         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
11564         default includes instead of AC_HEADER_CHECK.
11565         * sysdeps/i386/configure: Regenerated.
11566
11567         [BZ #10716]
11568         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
11569         * math/s_cacoshf.c (__cacoshf): Likewise.
11570         * math/s_cacoshl.c (__cacoshl): Likewise.
11571         * math/s_casinh.c (__casinh): Set signs of result from argument.
11572         * math/s_casinhf.c (__casinhf): Likewise.
11573         * math/s_casinhl.c (__casinhl): Likewise.
11574         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
11575         (casinh_test): Add more tests.
11576         * sysdeps/i386/fpu/libm-test-ulps: Update.
11577         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11578
11579 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
11580
11581         * po/zh_TW.po: Update from translation team.
11582
11583         * login/Makefile (distribute): Remove variable.
11584         * catgets/Makefile: Likewise.
11585         * mach/Makefile: Likewise.
11586         * malloc/Makefile: Likewise.
11587         * misc/Makefile: Likewise.
11588         * iconv/Makefile: Likewise.
11589         * nscd/Makefile: Likewise.
11590         * hurd/Makefile: Likewise.
11591         * manual/Makefile: Likewise.
11592         * locale/Makefile: Likewise.
11593         * intl/Makefile: Likewise.
11594         * conform/Makefile: Likewise.
11595         * nss/Makefile: Likewise.
11596         * time/Makefile: Likewise.
11597         * soft-fp/Makefile: Likewise.
11598         * dirent/Makefile: Likewise.
11599         * gmon/Makefile: Likewise.
11600         * po/Makefile: Likewise.
11601         * rt/Makefile: Likewise.
11602         * socket/Makefile: Likewise.
11603         * math/Makefile: Likewise.
11604         * signal/Makefile: Likewise.
11605         * debug/Makefile: Likewise.
11606         * elf/Makefile: Likewise.
11607         * timezone/Makefile: Likewise.
11608         * stdlib/Makefile: Likewise.
11609         * iconvdata/Makefile: Likewise.
11610         * sunrpc/Makefile: Likewise.
11611         * io/Makefile: Likewise.
11612         * argp/Makefile: Likewise.
11613         * inet/Makefile: Likewise.
11614         * hesiod/Makefile: Likewise.
11615         * grp/Makefile: Likewise.
11616         * csu/Makefile: Likewise.
11617         * wctype/Makefile: Likewise.
11618         * crypt/Makefile: Likewise.
11619         * libio/Makefile: Likewise.
11620         * string/Makefile: Likewise.
11621         * nis/Makefile: Likewise.
11622         * resolv/Makefile: Likewise.
11623         * stdio-common/Makefile: Likewise.
11624         * wcsmbs/Makefile: Likewise.
11625         * dlfcn/Makefile: Likewise.
11626         * posix/Makefile: Likewise.
11627
11628         [BZ #6959]
11629         * timezone/Makefile: Don't install timezone files, just the programs
11630         and scripts.
11631
11632 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
11633
11634         * nss/databases.def: Add missing gshadow entry.
11635
11636         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
11637
11638 2012-03-06  Marek Polacek  <polacek@redhat.com>
11639
11640         [BZ #13726]
11641         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
11642         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
11643         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
11644         * stdio-common/tst-long-dbl-fphex.c: New file.
11645
11646 2012-03-06  David S. Miller  <davem@davemloft.net>
11647
11648         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
11649         (set_obp_int): New function.
11650         (get_obp_int): New function.
11651         (__get_clockfreq_via_dev_openprom): Likewise.
11652         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
11653         Avoid unused variable warnings on 'val' and use builtin_expect.
11654         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
11655         __builtin_expect.
11656         (INLINE_CLONE_SYSCALL): Likewise.
11657
11658 2012-03-05  David S. Miller  <davem@davemloft.net>
11659
11660         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11661
11662 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
11663
11664         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11665
11666         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
11667         only for |x| >= 40.
11668         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
11669
11670 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
11671
11672         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
11673         Replace gettimeofday with __vdso_gettimeofday.
11674
11675         * sysdeps/unix/sysv/linux/x86_64/init-first.c
11676         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
11677         __vdso_clock_gettime and __vdso_getcpu.
11678
11679         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
11680         time with __vdso_time.
11681
11682 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
11683
11684         * manual/lang.texi (size_t): Note types to which size_t may be
11685         equivalent with the GNU C Library, but do not describe when
11686         differences between them are significant.
11687
11688 2012-03-05  Andreas Jaeger  <aj@suse.de>
11689
11690         * sysdeps/i386/fpu/libm-test-ulps: Update.
11691
11692 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
11693
11694         [BZ #3976]
11695         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
11696         (__ieee754_pow): Save and restore rounding mode and use
11697         round-to-nearest for main computations.
11698         * math/libm-test.inc (pow_test_tonearest): New function.
11699         (pow_test_towardzero): Likewise.
11700         (pow_test_downward): Likewise.
11701         (pow_test_upward): Likewise.
11702         (main): Call the new functions.
11703         * sysdeps/i386/fpu/libm-test-ulps: Update.
11704         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11705
11706         [BZ #3976]
11707         * math/libm-test.inc (cosh_test_tonearest): New function.
11708         (cosh_test_towardzero): Likewise.
11709         (cosh_test_downward): Likewise.
11710         (cosh_test_upward): Likewise.
11711         (sinh_test_tonearest): Likewise.
11712         (sinh_test_towardzero): Likewise.
11713         (sinh_test_downward): Likewise.
11714         (sinh_test_upward): Likewise.
11715         (main): Call the new functions.
11716         * sysdeps/i386/fpu/libm-test-ulps: Update.
11717         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11718
11719 2012-03-05  Tom de Vries  <tom@codesourcery.com>
11720
11721         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
11722         default stack guard is set in last bytes.
11723         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
11724
11725 2012-03-05  Kees Cook  <keescook@chromium.org>
11726
11727         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
11728
11729         [BZ #13656]
11730         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
11731         possibly allocate from heap instead of stack.
11732         * stdio-common/bug-vfprintf-nargs.c: New file.
11733         * stdio-common/Makefile (tests): Add nargs overflow test.
11734
11735 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
11736
11737         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11738
11739 2012-03-03  Marek Polacek  <polacek@redhat.com>
11740
11741         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
11742         * math/math_private.h: Likewise.
11743         * stdlib/tst-strtod.c: Likewise.
11744         * sysdeps/i386/i486/bits/atomic.h: Likewise.
11745         * sysdeps/x86_64/bits/atomic.h: Likewise.
11746
11747 2012-03-02  David S. Miller  <davem@davemloft.net>
11748
11749         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
11750         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
11751         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
11752         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
11753         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
11754         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
11755         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
11756         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
11757
11758 2012-03-02  Roland McGrath  <roland@hack.frob.com>
11759
11760         [BZ #13792]
11761         * manual/examples/README: New file, says the example source files
11762         can be used under GPL>=2.
11763         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
11764         line containing just "*/".
11765         * manual/examples/add.c: Add copyright header (GPL>=2).
11766         * manual/examples/argp-ex1.c: Likewise.
11767         * manual/examples/argp-ex2.c: Likewise.
11768         * manual/examples/argp-ex3.c: Likewise.
11769         * manual/examples/argp-ex4.c: Likewise.
11770         * manual/examples/atexit.c: Likewise.
11771         * manual/examples/db.c: Likewise.
11772         * manual/examples/dir.c: Likewise.
11773         * manual/examples/dir2.c: Likewise.
11774         * manual/examples/execinfo.c: Likewise.
11775         * manual/examples/filecli.c: Likewise.
11776         * manual/examples/filesrv.c: Likewise.
11777         * manual/examples/fmtmsgexpl.c: Likewise.
11778         * manual/examples/genpass.c: Likewise.
11779         * manual/examples/inetcli.c: Likewise.
11780         * manual/examples/inetsrv.c: Likewise.
11781         * manual/examples/isockad.c: Likewise.
11782         * manual/examples/longopt.c: Likewise.
11783         * manual/examples/memopen.c: Likewise.
11784         * manual/examples/memstrm.c: Likewise.
11785         * manual/examples/mkfsock.c: Likewise.
11786         * manual/examples/mkisock.c: Likewise.
11787         * manual/examples/mygetpass.c: Likewise.
11788         * manual/examples/pipe.c: Likewise.
11789         * manual/examples/popen.c: Likewise.
11790         * manual/examples/rprintf.c: Likewise.
11791         * manual/examples/search.c: Likewise.
11792         * manual/examples/select.c: Likewise.
11793         * manual/examples/setjmp.c: Likewise.
11794         * manual/examples/sigh1.c: Likewise.
11795         * manual/examples/sigusr.c: Likewise.
11796         * manual/examples/stpcpy.c: Likewise.
11797         * manual/examples/strdupa.c: Likewise.
11798         * manual/examples/strftim.c: Likewise.
11799         * manual/examples/strncat.c: Likewise.
11800         * manual/examples/subopt.c: Likewise.
11801         * manual/examples/swapcontext.c: Likewise.
11802         * manual/examples/termios.c: Likewise.
11803         * manual/examples/testopt.c: Likewise.
11804         * manual/examples/testpass.c: Likewise.
11805         * manual/examples/timeval_subtract.c: Likewise.
11806
11807         [BZ #13792]
11808         * manual/time.texi (Elapsed Time): Move timeval_subtract example
11809         function to ...
11810         * manual/timeval_subtract.c.texi: ... here, new file.
11811
11812 2012-03-02  David S. Miller  <davem@davemloft.net>
11813
11814         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
11815
11816 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
11817
11818         [BZ #3976]
11819         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
11820         (__sin): Save and restore rounding mode and use round-to-nearest
11821         for all computations.
11822         (__cos): Save and restore rounding mode and use round-to-nearest
11823         for all computations.
11824         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
11825         <fenv.h>.
11826         (tan): Save and restore rounding mode and use round-to-nearest for
11827         all computations.
11828         * math/libm-test.inc (cos_test_tonearest): New function.
11829         (cos_test_towardzero): Likewise.
11830         (cos_test_downward): Likewise.
11831         (cos_test_upward): Likewise.
11832         (sin_test_tonearest): Likewise.
11833         (sin_test_towardzero): Likewise.
11834         (sin_test_downward): Likewise.
11835         (sin_test_upward): Likewise.
11836         (tan_test_tonearest): Likewise.
11837         (tan_test_towardzero): Likewise.
11838         (tan_test_downward): Likewise.
11839         (tan_test_upward): Likewise.
11840         (main): Call the new functions.
11841         * sysdeps/i386/fpu/libm-test-ulps: Update.
11842         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11843
11844         [BZ #10135]
11845         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
11846         small n, then large n, before computing and testing k+n.
11847         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
11848         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
11849         Likewise.
11850         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
11851         Likewise.
11852         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
11853         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
11854         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
11855         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
11856         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
11857         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
11858         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
11859         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
11860         * math/libm-test.inc (scalbn_test): Add more tests.
11861         (scalbln_test): Likewise.
11862
11863         * manual/filesys.texi (mode_t): Describe constraints on size and
11864         signedness, not exact equivalence to a particular type.
11865         (ino_t): Likewise.
11866         (ino64_t): Likewise.
11867         (dev_t): Likewise.
11868         (nlink_t): Likewise.
11869         (blkcnt_t): Likewise.
11870         (blkcnt64_t): Likewise.
11871         * manual/llio.texi (off_t): Likewise.
11872
11873         [BZ #3976]
11874         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
11875         (__ieee754_exp): Save and restore rounding mode and use
11876         round-to-nearest for all computations.
11877         * math/libm-test.inc (exp_test_tonearest): New function.
11878         (exp_test_towardzero): Likewise.
11879         (exp_test_downward): Likewise.
11880         (exp_test_upward): Likewise.
11881         (main): Call the new functions.
11882         * sysdeps/i386/fpu/libm-test-ulps: Update.
11883         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11884
11885 2012-03-01  Chris Demetriou  <cgd@google.com>
11886
11887         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
11888         have predictable order.
11889
11890 2012-03-01  David S. Miller  <davem@davemloft.net>
11891
11892         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
11893
11894         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
11895         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
11896         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
11897         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
11898
11899         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
11900         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
11901         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
11902         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
11903         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
11904         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
11905         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
11906         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
11907         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
11908
11909         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11910
11911         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
11912         * sysdeps/sparc/fpu/libm-test-ulps: to here.
11913         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
11914
11915         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
11916         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
11917         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
11918         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
11919         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
11920         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
11921         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
11922         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
11923         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
11924         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
11925         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
11926         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
11927         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
11928         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
11929         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
11930         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
11931         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
11932         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
11933         * sysdeps/sparc/elf/configure: Regenerated.
11934
11935 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
11936
11937         * configure.in (AS, LD): Require binutils 2.20 or later.
11938         * configure: Regenerated.
11939         * manual/install.texi (Tools for Compilation): Give binutils 2.20
11940         as required minimum version.
11941         * INSTALL: Regenerated.
11942
11943         [BZ #2541]
11944         [BZ #4108]
11945         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
11946         before squaring exponent.
11947         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
11948         bottom long double and 27 bits of top long double before squaring
11949         exponent.
11950         * math/libm-test.inc (erfc_test): Add more tests.
11951         * sysdeps/i386/fpu/libm-test-ulps: Update.
11952         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
11953         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11954
11955 2012-03-01  Kai Tietz  <ktietz@redhat.com>
11956
11957         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
11958         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
11959         containing bit-fields.
11960         * soft-fp/extended.h (_FP_UNION_E): Likewise.
11961         * soft-fp/single.h (_FP_UNION_S): Likewise.
11962         * soft-fp/double.h (_FP_UNION_D): Likewise.
11963
11964 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
11965
11966         [BZ #13786]
11967         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
11968         not include ../strcmp.S.
11969         [USE_AS_STRNCASECMP_L]: Likewise.
11970         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
11971         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
11972         * sysdeps/i386/i686/multiarch/strncase_l-c.c
11973         (__strncasecmp_l_ia32): Define as alias to
11974         __strncasecmp_l_nonascii.
11975
11976         [BZ #5794]
11977         * math/libm-test.inc (expm1_test): Add test for bug 5794.
11978         * sysdeps/i386/fpu/libm-test-ulps: Update.
11979         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11980
11981         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
11982         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11983
11984 2012-02-29  Jeff Law  <law@redhat.com>
11985
11986         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
11987         out of bounds read.
11988
11989 2012-02-29  Marek Polacek  <polacek@redhat.com>
11990
11991         [BZ #13706]
11992         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
11993         * elf/Makefile: Add rules to run tst-unused-dep.out.
11994
11995 2012-02-28  David S. Miller  <davem@davemloft.net>
11996
11997         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
11998         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
11999         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
12000         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
12001         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
12002         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
12003
12004 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
12005
12006         * math/libm-test.inc (llround_test): Move one test from
12007         lround_test.  Use TEST_f_L in moved test.
12008         (lround_test): Move misplaced test to llround_test.  Add testcase
12009         from bug 2561.
12010
12011 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
12012
12013         * sysdeps/x86_64/fpu/e_expf.S: New file.
12014         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
12015
12016 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
12017
12018         [BZ #13637]
12019         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
12020         of remain_len that may cause incomplete multi-byte character and
12021         false match.
12022         * posix/bug-regex33.c: New file.
12023         * posix/Makefile (tests): Add bug-regex33.
12024
12025 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
12026
12027         * manual/macros.texi: New file.
12028         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
12029         * manual/libc.texinfo: Include macros.texi.
12030         * manual/creatute.texi: Likewise.
12031         * manual/install.texi: Likewise.
12032         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
12033         @glibcadj{} in references to the GNU C Library.
12034         * manual/charset.texi: Likewise.
12035         * manual/conf.texi: Likewise.
12036         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
12037         when not using those macros.
12038         * manual/creature.texi: Likewise.
12039         * manual/crypt.texi: Likewise.
12040         * manual/errno.texi: Likewise.
12041         * manual/filesys.texi: Likewise.
12042         * manual/header.texi: Likewise.
12043         * manual/install.texi: Likewise.
12044         * manual/intro.texi: Likewise.
12045         * manual/io.texi: Likewise.
12046         * manual/job.texi: Likewise.
12047         * manual/lang.texi: Likewise.
12048         * manual/libc.texiinfo: Likewise.
12049         * manual/llio.texi: Likewise.
12050         * manual/locale.texi: Likewise.
12051         * manual/maint.texi: Likewise.
12052         * manual/math.texi: Likewise.
12053         * manual/memory.texi: Likewise.
12054         * manual/message.texi: Likewise.
12055         * manual/nss.texi: Likewise.
12056         * manual/pattern.texi: Likewise.
12057         * manual/process.texi: Likewise.
12058         * manual/resource.texi: Likewise.
12059         * manual/search.texi: Likewise.
12060         * manual/setjmp.texi: Likewise.
12061         * manual/signal.texi: Likewise.
12062         * manual/socket.texi: Likewise.
12063         * manual/startup.texi: Likewise.
12064         * manual/stdio.texi: Likewise.
12065         * manual/string.texi: Likewise.
12066         * manual/sysinfo.texi: Likewise.
12067         * manual/syslog.texi: Likewise.
12068         * manual/terminal.texi: Likewise.
12069         * manual/time.texi: Likewise.
12070         * manual/users.texi: Likewise.
12071         * INSTALL: Regenerated.
12072         * NOTES: Regenerated.
12073         * sysdeps/gnu/errlist.c: Regenerated.
12074
12075 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
12076
12077         * include/dirent.h: Include <dirstream.h> before
12078         <dirent/dirent.h>.
12079
12080 2012-02-28  David S. Miller  <davem@davemloft.net>
12081
12082         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
12083         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
12084         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
12085         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
12086
12087 2012-02-27  David S. Miller  <davem@davemloft.net>
12088
12089         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
12090         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
12091         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
12092         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
12093
12094         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
12095         frame pointer instead of stack pointer relative arg slot.
12096         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
12097         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
12098         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
12099
12100 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
12101
12102         [BZ #3992]
12103         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
12104
12105 2012-02-27  David S. Miller  <davem@davemloft.net>
12106
12107         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
12108         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
12109         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
12110         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
12111         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
12112         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
12113         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
12114         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
12115
12116 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
12117
12118         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
12119         later.  Allow versions 5-9.
12120         * configure: Regenerated.
12121         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
12122         required minimum version and 4.6 as recommended version.  Do not
12123         mention bugs in GCC 2.7 and 2.8.
12124         * INSTALL: Regenerated.
12125
12126 2012-02-27  David S. Miller  <davem@davemloft.net>
12127
12128         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
12129         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
12130         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
12131         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
12132         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
12133         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
12134         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
12135         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
12136
12137         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
12138         manipulate bits before adding and subtracting TWO112[sx].
12139         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
12140
12141 2012-02-27  Roland McGrath  <roland@hack.frob.com>
12142
12143         [BZ #13775]
12144         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
12145         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
12146         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
12147         being in POSIX, because they are in 1003.1-2008.
12148
12149         * rt/tst-aio.c: Include <fcntl.h>.
12150         * rt/tst-aio7.c: Likewise.
12151         * rt/tst-aio64.c: Likewise.
12152
12153         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
12154
12155 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
12156
12157         * manual/install.texi (--with-headers): Describe headers as
12158         interface headers, not private headers.
12159         (Specific advice for GNU/Linux systems): Describe use of headers
12160         from "make headers_install", not private headers from older
12161         kernels.
12162         * INSTALL: Regenerated.
12163         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
12164         Change to 2.6.19.
12165         * sysdeps/unix/sysv/linux/configure: Regenerated.
12166
12167         * manual/llio.texi (fclean): Remove documentation.
12168
12169         * manual/Makefile (libc-texi-generated): New variable.  Include
12170         version.texi.
12171         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
12172         $(libc-texi-generated), not duplicated list of files.
12173         (version.texi, stamp-version): New rules.
12174         (realclean): Remove $(libc-texi-generated), not individual files
12175         from that list.  Do not remove dir-add.texinfo.
12176         * manual/libc.texinfo: Comment out uses of edition numbers and
12177         references to printed manual.  Remove last-updated dates.
12178         (EDITION): Comment out.
12179         (ISBN): Likewise.
12180         (VERSION, UPDATED): Remove.
12181         (version.texi): Include.
12182
12183 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
12184
12185         * sysdeps/posix/spawni.c: Include <signal.h>.
12186         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
12187         * sysdeps/pthread/aio_fsync.c: Likewise.
12188
12189 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
12190
12191         * conform/Makefile (tests): Run only when not cross-compiling and
12192         when fast-check is not defined.
12193
12194         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
12195         * conform/data/limits.h-data: Fixes for POSIX2008.
12196         * conform/run-conformtest.sh: Run all tests.
12197         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
12198         headers.
12199         * include/bits/dlfcn.h: Likewise.
12200         * include/langinfo.h: Likewise.
12201         * include/monetary.h: Likewise.
12202         * include/sys/poll.h: Likewise.
12203
12204         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
12205         for __USE_GNU.
12206         * posix/spawn.h: Define __need_sigset_t.
12207         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
12208         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
12209         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
12210         to get sigevent_t only.
12211         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
12212         only for __USE_GNU.
12213         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
12214         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
12215         process_vm_writev only for __USE_GNU.
12216         * termios/termios.h: Declare tcgetsid also for POSIX2008.
12217
12218         * conform/Makefile: For now ignore errors from run-conformtest.
12219         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
12220         POSIX to avoid namespace pollution.  Don't prepend headers.
12221         * conform/data/aio.h-data: Fixes for POSIX testing.
12222         * conform/data/fcntl.h-data: Likewise.
12223         * conform/data/glob.h-data: Likewise.
12224         * conform/data/grp.h-data: Likewise.
12225         * conform/data/pthread.h-data: Likewise.
12226         * conform/data/pwd.h-data: Likewise.
12227         * conform/data/signal.h-data: Likewise.
12228         * conform/data/spawn.h-data: Likewise.
12229         * conform/data/stdio.h-data: Likewise.
12230         * conform/data/stdlib.h-data: Likewise.
12231         * conform/data/stropts.h-data: Likewise.
12232         * conform/data/sys/mman.h-data: Likewise.
12233         * conform/data/sys/stat.h-data: Likewise.
12234         * conform/data/sys/types.h-data: Likewise.
12235         * conform/data/sys/wait.h-data: Likewise.
12236         * conform/data/time.h-data: Likewise.
12237         * conform/data/unistd.h-data: Likewise.
12238         * conform/data/utime.h-data: Likewise.
12239
12240         * io/sys/stat.h: fchmod was always in POSIX.
12241         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
12242         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
12243         * rt/aio.h: Define __need_timespec before including <time.h>.
12244         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
12245         struct.  Add forward declaration of pthread_attr_t and use it in
12246         sigevent.
12247         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
12248         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
12249         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
12250         always remove CLK_TCK definition.
12251
12252 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
12253
12254         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
12255
12256 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
12257
12258         * conform/run-conformtest.sh: New file.
12259         * conform/Makefile: Run run-conformtest for tests.
12260         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
12261         support.
12262
12263         * conform/data/uchar.h-data: New file.
12264         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
12265         * conform/data/arpa/inet.h-data: Likewise.
12266         * conform/data/assert.h-data: Likewise.
12267         * conform/data/complex.h-data: Likewise.
12268         * conform/data/cpio.h-data: Likewise.
12269         * conform/data/ctype.h-data: Likewise.
12270         * conform/data/dirent.h-data: Likewise.
12271         * conform/data/dlfcn.h-data: Likewise.
12272         * conform/data/errno.h-data: Likewise.
12273         * conform/data/fcntl.h-data: Likewise.
12274         * conform/data/float.h-data: Likewise.
12275         * conform/data/fmtmsg.h-data: Likewise.
12276         * conform/data/fnmatch.h-data: Likewise.
12277         * conform/data/ftw.h-data: Likewise.
12278         * conform/data/glob.h-data: Likewise.
12279         * conform/data/grp.h-data: Likewise.
12280         * conform/data/iconv.h-data: Likewise.
12281         * conform/data/inttypes.h-data: Likewise.
12282         * conform/data/langinfo.h-data: Likewise.
12283         * conform/data/libgen.h-data: Likewise.
12284         * conform/data/limits.h-data: Likewise.
12285         * conform/data/locale.h-data: Likewise.
12286         * conform/data/math.h-data: Likewise.
12287         * conform/data/monetary.h-data: Likewise.
12288         * conform/data/mqueue.h-data: Likewise.
12289         * conform/data/ndbm.h-data: Likewise.
12290         * conform/data/net/if.h-data: Likewise.
12291         * conform/data/netdb.h-data: Likewise.
12292         * conform/data/netinet/in.h-data: Likewise.
12293         * conform/data/nl_types.h-data: Likewise.
12294         * conform/data/poll.h-data: Likewise.
12295         * conform/data/pthread.h-data: Likewise.
12296         * conform/data/pwd.h-data: Likewise.
12297         * conform/data/regex.h-data: Likewise.
12298         * conform/data/sched.h-data: Likewise.
12299         * conform/data/search.h-data: Likewise.
12300         * conform/data/semaphore.h-data: Likewise.
12301         * conform/data/setjmp.h-data: Likewise.
12302         * conform/data/signal.h-data: Likewise.
12303         * conform/data/spawn.h-data: Likewise.
12304         * conform/data/stdarg.h-data: Likewise.
12305         * conform/data/stdio.h-data: Likewise.
12306         * conform/data/stdlib.h-data: Likewise.
12307         * conform/data/string.h-data: Likewise.
12308         * conform/data/strings.h-data: Likewise.
12309         * conform/data/stropts.h-data: Likewise.
12310         * conform/data/sys/ipc.h-data: Likewise.
12311         * conform/data/sys/mman.h-data: Likewise.
12312         * conform/data/sys/msg.h-data: Likewise.
12313         * conform/data/sys/resource.h-data: Likewise.
12314         * conform/data/sys/select.h-data: Likewise.
12315         * conform/data/sys/sem.h-data: Likewise.
12316         * conform/data/sys/shm.h-data: Likewise.
12317         * conform/data/sys/socket.h-data: Likewise.
12318         * conform/data/sys/stat.h-data: Likewise.
12319         * conform/data/sys/statvfs.h-data: Likewise.
12320         * conform/data/sys/time.h-data: Likewise.
12321         * conform/data/sys/timeb.h-data: Likewise.
12322         * conform/data/sys/times.h-data: Likewise.
12323         * conform/data/sys/types.h-data: Likewise.
12324         * conform/data/sys/uio.h-data: Likewise.
12325         * conform/data/sys/un.h-data: Likewise.
12326         * conform/data/sys/utsname.h-data: Likewise.
12327         * conform/data/sys/wait.h-data: Likewise.
12328         * conform/data/syslog.h-data: Likewise.
12329         * conform/data/tar.h-data: Likewise.
12330         * conform/data/termios.h-data: Likewise.
12331         * conform/data/utime.h-data: Likewise.
12332         * conform/data/utmpx.h-data: Likewise.
12333         * conform/data/varargs.h-data: Likewise.
12334         * conform/data/wchar.h-data: Likewise.
12335         * conform/data/wctype.h-data: Likewise.
12336         * conform/data/wordexp.h-data: Likewise.
12337
12338         * include/stropts.h: New file.
12339         * include/uchar.h: New file.
12340         * include/aio.h: Changes to allow conformtest.pl to use the headers.
12341         * include/assert.h: Likewise.
12342         * include/ctype.h: Likewise.
12343         * include/dirent.h: Likewise.
12344         * include/dlfcn.h: Likewise.
12345         * include/fcntl.h: Likewise.
12346         * include/fnmatch.h: Likewise.
12347         * include/glob.h: Likewise.
12348         * include/grp.h: Likewise.
12349         * include/libio.h: Likewise.
12350         * include/locale.h: Likewise.
12351         * include/math.h: Likewise.
12352         * include/net/if.h: Likewise.
12353         * include/netdb.h: Likewise.
12354         * include/netinet/in.h: Likewise.
12355         * include/pthread.h: Likewise.
12356         * include/pwd.h: Likewise.
12357         * include/regex.h: Likewise.
12358         * include/sched.h: Likewise.
12359         * include/search.h: Likewise.
12360         * include/setjmp.h: Likewise.
12361         * include/signal.h: Likewise.
12362         * include/stdio.h: Likewise.
12363         * include/stdlib.h: Likewise.
12364         * include/string.h: Likewise.
12365         * include/sys/cdefs.h: Likewise.
12366         * include/sys/mman.h: Likewise.
12367         * include/sys/msg.h: Likewise.
12368         * include/sys/resource.h: Likewise.
12369         * include/sys/select.h: Likewise.
12370         * include/sys/socket.h: Likewise.
12371         * include/sys/stat.h: Likewise.
12372         * include/sys/statvfs.h: Likewise.
12373         * include/sys/time.h: Likewise.
12374         * include/sys/times.h: Likewise.
12375         * include/sys/uio.h: Likewise.
12376         * include/sys/utsname.h: Likewise.
12377         * include/sys/wait.h: Likewise.
12378         * include/termios.h: Likewise.
12379         * include/time.h: Likewise.
12380         * include/ulimit.h: Likewise.
12381         * include/unistd.h: Likewise.
12382         * include/utime.h: Likewise.
12383         * include/wchar.h: Likewise.
12384         * include/wctype.h: Likewise.
12385         * include/wordexp.h: Likewise.
12386
12387         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
12388
12389         * time/time.h: TIME_UTC must be a macro.
12390         Make timespec_get available for ISO C11 only as well.
12391
12392 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
12393
12394         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
12395         Reported by Peng Haitao <penght@cn.fujitsu.com>.
12396
12397 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
12398
12399         * configure.in: Use -o not -a in test for unsupported multi-arch.
12400
12401 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
12402
12403         * manual/texinfo.tex: Update to version 2012-01-19.16.
12404
12405 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
12406
12407         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
12408
12409 2012-02-24  Roland McGrath  <roland@hack.frob.com>
12410
12411         [BZ #13738]
12412         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
12413         * manual/fdl-1.3.texi: New file.
12414         * manual/fdl-1.1.texi: File removed.
12415
12416         [BZ #13738]
12417         * manual/libc.texinfo (FDL_VERSION): New @set.
12418         Use it for mention of FDL in cover text.
12419         (Documentation License): Use it in @include file name.
12420
12421 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12422             Roland McGrath  <roland@hack.frob.com>
12423
12424         [BZ #5461]
12425         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
12426         not LONG_LONG_MAX and LONG_LONG_MIN.
12427         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
12428         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
12429         name.
12430         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
12431
12432 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12433
12434         [BZ #2547]
12435         [BZ #11365]
12436         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
12437         manipulate bits before adding and subtracting TWO23[sx].
12438         * math/libm-test.inc (nearbyint_test): Add more tests.
12439
12440 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12441
12442         [BZ #2548]
12443         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
12444         bits before adding and subtracting TWO23[sx].
12445         * math/libm-test.inc (rint_test): Add more tests.
12446         (rint_test_tonearest): Likewise.
12447         (rint_test_towardzero): Likewise.
12448         (rint_test_downward): Likewise.
12449         (rint_test_upward: Likewise.
12450
12451 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12452
12453         [BZ #10110]
12454         * include/stdc-predef.h: New file.  Extracted from features.h.
12455         * include/features.h: Include stdc-predef.h.
12456         * Makefile (headers): Add stdc-predef.h.
12457         * CONFORMANCE (Compiler limitations): Update.
12458
12459 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12460
12461         * manual/libc.texinfo (VERSION, UPDATED): Revert.
12462
12463 2012-02-21  David S. Miller  <davem@davemloft.net>
12464
12465         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
12466         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
12467
12468 2012-02-20  David S. Miller  <davem@davemloft.net>
12469
12470         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
12471         using a normal save/restore sequence, rather than allocating a
12472         dummy stack frame just to store a frame pointer and restore.
12473         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
12474
12475 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
12476
12477         * manual/install.texi: Fix stray word in line-wrapped comment.
12478
12479 2012-02-20  David S. Miller  <davem@davemloft.net>
12480
12481         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
12482         both binutils and gcc support GOTDATA.
12483
12484         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
12485         "rd %pc" in the PIC register setup sequences.
12486
12487         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
12488         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
12489         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
12490         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
12491         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
12492         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
12493         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
12494         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
12495         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
12496         (SYSCALL_ERROR_HANDLER): Likewise.
12497         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
12498         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
12499         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
12500         (SYSCALL_ERROR_HANDLER): Likewise.
12501
12502         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
12503         (HAVE_GCC_GOTDATA): New.
12504         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
12505         relocation support in both binutils and gcc.
12506         * sysdeps/sparc/elf/configure: Regenerate.
12507
12508         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
12509         * sysdeps/sparc/sparc32/elf/configure: Delete.
12510         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
12511         * sysdeps/sparc/sparc64/elf/configure: Delete.
12512         * sysdeps/sparc/elf/configure.in: New file.
12513         * sysdeps/sparc/elf/configure: Generate.
12514
12515         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
12516         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
12517         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
12518         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
12519         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
12520
12521 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
12522
12523         * manual/install.texi: Do not mention specific glibc version
12524         numbers.
12525         * manual/libc.texinfo (VERSION, UPDATED): Update.
12526         (@copying): Use @copyright{} and range of years.
12527
12528 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
12529
12530         [BZ #13695]
12531         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
12532         [crti.S not in sysdirs] (generated): Do not append.
12533         [crti.S not in sysdirs] (omit-deps): Likewise.
12534         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
12535         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
12536         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
12537         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
12538         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
12539         Likewise.
12540         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
12541         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
12542         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
12543         * csu/defs.awk: Remove file.
12544         * sysdeps/generic/initfini.c: Likewise.
12545         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
12546         variable.
12547         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
12548         Likewise.
12549
12550 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
12551
12552         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
12553         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
12554         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
12555         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
12556         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
12557         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
12558         <bits/epoll.h>.
12559         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
12560         (__EPOLL_PACKED): Define to empty if not defined by
12561         <bits/epoll.h>.
12562         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
12563         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12564         bits/epoll.h.
12565
12566 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
12567
12568         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
12569         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
12570         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
12571         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
12572         <bits/timerfd.h>.
12573         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
12574         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12575         bits/timerfd.h.
12576
12577 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
12578
12579         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
12580         in C locale.
12581         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
12582         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
12583         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
12584         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12585
12586 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
12587
12588         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
12589         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
12590
12591 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
12592
12593         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
12594         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
12595         defined.
12596         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
12597         Likewise.
12598         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
12599         entry for 2.16.
12600
12601 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
12602
12603         * math/w_acos.c: Use non-signaling floating-point comparisons.
12604         * math/w_acosf.c: Likewise.
12605         * math/w_acosh.c: Likewise.
12606         * math/w_acoshf.c: Likewise.
12607         * math/w_acoshl.c: Likewise.
12608         * math/w_acosl.c: Likewise.
12609         * math/w_asin.c: Likewise.
12610         * math/w_asinf.c: Likewise.
12611         * math/w_asinl.c: Likewise.
12612         * math/w_atanh.c: Likewise.
12613         * math/w_atanhf.c: Likewise.
12614         * math/w_atanhl.c: Likewise.
12615         * math/w_exp2.c: Likewise.
12616         * math/w_exp2f.c: Likewise.
12617         * math/w_exp2l.c: Likewise.
12618         * math/w_j0.c: Likewise.
12619         * math/w_j0f.c: Likewise.
12620         * math/w_j0l.c: Likewise.
12621         * math/w_j1.c: Likewise.
12622         * math/w_j1f.c: Likewise.
12623         * math/w_j1l.c: Likewise.
12624         * math/w_jn.c: Likewise.
12625         * math/w_jnf.c: Likewise.
12626         * math/w_log.c: Likewise.
12627         * math/w_log10.c: Likewise.
12628         * math/w_log10f.c: Likewise.
12629         * math/w_log10l.c: Likewise.
12630         * math/w_log2.c: Likewise.
12631         * math/w_log2f.c: Likewise.
12632         * math/w_log2l.c: Likewise.
12633         * math/w_logf.c: Likewise.
12634         * math/w_logl.c: Likewise.
12635         * math/w_sqrt.c: Likewise.
12636         * math/w_sqrtf.c: Likewise.
12637         * math/w_sqrtl.c: Likewise.
12638         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
12639         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
12640         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
12641         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
12642         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
12643
12644 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
12645
12646         [BZ #9739]
12647         * manual/string.texi (strnlen): Use correct parameter name in
12648         equivalent expression.
12649
12650 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
12651
12652         [BZ #11174]
12653         * manual/users.texi (seteuid): Consistently use neweuid for
12654         argument name.
12655
12656 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
12657
12658         [BZ #13704]
12659         * manual/nss.texi (Services in the NSS configuration): Correct
12660         list of services in example configuration file.
12661
12662 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
12663
12664         [BZ #11322]
12665         * manual/arith.texi: Remove statements about negative zero
12666         behaving identically to zero.
12667
12668 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
12669
12670         [BZ #5993]
12671         * manual/install.texi: Do not document upgrading from libc5.
12672
12673 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
12674
12675         [BZ #4596]
12676         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
12677
12678 2012-02-18  David S. Miller  <davem@davemloft.net>
12679
12680         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
12681         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
12682         %o7 across the call.
12683         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
12684         instead.
12685         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
12686         SETUP_PIC_REG_LEAF.
12687         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
12688         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
12689         * sysdeps/sparc/crtn.S: Likewise.
12690
12691 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
12692
12693         * aout/Makefile: Remove.
12694
12695 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
12696
12697         [BZ #13058]
12698         * manual/examples/argp-ex1.c (main): Format definition in GNU
12699         style.
12700         * manual/examples/argp-ex2.c (main): Likewise.
12701         * manual/examples/argp-ex3.c (main): Likewise.
12702         * manual/examples/argp-ex4.c (main): Likewise.
12703         * manual/examples/longopt.c (main): Use new-style prototype
12704         definition.
12705         * manual/examples/strncat.c (main): Specify return type and use
12706         (void) for arguments.
12707         * manual/examples/subopt.c (main): Use char **argv argument.
12708
12709 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12710
12711         [BZ #5077]
12712         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
12713         rounding modes.
12714
12715 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
12716
12717         [BZ #6907]
12718         * manual/string.texi (strchr): Change when strchrnul is
12719         recommended.
12720
12721 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
12722
12723         [BZ #174]
12724         * manual/locale.texi (setlocale): Document LOCPATH.
12725
12726 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12727
12728         [BZ #10210]
12729         * manual/process.texi (execle): Move @dots{} before last argument.
12730
12731 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
12732
12733         [BZ #12047]
12734         * manual/charset.texi (Generic Charset Conversion): Fix typo
12735         (LC_TYPE -> LC_CTYPE).
12736
12737 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
12738
12739         [BZ #5805]
12740         * manual/arith.texi (scalbn): Use @var{} on parameter names.
12741         (scalbnf): Likewise.
12742         (scalbnl): Likewise.
12743         (scalbln): Likewise.
12744         (scalblnf): Likewise.
12745         (scalblnl): Likewise.
12746         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
12747         (vwarnx): Likewise.
12748         (verr): Likewise.
12749         (verrx): Likewise.
12750         * manual/filesys.texi (telldir): Use braces around return type.
12751         * manual/llio.texi (mmap): Add space after comma.
12752         (mmap64): Likewise.
12753         * manual/math.texi (jn): Use @var{} on parameter names.
12754         (jnf): Likewise.
12755         (jnl): Likewise.
12756         (yn): Likewise.
12757         (ynf): Likewise.
12758         (ynl): Likewise.
12759         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
12760         line.
12761         * manual/resource.texi (ulimit): Use @dots{} instead of literal
12762         "...".
12763         (sched_get_priority_min): Remove semicolon on @deftypefun line.
12764         (sched_get_priority_max): Likewise.
12765         * manual/signal.texi (sigvec): Add space after comma.
12766         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
12767         names.
12768         (if_indextoname): Likewise.
12769         (if_freenameindex): Likewise.
12770         (sendto): Use ',' instead of '.' in prototype.
12771         * manual/startup.texi (syscall): Use @dots{} instead of literal
12772         "...".
12773         * manual/stdio.texi (__fpending): Separate initial words of
12774         paragraph from @deftypefun line.
12775         * manual/syslog.texi (syslog): Use @dots{} instead of literal
12776         "...".
12777         (vsyslog): Use @var{} on parameter names.
12778         * manual/terminal.texi (stty): Use @var{} on parameter names.
12779         * manual/users.texi (getutmp): Use @var{} on parameter names.
12780         (getutmpx): Likewise.
12781
12782 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12783
12784         [BZ #6884]
12785         * manual/stdio.texi (fopen): Fix typos in description of
12786         ",ccs=STRING".
12787
12788 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
12789
12790         [BZ #4026]
12791         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
12792         get clock_id definition.
12793
12794 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
12795
12796         [BZ #4822]
12797         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
12798         (madvise): Cast every argument to void on its own.
12799
12800 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12801
12802         [BZ #9902]
12803         * manual/startup.texi (Exit Status): Fix typo.
12804
12805 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12806
12807         [BZ #10140]
12808         * manual/examples/argp-ex1.c: Include <stdlib.h>.
12809         * manual/examples/argp-ex2.c: Likewise.
12810         * manual/examples/argp-ex3.c: Likewise.
12811
12812 2012-02-16  Richard Henderson  <rth@redhat.com>
12813
12814         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
12815         * sysdeps/s390/s390-32/initfini.c: Remove.
12816         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
12817         * sysdeps/s390/s390-64/initfini.c: Remove.
12818
12819 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
12820
12821         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
12822         compiler output for sysdeps/generic/initfini.c.
12823         * sysdeps/sh/elf/initfini.c: Remove file.
12824
12825 2012-02-16  David S. Miller  <davem@davemloft.net>
12826
12827         [BZ #11494]
12828         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
12829
12830         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
12831         * sysdeps/sparc/crti.S: New file.
12832         * sysdeps/sparc/crtn.S: New file.
12833         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
12834         * sysdeps/sparc/sparc64/Makefile: Likewise.
12835
12836 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
12837
12838         [BZ #3335]
12839         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
12840
12841 2012-02-15  Roland McGrath  <roland@hack.frob.com>
12842
12843         [BZ #4822]
12844         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
12845
12846         * mach/devstream.c (cookie_io_functions_t): Macro removed.
12847         (write, read, close): Likewise.
12848         Patch by Aurelien Jarno <aurelien@aurel32.net>.
12849
12850 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
12851
12852         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
12853         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
12854         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
12855         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
12856         <bits/signalfd.h>.
12857         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
12858         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12859         bits/signalfd.h.
12860
12861 2012-02-14  Marek Polacek  <polacek@redhat.com>
12862
12863         * sysdeps/x86_64/crti.S: New file.
12864         * sysdeps/x86_64/crtn.S: New file.
12865         * sysdeps/x86_64/elf/initfini.c: Remove file.
12866
12867 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
12868
12869         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
12870         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
12871         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
12872         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
12873         <bits/inotify.h>.
12874         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
12875         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12876         bits/inotify.h.
12877
12878 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
12879
12880         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
12881         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
12882         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
12883         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
12884         <bits/eventfd.h>.
12885         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
12886         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12887         bits/eventfd.h.
12888
12889 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
12890
12891         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
12892         __feraiseexcept instead of feraiseexcept.
12893
12894         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
12895         nanosleep invocations.
12896         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
12897         strings, and add error checking for a nanosleep invocations.
12898
12899 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
12900
12901         Replace FSF snail mail address with URLs, as per GNU coding standards.
12902         Most of the snail mail addresses were wrong anyway, and omitting
12903         them makes the source code easier to maintain.  Almost all of the
12904         changes are to license notices and to locale LC_IDENTIFICATION
12905         addresses, except for this one:
12906         * manual/libc.texinfo: In "Published by", give the FSF's URL,
12907         not its snail mail address.
12908
12909 2012-02-09  Richard Henderson  <rth@twiddle.net>
12910
12911         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
12912         of kernel-features.h.
12913
12914         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
12915
12916 2012-02-08  Marek Polacek  <polacek@redhat.com>
12917
12918         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
12919         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
12920         * sysdeps/gnu/_G_config.h: Likewise.
12921         * sysdeps/generic/_G_config.h: Likewise.
12922
12923 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
12924
12925         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
12926         tests.
12927         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12928
12929         * sysdeps/powerpc/powerpc32/crti.S: New file.
12930         * sysdeps/powerpc/powerpc32/crtn.S: New file.
12931         * sysdeps/powerpc/powerpc64/crti.S: New file.
12932         * sysdeps/powerpc/powerpc64/crtn.S: New file.
12933
12934         * Makeconfig (have-initfini): Don't set.
12935         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
12936         * configure.in (nopic_initfini): Don't substitute.
12937         * config.h.in (HAVE_INITFINI): Don't #undef.
12938         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
12939         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
12940
12941 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
12942
12943         Support crti.S and crtn.S provided directly by architectures.
12944         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
12945         [crti.S in sysdirs] (omit-deps): Likewise.
12946         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
12947         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
12948         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
12949         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
12950         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
12951         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
12952         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
12953         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
12954         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
12955         compiler output for sysdeps/generic/initfini.c.
12956         * sysdeps/i386/elf/Makefile: Remove file.
12957         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
12958
12959 2012-02-07  Marek Polacek  <polacek@redhat.com>
12960
12961         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
12962         * sysdeps/gnu/_G_config.h: Likewise.
12963         * sysdeps/mach/hurd/_G_config.h: Likewise.
12964
12965 2012-02-07  Marek Polacek  <polacek@redhat.com>
12966
12967         * math/Makefile (tests): Add tst-CMPLX2.
12968         * math/tst-CMPLX2.c: New file.
12969
12970 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
12971
12972         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
12973
12974         * math/libm-test.inc (jn_test): Add missing L suffix.
12975
12976 2012-02-06  Marek Polacek  <polacek@redhat.com>
12977
12978         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
12979         * sysdeps/i386/fpu/e_powf.S: Likewise.
12980         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
12981         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
12982         * sysdeps/i386/fpu/e_acosh.S: Likewise.
12983         * sysdeps/i386/fpu/e_pow.S: Likewise.
12984         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
12985         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
12986         * sysdeps/i386/fpu/s_expm1.S: Likewise.
12987         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
12988         * sysdeps/i386/fpu/e_log2.S: Likewise.
12989         * sysdeps/i386/fpu/e_log2l.S: Likewise.
12990         * sysdeps/i386/fpu/e_scalb.S: Likewise.
12991         * sysdeps/i386/fpu/e_powl.S: Likewise.
12992         * sysdeps/i386/fpu/s_log1p.S: Likewise.
12993         * sysdeps/i386/fpu/e_log10f.S: Likewise.
12994         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
12995         * sysdeps/i386/fpu/e_logl.S: Likewise.
12996         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
12997         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
12998         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
12999         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
13000         * sysdeps/i386/fpu/e_log2f.S: Likewise.
13001         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
13002         * sysdeps/i386/fpu/e_log.S: Likewise.
13003         * sysdeps/i386/fpu/s_cexp.S: Likewise.
13004         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
13005         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
13006         * sysdeps/i386/fpu/e_logf.S: Likewise.
13007         * sysdeps/i386/fpu/e_log10l.S: Likewise.
13008         * sysdeps/i386/fpu/e_atanh.S: Likewise.
13009         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
13010         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
13011         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
13012         * sysdeps/i386/fpu/e_log10.S: Likewise.
13013         * sysdeps/i386/fpu/s_frexp.S: Likewise.
13014         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
13015         * sysdeps/i386/fpu/s_asinh.S: Likewise.
13016         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
13017         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
13018         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
13019         * sysdeps/i386/asm-syntax.h: Likewise.
13020         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
13021         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
13022         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
13023         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
13024         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
13025         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
13026         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
13027         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
13028         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
13029         * sysdeps/powerpc/sysdep.h: Likewise.
13030         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
13031         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
13032
13033 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
13034
13035         [BZ #411]
13036         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
13037
13038 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
13039
13040         * sysdeps/i386/sysdep.h: Include <features.h>.
13041         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
13042         version.
13043
13044 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
13045
13046         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
13047         Define.
13048         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
13049         LOAD_PIC_REG_STR.
13050
13051 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
13052
13053         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
13054         (SETUP_PIC_REG): Use GET_PC_THUNK.
13055         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
13056         macro.
13057
13058 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
13059
13060         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
13061         for non-PIC compilation.
13062         (SETUP_PIC_REG): Add .p2align directive.
13063         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
13064         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
13065         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
13066         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
13067         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
13068         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
13069         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
13070         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
13071         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
13072         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
13073         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
13074         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
13075         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
13076         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
13077         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
13078         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
13079         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
13080         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
13081         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
13082         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
13083         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
13084         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
13085         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
13086         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
13087         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
13088         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
13089         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
13090         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
13091         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
13092         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
13093         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
13094         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
13095         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
13096         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
13097         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
13098         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
13099         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
13100         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
13101         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
13102         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
13103         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
13104
13105 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
13106
13107         * math/tst-CMPLX.c: Include <stdio.h>.
13108
13109 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
13110
13111         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
13112         float.
13113         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
13114         * sysdeps/sparc/bits/mathdef.h: Likewise.
13115
13116 2012-01-31  Marek Polacek  <polacek@redhat.com>
13117
13118         * libio/libio.h: Don't define _PARAMS.
13119         * locale/programs/config.h: Don't define PARAMS.
13120         * stdlib/strtol_l.c: Likewise.
13121         (__strtol_l): Remove PARAMS from the prototype.
13122
13123 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
13124
13125         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
13126         names.  Just use the correct names.  Remove unnecessary wrapper
13127         functions.
13128         * malloc/arena.c: Likewise.
13129         * malloc/hooks.c: Likewise.
13130
13131         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
13132         ARENA_TEST says not to.  Simplify test for creation of a new arena.
13133         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
13134
13135 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
13136
13137         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
13138         into tail calls.
13139         (update_get_addr): New function.
13140         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
13141         GET_ADDR_MODULE parameter.
13142
13143 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
13144
13145         * crypt/cert.c: Remove __STDC__ conditionals.
13146         * crypt/crypt-entry.c: Likewise.
13147         * crypt/crypt_util.c: Likewise.
13148         * libio/filedoalloc.c: Likewise.
13149         * libio/fileops.c: Likewise.
13150         * libio/genops.c: Likewise.
13151         * libio/iofclose.c: Likewise.
13152         * libio/iofdopen.c: Likewise.
13153         * libio/iofopen.c: Likewise.
13154         * libio/iofopen64.c: Likewise.
13155         * libio/iogetdelim.c: Likewise.
13156         * libio/iopopen.c: Likewise.
13157         * libio/obprintf.c: Likewise.
13158         * libio/oldfileops.c: Likewise.
13159         * libio/oldiofclose.c: Likewise.
13160         * libio/oldiofdopen.c: Likewise.
13161         * libio/oldiofopen.c: Likewise.
13162         * libio/oldiopopen.c: Likewise.
13163         * libio/wfiledoalloc.c: Likewise.
13164         * libio/wgenops.c: Likewise.
13165         * locale/programs/xmalloc.c: Likewise.
13166         * misc/syslog.c: Likewise.
13167         * stdio-common/xbug.c: Likewise.
13168         * string/memchr.c: Likewise.
13169         * string/memcmp.c: Likewise.
13170         * string/memrchr.c: Likewise.
13171         * string/rawmemchr.c: Likewise.
13172         * sysdeps/posix/getcwd.c: Likewise.
13173         * time/strftime_l.c: Likewise.
13174
13175 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
13176
13177         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
13178         * config.make.in (config-cflags-sse2avx): Define.
13179         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
13180         Fix typo.
13181
13182 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
13183
13184         * scripts/config.guess: Update from upstream config git repository.
13185         * scripts/config.sub: Likewise.
13186
13187 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
13188
13189         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
13190         (EM_NUM): Update.
13191         (R_TILEPRO_*, R_TILEGX_*): New macros.
13192
13193         * scripts/firstversions.awk: Fix bug in version range handling.
13194
13195         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
13196
13197         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
13198
13199         * include/sys/epoll.h: New file.
13200         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
13201         libc_hidden_def.
13202
13203 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
13204
13205         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
13206         Avoid unnecessary __WORDSIZE == 64 test.
13207         (fmaxf): Use VEX format if possible.
13208         (fmax): Likewise.
13209         (fminf): Likewise.
13210         (fmin): Likewise.
13211
13212         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
13213         * math/math_private.h: Remove libc_fegetround* and
13214         libc_fesetround*.
13215         * sysdeps/i386/configure.in: Check for -msse2avx.
13216         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
13217         also if SSE2AVX is defined.
13218         Remove libc_fegetround* and libc_fesetround*.
13219         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
13220         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
13221         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
13222         of HAS_YMM_USABLE.
13223         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
13224         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
13225         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
13226         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
13227         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
13228
13229         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
13230
13231 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13232
13233         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
13234         size is not set.
13235         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
13236
13237 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
13238
13239         [BZ #13618]
13240         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
13241         relocation.
13242         * Makeconfig (libm): Define.
13243         * elf/Makefile: Add rules to build and run tst-relsort1.
13244         * elf/tst-relsort1.c: New file.
13245         * elf/tst-relsort1mod1.c: New file.
13246         * elf/tst-relsort1mod2.c: New file.
13247
13248 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
13249
13250         * math/s_ldexp.c: Remove __STDC__ conditionals.
13251         * math/s_ldexpf.c: Likewise.
13252         * math/s_ldexpl.c: Likewise.
13253         * math/s_nextafter.c: Likewise.
13254         * math/s_nexttowardf.c: Likewise.
13255         * math/s_significand.c: Likewise.
13256         * math/s_significandf.c: Likewise.
13257         * math/s_significandl.c: Likewise.
13258         * math/w_jnl.c: Likewise.
13259         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
13260         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
13261         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
13262         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
13263         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
13264         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
13265         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
13266         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
13267         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
13268         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
13269         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
13270         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
13271         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
13272         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
13273         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
13274         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
13275         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
13276         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
13277         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
13278         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
13279         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
13280         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
13281         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
13282         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
13283         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
13284         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
13285         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
13286         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
13287         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
13288         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
13289         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
13290         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
13291         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
13292         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
13293         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
13294         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
13295         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
13296         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
13297         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
13298         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
13299         * sysdeps/ieee754/k_standard.c: Likewise.
13300         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
13301         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
13302         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
13303         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
13304         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
13305         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
13306         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
13307         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
13308         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
13309         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
13310         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
13311         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
13312         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
13313         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
13314         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
13315         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
13316         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
13317         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
13318         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
13319         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
13320         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
13321         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
13322         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
13323         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
13324         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
13325         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
13326         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
13327         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
13328         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
13329         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
13330         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
13331         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
13332         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
13333         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
13334         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
13335         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
13336         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
13337         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
13338         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
13339         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
13340         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
13341         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
13342         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
13343         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
13344         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
13345         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
13346         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
13347         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
13348         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
13349         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
13350         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
13351         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
13352         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
13353         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
13354         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
13355         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
13356         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
13357         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
13358         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
13359         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
13360         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
13361         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
13362         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
13363         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
13364         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
13365         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
13366         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
13367         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
13368         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
13369         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
13370         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
13371         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
13372         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
13373         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
13374         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
13375         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
13376         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
13377         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
13378         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
13379         * sysdeps/ieee754/s_matherr.c: Likewise.
13380         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
13381         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
13382         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
13383         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
13384
13385 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
13386
13387         * crypt/md5.h: Remove __STDC__ conditionals.
13388         * libio/libioP.h: Likewise.
13389         * locale/programs/config.h: Likewise.
13390         * sysdeps/generic/sysdep.h: Likewise.
13391         * sysdeps/i386/asm-syntax.h: Likewise.
13392         * sysdeps/s390/asm-syntax.h: Likewise.
13393         * sysdeps/unix/sysdep.h: Likewise.
13394         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
13395         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
13396
13397 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
13398
13399         * libio/libio.h: Remove __STDC__ conditionals.
13400         * malloc/obstack.h: Likewise.
13401         * math/complex.h: Likewise.
13402         * math/math.h: Likewise.
13403         * sysdeps/generic/_G_config.h: Likewise.
13404         * sysdeps/gnu/_G_config.h: Likewise.
13405         * sysdeps/mach/hurd/_G_config.h: Likewise.
13406         * sysdeps/powerpc/bits/mathdef.h: Likewise.
13407         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
13408         * sysdeps/sparc/bits/mathdef.h: Likewise.
13409
13410 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
13411
13412         [BZ #13583]
13413         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
13414         Clean up HAS_* macros.
13415         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
13416         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
13417         possible.
13418         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
13419         HAS_AVX.
13420         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
13421         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
13422         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
13423         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
13424         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
13425
13426 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
13427
13428         * elf/tst-unique3.cc (gets): Remove declaration.
13429         * elf/tst-unique3lib.cc (gets): Likewise.
13430         * elf/tst-unique3lib2.cc (gets): Likewise.
13431         * elf/tst-unique4.cc (gets): Likewise.
13432
13433 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
13434
13435         * include/stdio.h: Add C++ protection.  Add gets declarations and
13436         definitions.
13437         * debug/tst-chk1.c: Don't declare gets here.
13438         * stdio-common/tst-gets.c: Likewise.
13439
13440 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
13441
13442         * posix/glob: Remove directory.
13443
13444 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
13445
13446         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
13447
13448 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
13449
13450         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
13451         of the non-standard EPFNOSUPPORT.
13452
13453 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13454
13455         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
13456         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
13457         ANYWHERE set to 1 only on KERN_NO_SPACE error.
13458
13459 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
13460
13461         * wcsmbs/uchar.h: Test __STDC_VERSION__.
13462
13463 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
13464
13465         * nscd/aicache.c (addhstaiX): Do not cache negative results of
13466         transient errors.
13467         * nscd/grpcache.c (cache_addgr): Likewise.
13468         * nscd/hstcache.c (cache_addhst): Likewise.
13469         * nscd/initgrcache.c (addinitgroupsX): Likewise.
13470         * nscd/pwdcache.c (cache_addpw): Likewise.
13471         * nscd/servicescache.c (cache_addserv): Likewise.
13472
13473 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
13474
13475         * malloc/malloc.c: Various cleanups.
13476         * malloc/hooks.c: Likewise.
13477
13478         * stdlib/Makefile (tests): Add bug-fmtmsg1.
13479         * stdlib/bug-fmtmsg1.c: New file.
13480
13481         * stdlib/fmtmsg.c (init): Add missing unlock.
13482         Patch by Peng Haitao <penght@cn.fujitsu.com>.
13483
13484 2012-01-12  Marek Polacek  <polacek@redhat.com>
13485
13486         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
13487         and _GNU_SOURCE.
13488
13489 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
13490
13491         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
13492         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
13493         macro to ensure uniqueness of label name.
13494         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
13495         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
13496
13497 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
13498
13499         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
13500
13501         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
13502         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
13503         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
13504         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
13505
13506 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
13507
13508         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
13509
13510         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
13511         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
13512         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
13513
13514         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
13515
13516         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
13517         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
13518         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
13519         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
13520
13521         * math/bits/math-finite.h: Add ldexp support.
13522
13523 2012-01-10  Marek Polacek  <polacek@redhat.com>
13524
13525         * locale/programs/localedef.h (show_archive_content): Add noreturn
13526         attribute.
13527
13528 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
13529
13530         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
13531
13532 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
13533
13534         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
13535
13536         * io/Makefile (headers): Add bits/poll2.h.
13537
13538 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
13539
13540         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
13541         typo #include statement.
13542
13543 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
13544
13545         * include/sys/cdefs.h: Define __attribute_alloc_size.
13546         * catgets/gencat.c: Add alloc_size attribute and apply consistently
13547         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
13548         * elf/pldd.c: Likewise.
13549         * iconv/iconv_charmap.c: Likewise.
13550         * iconv/iconvconfig.c: Likewise.
13551         * iconv/strtab.c: Likewise.
13552         * locale/programs/locale.c: Likewise.
13553         * locale/programs/localedef.h: Likewise.
13554         * locale/programs/simple-hash.c: Likewise.
13555         * nscd/nscd.h: Likewise.
13556         * nss/makedb.c: Likewise.
13557         * sysdeps/generic/ldconfig.h: Likewise.
13558         * locale/programs/localedef.c: Remove xmalloc prototype.
13559         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
13560
13561 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
13562
13563         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
13564         appropriate.
13565
13566 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
13567
13568         * math/Makefile (tests): Add tst-CMPLX.
13569         * math/tst-CMPLX.c: New file.
13570
13571         * math/complex.h (CMPLXL): Fix typo.
13572
13573         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
13574         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
13575         GLIBC_2.16.
13576         * debug/tst-chk1.c: Add poll and ppoll tests.
13577         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
13578         * include/sys/poll.h: Add hidden proto for ppoll.
13579         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
13580         * sysdeps/mach/hurd/ppoll.c: Likewise.
13581         * io/ppoll.c: Likewise.
13582         * debug/poll_chk.c: New file.
13583         * debug/ppoll_chk.c: New file.
13584         * include/bits/poll2.h: New file.
13585         * io/bits/poll2.h: New file.
13586
13587         [BZ #1350]
13588         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
13589
13590         * configure.in: static is always set to yes.  Remove.
13591         * config.make.in: Don't set build-static.
13592         * Makeconfig: Remove use of build-static.
13593         * dlfcn/Makefile: Likewise.
13594         * elf/Makefile: Likewise.
13595         * math/Makefile: Likewise.
13596         * misc/Makefile: Likewise.
13597         * nptl/Makefile: Likewise.
13598         * sysdeps/mach/hurd/Makefile: Likewise.
13599
13600         * configure.in: PWD_P is not used anymore.
13601         * config.make.in: Remove PWD_P entry.
13602
13603         * configure.in: Remove last remnants of RANLIB.
13604         No need to check for signed size_t anymore.
13605         Don't set libc_commonpagesize and libc_relro_required here for Alpha
13606         and IA-64.
13607         Remove __builtin_expect test because we require at least gcc 3.4.
13608         * aclocal.m4: Likewise.
13609
13610         * wcsmbs/mbrtoc16.c: Implement using towc function.
13611         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
13612         * wcsmbs/wcsmbsload.c: Likewise.
13613         * iconv/gconv_simple.c: Likewise.
13614         * iconv/gconv_int.h: Likewise.
13615         * iconv/gconv_builtin.h: Likewise.
13616         * iconv/iconv_prog.c: Remove CHAR16 handling.
13617
13618         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
13619
13620         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
13621
13622         * configure.in: Remove --with-elf and --enable-bounded options.
13623         Dont set base_machine for ia64.  More non-ELF conditions removed.
13624         Remove testing and setting of leading underscore information.
13625         * config.make.in (build-bounded): Set to no.
13626         * config.h.in: Remove NO_UNDERSCORES entry.
13627         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
13628         them.
13629         * csu/start.c: Remove !NO_UNDERSCORE code.
13630         * locale/localeinfo.h: Likewise.
13631         * sysdeps/generic/machine-gmon.h: Likewise.
13632         * sysdeps/generic/sysdep.h: Likewise.
13633         * sysdeps/i386/sysdep.h: Likewise.
13634         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
13635         * sysdeps/mach/sysdep.h: Likewise.
13636         * sysdeps/s390/s390-32/sysdep.h: Likewise.
13637         * sysdeps/s390/s390-64/sysdep.h: Likewise.
13638         * sysdeps/sh/sysdep.h: Likewise.
13639         * sysdeps/sparc/sparc32/alloca.S: Likewise.
13640         * sysdeps/unix/i386/sysdep.S: Likewise.
13641         * sysdeps/unix/sparc/start.c: Likewise.
13642         * sysdeps/unix/sparc/sysdep.S: Likewise.
13643         * sysdeps/unix/sparc/sysdep.h: Likewise.
13644         * sysdeps/unix/start.c: Likewise.
13645         * sysdeps/unix/x86_64/sysdep.S: Likewise.
13646         * sysdeps/x86_64/sysdep.h: Likewise.
13647
13648 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
13649
13650         [BZ #13553]
13651         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
13652         for non-gcc.
13653         * argp/argp-fmtstream.h: Use const instead __const.
13654         * argp/argp.h: Likewise.
13655         * assert/assert.h: Likewise.
13656         * bits/fenv.h: Likewise.
13657         * bits/sched.h: Likewise.
13658         * bits/sigset.h: Likewise.
13659         * bits/sigthread.h: Likewise.
13660         * catgets/nl_types.h: Likewise.
13661         * conform/data/pthread.h-data: Likewise.
13662         * crypt/crypt-private.h: Likewise.
13663         * crypt/crypt.h: Likewise.
13664         * crypt/crypt_util.c: Likewise.
13665         * ctype/ctype.h: Likewise.
13666         * debug/execinfo.h: Likewise.
13667         * debug/mbsnrtowcs_chk.c: Likewise.
13668         * debug/mbsrtowcs_chk.c: Likewise.
13669         * debug/wcsnrtombs_chk.c: Likewise.
13670         * debug/wcsrtombs_chk.c: Likewise.
13671         * debug/wcstombs_chk.c: Likewise.
13672         * dirent/dirent.h: Likewise.
13673         * dlfcn/dlfcn.h: Likewise.
13674         * elf/neededtest4.c: Likewise.
13675         * grp/grp.h: Likewise.
13676         * gshadow/gshadow.h: Likewise.
13677         * iconv/gconv.h: Likewise.
13678         * iconv/gconv_int.h: Likewise.
13679         * iconv/gconv_simple.c: Likewise.
13680         * iconv/iconv.h: Likewise.
13681         * iconv/loop.c: Likewise.
13682         * iconv/skeleton.c: Likewise.
13683         * include/aio.h: Likewise.
13684         * include/aliases.h: Likewise.
13685         * include/argz.h: Likewise.
13686         * include/arpa/inet.h: Likewise.
13687         * include/assert.h: Likewise.
13688         * include/dirent.h: Likewise.
13689         * include/dlfcn.h: Likewise.
13690         * include/execinfo.h: Likewise.
13691         * include/fcntl.h: Likewise.
13692         * include/fenv.h: Likewise.
13693         * include/glob.h: Likewise.
13694         * include/grp.h: Likewise.
13695         * include/libintl.h: Likewise.
13696         * include/mntent.h: Likewise.
13697         * include/netdb.h: Likewise.
13698         * include/pwd.h: Likewise.
13699         * include/rpc/netdb.h: Likewise.
13700         * include/sched.h: Likewise.
13701         * include/search.h: Likewise.
13702         * include/shadow.h: Likewise.
13703         * include/signal.h: Likewise.
13704         * include/stdio.h: Likewise.
13705         * include/stdlib.h: Likewise.
13706         * include/string.h: Likewise.
13707         * include/sys/socket.h: Likewise.
13708         * include/sys/stat.h: Likewise.
13709         * include/sys/statfs.h: Likewise.
13710         * include/sys/statvfs.h: Likewise.
13711         * include/sys/syslog.h: Likewise.
13712         * include/sys/time.h: Likewise.
13713         * include/sys/uio.h: Likewise.
13714         * include/time.h: Likewise.
13715         * include/unistd.h: Likewise.
13716         * include/utmp.h: Likewise.
13717         * include/wchar.h: Likewise.
13718         * include/wctype.h: Likewise.
13719         * inet/aliases.h: Likewise.
13720         * inet/arpa/inet.h: Likewise.
13721         * inet/netinet/ether.h: Likewise.
13722         * inet/netinet/in.h: Likewise.
13723         * intl/libintl.h: Likewise.
13724         * io/bits/fcntl2.h: Likewise.
13725         * io/fcntl.h: Likewise.
13726         * io/ftw.h: Likewise.
13727         * io/sys/poll.h: Likewise.
13728         * io/sys/stat.h: Likewise.
13729         * io/sys/statfs.h: Likewise.
13730         * io/sys/statvfs.h: Likewise.
13731         * io/utime.h: Likewise.
13732         * libio/bits/stdio.h: Likewise.
13733         * libio/bits/stdio2.h: Likewise.
13734         * libio/libio.h: Likewise.
13735         * libio/libioP.h: Likewise.
13736         * libio/stdio.h: Likewise.
13737         * locale/lc-ctype.c: Likewise.
13738         * locale/locale.h: Likewise.
13739         * login/utmp.h: Likewise.
13740         * malloc/arena.c: Likewise.
13741         * malloc/malloc.c: Likewise.
13742         * malloc/malloc.h: Likewise.
13743         * malloc/mcheck.c: Likewise.
13744         * malloc/mtrace.c: Likewise.
13745         * math/bits/mathcalls.h: Likewise.
13746         * math/fenv.h: Likewise.
13747         * math/math_private.h: Likewise.
13748         * misc/bits/error.h: Likewise.
13749         * misc/bits/syslog.h: Likewise.
13750         * misc/err.h: Likewise.
13751         * misc/error.h: Likewise.
13752         * misc/fstab.h: Likewise.
13753         * misc/mntent.h: Likewise.
13754         * misc/regexp.h: Likewise.
13755         * misc/search.h: Likewise.
13756         * misc/sgtty.h: Likewise.
13757         * misc/sys/mman.h: Likewise.
13758         * misc/sys/syslog.h: Likewise.
13759         * misc/sys/uio.h: Likewise.
13760         * misc/sys/xattr.h: Likewise.
13761         * misc/ttyent.h: Likewise.
13762         * nis/rpcsvc/ypclnt.h: Likewise.
13763         * nss/nss.h: Likewise.
13764         * posix/bits/unistd.h: Likewise.
13765         * posix/fnmatch.h: Likewise.
13766         * posix/glob.h: Likewise.
13767         * posix/sched.h: Likewise.
13768         * posix/spawn.h: Likewise.
13769         * posix/sys/wait.h: Likewise.
13770         * posix/unistd.h: Likewise.
13771         * posix/wordexp.h: Likewise.
13772         * pwd/pwd.h: Likewise.
13773         * resolv/netdb.h: Likewise.
13774         * resource/sys/resource.h: Likewise.
13775         * rt/aio.h: Likewise.
13776         * rt/bits/mqueue2.h: Likewise.
13777         * rt/mqueue.h: Likewise.
13778         * shadow/shadow.h: Likewise.
13779         * signal/signal.h: Likewise.
13780         * socket/send.c: Likewise.
13781         * socket/sendto.c: Likewise.
13782         * socket/sys/socket.h: Likewise.
13783         * stdio-common/printf.h: Likewise.
13784         * stdlib/bits/stdlib.h: Likewise.
13785         * stdlib/fmtmsg.h: Likewise.
13786         * stdlib/monetary.h: Likewise.
13787         * stdlib/stdlib.h: Likewise.
13788         * stdlib/ucontext.h: Likewise.
13789         * streams/stropts.h: Likewise.
13790         * string/argz.h: Likewise.
13791         * string/bits/string2.h: Likewise.
13792         * string/string.h: Likewise.
13793         * string/strings.h: Likewise.
13794         * sunrpc/rpc/auth.h: Likewise.
13795         * sunrpc/rpc/auth_des.h: Likewise.
13796         * sunrpc/rpc/clnt.h: Likewise.
13797         * sunrpc/rpc/netdb.h: Likewise.
13798         * sunrpc/rpc/pmap_clnt.h: Likewise.
13799         * sunrpc/rpc/xdr.h: Likewise.
13800         * sysdeps/generic/inttypes.h: Likewise.
13801         * sysdeps/generic/net/if.h: Likewise.
13802         * sysdeps/generic/sys/swap.h: Likewise.
13803         * sysdeps/gnu/net/if.h: Likewise.
13804         * sysdeps/gnu/utmpx.h: Likewise.
13805         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
13806         * sysdeps/i386/i486/bits/string.h: Likewise.
13807         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
13808         * sysdeps/s390/bits/string.h: Likewise.
13809         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
13810         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
13811         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
13812         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
13813         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
13814         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
13815         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
13816         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
13817         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
13818         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
13819         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
13820         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
13821         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
13822         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
13823         * sysdeps/unix/sysv/linux/readv.c: Likewise.
13824         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
13825         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
13826         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
13827         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
13828         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
13829         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
13830         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
13831         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
13832         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
13833         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
13834         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
13835         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
13836         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
13837         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
13838         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
13839         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
13840         * sysvipc/sys/ipc.h: Likewise.
13841         * sysvipc/sys/msg.h: Likewise.
13842         * sysvipc/sys/sem.h: Likewise.
13843         * sysvipc/sys/shm.h: Likewise.
13844         * termios/termios.h: Likewise.
13845         * time/sys/time.h: Likewise.
13846         * time/time.h: Likewise.
13847         * wcsmbs/bits/wchar2.h: Likewise.
13848         * wcsmbs/uchar.h: Likewise.
13849         * wcsmbs/wchar.h: Likewise.
13850         * wctype/wctype.h: Likewise.
13851
13852         [BZ #13551]
13853         * Makeconfig: Remove all but ELF support including AIX support.
13854         * Makerules: Likewise.
13855         * config.h.in: Likewise.
13856         * config.make.in: Likewise.
13857         * configure: Likewise.
13858         * configure.in: Likewise.
13859         * csu/Makefile: Likewise.
13860         * csu/version.c: Likewise.
13861         * debug/Makefile: Likewise.
13862         * dlfcn/Makefile: Likewise.
13863         * elf/Makefile: Likewise.
13864         * extra-lib.mk: Likewise.
13865         * iconv/Makefile: Likewise.
13866         * include/libc-symbols.h: Likewise.
13867         * include/shlib-compat.h: Likewise.
13868         * resolv/Makefile: Likewise.
13869         * resolv/res_libc.c: Likewise.
13870         * rt/Makefile: Likewise.
13871         * sysdeps/i386/asm-syntax.h: Likewise.
13872         * sysdeps/i386/sysdep.h: Likewise.
13873         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
13874         * sysdeps/mach/sysdep.h: Likewise.
13875         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
13876         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
13877         * sysdeps/s390/asm-syntax.h: Likewise.
13878         * sysdeps/s390/s390-32/sysdep.h: Likewise.
13879         * sysdeps/s390/s390-64/sysdep.h: Likewise.
13880         * sysdeps/sh/sysdep.h: Likewise.
13881         * sysdeps/unix/sparc/sysdep.h: Likewise.
13882         * sysdeps/wordsize-32/divdi3.c: Likewise.
13883         * sysdeps/x86_64/sysdep.h: Likewise.
13884
13885         * argp/Versions: Remove _argp_unlock_xxx.
13886
13887         [BZ #13559]
13888         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
13889         * abilist/libBrokenLocale.abilist: Likewise.
13890         * abilist/libanl.abilist: Likewise.
13891         * abilist/libc.abilist: Likewise.
13892         * abilist/libcrypt.abilist: Likewise.
13893         * abilist/libdl.abilist: Likewise.
13894         * abilist/libm.abilist: Likewise.
13895         * abilist/libnsl.abilist: Likewise.
13896         * abilist/libpthread.abilist: Likewise.
13897         * abilist/libresolv.abilist: Likewise.
13898         * abilist/librt.abilist: Likewise.
13899         * abilist/libthread_db.abilist: Likewise.
13900         * abilist/libutil.abilist: Likewise.
13901         * abilist/libnss_db.abilist: New file.
13902
13903         * scripts/abilist.awk: Add support for indirect functions.
13904
13905         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
13906
13907         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
13908
13909         * shlib-versions: Remove entries for ports architectures.
13910
13911         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
13912         files in ports.
13913         * elf/stackguard-macros.h: Remove support for IA-64.
13914         * elf/tst-auditmod1.c: Likewise.
13915         * sysdeps/generic/ldsodefs.h: Likewise.
13916
13917         * sysdeps/unix/sysv/linux/configure.in: Ports should define
13918         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
13919         configure files.
13920
13921         [BZ #13552]
13922         * configure.in: Remove --enable-omitfp support.
13923         * FAQ.in: Adjust.
13924         * config.make.in: Likewise.
13925         * Makeconfig: Likewise.
13926         * manual/install.texi: Likewise.
13927
13928         In case anyone cares, the IA-64 architecture could move to ports.
13929         * sysdeps/ia64/*: Removed.
13930         * sysdeps/unix/sysv/linux/ia64/*: Removed.
13931         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
13932
13933         [BZ #13555]
13934         * configure.in: Remove entries for unsupported architectures.
13935
13936         [BZ #13533]
13937         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
13938         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
13939         routines.
13940         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
13941         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
13942         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
13943         fall back to using wcrtomb.
13944         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
13945         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
13946         renaming.
13947         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
13948         * wcsmbs/tst-c16c32-1.c: New file.
13949
13950         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
13951         local variable.
13952
13953         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
13954
13955         * elf/tst-unique3.cc: Add explicit declaration of gets.
13956         * elf/tst-unique3lib.cc: Likewise.
13957         * elf/tst-unique3lib2.cc: Likewise.
13958         * elf/tst-unique4.cc: Likewise.
13959
13960         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
13961
13962 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
13963
13964         [BZ #13566]
13965         * assert/assert.h (static_assert): Don't define for C++.
13966         * libio/stdio.h (gets): Do declare for C++ <= C++11.
13967         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
13968
13969 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
13970
13971         * iconv/loop.c (single loop): Fix assertion in storing of
13972         remaining bytes.
13973
13974         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
13975
13976 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
13977
13978         * posix/getconf.c: Update copyright year.
13979         * nss/getent.c: Likewise.
13980         * nss/makedb.c: Likewise.
13981         * iconv/iconvconfig.c: Likewise.
13982         * iconv/iconv_prog.c: Likewise.
13983         * elf/ldconfig.c: Likewise.
13984         * elf/pldd.c: Likewise.
13985         * elf/sotruss.ksh: Likewise.
13986         * catgets/gencat.c: Likewise.
13987         * csu/version.c: Likewise.
13988         * elf/ldd.bash.in: Likewise.
13989         * elf/sprof.c (print_version): Likewise.
13990         * locale/programs/locale.c: Likewise.
13991         * locale/programs/localedef.c: Likewise.
13992         * login/programs/pt_chown.c: Likewise.
13993         * nscd/nscd.c (print_version): Likewise.
13994         * debug/xtrace.sh: Likewise.
13995         * malloc/memusage.sh: Likewise.
13996         * malloc/mtrace.pl: Likewise.
13997         * debug/catchsegv.sh: Likewise.
13998
13999 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
14000
14001         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
14002         pure attribute.
14003
14004 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
14005
14006         [BZ #13533]
14007         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
14008         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
14009         transformations.
14010         * iconv/gconv_int.h: Likewise.
14011         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
14012         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
14013         from libc for GLIBC_2.16.
14014         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
14015         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
14016         * wcsmbs/uchar.h: Really define mbstate_t.
14017         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
14018         * wcsmbs/c16rtomb.c: New file.
14019         * wcsmbs/mbrtoc16.c: New file.
14020         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
14021         for C/POSIX locale.
14022         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
14023         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
14024
14025         * wcsmbs/wchar.h: Add missing __restrict.
14026
14027 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
14028
14029         [BZ #13532]
14030         * time/Makefile (routines): Add timespec_get.
14031         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
14032         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
14033         timespec for ISO C11.
14034         * time/timespec_get.c: New file.
14035         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
14036         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
14037
14038         [BZ #13531]
14039         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
14040         * stdlib/stdlib.h: Declare aligned_alloc.
14041         * Versions.def: Add GLIBC_2.16 for libc.
14042         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
14043
14044         [BZ 13527]
14045         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
14046         ISO C11.
14047
14048         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
14049         code.
14050
14051         [BZ #13528]
14052         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
14053
14054         [BZ #13529]
14055         * assert/assert.h (static_assert): Define.
14056
14057         * version.h: Update for 2.16 development version.
14058
14059         [BZ #13526]
14060         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
14061         _ISOC11_SOURCE.
14062
14063         * version.h (RELEASE): Bump for 2.15 release.
14064         * include/features.h (__GLIBC_MINOR__): Bump to 15.
14065
14066         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
14067         Patch by Marek Polacek <mpolacek@redhat.com>.
14068
14069         * bits/byteswap.h: Protect long long constants with __extension__.
14070         * sysdeps/i386/bits/byteswap.h: Likewise.
14071         * sysdeps/ia64/bits/byteswap.h: Likewise.
14072         * sysdeps/s390/bits/byteswap.h: Likewise.
14073         * sysdeps/x86_64/bits/byteswap.h: Likewise.
14074
14075 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14076
14077         [BZ #13540]
14078         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
14079         destination buffer.
14080         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
14081
14082 2011-12-23  Marek Polacek  <polacek@redhat.com>
14083
14084         * elf/dl-addr.c (determine_info): Add inline keyword.
14085         * elf/tst-auditmod4b.c (check_avx): Likewise.
14086         * elf/tst-auditmod6b.c (check_avx): Likewise.
14087         * elf/tst-auditmod6c.c (check_avx): Likewise.
14088         * elf/tst-auditmod7b.c (check_avx): Likewise.
14089
14090 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
14091
14092         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
14093         !__SSE_MATH__.
14094
14095 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14096
14097         [BZ #13540]
14098         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
14099         processing for last bytes.
14100
14101 2011-08-06  Bruno Haible  <bruno@clisp.org>
14102
14103         [BZ #13061]
14104         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
14105         U+0385, not to U+1FEE.
14106
14107         [BZ #13062]
14108         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
14109         entry for U+00A5 U+0301.
14110
14111 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
14112
14113         [BZ #13166]
14114         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
14115         buffer for the output is too small.
14116
14117         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
14118         optimization.
14119
14120         [BZ #13185]
14121         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
14122         SSE flags if possible.
14123
14124 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14125
14126         [BZ #13540]
14127         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
14128         processing for last bytes.
14129
14130 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
14131
14132         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
14133         (syscall-list-default-options, syscall-list-default-condition)
14134         (syscall-list-includes): Define.
14135         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
14136         list of ABIs and options and #if conditions for each ABI.  Do not
14137         handle common syscalls between ABIs specially.
14138         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
14139         Remove.
14140         (syscall-list-variants, syscall-list-32bit-options)
14141         (syscall-list-32bit-condition, syscall-list-64bit-options)
14142         (syscall-list-64bit-condition): Define.
14143         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
14144         (syscall-list-variants, syscall-list-32bit-options)
14145         (syscall-list-32bit-condition, syscall-list-64bit-options)
14146         (syscall-list-64bit-condition): Define.
14147         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
14148         Remove.
14149         (syscall-list-variants, syscall-list-32bit-options)
14150         (syscall-list-32bit-condition, syscall-list-64bit-options)
14151         (syscall-list-64bit-condition): Define.
14152         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
14153         Remove.
14154         (syscall-list-variants, syscall-list-32bit-options)
14155         (syscall-list-32bit-condition, syscall-list-64bit-options)
14156         (syscall-list-64bit-condition): Define.
14157
14158 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
14159
14160         * locale/iso-639.def: Add brx entry.
14161
14162         [BZ #13328]
14163         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
14164         Proposed by Mariusz_Cukr <marcukr@op.pl>.
14165
14166         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
14167         __feraiseexcept_renamed.
14168
14169 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
14170
14171         [BZ #13538]
14172         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
14173         EPOLLET with unsigned values.
14174         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
14175         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
14176
14177         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
14178         to large cancellation.
14179         * math/s_cacoshf.c: Likewise.
14180         * math/s_cacoshl.c: Likewise.
14181
14182 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
14183
14184         [BZ #13305]
14185         [BZ #12786]
14186         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
14187         * math/s_cacoshf.c: Likewise.
14188         * math/s_cacoshl.c: Likewise.
14189
14190 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
14191
14192         [BZ #13439]
14193         * iconv/gconv.h: Define __GCONV_SWAP.
14194         * iconvdata/unicode.c: The swap bit must be stored in __flags.
14195         * iconvdata/utf-16.c: Likewise.
14196         * iconvdata/utf-32.c: Likewise.
14197
14198 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
14199
14200         [BZ #13524]
14201         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
14202         numerator after shifting it by one limb.
14203
14204 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
14205
14206         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
14207         under [__USE_EXTERN_INLINES].
14208
14209 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
14210
14211         [BZ #13446]
14212         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
14213
14214 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14215
14216         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
14217         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
14218         optimized code.
14219         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
14220         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
14221         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
14222         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
14223         for strncasecmp/strncasecmp_l compilation.
14224         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
14225         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
14226
14227 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
14228
14229         [BZ #13484]
14230         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
14231         of __asm__.
14232
14233 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
14234
14235         [BZ #13506]
14236         * time/tzfile.c (__tzfile_read): Check values from file header.
14237
14238 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
14239
14240         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
14241         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
14242         * powerpc/powerpc32/dl-start.S: Likewise.
14243         * powerpc/powerpc32/elf/start.S: Likewise.
14244         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
14245         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
14246         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
14247         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
14248         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
14249         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
14250         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
14251         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
14252         * powerpc/powerpc32/fpu/s_round.S: Likewise.
14253         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
14254         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
14255         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
14256         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
14257         * powerpc/powerpc32/memset.S: Likewise.
14258         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
14259         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
14260         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
14261         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
14262         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
14263         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
14264         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
14265         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
14266         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
14267         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
14268         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
14269         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
14270         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
14271
14272 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14273
14274         * math/libm-test.inc: Added more nearbyint tests.
14275         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
14276         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
14277         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
14278         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
14279
14280 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
14281
14282         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
14283         FD_CLOEXEC.
14284
14285 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14286
14287         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
14288         Add wcscpy-ssse3 wcscpy-c.
14289         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
14290         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
14291         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
14292         * sysdeps/x86_64/wcschr.S: New file.
14293         * sysdeps/x86_64/wcsrchr.S: New file.
14294         * string/test-strcmp.c: Remove checking of wcscmp function for
14295         wrong alignments.
14296         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
14297         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
14298         wcsrchr-sse2 wcsrchr-c.
14299         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
14300         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
14301         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
14302         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
14303         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
14304         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
14305         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
14306         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
14307         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
14308         * wcsmbc/wcschr.c (WCSCHR): New macro.
14309
14310 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14311
14312         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
14313         * wcsmbs/test-wcsrchr.c: New file.
14314         * string/test-strrchr.c: Add wcsrchr support.
14315         (WIDE): New macro.
14316         * wcsmbs/test-wcscpy.c: New file.
14317         * string/test-strcpy.c: Add wcscpy support.
14318         (WIDE): New macro.
14319
14320 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
14321
14322         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
14323         the inner loop.
14324
14325 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
14326
14327         [BZ #13472]
14328         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
14329
14330 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
14331
14332         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
14333         Minor optimizations.
14334
14335         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
14336         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
14337         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
14338
14339 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
14340
14341         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
14342         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
14343         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
14344         for gcc to avoid warnings.
14345         * inet/Makefile (tests): Add tst-checks.
14346         * inet/tst-checks.c: New file.
14347
14348         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
14349         warning.
14350
14351         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
14352         __wmemcmp_sse2.
14353
14354         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
14355         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
14356
14357         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
14358
14359 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
14360
14361         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
14362         problem.
14363
14364         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
14365
14366 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
14367
14368         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
14369         conditional on GCC version.
14370         (__arch_compare_and_exchange_val_8_acq)
14371         (__arch_compare_and_exchange_val_16_acq)
14372         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
14373         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
14374         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
14375
14376 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
14377
14378         * sysdeps/sh/backtrace.c: New file.
14379
14380 2011-12-02  Andreas Schwab  <schwab@redhat.com>
14381
14382         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
14383         parenthesis.
14384
14385 2011-12-01  Andreas Schwab  <schwab@redhat.com>
14386
14387         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
14388         falling back to utime.
14389
14390 2011-11-30  Andreas Schwab  <schwab@redhat.com>
14391
14392         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
14393         expectations for float.
14394
14395 2011-11-29  Andreas Schwab  <schwab@redhat.com>
14396
14397         * locale/weight.h (findidx): Add parameter len.
14398         * locale/weightwc.h (findidx): Likewise.
14399         * posix/fnmatch_loop.c (FCT): Adjust caller.
14400         * posix/regcomp.c (build_equiv_class): Likewise.
14401         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
14402         * posix/regexec.c (check_node_accept_bytes): Likewise.
14403         * string/strcoll_l.c (STRCOLL): Likewise.
14404         * string/strxfrm_l.c (STRXFRM): Likewise.
14405
14406 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
14407
14408         * Makefile.in: Remove CVSOPT handling.
14409         * configure.in: Remove use of AC_REVISION.
14410         * iconvdata/Makefile (distribute): No need to filter out CVS.
14411         * scripts/list-sources.sh: Remove CVS, subversion and monotone
14412         handling.
14413
14414 2011-11-16  Andreas Schwab  <schwab@redhat.com>
14415
14416         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
14417         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
14418         [USE_AS_STRNCASECMP_L]: Likewise.
14419         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
14420         NO_TLS_DIRECT_SEG_REFS.
14421         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
14422         Fix argument offsets for non-PIC.
14423         [USE_AS_STRNCASECMP_L]: Likewise.
14424         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
14425         NO_TLS_DIRECT_SEG_REFS.
14426
14427 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
14428
14429         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
14430         O_CLOEXEC.
14431         * locale/loadlocale.c (_nl_load_locale): Likewise.
14432
14433 2011-11-15  Andreas Schwab  <schwab@redhat.com>
14434
14435         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
14436         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
14437         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
14438         (SYSCALL_GETTIME): Set errno on error.
14439
14440         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
14441         count references to noai6ai_cached.
14442
14443 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
14444
14445         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
14446
14447         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
14448         FD_CLOEXEC for /proc/self/maps.
14449
14450         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
14451         FD_CLOEXEC for /proc/meminfo.
14452
14453         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
14454         gai.conf.
14455
14456         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
14457         FD_CLOEXEC for given file.
14458
14459         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
14460
14461         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
14462         FD_CLOEXEC for /etc/hosts.
14463         (_gethtent): Likewise.
14464
14465         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
14466
14467         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
14468         cancellation and set FD_CLOEXEC for /etc/netgroup.
14469
14470         * nss/nss_files/files-key.c (search): Don't allow cancellation when
14471         reading /etc/publickey.
14472
14473         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
14474         allow cancellation when reading /etc/group.
14475
14476         * nss/nss_files/files-alias.c (internal_setent): Don't allow
14477         cancellation.
14478         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
14479
14480         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
14481         when using data file.
14482
14483         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
14484
14485         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
14486         (write_nis_obj): Use "c" and "e" in fopen.
14487
14488         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
14489
14490         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
14491
14492         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
14493
14494         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
14495
14496         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
14497         locale.alias.
14498
14499         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
14500
14501         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
14502
14503         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
14504
14505         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
14506         file parsing and set FD_CLOEXEC.
14507
14508 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
14509
14510         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
14511
14512 2011-11-14  Andreas Schwab  <schwab@redhat.com>
14513
14514         * malloc/arena.c (arena_get2): Don't call reused_arena when
14515         _int_new_arena failed.
14516
14517 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
14518
14519         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
14520         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
14521         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
14522         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
14523         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
14524         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
14525         to compile strcasecmp and strncasecmp.
14526         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
14527         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
14528
14529         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
14530
14531 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
14532
14533         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
14534         locale-defines.sym to gen-as-const-headers.
14535         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
14536         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
14537         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
14538         to compile strcasecmp and strncasecmp.
14539         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
14540         strcasecmp_l and strncasecmp_l.
14541         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
14542         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
14543         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
14544         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
14545         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
14546         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
14547         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
14548         * sysdeps/i386/i686/multiarch/strncase.S: New file.
14549         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
14550         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
14551         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
14552
14553 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
14554
14555         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
14556         result of SYSDEP_GETTIME_CPU to retval.
14557         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
14558         parameter list to macro.  Remove trailing semicolon.  Adjust users.
14559
14560         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
14561         variable.
14562
14563         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
14564         mantissa words.
14565         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
14566
14567         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
14568         from unused variable.
14569
14570         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
14571         DWARF definitions.
14572         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
14573         for assembling.
14574
14575         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
14576         over namespaces.
14577
14578         * sunrpc/rpc_prot.c (rejected): Fix case value.
14579
14580         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
14581         unsigned long long int to avoid warnings in shift.
14582
14583         * posix/regex_internal.c (re_string_reconstruct): Actually use result
14584         of use of trans.
14585         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
14586         variable tmp.
14587
14588         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
14589         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
14590         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
14591
14592         * nis/nis_table.c (nis_list): Use variable of correct type for
14593         result of __follow_path call.
14594
14595 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14596
14597         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
14598         of math functions ceil, trunc, floor, round, and sqrt, when
14599         avaliable on the platform.
14600         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
14601         name clash.
14602         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
14603         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
14604         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
14605
14606 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
14607
14608         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
14609         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
14610
14611 2011-11-11  Roland McGrath  <roland@hack.frob.com>
14612
14613         * include/unistd.h: Fix __readlink return type.
14614         Reported by Chris Metcalf <cmetcalf@tilera.com>.
14615
14616 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
14617
14618         * stdlib/ucontext.h: Undo last change for makecontext.
14619
14620 2011-11-11  Andreas Schwab  <schwab@redhat.com>
14621
14622         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
14623
14624         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
14625         * setjmp/setjmp.h: Mark functions as non-leaf.
14626         * setjmp/bits/setjmp2.h: Likewise.
14627         * stdlib/ucontext.h: Likewise.
14628
14629 2011-11-10  Andreas Schwab  <schwab@redhat.com>
14630
14631         * malloc/arena.c (_int_new_arena): Don't increment narenas.
14632         (reused_arena): Don't check arena limit.
14633         (arena_get2): Atomically check arena limit.
14634
14635 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
14636
14637         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
14638         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
14639
14640         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
14641         instructions.
14642
14643 2011-11-07  Andreas Schwab  <schwab@redhat.com>
14644
14645         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
14646         handler when locking.
14647
14648         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
14649         Fix size of allocated buffer.
14650
14651 2011-11-04  Andreas Schwab  <schwab@redhat.com>
14652
14653         [BZ #10103]
14654         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
14655         declarations for long double functions.
14656         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
14657
14658         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
14659
14660 2011-11-03  Andreas Schwab  <schwab@redhat.com>
14661
14662         * nscd/nscd.c (main): Don't start AVC thread until credentials are
14663         installed.
14664
14665         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
14666         is disabled.
14667
14668 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14669
14670         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
14671
14672 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
14673
14674         * include/alloca.h (stackinfo_alloca_round): Define.
14675         (extend_alloca): Use it.
14676         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
14677         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
14678         here.
14679
14680         * scripts/check-local-headers.sh: Ignore libaudit.h.
14681
14682         * nscd/Makefile (extra-objs): Make recursively expanded.
14683
14684 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
14685
14686         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
14687         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
14688
14689         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
14690         * posix/tst-rfc3484-2.c: Likewise.
14691         * posix/tst-rfc3484-3.c: Likewise.
14692
14693         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
14694         process_vm_writev.
14695         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
14696         process_vm_writev.
14697         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
14698         process_vm_writev from libc using GLIBC_2.15 version.
14699
14700         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
14701
14702 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
14703
14704         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
14705         stack usage.
14706
14707 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
14708
14709         [BZ #13367]
14710         * nss/getent.c (initgroups_keys): Show error message in case no group
14711         names are given.
14712
14713         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
14714         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
14715         __bump_nl_timestamp.
14716         * nscd/connections (nscd_init): When host database is served open
14717         netlink socket and request notification about configuration changes.
14718         (main_loop_poll): Track netlink file descriptor and bump timestamp
14719         in case data becomes available.
14720         (main_loop_epoll): Likewise.
14721         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
14722         (database_pers_head): Add extra_data fileds.
14723         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
14724         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
14725         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
14726         Adjust caller.
14727         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
14728         in6ai data, call __free_in6ai.
14729         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
14730         Add -DHAVE_NETLINK.
14731         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
14732         interface information.  Reuse previous data if netlink timestamp
14733         is not changed.
14734         (__bump_nl_timestamp): New function.
14735         (__free_in6ai): New function.
14736
14737 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
14738
14739         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
14740         close_not_cancel_no_status here.
14741         (__check_pf): Reorganize code a bit to not call close twice if OOM.
14742
14743 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
14744
14745         [BZ #13276]
14746         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
14747         return value.
14748
14749         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
14750         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
14751         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
14752
14753 2011-07-03  Andreas Jaeger  <aj@suse.de>
14754
14755         [BZ #10709]
14756         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
14757         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
14758         * math/libm-test.inc (sin_test): Add test case.
14759
14760 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
14761
14762         [BZ #13337]
14763         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
14764         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
14765
14766         * elf/chroot_canon.c (chroot_canon): Cleanups.
14767
14768         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
14769
14770         [BZ #13335]
14771         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
14772         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
14773
14774         * string/test-strchr.c: Make usable for strchrnul testing.
14775         * string/test-strchrnul.c: New file.
14776         * string/Makefile (strop-tests): Add strchrnul.
14777
14778         * po/it.po: Update from translation team.
14779         * po/es.po: Likewise.
14780
14781 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
14782
14783         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
14784         the three constants needed as parameters.  Drop the others.
14785         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
14786         __m128i_strloadu_tolower.
14787         Create and initialize variable zero and use it in all the places
14788         where _mm_setzero_si128 was used.
14789
14790         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
14791         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
14792         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
14793         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
14794         anymore.
14795         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
14796         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
14797         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
14798         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
14799         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
14800         __mpranred, __mptan.
14801         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
14802         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
14803         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
14804         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
14805         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
14806         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
14807         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
14808         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
14809         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
14810
14811 2011-10-28  Andreas Schwab  <schwab@redhat.com>
14812
14813         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
14814         redefine if SHARED.
14815         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
14816
14817         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
14818         wide char related routines to wcsmbs subdir.
14819
14820 2011-10-27  Andreas Schwab  <schwab@redhat.com>
14821
14822         [BZ #13344]
14823         * misc/sys/cdefs.h (__THROWNL): Define.
14824         * posix/unistd.h: Use __THREADNL instead of __THREAD
14825         for memory synchronization functions.
14826
14827 2011-10-26  Roland McGrath  <roland@hack.frob.com>
14828
14829         [BZ #13349]
14830         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
14831         doesn't exist.
14832         * manual/stdio.texi (Obstack Streams): Node removed.
14833
14834 2011-10-26  Andreas Schwab  <schwab@redhat.com>
14835
14836         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
14837         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
14838         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
14839
14840         * math/math_private.h (math_force_eval): Allow non-addressable
14841         arguments.
14842         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
14843
14844 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
14845
14846         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
14847         file is not needed.
14848
14849         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
14850         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
14851         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
14852         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
14853         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
14854         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
14855         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
14856         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
14857         Add AVX variants.
14858         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
14859         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
14860         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
14861         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
14862         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
14863         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
14864         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
14865         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
14866         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
14867         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
14868         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
14869         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
14870         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
14871         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
14872         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
14873         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
14874         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
14875         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
14876         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
14877
14878         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
14879         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
14880
14881         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
14882         place.  Use VEX encoding when compiling for AVX.
14883
14884 2011-10-25  Andreas Schwab  <schwab@redhat.com>
14885
14886         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
14887         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
14888
14889         * string/test-strchr.c (do_test): Don't generate NUL bytes.
14890
14891 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
14892
14893         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
14894         useless if() expression.
14895         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
14896         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
14897         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
14898         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
14899         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
14900         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
14901         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
14902         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
14903         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
14904         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
14905         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
14906         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
14907         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
14908         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
14909         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
14910         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
14911         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
14912         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
14913         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
14914
14915         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
14916
14917 2011-10-25  Andreas Schwab  <schwab@redhat.com>
14918
14919         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
14920         condition.
14921         * elf/dl-fini.c (_dl_sort_fini): Likewise.
14922
14923 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
14924
14925         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
14926         .text section.  Avoid duplicate constants.
14927         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
14928         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14929         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
14930         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14931         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
14932         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14933         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14934         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14935         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
14936         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
14937         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
14938         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
14939         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
14940         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
14941         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
14942         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
14943         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
14944         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
14945         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
14946         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
14947         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
14948         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
14949         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
14950         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
14951         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
14952         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
14953         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
14954         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
14955         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
14956         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
14957         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
14958         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
14959         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
14960         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
14961         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
14962         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
14963         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
14964         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
14965         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
14966         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
14967         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
14968         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
14969         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
14970         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
14971         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
14972
14973 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
14974
14975         * sysdeps/x86_64/dla.h: Move to ...
14976         * sysdeps/x86_64/fpu/dla.h: ...here.
14977         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
14978         situations.  Use __builtin_fma only for gcc 4.6 and up.
14979
14980         * config.make.in: Add have-mfma4 entry.
14981         * configure.in: Substitute libc_cv_cc_fma4.
14982         * math/Makefile (dbl-only-routines): Add sincostab.
14983         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
14984         Use __sincostab not sincos.
14985         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
14986         name is a macro.
14987         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
14988         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14989         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14990         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
14991         using __copysign.
14992         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
14993         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
14994         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
14995         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
14996         and __inv.
14997         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
14998         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
14999         __copysign.
15000         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
15001         define aliases when function name is a macro.
15002         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
15003         sysdeps/ieee754/dbl-64/sincos.tbl.
15004         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
15005         fma4-enabled routines.
15006         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
15007         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
15008         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
15009         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
15010         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
15011         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
15012         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
15013         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
15014         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
15015         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
15016         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
15017         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
15018         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
15019         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
15020         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
15021         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
15022         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
15023         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
15024         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
15025         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
15026         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
15027         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
15028         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
15029         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
15030         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
15031         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
15032         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
15033         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
15034         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
15035         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
15036
15037         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
15038         rename.
15039         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15040         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15041         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15042         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15043         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15044         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15045         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
15046         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
15047
15048 2011-10-24  Andreas Schwab  <schwab@redhat.com>
15049
15050         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
15051
15052 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
15053
15054         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
15055
15056         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
15057         prediction.
15058         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
15059
15060         * string/strnlen.c: Don't define STRNLEN, reverse logic.
15061         Remove unused variable magic_bits.
15062         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
15063
15064         * string/strnlen.c: Define and use STRNLEN macro.
15065         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
15066         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
15067         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
15068         * wcsmbs/wcslen.c: Define and use WCSLEN.
15069         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
15070         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
15071         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
15072         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
15073         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
15074         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
15075         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
15076
15077 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15078
15079         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
15080         strnlen-sse2-no-bsf.
15081         Rename strlen-no-bsf to strlen-sse2-no-bsf.
15082         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
15083         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
15084         Add strnlen support.
15085         (USE_AS_STRNLEN): New macro.
15086         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
15087         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
15088         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
15089         * sysdeps/x86_64/wcslen.S: New file.
15090
15091 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
15092
15093         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
15094         XMM-moves are used for copying on small sizes.
15095
15096 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15097
15098         * wcsmbs/Makefile (strop-tests): Add wcschr.
15099         * wcsmbs/test-wcschr.c: New file.
15100         * string/test-strchr.c: Update.
15101         Add wcschr support.
15102         (WIDE): New macro.
15103
15104 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15105
15106         * wcsmbs/Makefile (strop-tests): Add wcslen.
15107         * wcsmbs/test-wcslen.c: New file.
15108         * string/test-strlen.c: Update.
15109         Add wcslen support.
15110         (WIDE): New macro.
15111
15112 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
15113
15114         * po/it.po: Update from translation team.
15115
15116 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15117
15118         * sysdeps/x86_64/wcscmp.S: Update.
15119         Fix wrong comparison semantics.
15120         wcscmp shall use signed comparison not unsigned.
15121         Don't use substraction to avoid overflow bug.
15122         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
15123         * wcsmbc/wcscmp.c: Likewise.
15124         * string/test-strcmp.c: Likewise.
15125         Add new tests to check cases with negative values.
15126
15127 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
15128
15129         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
15130         * sysdeps/x86_64/dla.h: ...here.  New file.
15131         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
15132         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15133         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15134         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15135         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15136         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
15137         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15138         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
15139         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
15140
15141 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
15142
15143         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
15144         __ynl_finite aliases.
15145
15146 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
15147
15148         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
15149
15150         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
15151         define DLA_FMA.
15152         [DLA_FMA] (EMULV): Use DLA_FMA.
15153         [DLA_FMA] (MUL12): Use EMULV.
15154         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
15155         that are not needed.
15156         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15157         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15158         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15159         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15160         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15161         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
15162         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
15163
15164 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
15165
15166         * math/s_nan.c: Undef __nan.
15167         * math/s_nanf.c: Undef __nanf.
15168         * math/s_nanl.c: Undef __nanl.
15169         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
15170         "math_private.h".
15171
15172 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
15173
15174         * math/s_catan.c: Add branch predictions.
15175         * math/s_catanf.c: Likewise.
15176         * math/s_catanh.c: Likewise.
15177         * math/s_catanhf.c: Likewise.
15178         * math/s_catanhl.c: Likewise.
15179         * math/s_catanl.c: Likewise.
15180         * math/s_cexp.c: Likewise.
15181         * math/s_cexpf.c: Likewise.
15182         * math/s_cexpl.c: Likewise.
15183         * math/s_clog.c: Likewise.
15184         * math/s_clog10.c: Likewise.
15185         * math/s_clog10f.c: Likewise.
15186         * math/s_clog10l.c: Likewise.
15187         * math/s_clogf.c: Likewise.
15188         * math/s_clogl.c: Likewise.
15189         * math/s_csqrt.c: Likewise.
15190         * math/s_csqrtf.c: Likewise.
15191         * math/s_csqrtl.c: Likewise.
15192         * math/s_ctanf.c: Likewise.
15193         * math/s_ctanh.c: Likewise.
15194         * math/s_ctanhf.c: Likewise.
15195         * math/s_ctanhl.c: Likewise.
15196         * math/s_ctanl.c: Likewise.
15197
15198         * math/math_private.h: Define __nan, __nanf, __nanl.
15199         * math/s_cacosh.c: Include <math_private.h>.
15200         * math/s_cacoshl.c: Likewise.
15201         * math/s_casinh.c: Likewise.
15202         * math/s_casinhf.c: Likewise.
15203         * math/s_casinhl.c: Likewise.
15204         * math/s_ccos.c: Rely entire on ccosh.
15205         * math/s_ccosf.c: Rely entire on ccoshf.
15206         * math/s_ccosl.c: Rely entirely on ccoshl.
15207         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
15208         Remove tests for FE_INVALID.
15209         * math/s_ccoshf.c: Likewise.
15210         * math/s_ccoshl.c: Likewise.
15211         * math/s_csin.c: Likewise.
15212         * math/s_csinf.c: Likewise.
15213         * math/s_csinh.c Likewise.
15214         * math/s_csinhf.c: Likewise.
15215         * math/s_csinhl.c: Likewise.
15216         * math/s_csinl.c: Likewise.
15217         * math/s_ctan.c: Likewise.
15218         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
15219         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
15220         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
15221
15222 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
15223
15224         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
15225         compilation problems.
15226
15227         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
15228         __builtin_expect.
15229
15230 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
15231
15232         * sysdeps/i386/configure.in: Test for -mfma4 option.
15233         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
15234         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
15235         COMMON_CPUID_INDEX_80000001.
15236         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
15237         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
15238         use it if FMA3 is not supported.
15239         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
15240
15241         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
15242         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
15243
15244 2011-10-20  Andreas Schwab  <schwab@redhat.com>
15245
15246         [BZ #12892]
15247         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
15248         it would create a cycle with a link time dependency.
15249
15250 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
15251
15252         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
15253         instruction.
15254         * string/Makefile (strop-tests): Add rawmemchr.
15255         * string/test-rawmemchr.c: New file.
15256
15257         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
15258         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
15259         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
15260         when compiling str{,n}casecmp and when AVX is available.  Hook up
15261         new optimized code in initializers.
15262
15263 2011-10-19  Andreas Schwab  <schwab@redhat.com>
15264
15265         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
15266         __feraiseexcept instead of feraiseexcept.
15267
15268 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
15269
15270         * math/math_private.h: Define defaults for libc_fetestexcept and
15271         libc_feupdateenv.
15272         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
15273         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
15274         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
15275         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
15276         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
15277         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
15278         libc_fetestexcept and libc_feupdateenv.
15279
15280         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
15281         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
15282         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
15283         * sysdeps/x86_64/fpu/math_private.h: Define special version of
15284         libc_feholdexcept_setround.
15285
15286         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
15287         Add s_nearbyint-c and s_nearbyintf-c.
15288         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
15289         nearbyintf inlines.
15290         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
15291         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
15292         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
15293         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
15294
15295         * math/math_private.h: Define defaults for libc_fegetround,
15296         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
15297         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
15298         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
15299         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
15300         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
15301         standard functions.
15302         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
15303         Remove comments and hacks for old compiler versions.
15304         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
15305         libc_fegetround, libc_fesetround, libc_feholdexcept, and
15306         libc_feholdexceptl.
15307
15308 2011-10-18  Andreas Schwab  <schwab@redhat.com>
15309
15310         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
15311         (__feraiseexcept_renamed): Add __NTH.
15312         (feraiseexcept): Add __NTH.  Rename local variables to fix
15313         namespace violations.
15314
15315 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
15316
15317         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
15318
15319         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
15320
15321         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
15322         recently added interfaces.
15323         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
15324
15325         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
15326         about macro parameter expansion.
15327
15328         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
15329         __NO_MATH_INLINES is defined.  Cleanups.
15330
15331         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
15332         and __floorf is target has SSE4.1.
15333         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
15334         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
15335         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
15336         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
15337
15338         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
15339         name.
15340         (floorf): Likewise.
15341
15342         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
15343
15344 2011-10-17  Andreas Schwab  <schwab@redhat.com>
15345
15346         * misc/sys/cdefs.h: Fix last change.
15347
15348         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
15349         database lookup.
15350
15351 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
15352
15353         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
15354
15355         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
15356         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
15357         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
15358         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
15359         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
15360         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
15361         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
15362         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
15363         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
15364         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
15365         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
15366         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
15367         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
15368         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
15369         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
15370         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
15371         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
15372         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
15373         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
15374         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
15375         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
15376         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
15377
15378         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
15379         ceil, ceilf, floor, floorf.
15380
15381         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
15382         Perform IRELATIVE relocations last.
15383
15384         * elf/do-rel.h: Add another parameter nrelative, replacing the
15385         local variable with the same name.  Change name of the function
15386         to end in Rel or Rela (uppercase).
15387         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
15388         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
15389         elf_dynamic_do_##reloc function.
15390
15391 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
15392
15393         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
15394         is sufficient, at least on modern CPUs.
15395
15396         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
15397
15398         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
15399         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
15400
15401         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
15402         __expl_finite.
15403         * math/bits/math-finite.h: Add entries for exp.
15404         * math/e_expl.c: Add __*_finite alias.
15405         * sysdeps/i386/fpu/e_exp.S: Likewise.
15406         * sysdeps/i386/fpu/e_expf.S: Likewise.
15407         * sysdeps/i386/fpu/e_expl.c: Likewise.
15408         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
15409         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
15410         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
15411         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
15412         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
15413         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
15414         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
15415
15416         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
15417         is sufficient, at least on modern CPUs.
15418
15419         * ctype/ctype-info.c (__ctype_init): Define.
15420         * include/ctype.h (__ctype_init): Declare.
15421         (__ctype_b_loc): The variable is always initialized.
15422         (__ctype_toupper_loc): Likewise.
15423         (__ctype_tolower_loc): Likewise.
15424         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
15425         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
15426
15427 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
15428
15429         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
15430
15431         * configure.in: Also look in $cxxmachine/include for C++ system
15432         headers.
15433
15434 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15435
15436         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
15437         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
15438         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
15439         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
15440         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
15441         (USE_AS_WMEMCMP): New macro.
15442         Fixing indents.
15443         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
15444         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
15445         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
15446         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
15447         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
15448         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
15449         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
15450         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
15451         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
15452         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
15453         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
15454         (USE_AS_WMEMCMP): New macro.
15455         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
15456         * sysdeps/string/test-memcmp.c: Update.
15457         Fix simple_wmemcmp.
15458         Add new tests.
15459         * wcsmbs/wmemcmp.c: Update.
15460         (WMEMCMP): New macro.
15461         Fix overflow bug.
15462
15463 2011-10-12  Andreas Jaeger  <aj@suse.de>
15464
15465         [BZ #13268]
15466         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
15467
15468 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
15469
15470         * libio/iofwide.c (do_length): Avoid warning.
15471
15472         * ctype/ctype.h (__isctype_f): Add missing __THROW.
15473
15474 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
15475
15476         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
15477
15478         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
15479         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
15480         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
15481         * sysdeps/i386/i686/fpu/e_log.S: New file.
15482         * sysdeps/i386/i686/fpu/e_logf.S: New file.
15483         * sysdeps/i386/i686/fpu/e_logl.S: New file.
15484
15485         * ctype/ctype.h: Add support for inlined isXXX functions when
15486         compiling C++ code.
15487
15488 2011-10-14  Andreas Schwab  <schwab@redhat.com>
15489
15490         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
15491
15492         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
15493
15494 2011-10-13  Roland McGrath  <roland@hack.frob.com>
15495
15496         [BZ #13291]
15497         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
15498
15499 2011-10-13  Andreas Schwab  <schwab@redhat.com>
15500
15501         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
15502         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
15503         feraiseexcept.
15504
15505         * sysdeps/x86_64/memrchr.S: Check for zero size.
15506
15507         * string/stratcliff.c: Add memrchr tests.
15508
15509 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15510
15511         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
15512         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
15513         rawmemchr-sse2 rawmemchr-sse2-bsf.
15514         * sysdeps/i386/i686/multiarch/memchr.S: New file.
15515         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
15516         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
15517         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
15518         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
15519         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
15520         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
15521         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
15522         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
15523         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
15524         * string/memrchr.c (MEMRCHR): New macro.
15525
15526 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
15527
15528         Add integration with gcc's -ffinite-math-only and optimize wrapper
15529         functions in libm.
15530         * Versions.def: Define GLIBC_2.15 version for libm.
15531         * math/Makefile (headers): Add bits/math-finite.h.
15532         * math/bits/math-finite.h: New file.
15533         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
15534         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
15535         * math/e_acoshl.c: Add __*_finite alias.
15536         * math/e_acosl.c: Likewise.
15537         * math/e_asinl.c: Likewise.
15538         * math/e_atan2l.c: Likewise.
15539         * math/e_atanhl.c: Likewise.
15540         * math/e_coshl.c: Likewise.
15541         * math/e_exp10.c: Likewise.
15542         * math/e_exp10f.c: Likewise.
15543         * math/e_exp10l.c: Likewise.
15544         * math/e_exp2l.c: Likewise.
15545         * math/e_fmodl.c: Likewise.
15546         * math/e_gammal_r.c: Likewise.
15547         * math/e_hypotl.c: Likewise.
15548         * math/e_j0l.c: Likewise.
15549         * math/e_j1l.c: Likewise.
15550         * math/e_jnl.c: Likewise.
15551         * math/e_lgammal_r.c: Likewise.
15552         * math/e_log10l.c: Likewise.
15553         * math/e_log2l.c: Likewise.
15554         * math/e_logl.c: Likewise.
15555         * math/e_powl.c: Likewise.
15556         * math/e_sinhl.c: Likewise.
15557         * math/e_sqrtl.c: Likewise.
15558         * math/e_scalb.c: Completely rewritten and optimized.
15559         * math/e_scalbf.c: Likewise.
15560         * math/e_scalbl.c: Likewise.
15561         * math/w_acos.c: Likewise.
15562         * math/w_acosf.c: Likewise.
15563         * math/w_acosl.c: Likewise.
15564         * math/w_acosh.c: Likewise.
15565         * math/w_acoshf.c: Likewise.
15566         * math/w_acoshl.c: Likewise.
15567         * math/w_asin.c: Likewise.
15568         * math/w_asinf.c: Likewise.
15569         * math/w_asinl.c: Likewise.
15570         * math/w_atan2.c: Likewise.
15571         * math/w_atan2f.c: Likewise.
15572         * math/w_atan2l.c: Likewise.
15573         * math/w_atanh.c: Likewise.
15574         * math/w_atanhf.c: Likewise.
15575         * math/w_atanhl.c: Likewise.
15576         * math/w_exp10.c: Likewise.
15577         * math/w_exp10f.c: Likewise.
15578         * math/w_exp10l.c: Likewise.
15579         * math/w_fmod.c: Likewise.
15580         * math/w_fmodf.c: Likewise.
15581         * math/w_fmodl.c: Likewise.
15582         * math/w_j0.c: Likewise.
15583         * math/w_j0f.c: Likewise.
15584         * math/w_j0l.c: Likewise.
15585         * math/w_j1.c: Likewise.
15586         * math/w_j1f.c: Likewise.
15587         * math/w_j1l.c: Likewise.
15588         * math/w_jn.c: Likewise.
15589         * math/w_jnf.c: Likewise.
15590         * math/w_log.c: Likewise.
15591         * math/w_logf.c: Likewise.
15592         * math/w_logl.c: Likewise.
15593         * math/w_log10.c: Likewise.
15594         * math/w_log10f.c: Likewise.
15595         * math/w_log10l.c: Likewise.
15596         * math/w_log2.c: Likewise.
15597         * math/w_log2f.c: Likewise.
15598         * math/w_log2l.c: Likewise.
15599         * math/w_pow.c: Likewise.
15600         * math/w_powf.c: Likewise.
15601         * math/w_powl.c: Likewise.
15602         * math/w_remainder.c: Likewise.
15603         * math/w_remainderf.c: Likewise.
15604         * math/w_remainderl.c: Likewise.
15605         * math/w_scalb.c: Likewise.
15606         * math/w_scalbf.c: Likewise.
15607         * math/w_scalbl.c: Likewise.
15608         * math/w_sqrt.c: Likewise.
15609         * math/w_sqrtf.c: Likewise.
15610         * math/w_sqrtl.c: Likewise.
15611         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
15612         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
15613         used.
15614         * math/math_private.h: Declare __kernel_standard_f.
15615         * math/w_cosh.c: Remove cruft and optimize a bit.
15616         * math/w_coshf.c: Likewise.
15617         * math/w_coshl.c: Likewise.
15618         * math/w_exp2.c: Likewise.
15619         * math/w_exp2f.c: Likewise.
15620         * math/w_exp2l.c: Likewise.
15621         * math/w_hypot.c: Likewise.
15622         * math/w_hypotf.c: Likewise.
15623         * math/w_hypotl.c: Likewise.
15624         * math/w_lgamma.c: Likewise.
15625         * math/w_lgamma_r.c: Likewise.
15626         * math/w_lgammaf.c: Likewise.
15627         * math/w_lgammaf_r.c: Likewise.
15628         * math/w_lgammal.c: Likewise.
15629         * math/w_lgammal_r.c: Likewise.
15630         * math/w_sinh.c: Likewise.
15631         * math/w_sinhf.c: Likewise.
15632         * math/w_sinhl.c: Likewise.
15633         * math/w_tgamma.c: Likewise.
15634         * math/w_tgammaf.c: Likewise.
15635         * math/w_tgammal.c: Likewise.
15636         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
15637         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
15638         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
15639         Minor optimizations.  Pretty printing.  Remove cruft.
15640         * sysdeps/i386/fpu/e_acosf.S: Likewise.
15641         * sysdeps/i386/fpu/e_acosh.S: Likewise.
15642         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
15643         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
15644         * sysdeps/i386/fpu/e_acosl.c: Likewise.
15645         * sysdeps/i386/fpu/e_asin.S: Likewise.
15646         * sysdeps/i386/fpu/e_asinf.S: Likewise.
15647         * sysdeps/i386/fpu/e_atan2.S: Likewise.
15648         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
15649         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
15650         * sysdeps/i386/fpu/e_atanh.S: Likewise.
15651         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
15652         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
15653         * sysdeps/i386/fpu/e_exp10.S: Likewise.
15654         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
15655         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
15656         * sysdeps/i386/fpu/e_exp2.S: Likewise.
15657         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
15658         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
15659         * sysdeps/i386/fpu/e_fmod.S: Likewise.
15660         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
15661         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
15662         * sysdeps/i386/fpu/e_hypot.S: Likewise.
15663         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
15664         * sysdeps/i386/fpu/e_log.S: Likewise.
15665         * sysdeps/i386/fpu/e_log10.S: Likewise.
15666         * sysdeps/i386/fpu/e_log10f.S: Likewise.
15667         * sysdeps/i386/fpu/e_log10l.S: Likewise.
15668         * sysdeps/i386/fpu/e_log2.S: Likewise.
15669         * sysdeps/i386/fpu/e_log2f.S: Likewise.
15670         * sysdeps/i386/fpu/e_log2l.S: Likewise.
15671         * sysdeps/i386/fpu/e_logf.S: Likewise.
15672         * sysdeps/i386/fpu/e_logl.S: Likewise.
15673         * sysdeps/i386/fpu/e_pow.S: Likewise.
15674         * sysdeps/i386/fpu/e_powf.S: Likewise.
15675         * sysdeps/i386/fpu/e_powl.S: Likewise.
15676         * sysdeps/i386/fpu/e_remainder.S: Likewise.
15677         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
15678         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
15679         * sysdeps/i386/fpu/e_scalb.S: Likewise.
15680         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
15681         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
15682         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
15683         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
15684         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
15685         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
15686         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
15687         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15688         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
15689         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
15690         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
15691         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
15692         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
15693         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
15694         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
15695         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
15696         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
15697         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15698         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
15699         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
15700         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15701         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
15702         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
15703         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
15704         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15705         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
15706         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
15707         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
15708         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
15709         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
15710         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
15711         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
15712         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
15713         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
15714         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
15715         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
15716         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
15717         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
15718         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
15719         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
15720         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
15721         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
15722         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
15723         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
15724         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
15725         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
15726         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
15727         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
15728         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
15729         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
15730         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
15731         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
15732         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
15733         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
15734         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
15735         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
15736         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
15737         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
15738         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
15739         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
15740         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
15741         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
15742         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
15743         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
15744         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
15745         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
15746         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
15747         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
15748         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
15749         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
15750         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
15751         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
15752         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
15753         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
15754         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
15755         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
15756         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
15757         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
15758         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
15759         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
15760         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
15761         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
15762         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
15763         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
15764         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
15765         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
15766         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
15767         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
15768         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
15769         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
15770         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
15771         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
15772         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
15773         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
15774         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
15775         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
15776         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
15777         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
15778         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
15779         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
15780         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
15781         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
15782         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
15783         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
15784         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
15785         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
15786         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
15787         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
15788         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
15789         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
15790         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
15791         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
15792         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
15793         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
15794         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
15795         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
15796         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
15797         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
15798         (__isnanf): Likewise.
15799         (__isinf_ns): Likewise.
15800         (__isinf_nsf): Likewise.
15801         (__finite): Likewise.
15802         (__finitef): Likewise.
15803         (__ieee754_sqrt): Define as macro.
15804         (__ieee754_sqrtf): Define as macro.
15805         (__ieee754_sqrtl): Define as macro.
15806         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
15807         inlined copy.
15808         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
15809         __FINITE_MATH_ONLY__ consistent.
15810         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
15811
15812 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
15813
15814         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
15815         of rawmemchr.
15816
15817         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
15818
15819 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
15820
15821         * po/ja.po: Update from translation team.
15822
15823 2011-10-08  Roland McGrath  <roland@hack.frob.com>
15824
15825         * locale/programs/locarchive.c (prepare_address_space): New function.
15826         (create_archive, enlarge_archive, open_archive): Use it.
15827
15828         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
15829         inside [SHARED], where it is used.
15830
15831         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
15832
15833         * nss/getent.c (netgroup_keys): Remove unused variable.
15834         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
15835
15836 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
15837
15838         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
15839         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
15840         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
15841         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
15842         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
15843         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
15844         * math/Makefile (libm-calls): Add s_isinf_ns.
15845         * math/divtc3.c: Use __isinf_nsl instead of isinf.
15846         * math/multc3.c: Likewise.
15847         * math/s_casin.c: Likewise.
15848         * math/s_casinf.c: Likewise.
15849         * math/s_casinl.c: Likewise.
15850         * math/s_ccos.c: Likewise.
15851         * math/s_ccosf.c: Likewise.
15852         * math/s_ccosl.c: Likewise.
15853         * math/s_ctan.c: Likewise.
15854         * math/s_ctanf.c: Likewise.
15855         * math/s_ctanh.c: Likewise.
15856         * math/s_ctanhf.c: Likewise.
15857         * math/s_ctanhl.c: Likewise.
15858         * math/s_ctanl.c: Likewise.
15859         * math/w_fmod.c: Likewise.
15860         * math/w_fmodf.c: Likewise.
15861         * math/w_fmodl.c: Likewise.
15862         * math/w_remainder.c: Likewise.
15863         * math/w_remainderf.c: Likewise.
15864         * math/w_remainderl.c: Likewise.
15865         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
15866         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
15867         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
15868         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
15869         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
15870         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
15871         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
15872         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
15873
15874         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
15875         of the number.
15876         * stdio-common/printf_fphex.c: Likewise.
15877         * stdio-common/printf_size.c: Likewise.
15878
15879         * math/e_exp10.c: Include math_private.h using <...> not "...".
15880         * math/e_exp10f.c: Likewise.
15881         * math/e_exp10l.c: Likewise.
15882         * math/e_exp2l.c: Likewise.
15883         * math/e_j0l.c: Likewise.
15884         * math/e_j1l.c: Likewise.
15885         * math/e_jnl.c: Likewise.
15886         * math/e_lgammal_r.c: Likewise.
15887         * math/e_rem_pio2l.c: Likewise.
15888         * math/e_scalb.c: Likewise.
15889         * math/e_scalbf.c: Likewise.
15890         * math/e_scalbl.c: Likewise.
15891         * math/k_cosl.c: Likewise.
15892         * math/k_sinl.c: Likewise.
15893         * math/k_tanl.c: Likewise.
15894         * math/s_cacoshf.c: Likewise.
15895         * math/s_catan.c: Likewise.
15896         * math/s_catanf.c: Likewise.
15897         * math/s_catanh.c: Likewise.
15898         * math/s_catanhf.c: Likewise.
15899         * math/s_catanhl.c: Likewise.
15900         * math/s_catanl.c: Likewise.
15901         * math/s_ccosh.c: Likewise.
15902         * math/s_ccoshf.c: Likewise.
15903         * math/s_ccoshl.c: Likewise.
15904         * math/s_cexp.c: Likewise.
15905         * math/s_cexpf.c: Likewise.
15906         * math/s_cexpl.c: Likewise.
15907         * math/s_clog.c: Likewise.
15908         * math/s_clog10.c: Likewise.
15909         * math/s_clog10f.c: Likewise.
15910         * math/s_clog10l.c: Likewise.
15911         * math/s_clogf.c: Likewise.
15912         * math/s_clogl.c: Likewise.
15913         * math/s_csin.c: Likewise.
15914         * math/s_csinf.c: Likewise.
15915         * math/s_csinh.c: Likewise.
15916         * math/s_csinhf.c: Likewise.
15917         * math/s_csinhl.c: Likewise.
15918         * math/s_csinl.c: Likewise.
15919         * math/s_csqrt.c: Likewise.
15920         * math/s_csqrtf.c: Likewise.
15921         * math/s_csqrtl.c: Likewise.
15922         * math/s_ctan.c: Likewise.
15923         * math/s_ctanf.c: Likewise.
15924         * math/s_ctanh.c: Likewise.
15925         * math/s_ctanhf.c: Likewise.
15926         * math/s_ctanhl.c: Likewise.
15927         * math/s_ctanl.c: Likewise.
15928         * math/s_ldexp.c: Likewise.
15929         * math/s_ldexpf.c: Likewise.
15930         * math/s_ldexpl.c: Likewise.
15931         * math/s_significand.c: Likewise.
15932         * math/s_significandf.c: Likewise.
15933         * math/s_significandl.c: Likewise.
15934         * math/w_acos.c: Likewise.
15935         * math/w_acosf.c: Likewise.
15936         * math/w_acosh.c: Likewise.
15937         * math/w_acoshf.c: Likewise.
15938         * math/w_acoshl.c: Likewise.
15939         * math/w_acosl.c: Likewise.
15940         * math/w_asin.c: Likewise.
15941         * math/w_asinf.c: Likewise.
15942         * math/w_asinl.c: Likewise.
15943         * math/w_atan2.c: Likewise.
15944         * math/w_atan2f.c: Likewise.
15945         * math/w_atan2l.c: Likewise.
15946         * math/w_atanh.c: Likewise.
15947         * math/w_atanhf.c: Likewise.
15948         * math/w_atanhl.c: Likewise.
15949         * math/w_cosh.c: Likewise.
15950         * math/w_coshf.c: Likewise.
15951         * math/w_coshl.c: Likewise.
15952         * math/w_dremf.c: Likewise.
15953         * math/w_exp10.c: Likewise.
15954         * math/w_exp10f.c: Likewise.
15955         * math/w_exp10l.c: Likewise.
15956         * math/w_exp2.c: Likewise.
15957         * math/w_exp2f.c: Likewise.
15958         * math/w_fmod.c: Likewise.
15959         * math/w_fmodf.c: Likewise.
15960         * math/w_fmodl.c: Likewise.
15961         * math/w_hypot.c: Likewise.
15962         * math/w_hypotf.c: Likewise.
15963         * math/w_hypotl.c: Likewise.
15964         * math/w_j0.c: Likewise.
15965         * math/w_j0f.c: Likewise.
15966         * math/w_j0l.c: Likewise.
15967         * math/w_j1.c: Likewise.
15968         * math/w_j1f.c: Likewise.
15969         * math/w_j1l.c: Likewise.
15970         * math/w_jn.c: Likewise.
15971         * math/w_jnf.c: Likewise.
15972         * math/w_jnl.c: Likewise.
15973         * math/w_lgamma.c: Likewise.
15974         * math/w_lgamma_r.c: Likewise.
15975         * math/w_lgammaf.c: Likewise.
15976         * math/w_lgammaf_r.c: Likewise.
15977         * math/w_lgammal.c: Likewise.
15978         * math/w_lgammal_r.c: Likewise.
15979         * math/w_log.c: Likewise.
15980         * math/w_log10.c: Likewise.
15981         * math/w_log10f.c: Likewise.
15982         * math/w_log10l.c: Likewise.
15983         * math/w_log2.c: Likewise.
15984         * math/w_log2f.c: Likewise.
15985         * math/w_log2l.c: Likewise.
15986         * math/w_logf.c: Likewise.
15987         * math/w_logl.c: Likewise.
15988         * math/w_pow.c: Likewise.
15989         * math/w_powf.c: Likewise.
15990         * math/w_powl.c: Likewise.
15991         * math/w_remainder.c: Likewise.
15992         * math/w_remainderf.c: Likewise.
15993         * math/w_remainderl.c: Likewise.
15994         * math/w_scalb.c: Likewise.
15995         * math/w_scalbf.c: Likewise.
15996         * math/w_scalbl.c: Likewise.
15997         * math/w_sinh.c: Likewise.
15998         * math/w_sinhf.c: Likewise.
15999         * math/w_sinhl.c: Likewise.
16000         * math/w_sqrt.c: Likewise.
16001         * math/w_sqrtf.c: Likewise.
16002         * math/w_sqrtl.c: Likewise.
16003         * math/w_tgamma.c: Likewise.
16004         * math/w_tgammaf.c: Likewise.
16005         * math/w_tgammal.c: Likewise.
16006
16007         * po/ja.po: Update from translation team.
16008
16009 2011-09-29  Andreas Jaeger  <aj@suse.de>
16010
16011         [BZ #13179]
16012         * sunrpc/netname.c (netname2host): Fix logic.
16013
16014         [BZ #6779]
16015         [BZ #6783]
16016         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
16017         correctly.
16018         * math/w_remainder.c (__remainder): Likewise.
16019         * math/w_remainderf.c (__remainderf): Likewise.
16020         * math/libm-test.inc (remainder_test): Add test cases.
16021
16022 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16023
16024         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
16025         sdiv_qrnnd.
16026
16027 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
16028
16029         * string/test-memcmp.c: Avoid unncessary #defines.
16030         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
16031
16032 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16033
16034         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
16035         Use new sse2 version for core i3 - i7 as it's faster
16036         than sse42 version.
16037         (bit_Prefer_PMINUB_for_stringop): New.
16038         * sysdeps/x86_64/rawmemchr.S: Update.
16039         Replace with faster SSE2 version.
16040         * sysdeps/x86_64/memrchr.S: New file.
16041         * sysdeps/x86_64/memchr.S: Update.
16042         Replace with faster SSE2 version.
16043
16044 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
16045
16046         * elf/dl-load.c (lose): Add cast to avoid warning.
16047
16048 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
16049
16050         * po/ca.po: Update from translation team.
16051
16052         * inet/getnetgrent_r.c: Hook up nscd.
16053         * nscd/Makefile (routines): Add nscd_netgroup.
16054         (nscd-modules): Add netgroupcache.
16055         (CFLAGS-netgroupcache.c): Define.
16056         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
16057         (cache_search): Add const to second parameter.
16058         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
16059         INNETGR.
16060         (dbs): Add netgrdb entry.
16061         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
16062         (verify_persistent_db): Handle netgrdb.
16063         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
16064         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
16065         GETFDNETGR.
16066         (netgroup_response_header): Define.
16067         (innetgroup_response_header): Define.
16068         (datahead): Add netgroup_response_header and innetgroup_response_header
16069         elements.
16070         * nscd/nscd.conf: Add entries for netgroup cache.
16071         * nscd/nscd.h (dbtype): Add netgrdb.
16072         (_PATH_NSCD_NETGROUP_DB): Define.
16073         (netgroup_iov_disabled): Declare.
16074         (xmalloc, xcalloc, xrealloc): Move declarations here.
16075         (cache_search): Adjust prototype.
16076         Add netgroup-related prototypes.
16077         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
16078         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
16079         (__nscd_innetgr): Declare.
16080         * nscd/selinux.c (perms): Use access_vector_t as element type and
16081         add netgroup-related initializers.
16082         * nscd/netgroupcache.c: New file.
16083         * nscd/nscd_netgroup.c: New file.
16084         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
16085         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
16086         For four parameters use innetgr.
16087         * nss/nss_files/files-init.c: Add definition and callback for netgr.
16088         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
16089         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
16090         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
16091
16092         * nscd/connections.c (register_traced_file): Don't register file
16093         for disabled databases.
16094
16095 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
16096
16097         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
16098
16099         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
16100         from tree and freeing node.
16101
16102 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
16103
16104         * nss/nsswitch.c (__nss_database_lookup): Handle
16105         nss_parse_service_list out of memory case.
16106
16107 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
16108
16109         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
16110         out of memory case.
16111
16112 2011-10-04  Andreas Schwab  <schwab@redhat.com>
16113
16114         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
16115         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
16116         pass it down.
16117         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
16118         elf_machine_rela, elf_machine_lazy_rel.
16119         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
16120         (ELF_DYNAMIC_DO_REL): Likewise.
16121         (ELF_DYNAMIC_DO_RELA): Likewise.
16122         (ELF_DYNAMIC_RELOCATE): Likewise.
16123         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
16124         to ELF_DYNAMIC_DO_REL.
16125         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
16126         (dl_main): In trace mode always set __RTLD_NOIFUNC.
16127         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
16128         elf_machine_rela.
16129         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
16130         skip_ifunc, don't call ifunc function if non-zero.
16131         (elf_machine_rela): Likewise.
16132         (elf_machine_lazy_rel): Likewise.
16133         (elf_machine_lazy_rela): Likewise.
16134         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
16135         (elf_machine_lazy_rel): Likewise.
16136         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
16137         Likewise.
16138         (elf_machine_lazy_rel): Likewise.
16139         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
16140         Likewise.
16141         (elf_machine_lazy_rel): Likewise.
16142         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
16143         (elf_machine_lazy_rel): Likewise.
16144         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
16145         (elf_machine_lazy_rel): Likewise.
16146         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
16147         (elf_machine_lazy_rel): Likewise.
16148         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
16149         (elf_machine_lazy_rel): Likewise.
16150         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
16151         (elf_machine_lazy_rel): Likewise.
16152         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
16153         (elf_machine_lazy_rel): Likewise.
16154
16155 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
16156
16157         * nss/nss_files/files-init.c (_nss_files_init): Use static
16158         initialization for all the *_traced_file variables.
16159
16160 2011-09-28  Andreas Schwab  <schwab@redhat.com>
16161
16162         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
16163
16164 2011-09-27  Roland McGrath  <roland@hack.frob.com>
16165
16166         [BZ #13226]
16167         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
16168
16169 2011-09-27  Andreas Schwab  <schwab@redhat.com>
16170
16171         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
16172         Reread the line before reparsing it.
16173
16174 2011-09-26  Andreas Schwab  <schwab@redhat.com>
16175
16176         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
16177
16178 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
16179             Maxim Kuvyrkov  <maxim@codesourcery.com>
16180             Joseph Myers  <joseph@codesourcery.com>
16181
16182         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
16183         if needed for __stack_chk_guard.
16184
16185 2011-09-19  Roland McGrath  <roland@hack.frob.com>
16186
16187         * sysdeps/posix/spawni.c (script_execute): Always define it.
16188         It will be optimized away if unused.
16189         (maybe_script_execute): New function.
16190         (__spawni): Call it.
16191
16192         * Makerules: Don't include tls.make.
16193         (config-tls): Always set to thread.
16194         * tls.make.c: File removed.
16195
16196 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
16197
16198         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
16199         * config.make.in (CPPFLAGS-config): New substituted variable.
16200
16201 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
16202
16203         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
16204
16205         [BZ #13192]
16206         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
16207         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
16208
16209 2011-09-15  Roland McGrath  <roland@hack.frob.com>
16210
16211         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
16212         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
16213         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
16214         (CALL_FAIL): Likewise.
16215         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
16216         (CALL_FAIL): Macro removed.
16217         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
16218
16219 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
16220
16221         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
16222         for __FINITE_MATH_ONLY__ == 1.
16223
16224 2011-09-15  Andreas Schwab  <schwab@redhat.com>
16225
16226         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
16227         __ieee754_sqrt instead of sqrt.
16228         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
16229         __ieee754_sqrtf instead of sqrtf.
16230         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
16231         __floorf instead of floorf.
16232         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
16233         __floorf, __truncf instead of floorf, truncf.
16234
16235 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
16236
16237         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
16238
16239         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
16240         __extern_always_inline.
16241         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
16242         32-bit.
16243
16244 2011-09-14  Andreas Schwab  <schwab@redhat.com>
16245
16246         * elf/rtld.c (dl_main): Also relocate in dependency order when
16247         doing symbol dependency testing.
16248
16249 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
16250
16251         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
16252         Always define `refsym'.
16253
16254 2011-09-13  Andreas Schwab  <schwab@redhat.com>
16255
16256         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
16257         (__FD_ELT): Renamed from __FDELT.
16258         * misc/bits/select2.h (__FD_ELT): Likewise.
16259         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
16260         __FD_MASK instead of __FDELT, __FDMASK.
16261         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
16262         Likewise.
16263         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
16264         Likewise.
16265
16266         * elf/Makefile (gen-ldd): Fix pattern.
16267
16268         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
16269         (init_tls): Likewise.
16270
16271 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
16272
16273         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
16274
16275 2011-09-12  Andreas Schwab  <schwab@redhat.com>
16276
16277         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
16278         `struct cmsghdr *' instead of `void *'.
16279         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
16280         Likewise.
16281
16282 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
16283
16284         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
16285         if non-absolute.
16286         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
16287         ldd_rewrite_script.
16288
16289 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
16290
16291         * configure.in: Remove --with-tls option.
16292         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
16293         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
16294         out in case it is missing.
16295         * sysdeps/ia64/elf/configure.in: Likewise.
16296         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
16297         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
16298         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
16299         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
16300         * sysdeps/sh/elf/configure.in: Likewise.
16301         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
16302         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
16303         * sysdeps/x86_64/elf/configure.in: Likewise.
16304         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
16305         * sysdeps/mach/hurd/tls.h: Likewise.
16306
16307         [BZ #13067]
16308         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
16309
16310         [BZ #13090]
16311         * configure.in: Fix use of AC_INIT.
16312
16313         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
16314
16315 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
16316
16317         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
16318         __set_errno.
16319         * malloc/hooks.c: Likewise.
16320
16321         [BZ #11929]
16322         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
16323         variables statically.
16324         (narenas): Initialize.
16325         (list_lock): Initialize.
16326         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
16327         initializtion of main_arena and list_lock.  Small cleanups.
16328         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
16329         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
16330         Add initializers to main_arena and mp_.
16331         (malloc_state): Remove pagesize member.  Change all users to use
16332         GLRO(dl_pagesize).
16333
16334         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
16335         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
16336         is always initialized.
16337
16338         * malloc/malloc.c: Removed unused configurations and dead code.
16339         * malloc/arena.c: Likewise.
16340         * malloc/hooks.c: Likewise.
16341         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
16342
16343         * include/tls.h: Removed.  USE___THREAD must always be defined.
16344         * bits/libc-tsd.h: Don't handle !USE___THREAD.
16345         * elf/dl-libc.c: Likewise.
16346         * elf/dl-tsd.c: Likewise.
16347         * include/errno.h: Likewise.
16348         * include/netdb.h: Likewise.
16349         * include/resolv.h: Likewise.
16350         * inet/herrno-loc.c: Likewise.
16351         * inet/herrno.c: Likewise.
16352         * malloc/arena.c: Likewise.
16353         * malloc/hooks.c: Likewise.
16354         * malloc/malloc.c: Likewise.
16355         * resolv/res-state.c: Likewise.
16356         * resolv/res_libc.c: Likewise.
16357         * sysdeps/i386/dl-machine.h: Likewise.
16358         * sysdeps/ia64/dl-machine.h: Likewise.
16359         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
16360         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
16361         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
16362         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
16363         * sysdeps/sh/dl-machine.h: Likewise.
16364         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
16365         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
16366         * sysdeps/unix/i386/sysdep.S: Likewise.
16367         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
16368         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
16369         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
16370         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
16371         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
16372         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
16373         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
16374         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
16375         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
16376         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
16377         * sysdeps/unix/x86_64/sysdep.S: Likewise.
16378         * sysdeps/x86_64/dl-machine.h: Likewise.
16379         * tls.make.c: Likewise.
16380
16381         * configure.in: Remove --with-__thread option.  Make tests for
16382         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
16383         tls_model attribute fail if no support is available.  Remove
16384         USE_IN_LIBIO.
16385         * Makeconfig: Adjust for dropped configure option.  All features are
16386         now mandatory.
16387         * Makerules: Likewise.
16388         * Versions.def: Likewise.
16389         * argp/argp-fmtstream.c: Likewise.
16390         * argp/argp-fmtstream.h: Likewise.
16391         * argp/argp-help.c: Likewise.
16392         * assert/assert.c: Likewise.
16393         * config.h.in: Likewise.
16394         * config.make.in: Likewise.
16395         * configure: Likewise.
16396         * configure.in: Likewise.
16397         * csu/Versions: Likewise.
16398         * csu/init.c: Likewise.
16399         * elf/tst-audit2.c: Likewise.
16400         * elf/tst-tls10.c: Likewise.
16401         * elf/tst-tls10.h: Likewise.
16402         * elf/tst-tls11.c: Likewise.
16403         * elf/tst-tls12.c: Likewise.
16404         * elf/tst-tls14.c: Likewise.
16405         * elf/tst-tlsmod11.c: Likewise.
16406         * elf/tst-tlsmod12.c: Likewise.
16407         * elf/tst-tlsmod13.c: Likewise.
16408         * elf/tst-tlsmod13a.c: Likewise.
16409         * elf/tst-tlsmod14a.c: Likewise.
16410         * elf/tst-tlsmod15b.c: Likewise.
16411         * elf/tst-tlsmod16a.c: Likewise.
16412         * elf/tst-tlsmod16b.c: Likewise.
16413         * elf/tst-tlsmod7.c: Likewise.
16414         * elf/tst-tlsmod8.c: Likewise.
16415         * elf/tst-tlsmod9.c: Likewise.
16416         * gmon/gmon.c: Likewise.
16417         * grp/fgetgrent_r.c: Likewise.
16418         * grp/putgrent.c: Likewise.
16419         * hurd/fopenport.c: Likewise.
16420         * include/libc-symbols.h: Likewise.
16421         * include/tls.h: Likewise.
16422         * intl/gettextP.h: Likewise.
16423         * intl/loadinfo.h: Likewise.
16424         * locale/global-locale.c: Likewise.
16425         * locale/localeinfo.h: Likewise.
16426         * mach/devstream.c: Likewise.
16427         * malloc/arena.c: Likewise.
16428         * malloc/set-freeres.c: Likewise.
16429         * misc/err.c: Likewise.
16430         * misc/getttyent.c: Likewise.
16431         * misc/mntent_r.c: Likewise.
16432         * posix/getopt.c: Likewise.
16433         * posix/wordexp.c: Likewise.
16434         * pwd/fgetpwent_r.c: Likewise.
16435         * resolv/Versions: Likewise.
16436         * resolv/res_hconf.c: Likewise.
16437         * shadow/fgetspent_r.c: Likewise.
16438         * shadow/putspent.c: Likewise.
16439         * stdio-common/printf_fphex.c: Likewise.
16440         * stdio-common/tmpfile.c: Likewise.
16441         * stdlib/abort.c: Likewise.
16442         * stdlib/fmtmsg.c: Likewise.
16443         * sunrpc/auth_unix.c: Likewise.
16444         * sunrpc/clnt_perr.c: Likewise.
16445         * sunrpc/clnt_tcp.c: Likewise.
16446         * sunrpc/clnt_udp.c: Likewise.
16447         * sunrpc/clnt_unix.c: Likewise.
16448         * sunrpc/openchild.c: Likewise.
16449         * sunrpc/svc_simple.c: Likewise.
16450         * sunrpc/svc_tcp.c: Likewise.
16451         * sunrpc/svc_udp.c: Likewise.
16452         * sunrpc/svc_unix.c: Likewise.
16453         * sunrpc/xdr.c: Likewise.
16454         * sunrpc/xdr_array.c: Likewise.
16455         * sunrpc/xdr_rec.c: Likewise.
16456         * sunrpc/xdr_ref.c: Likewise.
16457         * sunrpc/xdr_stdio.c: Likewise.
16458
16459 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
16460
16461         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
16462
16463 2011-07-03  Andreas Jaeger  <aj@suse.de>
16464
16465         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
16466         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
16467         regenerate with gen-libm-tests.pl.
16468
16469 2010-05-12  Petr Baudis  <pasky@suse.cz>
16470
16471         [BZ #11589]
16472         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
16473         around j0() zero points by switching to j1().
16474         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
16475         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
16476         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
16477         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
16478
16479 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
16480
16481         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
16482         instead of 0.
16483         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
16484         instead of 0.                              .
16485         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
16486         Patch in part by Pavel Roskin <proski@gnu.org>.
16487
16488         [BZ #13138]
16489         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
16490         realloc.
16491         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
16492         Free memory block if necessary.
16493
16494         [BZ #12847]
16495         * libio/genops.c (INTDEF): For string streams the _lock pointer can
16496         be NULL.  Don't lock in this case.
16497
16498 2011-09-09  Roland McGrath  <roland@hack.frob.com>
16499
16500         * elf/elf.h (ELFOSABI_GNU): New macro.
16501         (ELFOSABI_LINUX): Define to that.
16502
16503 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
16504
16505         * string/strncat.c (strncat): Undef the symbol in case it has been
16506         defined in bits/string.h.
16507
16508 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
16509
16510         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
16511
16512         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
16513         link map.
16514
16515 2011-08-17  Andreas Jaeger  <aj@suse.de>
16516
16517         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
16518
16519 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
16520             Ian Lance Taylor  <iant@google.com>
16521
16522         * math/libm-test.inc (lround_test): New testcase.
16523         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
16524
16525 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
16526
16527         * Makefile: Remove support for automatic cvs check-ins.
16528         * Makerules: Likewise.
16529         * config.make.in: Likewise.
16530         * configure.in: Likewise.
16531         * intl/Makefile: Likewise.
16532         * locale/Makefile: Likewise.
16533         * po/Makefile: Likewise.
16534         * posix/Makefile: Likewise.
16535         * sysdeps/gnu/Makefile: Likewise.
16536         * sysdeps/mach/hurd/Makefile: Likewise.
16537         * sysdeps/sparc/sparc32/Makefile: Likewise.
16538
16539         [BZ #13118]
16540         * posix/Makefile (bug-regex32-ENV): Define.
16541         Patch by John Stanley <jpsinthemix@verizon.net>.
16542
16543         * misc/Makefile (headers): Add bits/select2.h.
16544         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
16545         * misc/bits/select2.h: New file.
16546         * include/bits/select2.h: New file.
16547         * debug/Makefile (routines): Add fdelt_chk.
16548         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
16549         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
16550         FD_ISSET.
16551         * debug/fdelt_chk.c: New file.
16552
16553         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
16554         * wcsmbs/test-wmemcmp.c: Likewise.
16555         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
16556         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
16557
16558 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16559
16560         * string/Makefile (strop-tests): Add memcmp.
16561         * string/test-wmemcmp.c: New file.
16562         * string/test-memcmp.c: Add wmemcmp support.
16563
16564 2011-09-08  Roland McGrath  <roland@hack.frob.com>
16565
16566         [BZ #13153]
16567         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
16568         2011-07-19 change.
16569
16570         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
16571         garbage value in a __mach_port_mod_refs call in the cases of the
16572         task-self and thread-self ports.
16573
16574 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16575
16576         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
16577
16578 2011-09-08  Andreas Schwab  <schwab@redhat.com>
16579
16580         * elf/dl-load.c (lose): Check for non-null L.
16581
16582 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
16583
16584         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
16585
16586         * elf/dl-libc.c (dlerror_run): Pass back error code from
16587         dl_catch_error.
16588
16589         [BZ #13123]
16590         * elf/dl-load.c (lose): Free l_origin if it is valid.
16591
16592         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
16593         names.
16594         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
16595         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
16596         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
16597         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
16598         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
16599         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
16600
16601 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16602
16603         * sysdeps/powerpc/fpu/e_hypot.c: New file.
16604         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
16605         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
16606         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
16607         * sysdeps/powerpc/fpu/k_cosf.c: New file.
16608         * sysdeps/powerpc/fpu/k_sinf.c: New file.
16609         * sysdeps/powerpc/fpu/s_cosf.c: New file.
16610         * sysdeps/powerpc/fpu/s_sinf.c: New file.
16611         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
16612         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
16613
16614 2011-08-15  Alan Modra  <amodra@gmail.com>
16615
16616         [BZ #13092]
16617         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
16618         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
16619         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
16620         ppc_mcount to static-only-routines.
16621         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
16622         __mcount_internal.
16623         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
16624         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
16625
16626 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
16627
16628         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
16629         for finite and infinity parameters.
16630
16631 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
16632
16633         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
16634         and add nop instructions for throughput optimization.
16635         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
16636
16637 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
16638
16639         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
16640         aligned copy for power7 with vector-scalar instructions.
16641         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
16642
16643 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
16644
16645         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
16646         AVX check.
16647
16648 2011-09-07  Andreas Schwab  <schwab@redhat.com>
16649
16650         [BZ #13144]
16651         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
16652         last change.
16653
16654 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
16655
16656         * sysdeps/unix/sysv/linux/x86_64/init-first.c
16657         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
16658         syscall wrapper around clock_gettime in __vdso_clock_gettime.
16659         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
16660         clock_gettime.
16661
16662 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
16663
16664         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
16665         Forgot to demangle the pointer.
16666
16667         * sysdeps/i386/sysdep.h: Define atom_text_section.
16668         * sysdeps/x86_64/sysdep.h: Likewise.
16669         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
16670         section with atom_text_section.
16671         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
16672         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
16673         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
16674         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
16675         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
16676
16677         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
16678         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
16679         already be defined.  Change to take two parameters and don't assign
16680         result to variable.  Adjust all users.
16681         Define INTERNAL_GETTIME if not already defined.
16682         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
16683         call.
16684         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
16685         HAVE_CLOCK_GETTIME_VSYSCALL.
16686         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
16687
16688         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
16689         gettimeofday vsyscall, just use time.
16690
16691 2011-09-06  Andreas Schwab  <schwab@redhat.com>
16692
16693         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
16694         <errno.h>.
16695
16696 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
16697
16698         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
16699         syscall on x86-64.
16700         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
16701         syscall.
16702         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
16703         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
16704         syscall if possible.
16705
16706 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
16707
16708         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
16709         e_ident.  Don't pass to find_mapsXX.
16710         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
16711
16712 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16713
16714         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16715         strchr-sse2-no-bsf strrchr-sse2-no-bsf
16716         * sysdeps/x86_64/multiarch/strchr.S: Update.
16717         Check bit_slow_BSF bit.
16718         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
16719         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
16720         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
16721
16722 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
16723
16724         [BZ #13134]
16725         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
16726         before glibc 2.15.
16727         (tryshell): Define.
16728         (__spawni): Change last parameter to be flag.  Test
16729         SPAWN_XFLAGS_USE_PATH flag to use path or not.
16730         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
16731         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
16732         * posix/spawni.c: Likewise.
16733         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
16734         * posix/spawnp.c: Likewise.  Change normal version to use
16735         SPAWN_XFLAGS_USE_PATH.
16736         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
16737         SPAWN_XFLAGS_TRY_SHELL.
16738
16739         [BZ #13150]
16740         * posix/glob.h: Remove gcc 1.x support.
16741
16742         [BZ #13068]
16743         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
16744
16745 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16746
16747         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16748         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
16749         strrchr-sse2-bsf
16750         * sysdeps/i386/i686/multiarch/strchr.S: New file.
16751         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
16752         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
16753         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
16754         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
16755         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
16756
16757 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16758
16759         * sysdeps/x86_64/wcscmp.S: New file.
16760
16761         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
16762         wcscmp-c wcscmp-sse2
16763         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
16764         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
16765         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
16766         * wcsmbs/wcscmp.c: Allow renaming.
16767
16768 2011-09-05  David S. Miller  <davem@davemloft.net>
16769
16770         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
16771         stack slot, rather than the struct return pointer slot.
16772         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
16773         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
16774         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
16775         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
16776
16777 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
16778
16779         * po/ja.po: Update from translation team.
16780
16781         [BZ #13144]
16782         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
16783         kernel in 64-bit binaries.
16784
16785 2011-09-01  David S. Miller  <davem@davemloft.net>
16786
16787         * elf/elf.h (HWCAP_SPARC_*): Move to..
16788         * sysdeps/sparc/sysdep.h: this new file and add new values.
16789         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
16790         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
16791         _DL_HWCAP_COUNT to 24.
16792         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
16793         entries.
16794         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
16795         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
16796         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
16797         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
16798         instead of magic constants.
16799         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
16800
16801 2011-08-31  David S. Miller  <davem@davemloft.net>
16802
16803         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
16804         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
16805         Reimplement to do errno handling inline.
16806         (SYSCALL_ERROR_HANDLER): New macro.
16807         (__SYSCALL_STRING): Do not do errno handling in asm.
16808         (__CLONE_SYSCALL_STRING): Delete.
16809         (__INTERNAL_SYSCALL_STRING): Delete.
16810         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
16811         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
16812         (PSEUDO): Reimplement to do errno handling inline.
16813         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
16814         (SYSCALL_ERROR_HANDLER): New macro.
16815         (__SYSCALL_STRING): Do not do errno handling in asm.
16816         (__CLONE_SYSCALL_STRING): Delete.
16817         (__INTERNAL_SYSCALL_STRING): Delete.
16818         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
16819         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
16820         i386.
16821         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
16822         (inline_syscall*): Add 'err' argument.
16823         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
16824         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
16825         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
16826         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
16827
16828         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
16829         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
16830
16831 2011-08-30  Andreas Schwab  <schwab@redhat.com>
16832
16833         * elf/rtld.c (dl_main): Relocate objects in dependency order.
16834
16835 2011-08-29  Jiri Olsa <jolsa@redhat.com>
16836
16837         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
16838         directive.
16839
16840 2011-08-24  David S. Miller  <davem@davemloft.net>
16841
16842         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
16843
16844 2011-08-24  Andreas Schwab  <schwab@redhat.com>
16845
16846         * elf/Makefile: Add rules to build and run unload8 test.
16847         * elf/unload8.c: New file.
16848         * elf/unload8mod1.c: New file.
16849         * elf/unload8mod1x.c: New file.
16850         * elf/unload8mod2.c: New file.
16851         * elf/unload8mod3.c: New file.
16852
16853         * elf/dl-close.c (_dl_close_worker): Reset private search list if
16854         it wasn't used.
16855
16856 2011-08-23  David S. Miller  <davem@davemloft.net>
16857
16858         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
16859         subtract stack bias.
16860         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
16861         %sp not %fp in calculations.
16862         (_JMPBUF_UNWINDS_ADJ): Likewise.
16863
16864         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
16865         (aio_suspend): Call it to force an exception region around the
16866         AIO_MISC_WAIT() invocation.
16867
16868 2011-08-23  Andreas Schwab  <schwab@redhat.com>
16869
16870         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
16871         backslash.
16872
16873 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
16874
16875         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
16876         protection macro.
16877         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
16878         and <dl-machine.h>.
16879         (Elf64_FuncDesc): Remove.
16880
16881 2011-08-22  David S. Miller  <davem@davemloft.net>
16882
16883         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
16884         sigaltstack check, add missing cfi directives.
16885         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
16886         missing cfi directives, and sigaltstack handling.
16887
16888 2011-08-16  Andreas Schwab  <schwab@redhat.com>
16889
16890         [BZ #11724]
16891         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
16892         object is seen twice.
16893         * elf/dl-fini.c (_dl_sort_fini): Likewise.
16894
16895         * elf/Makefile (distribute): Add tst-initorder2.c.
16896         (tests): Add tst-initorder2.
16897         (modules-names): Add tst-initorder2a tst-initorder2b
16898         tst-initorder2c tst-initorder2d.  Add rules to build them.
16899         ($(objpfx)tst-initorder2.out): New rule.
16900         * elf/tst-initorder2.c: New file.
16901         * elf/tst-initorder2.exp: New file.
16902
16903 2011-08-22  Andreas Schwab  <schwab@redhat.com>
16904
16905         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
16906
16907         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
16908         dependencies back to end of function.
16909
16910         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
16911         $(elfobjdir)/ld.so.
16912
16913 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
16914
16915         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
16916         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
16917         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
16918         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
16919         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
16920         of __vdso_gettimeofday.
16921         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
16922         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
16923         attribute_hidden.
16924         (_libc_vdso_platform_setup): Remove initialization of
16925         __vdso_gettimeofday and __vdso_time.
16926
16927 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
16928
16929         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
16930         and fgetc_unlocked.
16931         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
16932         getc_unlocked.
16933
16934         * elf/dl-open.c (add_to_global): Report additions to the global scope
16935         for LD_DEBUG=scopes.
16936         (dl_open_worker): Also print scope of newly loaded dependencies.
16937         (_dl_show_scope): Indicate if there is no scope.
16938
16939         [BZ #13114]
16940         * stdio-common/Makefile (tests): Add bug24.
16941         * stdio-common/bug24.c: New file.
16942
16943 2011-08-19  Andreas Jaeger  <aj@suse.de>
16944
16945         [BZ #13114]
16946         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
16947         non-existant file when using close-on-exec mode.
16948
16949 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
16950
16951         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
16952         the very first instruction.
16953
16954         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
16955         the CFI state in the end.
16956         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
16957         inclusion of dl-trampoline.h.
16958         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
16959
16960 2011-08-19  Andreas Schwab  <schwab@redhat.com>
16961
16962         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
16963         expectations for long double.
16964
16965         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
16966         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
16967
16968 2011-08-14  David S. Miller  <davem@davemloft.net>
16969
16970         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
16971         artificual limit depends upon the system page size.
16972
16973 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
16974
16975         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
16976         * resolv/Makefile: Define CFLAGS-libresolv.
16977
16978 2011-08-17  Andreas Schwab  <schwab@redhat.com>
16979
16980         * nss/makedb.c (compute_tables): Make variables used in nested
16981         function static.
16982
16983 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
16984
16985         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
16986         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
16987         if buffer was too small.
16988
16989         * elf/pldd.c (main): Attach to all threads in the process.
16990         Rewrite /proc handling to use *at functions.
16991
16992 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
16993
16994         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
16995         specifies first scope to show.
16996         (dl_open_worker): Update callers.  Move printing scope of new
16997         object to before the relocation.
16998         * elf/rtld.c (dl_main): Update _dl_show_scope call.
16999         * sysdeps/generic/ldsodefs.h: Update declaration.
17000
17001         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
17002         string for the scope number.
17003
17004 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
17005
17006         * nscd/servicescache.c (cache_addserv): Make sure written is always
17007         initialized.
17008
17009 2011-08-14  Roland McGrath  <roland@hack.frob.com>
17010
17011         * sysdeps/i386/i486/bits/atomic.h
17012         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
17013         statement expression, so as to suppress "set but not used" warning.
17014         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
17015
17016         * string/strncat.c (STRNCAT): Use prototype definition.
17017
17018         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
17019         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
17020         -Iprograms here.
17021         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
17022         (localedef-modules): Add localedef.
17023         (locale-modules): Add locale.
17024
17025         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
17026         * elf/rtld.c (dl_main): Invert order of assignment in last change,
17027         to avoid a warning.
17028
17029 2011-08-14  David S. Miller  <davem@davemloft.net>
17030
17031         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
17032         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
17033
17034 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
17035
17036         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
17037         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
17038         * elf/rtld.c (dl_main): Set l_name of vDSO.
17039         Call _dl_show_scope when DL_DEBUG_SCOPES.
17040         (process_dl_debug): Recognize scopes flag and also set it for all.
17041         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
17042         Declare _dl_show_scope.
17043
17044         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
17045         (do_dlopen): Pass caller_dlopen to dl_open.
17046         (__libc_dlopen_mode): Initialize caller_dlopen.
17047
17048         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
17049         of libc.  Make tolower call locale-independent.  Optimize a bit by
17050         using isdigit instead of isalnum.
17051         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
17052
17053 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
17054
17055         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
17056         was a dependency or dynamically loaded.
17057
17058 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
17059
17060         * intl/l10nflist.c: Allow architecture-specific pop function.
17061         * sysdeps/x86_64/l10nflist.c: New file.
17062
17063         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
17064         classification.
17065
17066 2011-08-10  Andreas Schwab  <schwab@redhat.com>
17067
17068         * include/dirent.h: Add libc_hidden_proto for scandirat and
17069         scandirat64.  Don't declare __scandirat64.
17070         * dirent/scandirat.c: Add libc_hidden_def.
17071         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
17072         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
17073
17074 2011-08-10  David S. Miller  <davem@davemloft.net>
17075
17076         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
17077         enum.
17078         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
17079         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
17080         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
17081
17082 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
17083
17084         * Versions.def [libc]: Add GLIBC_2.15.
17085         * dirent/Makefile (routines): Add scandirat and scandirat64.
17086         * dirent/Versions [libc]: Export scandirat and scandirat64 for
17087         GLIBC_2.15.
17088         * dirent/dirent.h: Declare scandirat and scandirat64.
17089         * dirent/scandirat.c: New file.
17090         * dirent/scandirat64.c: New file.
17091         * sysdeps/wordsize-64/scandirat.c: New file.
17092         * sysdeps/wordsize-64/scandirat64.c: New file.
17093         * dirent/opendir.c: Define opendirat.
17094         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
17095         using scandirat.
17096         * dirent/scandir64.c: Adjust for scandir.c change.
17097         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
17098         __scandirat64, and __scandir_cancel_handler.
17099         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
17100         additional parameter and use openat instead of open (outside of ld.so).
17101         Add new __opendir as wrapper around __opendirat.
17102         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
17103         here without requiring old scandirat implementation.
17104
17105 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
17106
17107         * dirent/scandir.c (cancel_handler): Renamed to
17108         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
17109         defined.  Adjust users.
17110         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
17111         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
17112
17113 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
17114
17115         * string/test-string.h (IMPL): Use __STRING to expand name and then
17116         stringify it.
17117
17118         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
17119         of cleanups.
17120
17121 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17122
17123         * string/Makefile: Update.
17124         (strop-tests): Append strncat.
17125         * string/test-wcscmp.c: New file.
17126         New comprehensive test for wcscmp.
17127         * string/test-strcmp.c: Update.
17128         (WIDE): New define.
17129
17130 2011-07-22  Andreas Schwab  <schwab@redhat.com>
17131
17132         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
17133         line.
17134
17135 2011-07-26  Andreas Schwab  <schwab@redhat.com>
17136
17137         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
17138         encoding to ACE if AI_IDN.
17139
17140 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
17141
17142         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
17143         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
17144
17145 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
17146
17147         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
17148         Fix overflow bug in strncat.
17149         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
17150
17151         * string/test-strncat.c: Update.
17152         Add new tests for checking overflow bugs.
17153
17154 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
17155
17156         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
17157         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
17158         * sysdeps/i386/i686/multiarch/strcat.S: New file.
17159         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
17160         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
17161         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
17162         * sysdeps/i386/i686/multiarch/strncat.S: New file.
17163         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
17164         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
17165
17166         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
17167         (USE_AS_STRCAT): Define.
17168         Add strcat and strncat support.
17169         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
17170
17171 2011-07-25  Andreas Schwab  <schwab@redhat.com>
17172
17173         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
17174         __n bigger than INT_MAX+1.
17175         (__strncmp_g): Likewise.
17176
17177 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
17178
17179         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
17180         * libio/stido.h: Likewise.
17181
17182         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
17183         (AF_NFC): Define.
17184         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
17185         (AF_NFC): Define.
17186
17187         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
17188         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
17189         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
17190         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
17191         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
17192
17193         [BZ #13021]
17194         * scripts/test-installation.pl: Don't expect libnss_test1 to be
17195         installed.
17196
17197         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
17198         typo.
17199         (_dl_x86_64_save_sse): Likewise.
17200
17201 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
17202
17203         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
17204         OSXSAVE.
17205         (_dl_x86_64_save_sse): Likewise.
17206
17207         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
17208
17209         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
17210
17211 2011-07-21  Andreas Schwab  <schwab@redhat.com>
17212
17213         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
17214         change.
17215         (_dl_x86_64_save_sse): Use correct AVX check.
17216
17217 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17218
17219         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
17220         bug in strncpy/strncat.
17221         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
17222
17223 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
17224
17225         * string/tester.c (test_strcat): Add tests for different alignments
17226         of source and destination.
17227         (test_strncat): Likewise.
17228
17229 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
17230
17231         [BZ #12852]
17232         * posix/glob.c (glob): Check passed in values before using them in
17233         expressions to avoid some overflows.
17234         (glob_in_dir): Likewise.
17235
17236         [BZ #13007]
17237         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
17238         check for AVX enablement so that we don't crash with old kernels and
17239         new hardware.
17240         * elf/tst-audit4.c: Add same checks here.
17241         * elf/tst-audit6.c: Likewise.
17242
17243         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
17244
17245 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
17246
17247         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
17248
17249 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
17250
17251         * po/cs.po: Update from translation team.
17252         * po/bg.po: Likewise.
17253
17254 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
17255
17256         * misc/sys/cdefs.h: Add support for const attribute.
17257         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
17258         to gnu_dev_{major,minor,makedev} functions.
17259
17260 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
17261
17262         * intl/dcigettext.c (get_output_charset): Add missing bracket.
17263
17264 2011-07-20  Andreas Schwab  <schwab@redhat.com>
17265
17266         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
17267         strlen results.
17268
17269 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17270
17271         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
17272         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
17273         register in order to avoid conflicts with the soft frame pointer
17274         being held in r11 when necessary.
17275         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
17276         (INTERNAL_VSYSCALL_NCS): Likewise.
17277
17278 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
17279
17280         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
17281         * elf/dl-fini.c (_dl_fini): Adjust caller.
17282         * elf/dl-close.c (_dl_close_worker): Likewise.
17283         * sysdeps/generic/ldsodefs.h: Adjust declaration.
17284
17285 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
17286
17287         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
17288         "aux_cache->nlibs < 0".
17289
17290         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
17291         in the reload-count case.
17292
17293 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
17294
17295         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
17296         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
17297         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
17298         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
17299         * sysdeps/x86_64/multiarch/strcat.S: New file.
17300         * sysdeps/x86_64/multiarch/strncat.S: New file.
17301         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
17302         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
17303         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
17304         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
17305         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
17306         (USE_AS_STRCAT): Define.
17307         Add strcat and strncat support.
17308         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
17309         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
17310         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
17311         * string/strncat.c: Update.
17312         (USE_AS_STRNCAT): Define.
17313         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17314         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
17315         and i7.
17316         * sysdeps/x86_64/multiarch/init-arch.h
17317         (bit_Prefer_PMINUB_for_stringop): New.
17318         (index_Prefer_PMINUB_for_stringop): Likewise.
17319         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
17320         bit_Prefer_PMINUB_for_stringop.
17321
17322 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
17323
17324         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
17325         buffer64.
17326         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
17327         of casting of buffer.
17328         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
17329         buffer32 and buffer64.
17330         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
17331         writes instead of casting of buffer.
17332         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
17333         buffer32.
17334         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
17335         casting of buffer.
17336
17337 2011-07-19  Andreas Schwab  <schwab@redhat.com>
17338
17339         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
17340
17341 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
17342
17343         * nscd/nscd.c (termination_handler): Don't do anything for a database
17344         if it has not yet been initialized.
17345
17346 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
17347
17348         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
17349
17350 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
17351
17352         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
17353
17354 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
17355
17356         * po/nl.po: Update from translation team.
17357         * po/sv.po: Likewise.
17358
17359 2011-07-16  Roland McGrath  <roland@hack.frob.com>
17360
17361         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
17362         now disallowed by GCC.
17363
17364         * configure.in (use-default-link): Default to yes if a test -shared
17365         link meets our qualifications.
17366         * configure: Regenerated.
17367
17368         * config.make.in (output-format): New variable.
17369         * configure.in: Check for ld --print-output-format support.
17370         * configure: Regenerated.
17371         * Makerules ($(common-objpfx)format.lds)
17372         [$(output-format) != unknown]: Just use $(output-format),
17373         instead of the linker-script munging.
17374
17375 2011-07-14  Roland McGrath  <roland@hack.frob.com>
17376
17377         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
17378         of $(common-objpfx)shlib.lds.
17379         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
17380
17381         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
17382         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
17383
17384         * configure.in (-z relro check): Adjust test code to add a large
17385         writable data section after it.
17386         * configure: Regenerated.
17387
17388 2011-07-11  Roland McGrath  <roland@hack.frob.com>
17389
17390         * configure.in (-z relro check): Fix test code to make the variable
17391         truly const.
17392         * configure: Regenerated.
17393
17394 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
17395
17396         * nscd/nscd.h (struct traced_file): Define.
17397         (struct database_dyn): Remove inotify_descr, reset_res, and filename
17398         elements.  Add traced_files.
17399         (inotify_fd): Declare.
17400         (register_traced_file): Declare.
17401         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
17402         (inotify_fd): Export.
17403         (resolv_conf_descr): Remove.
17404         (nscd_init): Move inotify descriptor creation to main.
17405         Don't register files for notification here.
17406         (register_traced_file): New function.
17407         (invalidate_cache): Don't use reset_res to determine whether to call
17408         res_init, go through the list of registered files.
17409         (main_loop_poll): The inotify descriptors are now stored in the
17410         structures for the traced files.
17411         (main_loop_epoll): Likewise
17412         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
17413         to __nss_disable_nscd.
17414         * nscd/cache.c (prune_cache): There is no single inotify descriptor
17415         for a database anymore.  Check the records for all the registered
17416         files instead.
17417         * nss/Makefile (libnss_files-routines): Add files-init.
17418         (libnss_db-routines): Add db-init.
17419         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
17420         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
17421         * nss/nss_db/db-init.c: New file.
17422         * nss/nss_files/files-init.c: New file.
17423         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
17424         __nss_lookup_function.
17425         (__nss_lookup_function): Call nss_load_library.
17426         (nss_load_all_libraries): New function.
17427         (__nss_disable_nscd): Take parameter with callback function for files
17428         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
17429         used for the cached services.
17430         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
17431         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
17432         options for features to all the files in nscd.
17433
17434         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
17435
17436 2011-07-10  Roland McGrath  <roland@hack.frob.com>
17437
17438         * csu/elf-init.c (__libc_csu_init): Comment typo.
17439
17440 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
17441
17442         * po/pl.po: Update from translation team.
17443         * po/ja.po: Likewise.
17444         * po/ru.po: Likewise.
17445         * po/ko.po: Likewise.
17446         * po/fr.po: Likewise.
17447
17448 2011-07-09  Roland McGrath  <roland@hack.frob.com>
17449
17450         * configure.in (.ctors/.dtors header and trailer check):
17451         Use an empirical test on a built program.
17452         * configure: Regenerated.
17453
17454         * configure.in (-z relro check): Use an empirical test on a built DSO.
17455         Detect, but do not require, on ia64.
17456         * configure: Regenerated.
17457
17458         * configure.in (READELF): Find it with AC_CHECK_TOOL.
17459         Update tests that use readelf to use $READELF instead.
17460         * configure: Regenerated.
17461
17462 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
17463
17464         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
17465         if the result is not used.
17466
17467 2011-07-05  Andreas Jaeger  <aj@suse.de>
17468
17469         [BZ#9696]
17470         * stdlib/tst-strtod.c: Add testcase.
17471
17472 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
17473
17474         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
17475         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
17476         The latter has a higher limit.  Take additional parameter to pass to
17477         the new function.
17478         (__pathconf): Pass file to __statfs_link_max.
17479         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
17480         __statfs_link_max.
17481         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
17482         __statfs_link_max.
17483
17484         [BZ #12868]
17485         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
17486         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
17487         Handle Lustre.
17488         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
17489         (__statfs_filesize_max): Likewise.
17490         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
17491
17492 2011-07-05  Andreas Jaeger  <aj@suse.de>
17493
17494         * resolv/res_comp.c (dn_skipname): Remove unused variable.
17495
17496 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
17497
17498         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
17499         `status' variable.
17500         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
17501         Likewise.
17502
17503 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
17504
17505         * Makefile (strop-tests): Add strncat.
17506         * string/test-strncat.c: New file.
17507
17508 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
17509
17510         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
17511
17512 2011-06-21  Andreas Jaeger  <aj@suse.de>
17513
17514         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
17515         Copy rule from iconvdata/Makefile.
17516
17517 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
17518
17519         [BZ #12922]
17520         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
17521         but no long options are defined, just return 'W'.
17522
17523 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
17524
17525         [BZ #9696]
17526         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
17527
17528 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
17529
17530         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
17531         netgroups to read.
17532         (innetgr): Likewise.
17533
17534 2011-07-05  Roland McGrath  <roland@hack.frob.com>
17535
17536         * config.make.in (install_root): Default to $(DESTDIR).
17537
17538 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
17539
17540         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
17541
17542 2011-07-02  Roland McGrath  <roland@hack.frob.com>
17543
17544         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
17545
17546         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
17547         containing directory rather than embedding absolute directory names.
17548
17549         * scripts/check-local-headers.sh: Rewritten using awk.
17550         Match by word, not by line.  Print error messages for matches.
17551         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
17552
17553         * Makerules [shlib-lds-flags empty]:
17554         ($(common-objpfx)libc_pic.opts): New target.
17555         ($(common-objpfx)libc_pic.os.clean): New target.
17556         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
17557
17558         * config.make.in (OBJCOPY): New variable.
17559         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
17560         * configure: Regenerated.
17561
17562         * config.make.in (use-default-link): New variable.
17563         * configure.in (use_default_link): Grok --with-default-link to set it.
17564         * configure: Regenerated.
17565         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
17566         (shlib-lds, shlib-lds-flags): Define to empty.
17567
17568         * Makerules (shlib-lds): New variable.
17569         (shlib-lds-flags): New variable.
17570         (build-shlib, build-moduile, build-module-asneeded): Use it.
17571         ($(common-objpfx)libc.so): Use $(shlib-lds).
17572         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
17573         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
17574
17575         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
17576         DT_FLAGS/DT_FLAGS_1 with zero flags.
17577
17578         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
17579         linker script munging.
17580
17581 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
17582
17583         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
17584         as 128-bit value.
17585         * crypt/sha512.c (sha512_process_block): Perform total addition using
17586         128-bit if possible.
17587         (__sha512_finish_ctx): Likewise.
17588         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
17589         as 64-bit value.
17590         * crypt/sha256.c (SWAP64): Define.
17591         (sha256_process_block): Perform total addition using 64-bit if
17592         possible.
17593         (__sha256_finish_ctx): Likewise.
17594
17595 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
17596
17597         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
17598         * nscd/initgrcache.c (addinitgroupsX): Likewise.
17599         * nscd/hstcache.c (cache_addhst): Likewise.
17600         * nscd/grpcache.c (cache_addgr): Likewise.
17601         * nscd/aicache.c (addhstaiX): Likewise
17602         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
17603
17604 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
17605
17606         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
17607         * nscd/initgrcache.c (addinitgroupsX): Likewise.
17608         * nscd/hstcache.c (cache_addhst): Likewise.
17609         * nscd/grpcache.c (cache_addgr): Likewise.
17610         * nscd/aicache.c (addhstaiX): Likewise
17611
17612 2011-07-01  Andreas Schwab  <schwab@redhat.com>
17613
17614         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
17615         domain only when needed.
17616
17617 2011-06-30  Andreas Schwab  <schwab@redhat.com>
17618
17619         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
17620         is always restored.
17621
17622 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
17623
17624         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
17625         are re-adding the entry.
17626         * nscd/servicescache.c (cache_addserv): Likewise.
17627
17628 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
17629
17630         * sysdeps/generic/dl-irel.h: fix protection against multiple
17631         inclusions.
17632         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
17633
17634 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
17635
17636         [BZ #12935]
17637         * malloc/memusage.sh: Fix quoting in message.
17638         * debug/xtrace.sh: Likewise.
17639
17640         * configure.in: Remove support for --experimental-malloc option, make
17641         it the default.
17642         * config.make.in: Likewise.
17643         * malloc/Makefile: Likewise.
17644
17645 2011-06-27  Andreas Schwab  <schwab@redhat.com>
17646
17647         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
17648         two-byte characters.
17649
17650 2011-06-27  Roland McGrath  <roland@hack.frob.com>
17651
17652         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
17653         AC_CACHE_CHECK invocation.
17654         * configure: Regenerated.
17655
17656         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
17657
17658 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
17659
17660         [BZ #12350]
17661         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
17662         bit from old_res_options.
17663
17664         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
17665
17666         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
17667         value type for setfct.
17668
17669 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
17670
17671         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
17672         __gettimeofday instead of gettimeofday.
17673
17674 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
17675
17676         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
17677
17678 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
17679
17680         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
17681
17682         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
17683         info.
17684
17685 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
17686
17687         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
17688         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
17689         strcpy-sse2-unaligned strncpy-sse2-unaligned
17690         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
17691         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
17692         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
17693         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
17694         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
17695         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
17696         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
17697         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
17698         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
17699         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
17700         (STRCPY): Support SSE2 and SSSE3 versions.
17701
17702 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
17703
17704         [BZ #12874]
17705         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
17706         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
17707         kernels which artificially limit size of requests.
17708
17709 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
17710
17711         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
17712         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
17713         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
17714         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
17715         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
17716         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
17717         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
17718         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
17719         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
17720         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
17721         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
17722         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
17723         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
17724         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
17725         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
17726         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17727         Enable unaligned load optimization for Intel Core i3, i5 and i7
17728         processors.
17729         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
17730         Define.
17731         (index_Fast_Unaligned_Load): Define.
17732         (HAS_FAST_UNALIGNED_LOAD): Define.
17733
17734 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
17735
17736         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
17737
17738 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
17739
17740         [BZ #12907]
17741         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
17742         until it is clear that the information is realy needed.
17743         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
17744
17745 2011-06-22  Andreas Schwab  <schwab@redhat.com>
17746
17747         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
17748
17749 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
17750
17751         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
17752         /sys/devices/system/cpu/online if it is usable.
17753
17754         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
17755         reading the information from the /proc filesystem to once a second.
17756
17757 2011-06-21  Andreas Jaeger  <aj@suse.de>
17758
17759         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
17760         NULL after inclusion of kernel headers.
17761
17762 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
17763
17764         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
17765         calls to internal_setent.
17766
17767         [BZ #12885]
17768         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
17769         addresses using gethostbyname4_r ignore IPv4 addresses.
17770
17771         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
17772         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
17773
17774         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
17775
17776 2011-06-20  David S. Miller  <davem@davemloft.net>
17777
17778         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
17779         inclusions.
17780         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
17781
17782         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
17783         (elf_irel): Use it.
17784         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
17785         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
17786         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
17787         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
17788         * sysdeps/x86_64/dl-irel.h: Likewise.
17789
17790         * elf/dl-runtime.c: Use elf_ifunc_invoke.
17791         * elf/dl-sym.c: Likewise.
17792
17793 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
17794
17795         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
17796         need to dereference resplen2.
17797
17798 2011-06-14  Andreas Schwab  <schwab@redhat.com>
17799
17800         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
17801
17802 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
17803
17804         * Makeconfig: Define vardbdir and inst_vardbdir.
17805         * nss/Makefile: Add rules to install db-Makefile.
17806
17807         * nss/nss_db/db-XXX.c: Cleanup.
17808
17809         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
17810         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
17811         GLIBC_PRIVATE.
17812         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
17813         * nss/makedb.c: Implement -g option to specify that value strings
17814         are generated and should not be added to table iterated over for
17815         get*ent calls.
17816         * nss/nss_db/db-initgroups.c: New file.
17817
17818         * nss/getent.c: Add support for initgroups lookups through getgrouplist
17819         interface.
17820
17821         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
17822         (internal_getgrouplist): Adjust to name change.
17823         Update use_initgroups_entry if this is not the first call.
17824         * nss/databases.def: Add initgroups entry.
17825
17826         * nss/makedb.c (compute_tables): Check result of multiple hash table
17827         sizes to minimize maximum chain length.
17828
17829 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
17830
17831         * Versions.def: Add entry for libnss_db.
17832         * shlib-versions: Likewise.
17833         * nss/Makefile: Add rules to build libnss_db.
17834         * nss/Versions: Add libnss_db information.  Organize libnss_files
17835         entries better.
17836         * nss/db-Makefile: Add gshadow support.  Change rules for the new
17837         makedb progra.  Some minor improvements to generate smaller files.
17838         * nss/nss_db/nss_db.h: Move NSS database header data structures to
17839         here from...
17840         * nss/makedb.c: ...here.
17841         Improve database format to be smaller and require less memory at
17842         runtime.
17843         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
17844         db anymore.
17845         * nss/nss_db/db-netgrp.c: Likewise.
17846         * nss/nss_db/db-open.c: Likewise.
17847         * nss/nss_files/flies-XXX.x: Adjust comments.
17848         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
17849         * nss/nss_files/files-grp.c: Likewise.
17850         * nss/nss_files/files-hosts.c: Likewise.
17851         * nss/nss_files/files-network.c: Likewise.
17852         * nss/nss_files/files-proto.c: Likewise.
17853         * nss/nss_files/files-pwd.c: Likewise.
17854         * nss/nss_files/files-rpc.c: Likewise.
17855         * nss/nss_files/files-service.c: Likewise.
17856         * nss/nss_files/files-sgrp.c: Likewise.
17857         * nss/nss_files/files-spwd.c: Likewise.
17858         * nss/nss_db/db-alias.c: Removed.
17859         * nss/nss_db/dummy-db.h: Removed.
17860
17861 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
17862
17863         * nss/makedb.c: Rewritten to not use database library.
17864         * nss/Makefile: Update to build new makedb program.
17865
17866 2011-06-14  Andreas Jaeger  <aj@suse.de>
17867
17868         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
17869         memset declaration.
17870
17871 2011-06-10  Andreas Schwab  <schwab@redhat.com>
17872
17873         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
17874         tmpbuf.
17875
17876 2011-06-10  Roland McGrath  <roland@hack.frob.com>
17877
17878         * Makerules (shlib.lds): Fail if the linker script comes out empty.
17879         * elf/Makefile ($(objpfx)ld.so): Likewise.
17880
17881         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
17882         Don't list ld.so twice in dependencies.
17883
17884         * posix/bug-regex31.c: Include <stdlib.h>.
17885
17886         * nscd/hstcache.c (cache_addhst): Remove unused variable.
17887
17888         * nis/nss_compat/compat-spwd.c
17889         (getspent_next_nss_netgr): Remove unused variable.
17890         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
17891
17892         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
17893         nonmembers" output to use the right array.
17894
17895         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
17896
17897         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
17898
17899         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
17900         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
17901         * catgets/gencat.c (read_input_file): Likewise.
17902         * locale/programs/locarchive.c (enlarge_archive): Likewise.
17903
17904         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
17905         variable definition inside #if's controlling its use.
17906
17907         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
17908
17909         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
17910
17911         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
17912
17913         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
17914         unreachable code.
17915
17916         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
17917
17918         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
17919         * configure: Regenerated.
17920
17921         * Makerules: Revert last change.
17922         * elf/Makefile: Likewise.
17923
17924 2011-06-09  Roland McGrath  <roland@hack.frob.com>
17925
17926         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
17927         * elf/Makefile ($(objpfx)librtld.os): Likewise.
17928         (reloc-link): Likewise.
17929
17930 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
17931
17932         * elf/Makefile: Add rules to build pldd.
17933         * elf/pldd.c: New file.
17934         * elf/pldd-xx.c: New file.
17935
17936 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
17937
17938         * version.h: Update for 2.15 development version.
17939
17940 2011-06-07  David S. Miller  <davem@davemloft.net>
17941
17942         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
17943         ifuncs.
17944         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
17945         elf_machine_lazy_rel): Likewise.
17946         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
17947         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
17948         elf_machine_lazy_rel): Likewise.
17949         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
17950         dl_hwcap via passed in argument.
17951         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
17952         Likewise.
17953
17954 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17955
17956         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
17957
17958 2011-06-06  Roland McGrath  <roland@hack.frob.com>
17959
17960         [BZ #12849]
17961         * manual/fdl-1.1.texi: New file, verbatim from:
17962         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
17963         * manual/lgpl-2.1.texi: New file, verbatim from:
17964         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
17965         * manual/Makefile (licenses): New variable, list those new file names.
17966         (texis): Use it.
17967         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
17968
17969         * manual/fdl.texi: File removed.
17970         * manual/lesser.texi: File removed.
17971         * manual/libc.texinfo (Copying, Documentation License):
17972         Use new @include file names, put @appendix directive before @include.
17973
17974 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
17975
17976         [BZ #12841]
17977         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
17978         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
17979         (mq_open): Add __NTH.
17980
17981 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
17982
17983         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17984         Assume Intel Core i3/i5/i7 processor if AVX is available.
17985
17986 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
17987
17988         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
17989         typo.
17990
17991 2011-05-31  Andreas Schwab  <schwab@redhat.com>
17992
17993         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
17994         memory.  Use alloca_account.  Fix memory leak when retrying.
17995
17996 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
17997
17998         * version.h (RELEASE): Bump for 2.14 release.
17999         * include/features.h (__GLIBC_MINOR__): Bump to 14.
18000
18001         * config.make.in (RANLIB): Remove entry.
18002
18003 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
18004
18005         * po/Makefile (po-sed-cmd): Add ksh to extensions.
18006         (libc.pot): Work around missing support for .ksh extension in xgettext.
18007
18008         [BZ #12684]
18009         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
18010         if both request failed.
18011         (send_dg): In case of server errors clear resplen or *resplen2.
18012
18013         [BZ #12454]
18014         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
18015         when there are multiple maps.
18016         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
18017         (_dl_fini): Remove test here.
18018
18019         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
18020
18021 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
18022
18023         [BZ #12350]
18024         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
18025         bit from old_res_options.
18026         (gaih_inet): Likewise.
18027
18028         [BZ #11099]
18029         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
18030         as signed.
18031
18032         * resolv/res_init.c (res_setoptions): Make the code more compact.
18033
18034         [BZ #11558]
18035         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
18036         set RES_USEVC.
18037
18038         [BZ #11634]
18039         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
18040
18041         * malloc/malloc.h: Mark malloc hook variables as deprecated.
18042
18043         [BZ #11781]
18044         * malloc/malloc.h: Declare malloc hook variables as volatile.
18045
18046         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
18047         in last patch.
18048
18049         [BZ #11799]
18050         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
18051         raise in the comment.
18052         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
18053         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
18054         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
18055
18056 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
18057
18058         [BZ #12811]
18059         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
18060         grow the buffers more if it already has to be sufficient.
18061         (build_wcs_upper_buffer): Likewise.
18062         * posix/regexec.c (check_matching): Likewise.
18063         (clean_state_log_if_needed): Likewise.
18064         (extend_buffers): Don't enlarge buffers beyond size of the input
18065         buffer.
18066         Patches mostly by Emil Wojak <emil@wojak.eu>.
18067         * posix/bug-regex32.c: New file.
18068         * posix/Makefile (tests): Add bug-regex32.
18069
18070         * locale/findlocale.c (_nl_find_locale): Return right away if
18071         _nl_explode_name failed.
18072         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
18073
18074         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
18075
18076         * debug/xtrace.sh: Unify messages.
18077         * malloc/memusage.sh: Likewise.
18078
18079         [BZ #12813]
18080         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
18081         time symbol from vDSO.  Substitute with vsyscall if not available.
18082         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
18083         __vdso_time.
18084
18085         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
18086         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
18087         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
18088         Add sendmmsg and internal_sendmmsg.
18089         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
18090         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
18091         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
18092
18093         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
18094         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
18095         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
18096
18097 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
18098
18099         [BZ #12813]
18100         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
18101         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
18102         available.
18103         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
18104         __vdso_getcpu.
18105
18106         [BZ #12814]
18107         * iconvdata/Makefile (tests): Add bug-iconv9.
18108         * iconvdata/bug-iconv9.c: New file.
18109
18110 2011-05-27  Andreas Schwab  <schwab@redhat.com>
18111
18112         [BZ #12814]
18113         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
18114
18115 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
18116
18117         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
18118         (struct user_regs_struct): Change intcs field back to cs.
18119
18120 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
18121
18122         * po/ja.po: Update from translation team.
18123
18124 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
18125
18126         [BZ #12795]
18127         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
18128         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
18129
18130 2011-05-20  Andreas Schwab  <schwab@redhat.com>
18131
18132         * stdlib/longlong.h: Update from GCC.
18133
18134 2011-05-23  Andreas Schwab  <schwab@redhat.com>
18135
18136         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
18137         parameter name.
18138         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
18139         Add parameter name.
18140         (__sysconf): Pass it down.
18141
18142 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
18143
18144         [BZ #12671]
18145         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
18146         some situations.
18147         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
18148         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
18149         add in in __libc_use_alloca calls.  Adjust callers.
18150         (glob): Use malloc in some situations.
18151
18152         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
18153         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
18154         pltexit.
18155
18156 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
18157
18158         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
18159         and CLOCK_BOOTTIME_ALARM.
18160
18161         [BZ #12782]
18162         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
18163         is returned.
18164
18165         * string/_strerror.c (__strerror_r): Print negative errors as signed
18166         numbers.
18167
18168         [BZ #12777]
18169         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
18170         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
18171         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
18172
18173         * configure.in: Fix typo in redirection and correct removal of test
18174         files in two cases.
18175
18176         [BZ #12788]
18177         * locale/setlocale.c (new_composite_name): Fix test to check for
18178         identical name of all categories.
18179
18180         [BZ #12792]
18181         * libio/filedoalloc.c (local_isatty): New function.
18182         (_IO_file_doallocate): Use local_isatty.
18183         * stdio-common/perror.c (perror): In case a new stream is used
18184         forward the stream error.
18185         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
18186         error flag.
18187
18188 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
18189
18190         [BZ #11869]
18191         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
18192         alloca.
18193         * include/alloca.h (extend_alloca_account): Define.
18194
18195         [BZ #11857]
18196         * posix/regex.h: Fix comments with documentation of user-accessible
18197         fields after compilation and describe correct free'ing of pattern
18198         after re_compile_pattern.
18199         Patch by Reuben Thomas <rrt@sc3d.org>.
18200
18201 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
18202
18203         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
18204         and -mno-altivec to prevent the compiler from using Altivec and/or
18205         VSX instructions when the corresponding registers are not available.
18206
18207 2011-05-19  Andreas Schwab  <schwab@redhat.com>
18208
18209         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
18210
18211 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
18212
18213         * libio/freopen.c (freopen): Use __dup2, not dup2.
18214         * libio/freopen64.c (freopen64): Likewise.
18215
18216 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
18217
18218         [BZ #12775]
18219         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
18220         * math/Makefile (tests): Add test-powl.
18221         (CFLAGS-test-powl.c): Define.
18222         * math/test-powl.c: New file.
18223
18224 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
18225
18226         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
18227
18228 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
18229
18230         [BZ #11837]
18231         * iconvdata/gb18030.c: Update to GB18020-2005.
18232
18233 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
18234
18235         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
18236         RE_SYNTAX_POSIX_AWK): Update to match recent development.
18237         Patch by Aharon Robbins <arnold@skeeve.com>.
18238
18239         [BZ #11892]
18240         * stdlib/putenv.c (putenv): Don't always create copy of the variable
18241         on the stack.
18242
18243         [BZ #11895]
18244         * misc/pselect.c (__pselect): Handle timeout value errors hidden
18245         through underflows.
18246
18247         [BZ #12766]
18248         * misc/error.c (error_at_line): Ensure file_name and old_file_name
18249         point to strings before performing equality test for error_one_per_line
18250         mode.
18251
18252         [BZ #11697]
18253         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
18254
18255         [BZ #11820]
18256         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
18257         (struct user_fpregs_struct): Avoid __uint*_t types.
18258
18259         [BZ #6420]
18260         * malloc/mtrace.c (tr_where): Add additional parameter to point to
18261         symbol info.  Use it instead of calling _dl_addr locally.
18262         (lock_and_info): New function.
18263         (tr_freehook): Call lock_and_info and pass symbol info as additional
18264         parameter to tr_where.
18265         (tr_mallochook): Likewise.
18266         (tr_reallochook): Likewise.
18267         (tr_memalignhook): Likewise.
18268
18269         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
18270         used and couldn't be at all thread-safe.
18271
18272 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
18273
18274         * libio/freopen.c (freopen): Don't close old file descriptor
18275         before the new one is opened.  Instead dup the new file descriptor
18276         to the old one after the new stream is created.
18277         * libio/freopen64.c (freopen64): Likewise.
18278         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
18279         * libio/fileops.c (_IO_new_file_close_it): Handle new
18280         _IO_FLAGS2_NOCLOSE flag.
18281         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
18282         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
18283         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
18284         _IO_FLAGS2_NOCLOSE flag.
18285         * include/unistd.h: Add hidden_proto for dup3.
18286         Define __have_dup3.
18287         * io/dup3.c: Define hidden symbol.
18288         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
18289
18290         [BZ #7101]
18291         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
18292         when an incomplete long option is used.
18293         * posix/tst-getopt_long1.c: New file.
18294         * posix/Makefile (tests): Add tst-getopt_long1.
18295
18296         [BZ #10138]
18297         * scripts/config.guess: Update from autoconf-2.68.
18298         * scripts/config.sub: Likewise.
18299
18300         [BZ #10157]
18301         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
18302         tests into ...
18303         (has_cpuclock): ...this.  New function.
18304         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
18305         macro here based on has_cpuclock code.
18306
18307         [BZ #10149]
18308         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
18309         First byte (not low byte) is now always NUL.
18310         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
18311
18312         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
18313         Use non-cancelable interfaces.
18314
18315         [BZ #9809]
18316         * locale/iso-639.def: Add entry for Sorani.
18317
18318         [BZ #11901]
18319         * include/stdlib.h: Move include protection to the right place.
18320         Define abort_msg_s.  Declare __abort_msg with it.
18321         * stdlib/abort.c (__abort_msg): Adjust type.
18322         * assert/assert.c (__assert_fail_base): New function.  Majority
18323         of code from __assert_fail.  Allocate memory for __abort_msg with
18324         mmap.
18325         (__assert_fail): Now call __assert_fail_base.
18326         * assert/assert-perr.c: Remove bulk of implementation.  Use
18327         __assert_fail_base.
18328         * include/assert.hL Declare __assert_fail_base.
18329         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
18330         mmap.
18331         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
18332
18333 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
18334
18335         [BZ #11952]
18336         [BZ #12453]
18337         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
18338         until all modules are registered in the DTV.
18339         * elf/Makefile: Add rules to build and run tst-tls19.
18340         * elf/tst-tls19.c: New file.
18341         * elf/tst-tls19mod1.c: New file.
18342         * elf/tst-tls19mod2.c: New file.
18343         * elf/tst-tls19mod3.c: New file.
18344         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
18345
18346         [BZ #12083]
18347         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
18348         correctly.
18349
18350         [BZ #12601]
18351         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
18352         two-byte sequence errors.
18353         * iconvdata/Makefile (tests): Add bug-iconv8.
18354         * iconvdata/bug-iconv8.c: New file.
18355
18356         [BZ #12626]
18357         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
18358         buf2 definition.
18359
18360         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
18361
18362         [BZ #12432]
18363         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
18364         (dummy_getcfa): New function.
18365         (init): Get _Unwind_GetCFA address, use dummy if not found.
18366         (backtrace_helper): In recursion check, also check whether CFA changes.
18367         (__backtrace): Completely initialize arg.
18368
18369         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
18370         storing incomplete byte sequence in state object.  Avoid testing for
18371         guaranteed too small input if we know there is enough data available.
18372
18373 2011-05-11  Andreas Schwab  <schwab@redhat.com>
18374
18375         * Makeconfig (+link-pie): Indent.
18376         * Rules (binaries-pie): Define if $(have-fpie) and
18377         $(build-shared).
18378         (binaries-shared): Also filter out $(binaries-pie).
18379         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
18380         * nscd/Makefile (others-pie): Add nscd.
18381         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
18382         ($(objpfx)nscd): Remove command override.
18383         * login/Makefile (others-pie): Add pt_chown.
18384         ($(objpfx)pt_chown): Remove command override.
18385         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
18386         remove command overrides.
18387
18388 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
18389
18390         * libio/tst_putwc.c: Fix error messages.
18391
18392         [BZ #12724]
18393         * libio/fileops.c (_IO_new_file_close_it): Always flush when
18394         currently writing and seek to current position when not.
18395         * libio/Makefile (tests): Add bug-fclose1.
18396         * libio/bug-fclose1.c: New file.
18397
18398 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
18399
18400         [BZ #12511]
18401         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
18402         don't set DF_1_NODELETE here.
18403         (do_lookup_x): When entering new entry test for copy relocation
18404         and if necessary set DF_1_NODELETE flag.
18405         * elf/tst-unique4.cc: New file.
18406         * elf/tst-unique4.h: New file.
18407         * elf/tst-unique4lib.cc: New file.
18408         * elf/Makefile: Add rules to build and run tst-unique4.
18409         Patch by Piotr Bury <pbury@goahead.com>.
18410
18411 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
18412
18413         [BZ #12052]
18414         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
18415
18416         [BZ #12625]
18417         * misc/mntent_r.c (addmntent): Flush the stream after the output
18418
18419         [BZ #12393]
18420         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
18421         (is_trusted_path_normalize): Skip initial colon.  Append slash
18422         to empty buffer.  Duplicate is_trusted_path code but allow
18423         constructed patch to be prefix.
18424         (is_dst): Allow $ORIGIN followed by /.
18425         (_dl_dst_substitute): Correct clearing of check_for_trusted.
18426         Correct testing of result of is_trusted_path_normalize
18427         (decompose_rpath): Fix warning.
18428
18429 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
18430
18431         [BZ #11257]
18432         * grp/initgroups.c (internal_getgrouplist): When we found the service
18433         list through the initgroups entry in nsswitch.conf do not always
18434         continue on a successful lookup.  Don't always use the
18435         __nss_group_database value if it is set.
18436         * nss/nsswitch.conf (initgroups): Change action for successful db
18437         lookup to continue for compatibility.
18438
18439 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
18440
18441         [BZ #11532]
18442         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
18443         and CP774 modules.
18444         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
18445         and CP774 modules.
18446         * iconvdata/tst-tables.sh: Likewise.
18447         * iconvdata/cp770.c: New file.
18448         * iconvdata/cp771.c: New file.
18449         * iconvdata/cp772.c: New file.
18450         * iconvdata/cp773.c: New file.
18451         * iconvdata/cp774.c: New file.
18452         * iconvdata/testdata/CP770: New file.
18453         * iconvdata/testdata/CP770..UTF8: New file.
18454         * iconvdata/testdata/CP771: New file.
18455         * iconvdata/testdata/CP771..UTF8: New file.
18456         * iconvdata/testdata/CP772: New file.
18457         * iconvdata/testdata/CP772..UTF8: New file.
18458         * iconvdata/testdata/CP773: New file.
18459         * iconvdata/testdata/CP773..UTF8: New file.
18460         * iconvdata/testdata/CP774: New file.
18461         * iconvdata/testdata/CP774..UTF8: New file.
18462
18463         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
18464         END CHARMAP line.
18465         * iconvdata/gen-8bit-gap.sh: Likewise.
18466         * iconvdata/gen-8bit.sh: Likewise.
18467
18468         * locale/iso-639.def: Add ary entry.
18469
18470         [BZ #11258]
18471         * locale/C-translit.h.in: Add U20A1 transliteration.
18472
18473         [BZ #12178]
18474         * locale/iso-639.def: Add wae entry.
18475         Patch by Kevin Bortis <bortis@translate-wae.ch>.
18476
18477         [BZ #12545]
18478         * locale/programs/localedef.c (construct_output_path): Use ssize_t
18479         for n.
18480
18481         [BZ #12711]
18482         * locale/C-translit.h.in: Add entry for U20B9.
18483         Patch by pravin.d.s@gmail.com.
18484
18485 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
18486
18487         [BZ #12713]
18488         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
18489         ENAMETOOLONG use generic getcwd.
18490         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
18491         in rtld.  Use *stat64.
18492         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
18493         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
18494         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
18495         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
18496         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
18497         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
18498         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
18499         __fstatat64 macros.
18500         * include/dirent.h: Add libc_hidden_proto for rewinddir.
18501         * dirent/rewinddir.c: Add libc_hidden_def.
18502         * sysdeps/mach/hurd/rewinddir.c: Likewise.
18503         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
18504
18505         * include/dirent.h (__alloc_dir): Add flags parameter.
18506         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
18507         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
18508         __alloc_dir.
18509         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
18510         from fdopendir if O_CLOEXEC is already set.
18511
18512 2011-03-15  Alan Modra  <amodra@gmail.com>
18513
18514         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
18515         l_tls_firstbyte_offset non-zero.  Save padding offset in
18516         l_tls_firstbyte_offset for later use.
18517         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
18518         freeing static tls block.
18519
18520 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
18521
18522         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
18523         where #ifdef was intended.  The intent is to prevent ARG_MAX from
18524         being defined by the kernel headers.
18525
18526 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
18527
18528         [BZ #12734]
18529         * resolv/resolv.h: Define RES_NOTLDQUERY.
18530         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
18531         no-tld-query and set RES_NOTLDQUERY.
18532         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
18533         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
18534         modern BIND to search name as TLD unless forbidden.
18535
18536 2011-05-07  Petr Baudis  <pasky@suse.cz>
18537             Ulrich Drepper  <drepper@gmail.com>
18538
18539         [BZ #12393]
18540         * elf/dl-load.c (fillin_rpath): Move trusted path check...
18541         (is_trusted_path): ...to here.
18542         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
18543         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
18544         using is_trusted_path_normalize() in setuid scripts.
18545
18546 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
18547
18548         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
18549         __BEGIN/__END_DECLS.
18550
18551 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
18552
18553         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
18554         NSS_STATUS_NOTFOUND if no record was found.
18555
18556 2011-05-05  Andreas Schwab  <schwab@redhat.com>
18557
18558         * sunrpc/Makefile (headers): Add rpc/netdb.h.
18559         (headers-not-in-tirpc): Remove rpc/netdb.h
18560         * resolv/netdb.h: Revert last change.
18561
18562 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
18563
18564         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
18565         circular dependency between libgcc.a and libc.a.
18566
18567 2011-05-05  Andreas Schwab  <schwab@redhat.com>
18568
18569         * resolv/netdb.h: Don't include <rpc/netdb.h>.
18570         * nis/Makefile: Don't install rpcsvc/*.
18571         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
18572         instead of <rpc/types.h>.
18573         (MAXHOSTNAMELEN): Define.
18574
18575 2011-05-03  Andreas Schwab  <schwab@redhat.com>
18576
18577         * elf/ldconfig.c (add_dir): Don't crash on empty path.
18578
18579 2011-04-28  Maciej Babinski  <mbabinski@google.com>
18580
18581         [BZ #12714]
18582         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
18583         gethostbyname4_r when IPv6 results are possible.
18584
18585 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
18586
18587         [BZ #12723]
18588         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
18589         _PC_PIPE_BUF handling.
18590
18591 2011-04-30  Bruno Haible  <bruno@clisp.org>
18592
18593         [BZ #12717]
18594         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
18595         * resolv/netdb.h (getnameinfo): Change type of flags parameter
18596         to 'int'.
18597         * inet/getnameinfo.c (getnameinfo): Likewise.
18598
18599 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
18600
18601         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
18602         to groups setting in database lookup.
18603         * nss/nsswitch.conf: Add initgroups entry.
18604
18605 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
18606
18607         [BZ #12685]
18608         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
18609         mode string.
18610         Patch by Eric Blake <eblake@redhat.com>.
18611
18612 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
18613
18614         * sunrpc/Makefile (need-export-routines): Add svc_run.
18615         (routines): Remove svc_run.
18616         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
18617         * sunrpc/clnt_perr.c (clnt_perrno): Export.
18618         * sunrpc/svc_run.c (svc_run): Likewise.
18619         * sunrpc/svc_udp.c (svcudp_create): Likewise.
18620
18621 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
18622
18623         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
18624         problem in reallocation in last patch.
18625
18626 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
18627
18628         * sunrpc/Makefile: Move inclusion of Rules.
18629
18630 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
18631
18632         * nss/nss_files/files-initgroups.c: New file.
18633         * nss/Makefile (libnss_files-routines): Add files-initgroups.
18634         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
18635         _nss_files_initgroups_dyn.
18636
18637 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
18638
18639         * elf/elf.h (R_ARM_IRELATIVE): Define.
18640
18641 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
18642
18643         * po/ru.po: Update from translation team.
18644
18645 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
18646
18647         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
18648         dependencies.
18649
18650 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
18651
18652         [BZ #12653]
18653         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
18654         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
18655         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
18656         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
18657         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
18658
18659 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
18660
18661         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
18662         differing bytes.
18663         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
18664         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
18665         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
18666
18667 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
18668
18669         [BZ #12420]
18670         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
18671         storing it.
18672         * stdlib/bug-getcontext.c: New file.
18673         * stdlib/Makefile: Add rules to build and run bug-getcontext.
18674
18675 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18676
18677         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
18678         instructions into .machine "z9-109".
18679         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
18680         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
18681
18682 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18683
18684         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
18685         between environment variables and auxiliary vector.
18686
18687 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
18688
18689         * Makefile: Add rules to build linkobj/libc.so.
18690         * include/libc-symbols.h: Define libc_hidden_nolink.
18691         * include/rpc/auth.h: Mark functions which are to be hidden.
18692         * include/rpc/auth_des.h: Likewise.
18693         * include/rpc/auth_unix.h: Likewise.
18694         * include/rpc/clnt.h: Likewise.
18695         * include/rpc/des_crypt.h: Likewise.
18696         * include/rpc/key_prot.h: Likewise.
18697         * include/rpc/pmap_clnt.h: Likewise.
18698         * include/rpc/pmap_prot.h: Likewise.
18699         * include/rpc/pmap_rmt.h: Likewise.
18700         * include/rpc/rpc_msg.h: Likewise.
18701         * include/rpc/svc.h: Likewise.
18702         * include/rpc/svc_auth.h: Likewise.
18703         * include/rpc/xdr.h: Likewise.
18704         * nis/Makefile: Link all DSOs against linkobj/libc.so.
18705         * nss/Makefile: Likewise.
18706         * sunrpc/Makefile: Don't install headers.  Build library with normal
18707         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
18708         * sunrpc/auth_des.c: Hide exported symbols by default, export some
18709         for the compat linking library.  Remove use of INTDEF/INTUSE.
18710         * sunrpc/auth_none.c: Likewise.
18711         * sunrpc/auth_unix.c: Likewise.
18712         * sunrpc/authdes_prot.c: Likewise.
18713         * sunrpc/authuxprot.c: Likewise.
18714         * sunrpc/clnt_gen.c: Likewise.
18715         * sunrpc/clnt_perr.c: Likewise.
18716         * sunrpc/clnt_raw.c: Likewise.
18717         * sunrpc/clnt_simp.c: Likewise.
18718         * sunrpc/clnt_tcp.c: Likewise.
18719         * sunrpc/clnt_udp.c: Likewise.
18720         * sunrpc/clnt_unix.c: Likewise.
18721         * sunrpc/des_crypt.c: Likewise.
18722         * sunrpc/des_soft.c: Likewise.
18723         * sunrpc/get_myaddr.c: Likewise.
18724         * sunrpc/key_call.c: Likewise.
18725         * sunrpc/key_prot.c: Likewise.
18726         * sunrpc/netname.c: Likewise.
18727         * sunrpc/pm_getmaps.c: Likewise.
18728         * sunrpc/pm_getport.c: Likewise.
18729         * sunrpc/pmap_clnt.c: Likewise.
18730         * sunrpc/pmap_prot.c: Likewise.
18731         * sunrpc/pmap_prot2.c: Likewise.
18732         * sunrpc/pmap_rmt.c: Likewise.
18733         * sunrpc/publickey.c: Likewise.
18734         * sunrpc/rpc_cmsg.c: Likewise.
18735         * sunrpc/rpc_common.c: Likewise.
18736         * sunrpc/rpc_dtable.c: Likewise.
18737         * sunrpc/rpc_prot.c: Likewise.
18738         * sunrpc/rpc_thread.c: Likewise.
18739         * sunrpc/rtime.c: Likewise.
18740         * sunrpc/svc.c: Likewise.
18741         * sunrpc/svc_auth.c: Likewise.
18742         * sunrpc/svc_authux.c: Likewise.
18743         * sunrpc/svc_raw.c: Likewise.
18744         * sunrpc/svc_run.c: Likewise.
18745         * sunrpc/svc_simple.c: Likewise.
18746         * sunrpc/svc_tcp.c: Likewise.
18747         * sunrpc/svc_udp.c: Likewise.
18748         * sunrpc/svc_unix.c: Likewise.
18749         * sunrpc/svcauth_des.c: Likewise.
18750         * sunrpc/xcrypt.c: Likewise.
18751         * sunrpc/xdr.c: Likewise.
18752         * sunrpc/xdr_array.c: Likewise.
18753         * sunrpc/xdr_float.c: Likewise.
18754         * sunrpc/xdr_intXX_t.c: Likewise.
18755         * sunrpc/xdr_mem.c: Likewise.
18756         * sunrpc/xdr_rec.c: Likewise.
18757         * sunrpc/xdr_ref.c: Likewise.
18758         * sunrpc/xdr_sizeof.c: Likewise.
18759         * sunrpc/xdr_stdio.c: Likewise.
18760
18761 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
18762
18763         [BZ #12650]
18764         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
18765         * sysdeps/ia64/dl-tls.h: Likewise.
18766         * sysdeps/powerpc/dl-tls.h: Likewise.
18767         * sysdeps/s390/dl-tls.h: Likewise.
18768         * sysdeps/sh/dl-tls.h: Likewise.
18769         * sysdeps/sparc/dl-tls.h: Likewise.
18770         * sysdeps/x86_64/dl-tls.h: Likewise.
18771         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
18772
18773 2011-03-14  Andreas Schwab  <schwab@redhat.com>
18774
18775         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
18776         rpath element also skip the following colon.
18777         (expand_dynamic_string_token): Add is_path parameter and pass
18778         down to DL_DST_REQUIRED and _dl_dst_substitute.
18779         (decompose_rpath): Call expand_dynamic_string_token with
18780         non-zero is_path.  Ignore empty rpaths.
18781         (_dl_map_object_from_fd): Call expand_dynamic_string_token
18782         with zero is_path.
18783
18784 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
18785
18786         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
18787         Make cancelable.
18788
18789 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
18790
18791         [BZ #12655]
18792         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
18793         Patch by Filipe David Manana <fdmanana@apache.org>.
18794
18795 2011-04-07  Andreas Schwab  <schwab@redhat.com>
18796
18797         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
18798         Maintain aligned stack.
18799         (CHECK_RSP): Remove unused macro.
18800
18801 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
18802
18803         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
18804         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
18805
18806 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
18807
18808         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
18809
18810         * include/features.h: Mention __USE_XOPEN2K8 in comment.
18811
18812 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
18813
18814         [BZ #12518]
18815         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
18816         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
18817         * sysdeps/x86_64/memmove.c: New file.
18818         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
18819         (memcpy): Renamed to ...
18820         (__new_memcpy): This.
18821         (memcpy): Provide GLIBC_2_14 memcpy.
18822         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
18823         (memcpy): Provide GLIBC_2_2_5 memcpy.
18824
18825 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
18826
18827         [BZ #12631]
18828         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
18829
18830 2011-03-30  Andreas Schwab  <schwab@redhat.com>
18831
18832         * misc/syncfs.c: New file.
18833         * misc/Makefile (routines): Add syncfs.
18834         * posix/unistd.h: Declare syncfs.
18835         * sysdeps/unix/syscalls.list: Add syncfs.
18836
18837 2011-04-01  Andreas Schwab  <schwab@redhat.com>
18838
18839         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
18840         open_by_handle_at.
18841         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
18842         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
18843         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
18844         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
18845         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
18846         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
18847         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
18848
18849 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
18850
18851         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
18852         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
18853         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
18854         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
18855         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
18856         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
18857         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
18858
18859         * io/Makefile: Compile fallocate.c, fallocate64.c, and
18860         sync_file_range.c with -fexceptions.
18861         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
18862         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
18863         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
18864         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
18865         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
18866         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
18867         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
18868         sync_file_range as cancellation point
18869         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
18870         now a wrapper around __call_sync_file_range with cancellation handling.
18871         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
18872         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
18873         function name to __call_sync_file_range.
18874         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
18875         Add call_sync_file_range.
18876
18877 2011-04-01  Andreas Schwab  <schwab@redhat.com>
18878
18879         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
18880         bits/timex.h.
18881
18882 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
18883
18884         * iconv/iconv.h: Fix typo in comment.
18885         * io/fcntl.h: Likewise.
18886         * libio/stdio.h: Likewise.
18887         * posix/spawn.h: Likewise.
18888         * posix/unistd.h: Likewise.
18889         * stdlib/stdlib.h: Likewise.
18890         * time/time.h: Likewise.
18891         * wcsmbs/wchar.h: Likewise.
18892
18893         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
18894         open_by_handle): Add.
18895         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
18896         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
18897         Augment a few comments.
18898         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
18899         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
18900         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
18901         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
18902         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
18903         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
18904         open_by_handle.
18905
18906         * io/fcntl.h (AT_EMPTY_PATH): Define.
18907
18908 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
18909
18910         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
18911         * sysdeps/unix/sysv/linux/bits/time.h: New file.
18912         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
18913         to...
18914         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
18915         * Versions.def: Add GLIBC_2.14.
18916         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
18917         Export.
18918
18919 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
18920
18921         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
18922         round counter.
18923         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
18924
18925 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
18926
18927         [BZ #12597]
18928         * string/test-strncmp.c (do_page_test): New function.
18929         (check2): Likewise.
18930         (test_main): Call check2.
18931         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
18932
18933 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
18934
18935         [BZ #12587]
18936         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
18937         Handle cache information in CPU leaf 4.
18938         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
18939
18940 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
18941
18942         [BZ #12583]
18943         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
18944         character representation.
18945         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
18946
18947 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
18948
18949         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
18950         END(__isnan) to END(__isnanf) to match function entry point/label
18951         EALIGN(__isnanf,...).
18952
18953 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
18954
18955         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
18956
18957 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
18958
18959         [BZ #12510]
18960         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
18961         copy from the symbol referenced in the relocation to initialize the
18962         used variable.
18963         Patch by Piotr Bury <pbury@goahead.com>.
18964         * elf/Makefile: Add rules to build and tst-unique3.
18965         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
18966         * elf/tst-unique3.cc: New file.
18967         * elf/tst-unique3.h: New file.
18968         * elf/tst-unique3lib.cc: New file.
18969         * elf/tst-unique3lib2.cc: New file.
18970
18971         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
18972
18973 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
18974
18975         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
18976         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
18977         to _start.
18978
18979 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
18980
18981         * elf/dl-load.c (_dl_map_object): If we are looking for the first
18982         to-be-loaded object along a path to loader is ld.so.
18983
18984 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
18985             Ulrich Drepper  <drepper@gmail.com>
18986
18987         * sysdeps/x86_64/memset.S: After aligning destination, code
18988         branches to different locations depending on the value of
18989         misalignment, when multiarch is enabled. Fix this.
18990
18991 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
18992
18993         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
18994         Set _x86_64_preferred_memory_instruction for AMD processsors.
18995         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18996         Set bit_Prefer_SSE_for_memop for AMD processors.
18997
18998 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
18999
19000         * libio/fmemopen.c (fmemopen): Optimize a bit.
19001
19002 2011-03-03  Andreas Schwab  <schwab@redhat.com>
19003
19004         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
19005
19006 2011-03-03  Roland McGrath  <roland@redhat.com>
19007
19008         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
19009
19010 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
19011
19012         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
19013         __bzero_ultra1 instead of __memset_ultra1.
19014
19015 2011-02-23  Andreas Schwab  <schwab@redhat.com>
19016             Ulrich Drepper  <drepper@gmail.com>
19017
19018         [BZ #12509]
19019         * include/link.h (struct link_map): Add l_orig_initfini.
19020         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
19021         returning unsuccessfully.
19022         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
19023         close of a file loaded at startup, restore the original l_initfini
19024         list.
19025         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
19026         list, store the pointer.
19027         * elf/Makefile ($(objpfx)noload-mem): New rule.
19028         (noload-ENV): Define.
19029         (tests): Add $(objpfx)noload-mem.
19030         * elf/noload.c: Include <memcheck.h>.
19031         (main): Call mtrace.  Close all opened handles.
19032
19033 2011-02-17  Andreas Schwab  <schwab@redhat.com>
19034
19035         [BZ #12454]
19036         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
19037         dependencies are missing.
19038
19039 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19040
19041         Fix __if_freereq crash: Unlike the generic version which uses free,
19042         Hurd needs munmap.
19043         * sysdeps/mach/hurd/ifreq.h: New file.
19044
19045 2011-01-27  Petr Baudis  <pasky@suse.cz>
19046             Ulrich Drepper  <drepper@gmail.com>
19047
19048         [BZ 12445]#
19049         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
19050         to extend_alloca().
19051         * stdio-common/bug23.c: New file.
19052         * stdio-common/Makefile (tests): Add bug23.
19053
19054 2010-09-28  Andreas Schwab  <schwab@redhat.com>
19055             Ulrich Drepper  <drepper@gmail.com>
19056
19057         [BZ #12489]
19058         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
19059         before performing relro protection.  At old place add assertion
19060         to make sure nothing changed.
19061
19062 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
19063             Glauber de Oliveira Costa  <glommer@gmail.com>
19064
19065         * elf/elf.h: Add new ARM TLS relocs.
19066
19067 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
19068
19069         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
19070         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
19071         cast from r3.
19072         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
19073         'tests' variable.
19074         * sysdeps/wordsize-64/tst-writev.c: New file.
19075
19076 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
19077
19078         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
19079         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
19080         insns in _dl_start to prevent a TOC reference before relocs are
19081         resolved.
19082
19083 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
19084
19085         [BZ #12469]
19086         * Makeconfig: Remove RANLIB definition.
19087         * Makerules: Don't use RANLIB.
19088         * aclocal.m4: Remove ranlib test.
19089         * configure.in: No need to check for ranlib.
19090         * elf/rtld-Rules: Don't use RANLIB.
19091
19092 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19093
19094         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
19095         protection macro.
19096         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
19097         inclusion protection macro.
19098
19099         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
19100         SIGRTMIN and SIGRTMAX and print information in that case only when
19101         SIGRTMIN is defined.
19102
19103 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
19104
19105         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
19106         arginfo fn returning -1.
19107
19108         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
19109         and thousands string is zero terminated.
19110
19111 2011-02-03  Andreas Schwab  <schwab@redhat.com>
19112
19113         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
19114         sysdeps/unix/sysv/linux/bits/socket.h.
19115
19116 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19117
19118         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
19119         (__CPU_COUNT): Remove old macros.
19120         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
19121         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
19122         (__CPU_ALLOC, __CPU_FREE): Add macros.
19123         (__sched_cpualloc, __sched_cpufree): Add declarations.
19124
19125 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
19126
19127         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
19128         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
19129         * nscd/aicache.c (addhstaiX): Return timeout of added value.
19130         (readdhstai): Return value of addhstaiX call.
19131         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
19132         (addgrbyX): Return value returned by cache_addgr.
19133         (readdgrbyname): Return value returned by addgrbyX.
19134         (readdgrbygid): Likewise.
19135         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
19136         (addpwbyX): Return value returned by cache_addpw.
19137         (readdpwbyname): Return value returned by addhstbyX.
19138         (readdpwbyuid): Likewise.
19139         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
19140         (addservbyX): Return value returned by cache_addserv.
19141         (readdservbyname): Return value returned by addservbyX:
19142         (readdservbyport): Likewise.
19143         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
19144         (addhstbyX): Return value returned by cache_addhst.
19145         (readdhstbyname): Return value returned by addhstbyX.
19146         (readdhstbyaddr): Likewise.
19147         (readdhstbynamev6): Likewise.
19148         (readdhstbyaddrv6): Likewise.
19149         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
19150         (readdinitgroups): Return value returned by addinitgroupsX.
19151         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
19152         (prune_cache): Keep track of timeout value of re-added entries.
19153         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
19154         * nscd/nscd.h: Adjust prototypes of readd* functions.
19155
19156 2011-02-04  Roland McGrath  <roland@redhat.com>
19157
19158         * nis/nis_server.c (nis_servstate): Use the right name for 0.
19159         (nis_stats): Likewise.
19160         * nis/nis_modify.c (nis_modify): Likewise.
19161         * nis/nis_remove.c (nis_remove): Likewise.
19162         * nis/nis_add.c (nis_add): Likewise.
19163
19164         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
19165
19166         * posix/fnmatch_loop.c: Add some consts.
19167
19168         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
19169
19170 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
19171
19172         [BZ #12460]
19173         * config.make.in (config-cflags-novzeroupper): Define.
19174         * configure.in: Substitute libc_cv_cc_novzeroupper.
19175         * elf/Makefile (AVX-CFLAGS): Define.
19176         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
19177         (CFLAGS-tst-auditmod4a.c): Likewise.
19178         (CFLAGS-tst-auditmod4b.c): Likewise.
19179         (CFLAGS-tst-auditmod6b.c): Likewise.
19180         (CFLAGS-tst-auditmod6c.c): Likewise.
19181         (CFLAGS-tst-auditmod7b.c): Likewise.
19182         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
19183
19184 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
19185
19186         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
19187         function to the callback.
19188         Patch partly by Jiri Olsa <jolsa@redhat.com>.
19189
19190 2011-02-02  Andreas Schwab  <schwab@redhat.com>
19191
19192         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
19193         of errno.
19194
19195 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
19196
19197         [BZ #11724]
19198         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
19199         of constructors.
19200         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
19201         of destructors.
19202         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
19203
19204         [BZ #11724]
19205         * elf/Makefile: Add rules to build and run new test.
19206         * elf/tst-initorder.c: New file.
19207         * elf/tst-initorder.exp: New file.
19208         * elf/tst-initordera1.c: New file.
19209         * elf/tst-initordera2.c: New file.
19210         * elf/tst-initordera3.c: New file.
19211         * elf/tst-initordera4.c: New file.
19212         * elf/tst-initorderb1.c: New file.
19213         * elf/tst-initorderb2.c: New file.
19214         * elf/tst-order-a1.c: New file.
19215         * elf/tst-order-a2.c: New file.
19216         * elf/tst-order-a3.c: New file.
19217         * elf/tst-order-a4.c: New file.
19218         * elf/tst-order-b1.c: New file.
19219         * elf/tst-order-b2.c: New file.
19220         * elf/tst-order-main.c: New file.
19221         New test case by George Gensure <werkt0@gmail.com>.
19222
19223 2010-10-01  Andreas Schwab  <schwab@redhat.com>
19224
19225         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
19226         decoding ACE if AI_CANONIDN.
19227
19228 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
19229
19230         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
19231
19232 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
19233
19234         * version.h (RELEASE): Bump for 2.13 release.
19235         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
19236
19237         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
19238
19239         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
19240         MADV_NOHUGEPAGE.
19241         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
19242         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
19243         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
19244         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
19245         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
19246         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
19247
19248         * posix/getconf.c: Update copyright year.
19249         * catgets/gencat.c: Likewise.
19250         * csu/version.c: Likewise.
19251         * debug/catchsegv.sh: Likewise.
19252         * debug/xtrace.sh: Likewise.
19253         * elf/ldconfig.c: Likewise.
19254         * elf/ldd.bash.in: Likewise.
19255         * elf/sprof.c (print_version): Likewise.
19256         * iconv/iconv_prog.c: Likewise.
19257         * iconv/iconvconfig.c: Likewise.
19258         * locale/programs/locale.c: Likewise.
19259         * locale/programs/localedef.c: Likewise.
19260         * malloc/memusage.sh: Likewise.
19261         * malloc/mtrace.pl: Likewise.
19262         * nscd/nscd.c (print_version): Likewise.
19263         * nss/getent.c: Likewise.
19264
19265         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
19266         PF_CAIF, and PF_ALG.
19267         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
19268
19269 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
19270
19271         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
19272         (modules-names): Use them.
19273         (ifunc-test-modules, ifunc-pie-tests): Define.
19274         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
19275         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
19276         (test-extras): Likewise.
19277         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
19278         $(compile-command.c).
19279         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
19280         (all-built-dso): Define.
19281         (check-textrel.out, check-execstack.out): Depend on it.
19282
19283         * configure.in: Don't override --enable-multi-arch.
19284
19285 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
19286
19287         [BZ #6812]
19288         * nscd/hstcache.c (tryagain): Define.
19289         (cache_addhst): Return tryagain not notfound for temporary errors.
19290         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
19291         failed.
19292
19293 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
19294
19295         [BZ #10563]
19296         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
19297         to make the syscall.
19298         * sysdeps/unix/sysv/linux/setgroups.c: New file.
19299
19300         [BZ #12378]
19301         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
19302         and fall back to matching as normal character if the string ends before
19303         the matching ']' is found.  This is what POSIX requires.
19304         * posix/testfnm.c: Adjust test result.
19305         * posix/globtest.sh: Adjust test result.  Add new test.
19306         * posix/tst-fnmatch.input: Likewise.
19307         * posix/tst-fnmatch2.c: Add new test.
19308
19309 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
19310
19311         * elf/Makefile (check-execstack): Revert last change.  Depend on
19312         check-execstack.h.
19313         (check-execstack.h): New target.
19314         (generated): Add check-execstack.h.
19315         * elf/check-execstack.c: Include "check-execstack.h".
19316         (main): Revert last change.
19317         (handle_file): Return zero if GNU_STACK is absent and
19318         DEFAULT_STACK_PERMS doesn't include PF_X.
19319
19320 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
19321
19322         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
19323         in child fails because the descriptor is already closed.
19324         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
19325         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
19326         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
19327
19328         [BZ #12397]
19329         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
19330         syscall.
19331
19332         [BZ #10484]
19333         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
19334         temporary buffer used to handle multi lookups locally.
19335         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
19336
19337 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
19338
19339         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
19340         loader is ld.so.
19341
19342 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
19343
19344         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
19345         alignment for SSE2.
19346
19347 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
19348
19349         [BZ #12394]
19350         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
19351         characters.  When rounding increased number of integer digits recompute
19352         number of groups.
19353         * stdio-common/tst-grouping.c: New file.
19354         * stdio-common/Makefile: Add rules to build and run tst-grouping.
19355
19356 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
19357
19358         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
19359         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
19360
19361         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
19362         void.
19363         * bits/select.h: Likewise.
19364
19365 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
19366
19367         * po/ja.po: Update from translation team.
19368
19369 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
19370
19371         [BZ #11155]
19372         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
19373         implementation just like for lxstat, fxstatat, et al.
19374
19375 2010-12-27  Jim Meyering  <meyering@redhat.com>
19376
19377         [BZ #12348]
19378         * posix/regexec.c (build_trtable): Return failure indication upon
19379         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
19380
19381 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
19382
19383         [BZ #12201]
19384         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
19385         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
19386         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
19387         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
19388
19389         [BZ #12207]
19390         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
19391
19392         [BZ #12204]
19393         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
19394         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
19395
19396 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
19397
19398         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
19399         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
19400         script has SORT_BY_INIT_PRIORITY.
19401         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
19402         NO_CTORS_DTORS_SECTIONS is defined.
19403         * elf/soinit.c: Likewise.
19404         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
19405         NO_CTORS_DTORS_SECTIONS is defined.
19406         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
19407         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
19408         * sysdeps/sh/init-first.c: Likewise.
19409         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
19410
19411 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
19412
19413         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
19414         always use the slow path.
19415
19416 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
19417
19418         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
19419         similar rule which adds the sysdep directories to the header search in
19420         order to pick up the correct platform stackinfo.h.
19421         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
19422         perform test if it is, otherwise return successfully without testing.
19423         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
19424         DEFAULT_STACK_PERMS define in stackinfo.h.
19425         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
19426         defined in stackinfo.h.
19427         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
19428         DEFAULT_STACK_PERMS defined in stackinfo.h.
19429         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
19430         * sysdeps/ia64/stackinfo.h: Likewise.
19431         * sysdeps/s390/stackinfo.h: Likewise.
19432         * sysdeps/sh/stackinfo.h: Likewise.
19433         * sysdeps/sparc/stackinfo.h: Likewise.
19434         * sysdeps/x86_64/stackinfo.h: Likewise.
19435         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
19436         PF_X for powerpc64.  Retain PF_X for powerpc32.
19437
19438 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
19439
19440         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
19441         accurately.
19442         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
19443         GETDENTS_64BIT_ALIGNED.
19444
19445 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
19446
19447         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
19448
19449 2010-12-10  Andreas Schwab  <schwab@redhat.com>
19450
19451         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
19452         _GNU_SOURCE.
19453
19454         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
19455         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
19456         Remove __restrict.
19457         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
19458         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
19459
19460 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
19461
19462         [BZ #11655]
19463         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
19464         are initialized.
19465
19466 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
19467
19468         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
19469
19470 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
19471
19472         * po/it.po: Update from translation team.
19473
19474 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
19475
19476         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
19477         unused codes.
19478
19479 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
19480
19481         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
19482
19483 2010-11-24  Andreas Schwab  <schwab@redhat.com>
19484
19485         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
19486         specially.
19487         (gaih_getanswer_slice): Likewise.
19488
19489 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
19490
19491         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
19492
19493 2010-05-31  Petr Baudis  <pasky@suse.cz>
19494
19495         [BZ #11149]
19496         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
19497         silently even in the chroot mode.
19498
19499 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
19500
19501         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
19502         last patch a bit.  Pretty printing
19503
19504 2010-05-31  Petr Baudis <pasky@suse.cz>
19505
19506         [BZ #10085]
19507         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
19508         initialization of skip_initgroups_dyn.
19509
19510 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
19511
19512         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
19513         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
19514
19515 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
19516
19517         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
19518
19519 2010-11-11  Andreas Schwab  <schwab@redhat.com>
19520
19521         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
19522         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
19523         (tst-fnmatch-ENV): Set MALLOC_TRACE.
19524         ($(objpfx)tst-fnmatch-mem): New rule.
19525         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
19526         * posix/tst-fnmatch.c (main): Call mtrace.
19527
19528 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
19529
19530         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19531         Support Intel processor model 6 and model 0x2c.
19532
19533 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
19534
19535         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
19536           signed comparison.
19537
19538 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
19539
19540         [BZ #12205]
19541         * string/test-strncasecmp.c (check_result): New function.
19542         (do_one_test): Use it.
19543         (check1): New function.
19544         (test_main): Use it.
19545         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
19546         Support strcasecmp and strncasecmp.
19547
19548 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
19549
19550         [BZ #12194]
19551         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
19552         * sysdeps/x86_64/bits/byteswap.h: Likewise.
19553
19554 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
19555
19556         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
19557         IFUNC support.
19558         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
19559         memset-x86-64.
19560         * sysdeps/x86_64/multiarch/bzero.S: New file.
19561         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
19562         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
19563         * sysdeps/x86_64/multiarch/memset.S: New file.
19564         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
19565         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19566         Set bit_Prefer_SSE_for_memop for Intel processors.
19567         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
19568         Define.
19569         (index_Prefer_SSE_for_memop): Define.
19570         (HAS_PREFER_SSE_FOR_MEMOP): Define.
19571
19572 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
19573
19574         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
19575         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
19576
19577 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
19578
19579         [BZ #12191]
19580         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
19581         (__x86_64_raw_data_cache_size_half): Likewise.
19582         (__x86_64_raw_shared_cache_size): Likewise.
19583         (__x86_64_raw_shared_cache_size_half): Likewise.
19584
19585         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
19586         (__x86_64_raw_data_cache_size_half): Likewise.
19587         (__x86_64_raw_shared_cache_size): Likewise.
19588         (__x86_64_raw_shared_cache_size_half): Likewise.
19589         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
19590         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
19591         and __x86_64_raw_shared_cache_size_half.  Round
19592         __x86_64_data_cache_size_half, __x86_64_data_cache_size
19593         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
19594         to multiple of 256 bytes.
19595
19596 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
19597
19598         [BZ #12167]
19599         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
19600         of inacessible symlinks.  Verify result of symlink before returning it.
19601         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
19602         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
19603
19604 2010-10-28  Erich Ritz  <erichritz@gmail.com>
19605
19606         * math/math.h (isinf): Fix typo in comment.
19607
19608 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
19609
19610         * po/da.po: Update from translation team.
19611
19612 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
19613
19614         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
19615         is added to the list.
19616
19617 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19618             Ulrich Drepper  <drepper@gmail.com>
19619
19620         * elf/dl-object.c (_dl_new_object): Don't append the new object to
19621         the global list here.  Move code to...
19622         (_dl_add_to_namespace_list): ...here.  New function.
19623         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
19624         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
19625         * elf/dl-load.c (lose): Don't remove the element from the list.
19626         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
19627         (_dl_map_object): Likewise.
19628
19629 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
19630
19631         [BZ #12159]
19632         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
19633         into all bytes of SSE register.
19634         Patch by Richard Li <richardpku@gmail.com>.
19635
19636 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
19637
19638         [BZ #12140]
19639         * malloc/malloc.c (_int_free): Fill correct number of bytes when
19640         perturbing.
19641
19642 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
19643
19644         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
19645         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
19646         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
19647         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
19648         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
19649         submachine.
19650         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
19651
19652 2010-10-22  Andreas Schwab  <schwab@redhat.com>
19653
19654         * include/dlfcn.h (__RTLD_SECURE): Define.
19655         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
19656         mode & __RTLD_SECURE instead.
19657         (open_path): Rename preloaded parameter to secure.
19658         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
19659         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
19660         * elf/dl-deps.c (openaux): Likewise.
19661         * elf/rtld.c (struct map_args): Remove is_preloaded.
19662         (map_doit): Don't use it.
19663         (dl_main): Likewise.
19664         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
19665         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
19666
19667 2010-09-09  Andreas Schwab  <schwab@redhat.com>
19668
19669         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
19670         (sysd-rules-targets): Remove duplicates.
19671         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
19672         rtld-%.$o dependency.
19673
19674 2010-10-18  Andreas Schwab  <schwab@redhat.com>
19675
19676         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
19677         _dl_map_object do it.
19678
19679 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
19680
19681         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
19682         fast fma builtins, define the macros in the C99 standard.
19683         (FP_FAST_FMAF): Likewise.
19684         (FP_FAST_FMAL): Likewise.
19685         * sysdeps/x86_64/bits/mathdef.h: Likewise.
19686
19687         * bits/mathdef.h: Update copyright year.
19688         * sysdeps/powerpc/bits/mathdef.h: Likewise.
19689
19690 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
19691
19692         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
19693         builtins, define the macros in the C99 standard.
19694         (FP_FAST_FMAF): Likewise.
19695         (FP_FAST_FMAL): Likewise.
19696         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
19697         multiply/add.
19698         (FP_FAST_FMAF): Likewise.
19699
19700 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
19701
19702         [BZ #3268]
19703         * math/libm-test.inc (fma_test): Some new testcases.
19704         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
19705         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
19706         y and infinite z.  Do multiplication by C already in long double.
19707         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
19708         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
19709         y and infinite z.  Do bitwise or of inexact bit into u.d.
19710         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
19711         * sysdeps/i386/fpu/s_fmaf.S: Removed.
19712         * sysdeps/i386/fpu/s_fma.S: Removed.
19713         * sysdeps/i386/fpu/s_fmal.S: Removed.
19714
19715 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
19716
19717         [BZ #3268]
19718         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
19719         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
19720         computation is not scheduled after fetestexcept.  Fix value
19721         of minimum denormal long double.
19722
19723 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
19724
19725         [BZ #3268]
19726         * math/libm-test.inc (fma_test): Add some more tests.
19727         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
19728         correctly.
19729
19730 2010-10-15  Andreas Schwab  <schwab@redhat.com>
19731
19732         * scripts/data/localplt-s390-linux-gnu.data: New file.
19733         * scripts/data/localplt-s390x-linux-gnu.data: New file.
19734
19735 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
19736
19737         [BZ #3268]
19738         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
19739         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
19740         instead of dbl-64.
19741         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
19742         inlines.
19743         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
19744         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
19745         if one of x and y is very large and the other is subnormal.
19746         * sysdeps/s390/fpu/s_fmaf.c: New file.
19747         * sysdeps/s390/fpu/s_fma.c: New file.
19748         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
19749         * sysdeps/powerpc/fpu/s_fma.S: New file.
19750         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
19751         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
19752         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
19753
19754 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
19755
19756         [BZ #3268]
19757         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
19758         fma tests.
19759         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
19760         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
19761         * sysdeps/i386/i686/multiarch/s_fma.c: Include
19762         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
19763         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
19764         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
19765         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
19766
19767 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
19768
19769         [BZ #12078]
19770         * posix/regcomp.c (parse_branch): One more memory leak plugged.
19771         * posix/bug-regex31.input: Add test case.
19772
19773 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
19774
19775         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
19776         * posix/bug-regex31.input: New file.
19777
19778         [BZ #12078]
19779         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
19780         (parse_sub_exp): Fix last change, use postorder.
19781
19782         * posix/bug-regex31.c: New file.
19783         * posix/Makefile: Add rules to build and run bug-regex31.
19784
19785         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
19786
19787         [BZ #12078]
19788         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
19789
19790         [BZ #12108]
19791         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
19792         to have entries in sys_siglist.
19793
19794         [BZ #12093]
19795         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
19796         be NULL.
19797
19798 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
19799
19800         [BZ #3268]
19801         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
19802         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
19803         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
19804         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
19805         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
19806         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
19807         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
19808         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
19809         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
19810         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
19811         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
19812         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
19813         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
19814         * math/ftestexcept.c (fetestexcept): Likewise.
19815         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
19816         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
19817         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
19818         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
19819         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
19820         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
19821         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
19822
19823 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
19824
19825         [BZ #12107]
19826         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
19827         newline.
19828
19829 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
19830
19831         * string/bug-strstr1.c: New file.
19832         * string/Makefile: Add rules to build and run bug-strstr1.
19833
19834 2010-10-05  Eric Blake  <eblake@redhat.com>
19835
19836         [BZ #12092]
19837         * string/str-two-way.h (two_way_long_needle): Always clear memory
19838         when skipping input due to the shift table.
19839
19840 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
19841
19842         [BZ #12005]
19843         * malloc/mcheck.c: Handle large requests.
19844
19845         [BZ #12077]
19846         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
19847         for strncmp and strncasecmp.
19848         * string/stratcliff.c: Add tests for strcmp and strncmp.
19849         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
19850
19851 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
19852
19853         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
19854         __set_fpscr.
19855
19856 2010-09-30  Andreas Jaeger  <aj@suse.de>
19857
19858         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
19859         (CGROUP_SUPER_MAGIC): Define.
19860         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
19861         Handle btrfs and cgroup file systems.
19862         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
19863         Likewise.
19864
19865 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
19866
19867         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
19868         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
19869
19870 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19871
19872         [BZ #12067]
19873         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
19874         trying to locate the ELF header.
19875
19876 2010-09-27  Andreas Schwab  <schwab@redhat.com>
19877
19878         [BZ #11611]
19879         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
19880         Mask out sign-bit copies when constructing f_fsid.
19881
19882 2010-09-24  Petr Baudis <pasky@suse.cz>
19883
19884         * debug/stack_chk_fail_local.c: Add missing licence exception.
19885         * debug/warning-nop.c: Likewise.
19886
19887 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
19888
19889         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
19890         implementing getdents64 using getdents syscall, set d_type if
19891         __ASSUME_GETDENTS32_D_TYPE.
19892
19893 2010-09-16  Andreas Schwab  <schwab@redhat.com>
19894
19895         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
19896         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
19897
19898 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
19899
19900         [BZ #12037]
19901         * posix/unistd.h: Undo change of feature selection for ftruncate from
19902         2010-01-11.
19903
19904 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
19905
19906         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
19907         detection.
19908
19909 2010-09-20  Andreas Schwab  <schwab@redhat.com>
19910
19911         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
19912         fanotify_mark.
19913         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
19914
19915 2010-09-14  Andreas Schwab  <schwab@redhat.com>
19916
19917         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
19918         variables after CHECK_SP call.
19919         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
19920
19921 2010-09-13  Andreas Schwab  <schwab@redhat.com>
19922             Ulrich Drepper  <drepper@redhat.com>
19923
19924         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
19925         re-relocationg ld.so.
19926         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
19927         _dl_init_paths call.
19928         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
19929         here anymore.
19930
19931 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
19932
19933         * resolv/res_init.c (__res_vinit): Count the default server we added.
19934
19935 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
19936             Ulrich Drepper  <drepper@redhat.com>
19937
19938         [BZ #11968]
19939         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
19940         (____longjmp_chk): Use %ebx for saving value across system call.
19941         Add unwind info.
19942
19943 2010-09-06  Andreas Schwab  <schwab@redhat.com>
19944
19945         * manual/Makefile: Don't mix pattern rules with normal rules.
19946
19947 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
19948
19949         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
19950         operation.
19951         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
19952         * libio/iofopncook.c (_IO_cookie_init): Likewise.
19953         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
19954         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
19955         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
19956         Likewise.
19957
19958 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
19959
19960         [BZ #11979]
19961         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
19962         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
19963
19964 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
19965
19966         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
19967         * sysdeps/x86_64/addmul_1.S: Likewise.
19968         * sysdeps/x86_64/lshift.S: Likewise.
19969         * sysdeps/x86_64/mul_1.S: Likewise.
19970         * sysdeps/x86_64/rshift.S: Likewise.
19971         * sysdeps/x86_64/sub_n.S: Likewise.
19972         * sysdeps/x86_64/submul_1.S: Likewise.
19973
19974 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19975
19976         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
19977         Define __sched_param instead of SCHED_* and sched_param when
19978         <bits/sched.h> is included with __need_schedparam defined.
19979         * bits/sched.h [__need_schedparam]
19980         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
19981         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
19982         (__defined_schedparam): Define to 1.
19983         (__sched_param): New structure, identical to sched_param.
19984         (__need_schedparam): Undefine.
19985
19986 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
19987
19988         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
19989         (epoll_create1): Declare.
19990
19991         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
19992
19993 2010-08-31  Andreas Schwab  <schwab@redhat.com>
19994
19995         [BZ #7066]
19996         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
19997         shifting retval into place.
19998
19999 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
20000
20001         * nis/rpcsvc/nis.h: Update copyright notice.
20002         * nis/rpcsvc/nis.x: Likewise.
20003         * nis/rpcsvc/nis_callback.h: Likewise.
20004         * nis/rpcsvc/nis_callback.x: Likewise.
20005         * nis/rpcsvc/nis_object.x: Likewise.
20006         * nis/rpcsvc/nis_tags.h: Likewise.
20007         * nis/rpcsvc/yp.h: Likewise.
20008         * nis/rpcsvc/yp.x: Likewise.
20009         * nis/rpcsvc/ypupd.h: Likewise.
20010         * nis/yp_xdr.c: Likewise.
20011         * nis/ypupdate_xdr.c: Likewise.
20012
20013         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
20014         mainly the body of pmap_getport.  Add parameters to specify timeouts.
20015         (pmap_getport): Use __libc_rpc_getport.
20016         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
20017         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
20018         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
20019
20020 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
20021
20022         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
20023         fanotify_mark.
20024
20025 2010-08-27  Roland McGrath  <roland@redhat.com>
20026
20027         * sysdeps/i386/i686/multiarch/Makefile
20028         (CFLAGS-varshift.c): New variable.
20029
20030 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
20031
20032         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
20033         * sysdeps/i386/i686/multiarch/varshift.c: New file.
20034
20035         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
20036
20037         * sysdeps/x86_64/strlen.S: Minimal code improvement.
20038
20039 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
20040
20041         * sysdeps/x86_64/strlen.S: Unroll the loop.
20042         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
20043         strlen-sse2 strlen-sse2-bsf.
20044         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
20045         __strlen_no_bsf if bit_Slow_BSF is set.
20046         (__strlen_sse42): Removed.
20047         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
20048         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
20049
20050 2010-08-25  Roland McGrath  <roland@redhat.com>
20051
20052         * sysdeps/x86_64/multiarch/varshift.S: File removed.
20053         * sysdeps/x86_64/multiarch/varshift.c: New file.
20054         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
20055         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
20056         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
20057         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
20058
20059 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
20060
20061         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
20062         strlen-sse2 strlen-sse2-bsf.
20063         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
20064         __strlen_sse2_bsf if bit_Slow_BSF is unset.
20065         (__strlen_sse2): Removed.
20066         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
20067         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
20068         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
20069         bit_Slow_BSF for Atom.
20070         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
20071         (index_Slow_BSF): Define.
20072         (HAS_SLOW_BSF): Define.
20073
20074 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
20075
20076         [BZ #10851]
20077         * resolv/res_init.c (__res_vinit): When no server address at all
20078         is given default to loopback.
20079
20080 2010-08-24  Roland McGrath  <roland@redhat.com>
20081
20082         * configure.in: Remove config-name.h generation.
20083         * configure: Regenerated.
20084         * config-name.in: File removed.
20085         * scripts/config-uname.sh: New file.
20086         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
20087         ($(objdir)config-name.h): New target.
20088
20089         * sunrpc/rpc_parse.h: Avoid nested comment.
20090
20091 2010-08-24  Richard Henderson  <rth@redhat.com>
20092             Ulrich Drepper  <drepper@redhat.com>
20093             H.J. Lu  <hongjiu.lu@intel.com>
20094
20095         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
20096         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
20097         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
20098         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
20099         _mm_alignr_epi8 with _mm_loadu_si128.
20100         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
20101         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
20102         (__m128i_shift_right): Removed.
20103         * sysdeps/i386/i686/multiarch/varshift.h: New file.
20104         * sysdeps/i386/i686/multiarch/varshift.S: New file.
20105         * sysdeps/x86_64/multiarch/varshift.h: New file.
20106         * sysdeps/x86_64/multiarch/varshift.S: New file.
20107
20108 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
20109
20110         * configure.in: Move assembler checks to before sysdep dir checking.
20111
20112 2010-08-20  Petr Baudis  <pasky@suse.cz>
20113
20114         * LICENSES: Sync the sunrpc license.
20115
20116 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
20117
20118         * sunrpc/auth_des.c: Update copyright notice once again.
20119         * sunrpc/auth_none.c: Likewise.
20120         * sunrpc/auth_unix.c: Likewise.
20121         * sunrpc/authdes_prot.c: Likewise.
20122         * sunrpc/authuxprot.c: Likewise.
20123         * sunrpc/bindrsvprt.c: Likewise.
20124         * sunrpc/clnt_gen.c: Likewise.
20125         * sunrpc/clnt_perr.c: Likewise.
20126         * sunrpc/clnt_raw.c: Likewise.
20127         * sunrpc/clnt_simp.c: Likewise.
20128         * sunrpc/clnt_tcp.c: Likewise.
20129         * sunrpc/clnt_udp.c: Likewise.
20130         * sunrpc/clnt_unix.c: Likewise.
20131         * sunrpc/des_crypt.c: Likewise.
20132         * sunrpc/des_soft.c: Likewise.
20133         * sunrpc/get_myaddr.c: Likewise.
20134         * sunrpc/getrpcport.c: Likewise.
20135         * sunrpc/key_call.c: Likewise.
20136         * sunrpc/key_prot.c: Likewise.
20137         * sunrpc/openchild.c: Likewise.
20138         * sunrpc/pm_getmaps.c: Likewise.
20139         * sunrpc/pm_getport.c: Likewise.
20140         * sunrpc/pmap_clnt.c: Likewise.
20141         * sunrpc/pmap_prot.c: Likewise.
20142         * sunrpc/pmap_prot2.c: Likewise.
20143         * sunrpc/pmap_rmt.c: Likewise.
20144         * sunrpc/rpc/auth.h: Likewise.
20145         * sunrpc/rpc/auth_unix.h: Likewise.
20146         * sunrpc/rpc/clnt.h: Likewise.
20147         * sunrpc/rpc/des_crypt.h: Likewise.
20148         * sunrpc/rpc/key_prot.h: Likewise.
20149         * sunrpc/rpc/netdb.h: Likewise.
20150         * sunrpc/rpc/pmap_clnt.h: Likewise.
20151         * sunrpc/rpc/pmap_prot.h: Likewise.
20152         * sunrpc/rpc/pmap_rmt.h: Likewise.
20153         * sunrpc/rpc/rpc.h: Likewise.
20154         * sunrpc/rpc/rpc_des.h: Likewise.
20155         * sunrpc/rpc/rpc_msg.h: Likewise.
20156         * sunrpc/rpc/svc.h: Likewise.
20157         * sunrpc/rpc/svc_auth.h: Likewise.
20158         * sunrpc/rpc/types.h: Likewise.
20159         * sunrpc/rpc/xdr.h: Likewise.
20160         * sunrpc/rpc_clntout.c: Likewise.
20161         * sunrpc/rpc_cmsg.c: Likewise.
20162         * sunrpc/rpc_common.c: Likewise.
20163         * sunrpc/rpc_cout.c: Likewise.
20164         * sunrpc/rpc_dtable.c: Likewise.
20165         * sunrpc/rpc_hout.c: Likewise.
20166         * sunrpc/rpc_main.c: Likewise.
20167         * sunrpc/rpc_parse.c: Likewise.
20168         * sunrpc/rpc_parse.h: Likewise.
20169         * sunrpc/rpc_prot.c: Likewise.
20170         * sunrpc/rpc_sample.c: Likewise.
20171         * sunrpc/rpc_scan.c: Likewise.
20172         * sunrpc/rpc_scan.h: Likewise.
20173         * sunrpc/rpc_svcout.c: Likewise.
20174         * sunrpc/rpc_tblout.c: Likewise.
20175         * sunrpc/rpc_util.c: Likewise.
20176         * sunrpc/rpc_util.h: Likewise.
20177         * sunrpc/rpcinfo.c: Likewise.
20178         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
20179         * sunrpc/rpcsvc/key_prot.x: Likewise.
20180         * sunrpc/rpcsvc/klm_prot.x: Likewise.
20181         * sunrpc/rpcsvc/mount.x: Likewise.
20182         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
20183         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
20184         * sunrpc/rpcsvc/rex.x: Likewise.
20185         * sunrpc/rpcsvc/rstat.x: Likewise.
20186         * sunrpc/rpcsvc/rusers.x: Likewise.
20187         * sunrpc/rpcsvc/sm_inter.x: Likewise.
20188         * sunrpc/rpcsvc/spray.x: Likewise.
20189         * sunrpc/rpcsvc/yppasswd.x: Likewise.
20190         * sunrpc/rtime.c: Likewise.
20191         * sunrpc/svc.c: Likewise.
20192         * sunrpc/svc_auth.c: Likewise.
20193         * sunrpc/svc_authux.c: Likewise.
20194         * sunrpc/svc_raw.c: Likewise.
20195         * sunrpc/svc_run.c: Likewise.
20196         * sunrpc/svc_simple.c: Likewise.
20197         * sunrpc/svc_tcp.c: Likewise.
20198         * sunrpc/svc_udp.c: Likewise.
20199         * sunrpc/svc_unix.c: Likewise.
20200         * sunrpc/svcauth_des.c: Likewise.
20201         * sunrpc/xcrypt.c: Likewise.
20202         * sunrpc/xdr.c: Likewise.
20203         * sunrpc/xdr_array.c: Likewise.
20204         * sunrpc/xdr_float.c: Likewise.
20205         * sunrpc/xdr_mem.c: Likewise.
20206         * sunrpc/xdr_rec.c: Likewise.
20207         * sunrpc/xdr_ref.c: Likewise.
20208         * sunrpc/xdr_sizeof.c: Likewise.
20209         * sunrpc/xdr_stdio.c: Likewise.
20210
20211         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
20212         handling.
20213
20214 2010-08-19  Andreas Schwab  <schwab@redhat.com>
20215
20216         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
20217
20218 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
20219
20220         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
20221         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
20222         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
20223         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
20224         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
20225         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
20226         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
20227         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
20228         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
20229         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
20230         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
20231         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
20232         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
20233         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
20234
20235 2010-07-26  Anton Blanchard  <anton@samba.org>
20236
20237         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
20238         * malloc/arena.c (heap_trim): Likewise.
20239
20240 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
20241
20242         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
20243         here.  Not...
20244         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
20245         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
20246
20247 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
20248
20249         * sysdeps/i386/elf/Makefile: New file.
20250
20251 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
20252
20253         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
20254         from fanotify_init.
20255         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
20256         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
20257
20258 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
20259
20260         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
20261         of strncasecmp_l.
20262         * sysdeps/multiarch/strcmp.S: Likewise.
20263
20264 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
20265
20266         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
20267         strncase_l-nonascii.
20268         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
20269         Add strncase_l-ssse3.
20270         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
20271         * sysdeps/x86_64/strcmp.S: Likewise.
20272         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
20273         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
20274         * sysdeps/x86_64/strncase.S: New file.
20275         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
20276         * sysdeps/x86_64/strncase_l.S: New file.
20277         * string/Makefile (strop-tests): Add strncasecmp.
20278         * string/test-strncasecmp.c: New file.
20279
20280         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
20281         warning.
20282
20283         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
20284         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
20285
20286 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
20287
20288         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
20289
20290 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
20291
20292         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
20293         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
20294         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
20295
20296 2010-05-01  Alan Modra  <amodra@gmail.com>
20297
20298         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
20299         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
20300         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
20301         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
20302         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
20303         tidying.  Don't tail-call __sigjmp_save for static lib.
20304         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
20305         save location.
20306         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
20307         (CALL_MCOUNT): Add eh info, and nop after bl.
20308         (TAIL_CALL_SYSCALL_ERROR): New macro.
20309         (PSEUDO_RET): Use it.
20310         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
20311         Correct save location of integer regs and cr.
20312         (_dl_profile_resolve): Correct cr save location.  Delete nops
20313         after bl when SHARED.  Reduce cfi size a little by better
20314         placement of cfi directives.
20315         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
20316         make a stack frame.  Instead use parm save area as a temp.
20317         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
20318         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
20319         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
20320         Don't make a stack frame for parent, use parm save area.
20321         Increase child stack frame to 112 bytes.  Don't save unused reg,
20322         and adjust reg usage.  Set up cfi on error recovery and
20323         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
20324         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
20325         (__makecontext): Add dummy nop after jump to exit.
20326         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
20327         Use correct parm save area and cr save, reduce stack frame.
20328         Correct cfi for possible PSEUDO_RET frame setup.
20329         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
20330         Branch to local label emitted by PSEUDO_RET rather than
20331         __syscall_error.
20332
20333 2010-08-12  Andreas Schwab  <schwab@redhat.com>
20334
20335         [BZ #11904]
20336         * locale/programs/locale.c (print_assignment): New function.
20337         (show_locale_vars): Use it.
20338
20339 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
20340
20341         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
20342         field.
20343         (struct statfs64): Likewise.
20344         (_STATFS_F_FLAGS): Define.
20345         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
20346         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
20347         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
20348         (ST_VALID): Define locally.
20349         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
20350         __statvfs_getflags, use the provided value.
20351         * sysdeps/unix/sysv/linux/kernel-features.h: Define
20352         __ASSUME_STATFS_F_FLAGS.
20353
20354         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
20355
20356         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
20357         Add sys/fanotify.h.
20358         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
20359         fanotify_mask for GLIBC_2.13.
20360         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
20361         fanotify_init and fanotify_mark.
20362         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
20363         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
20364
20365         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
20366         Add prlimit.
20367         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
20368         prlimit64 for GLIBC_2.13.
20369         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
20370         prlimit64.
20371         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
20372         syscall.
20373         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
20374         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
20375         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
20376         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
20377         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
20378         add prlimit alias.
20379         * sysdeps/unix/sysv/linux/prlimit.c: New file.
20380
20381         [BZ #11903]
20382         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
20383         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
20384
20385         * nss/Makefile: Add rules to build and run tst-nss-test1.
20386         * shlib-versions: Add entry for libnss_test1.
20387         * nss/nss_test1.c: New file.
20388         * nss/tst-nss-test1.c: New file.
20389
20390         * nss/nsswitch.c (__nss_database_custom): Define new variable.
20391         (__nss_configure_lookup): Set appropriate entry in
20392         __nss_configure_lookup to true.
20393         * nss/nsswitch.h: Define enum with indeces of databases in
20394         databases and __nss_database_custom arrays.  Declare
20395         __nss_database_custom.
20396         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
20397         to avoid using nscd when custom rules are installed.
20398         * nss/getXXbyYY_r.c: Likewise.
20399         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
20400
20401         * nss/nss_files/files-parse.c: Whitespace fixes.
20402
20403 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
20404
20405         [BZ #11883]
20406         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
20407         * posix/fnmatch_loop.c: Likewise.
20408
20409 2010-07-17  Andi Kleen  <ak@linux.intel.com>
20410
20411         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
20412         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
20413         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
20414         * Versions.def [GLIBC_2.13]: Add.
20415
20416 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
20417
20418         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
20419         Also fail if tpwd after pwuid call is NULL.
20420
20421 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20422
20423         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
20424         when converting to ms.
20425
20426 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20427
20428         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
20429         EOPNOTSUPP errors with ENOTTY.
20430         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
20431         EOPNOTSUPP errors with ENOTTY.
20432
20433 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
20434
20435         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
20436         Add strcasecmp_l-ssse3.
20437         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
20438         strcasecmp.
20439         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
20440         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
20441         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
20442
20443 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
20444
20445         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
20446
20447         * string/Makefile (strop-tests): Add strcasecmp.
20448         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
20449         strcasecmp_l-nonascii.
20450         (gen-as-const-headers): Add locale-defines.sym.
20451         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
20452         * sysdeps/x86_64/strcasecmp.S: New file.
20453         * sysdeps/x86_64/strcasecmp_l.S: New file.
20454         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
20455         * sysdeps/x86_64/locale-defines.sym: New file.
20456         * string/test-strcasecmp.c: New file.
20457
20458         * string/test-strcasestr.c: Test both ends of the range of characters.
20459         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
20460
20461 2010-07-29  Roland McGrath  <roland@redhat.com>
20462
20463         [BZ #11856]
20464         * manual/locale.texi (Yes-or-No Questions): Fix example code.
20465
20466 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
20467
20468         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
20469         for ld.so.
20470
20471 2010-07-27  Andreas Schwab  <schwab@redhat.com>
20472
20473         * manual/memory.texi (Malloc Tunable Parameters): Document
20474         M_PERTURB.
20475
20476 2010-07-26  Roland McGrath  <roland@redhat.com>
20477
20478         [BZ #11840]
20479         * configure.in (-fgnu89-inline check): Set and substitute
20480         gnu89_inline, not libc_cv_gnu89_inline.
20481         * configure: Regenerated.
20482         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
20483
20484 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
20485
20486         * string/test-strnlen.c: New file.
20487         * string/Makefile (strop-tests): Add strnlen.
20488         * string/tester.c (test_strnlen): Add a few more test cases.
20489         * string/tst-strlen.c: Better error reporting.
20490
20491         * sysdeps/x86_64/strnlen.S: New file.
20492
20493 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
20494
20495         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
20496         lower-latency instructions.
20497
20498 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
20499
20500         * string/test-strcasestr.c: New file.
20501         * string/test-strstr.c: New file.
20502         * string/Makefile (strop-tests): Add strstr and strcasestr.
20503         * string/str-two-way.h: Don't undefine MAX.
20504         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
20505
20506 2010-07-21  Andreas Schwab  <schwab@redhat.com>
20507
20508         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
20509         strcasestr-nonascii.
20510         (CFLAGS-strcasestr-nonascii.c): Define.
20511         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
20512         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
20513         Remove unused attribute.
20514
20515 2010-07-20  Roland McGrath  <roland@redhat.com>
20516
20517         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
20518         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
20519         ld.so.cache was broken.  With it, there is no way to disable dsocaps
20520         like LD_HWCAP_MASK can disable hwcaps.
20521
20522 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
20523
20524         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
20525
20526 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
20527
20528         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
20529         call in strcasestr.
20530         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
20531         __strcasestr_sse42_nonascii.
20532         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
20533         strcasestr-nonascii.c.
20534         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
20535
20536 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
20537
20538         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
20539         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
20540         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
20541         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
20542
20543 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
20544
20545         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
20546         fcntl.
20547
20548 2010-07-06  Andreas Schwab  <schwab@redhat.com>
20549
20550         [BZ #11577]
20551         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
20552         dl_signal_cerror.
20553
20554 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
20555
20556         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
20557         _PC_PIPE_BUF using F_GETPIPE_SZ.
20558
20559 2010-07-05  Roland McGrath  <roland@redhat.com>
20560
20561         * manual/arith.texi (Rounding Functions): Fix rint description
20562         implicit in round description.
20563
20564 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
20565
20566         * elf/Makefile: Fix linking for a few tests to make recent linker
20567         happy.
20568
20569 2010-06-30  Andreas Schwab  <schwab@redhat.com>
20570
20571         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
20572         $(common-objpfx)libc_nonshared.a.
20573
20574 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
20575
20576         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
20577         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
20578         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
20579         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
20580         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
20581         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
20582         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
20583         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
20584         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
20585         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
20586         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
20587         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
20588         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
20589         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
20590         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
20591         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
20592         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
20593         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
20594         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
20595         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
20596         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
20597         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
20598         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
20599         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
20600         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
20601         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
20602         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
20603         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
20604         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
20605         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
20606         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
20607         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
20608         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
20609         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
20610         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
20611         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
20612         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
20613         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
20614         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
20615         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
20616         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
20617         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
20618         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
20619         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
20620         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
20621         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
20622         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
20623         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
20624
20625 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
20626
20627         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
20628         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
20629         * string/memmove.c (memmove): Renamed to ...
20630         (MEMMOVE): ...this.  Default to memmove.
20631         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
20632         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
20633         (END_CHK): Define.
20634         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
20635         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
20636         mempcpy-ssse3-back memmove-ssse3-back.
20637         * sysdeps/x86_64/multiarch/bcopy.S: New file .
20638         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
20639         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
20640         * sysdeps/x86_64/multiarch/memcpy.S: New file.
20641         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
20642         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
20643         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
20644         * sysdeps/x86_64/multiarch/memmove.c: New file.
20645         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
20646         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
20647         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
20648         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
20649         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
20650         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
20651         Define.
20652         (index_Fast_Copy_Backward): Define.
20653         (HAS_ARCH_FEATURE): Define.
20654         (HAS_FAST_REP_STRING): Define.
20655         (HAS_FAST_COPY_BACKWARD): Define.
20656
20657 2010-06-21  Andreas Schwab  <schwab@redhat.com>
20658
20659         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
20660         Restore proper fallback handling.
20661
20662 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
20663
20664         [BZ #11701]
20665         * posix/group_member.c (__group_member): Correct checking loop.
20666
20667         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
20668         OOM in getpwuid_r correctly.  Return error number when the caller
20669         should return, otherwise -1.
20670         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
20671         call returning > 0 value.
20672         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
20673
20674 2010-06-07  Andreas Schwab  <schwab@redhat.com>
20675
20676         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
20677         libc_nonshared.a from targets in modules-names.
20678
20679 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
20680
20681         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
20682         requires it.
20683
20684 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
20685
20686         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
20687         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
20688         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
20689         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
20690
20691 2010-06-02  Andreas Schwab  <schwab@redhat.com>
20692
20693         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
20694
20695 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
20696
20697         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
20698         and F_GETPIPE_SZ.
20699         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
20700         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
20701         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
20702         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
20703         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
20704         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
20705
20706 2010-06-14  Roland McGrath  <roland@redhat.com>
20707
20708         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
20709
20710 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
20711
20712         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
20713         __REDIRECT followed by __THROW.
20714         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
20715         * posix/getopt.h (getopt): Likewise.
20716
20717 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
20718
20719         * hurd/lookup-at.c (__file_name_lookup_at): Accept
20720         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
20721         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
20722         in AT_FLAGS.
20723         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
20724         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
20725
20726 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
20727
20728         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
20729
20730 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
20731
20732         [BZ #11640]
20733         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20734         Properly check family and model.
20735
20736 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
20737
20738         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
20739
20740 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
20741
20742         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
20743
20744 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
20745
20746         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
20747         symbol reference.
20748
20749 2010-05-19  Andreas Schwab  <schwab@redhat.com>
20750
20751         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
20752         symbol reference.
20753
20754 2010-05-21  Andreas Schwab  <schwab@redhat.com>
20755
20756         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
20757         and internal_recvmmsg.
20758         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
20759         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
20760         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
20761         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
20762
20763         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
20764         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
20765         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
20766
20767 2010-05-20  Andreas Schwab  <schwab@redhat.com>
20768
20769         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
20770
20771 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
20772
20773         POWER7 optimizations.
20774         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
20775         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
20776
20777 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
20778
20779         * version.h: Update for 2.13 development version.
20780
20781 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
20782
20783         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
20784         exceptions.  Return 0.
20785
20786 2010-05-07  Roland McGrath  <roland@redhat.com>
20787
20788         * elf/ldconfig.c (main): Add a const.
20789
20790 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
20791
20792         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
20793         (args_options): Add no-idn option.
20794         (ahosts_keys_int): Add idn_flags to ai_flags.
20795         (parse_option): Handle 'i' option to clear idn_flags.
20796
20797         * malloc/malloc.c (_int_free): Possible race in the most recently
20798         added check.  Only act on the data if no current modification
20799         happened.
20800
20801 See ChangeLog.17 for earlier changes.