Fix ldbl-128ibm atan2l for x near 1.
[platform/upstream/glibc.git] / ChangeLog
1 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
2
3         [BZ #14610]
4         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
5         for low part of x being zero before using __atanl (y).
6         * math/libm-test.inc (atan2_test): Add another test.
7
8         * manual/install.texi (Configuring and compiling): Document
9         general use of test-wrapper and test-wrapper-env.
10         * INSTALL: Regenerated.
11
12         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
13         (__fma): Do not extract and scale down low bits on after-rounding
14         systems when result rounded to normal precision would have normal
15         exponent.
16         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
17         (__fmal): Do not extract and scale down low bits on after-rounding
18         systems when result rounded to normal precision would have normal
19         exponent.
20         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
21         (__fmal): Do not extract and scale down low bits on after-rounding
22         systems when result rounded to normal precision would have normal
23         exponent.
24         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
25         macro.
26         (fma_test): Add more tests.
27         (fma_test_towardzero): Likewise.
28         (fma_test_downward): Likewise.
29         (fma_test_upward): Likewise.
30
31 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
32
33         * sysdeps/i386/tininess.h: Renamed to ...
34         * sysdeps/x86/tininess.h: This.
35         * sysdeps/x86_64/tininess.h: Removed.
36
37 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
38
39         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
40         input.  Use $(build-program-cmd).
41         ($(objpfx)tst-array1-static.out): Likewise.
42         ($(objpfx)tst-array2.out): Likewise.
43         ($(objpfx)tst-array3.out): Likewise.
44         ($(objpfx)tst-array4.out): Likewise.
45         ($(objpfx)tst-array5.out): Likewise.
46         ($(objpfx)tst-array5-static.out): Likewise.
47
48 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
49
50         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
51         if defined.
52
53         * nss/nsswitch.h (nss_interface_function): Provide new
54         macro for use with NSS functions.
55         * grp/initgroups.c: Use new macro.
56         * nss/getXXbyYY.c: Likewise.
57         * nss/getXXbyYY_r.c: Likewise.
58         * nss/getXXent.c: Likewise.
59         * nss/getXXent_r.c: Likewise.
60         * sysdeps/posix/getaddrinfo.c: Likewise.
61
62 2012-10-30  Andreas Jaeger  <aj@suse.de>
63
64         * po/ru.po: Update Russion translation from translation project.
65
66 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
67
68         [BZ #14152]
69         [BZ #14783]
70         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
71         result and shift together with sticky bit instead of replicating
72         round-to-nearest rounding.
73         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
74         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
75         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
76         missing underflow exceptions.
77         (fma_test_towardzero): Add more tests.
78         (fma_test_downward): Likewise.
79         (fma_test_upward): Likewise.
80
81         [BZ #14047]
82         * sysdeps/generic/tininess.h: New file.
83         * sysdeps/i386/tininess.h: Likewise.
84         * sysdeps/sh/tininess.h: Likewise.
85         * sysdeps/x86_64/tininess.h: Likewise.
86         * stdlib/tst-strtod-underflow.c: Likewise.
87         * stdlib/tst-tininess.c: Likewise.
88         * stdlib/strtod_l.c: Include <tininess.h>.
89         (round_and_return): Do not set errno for exact underflow cases.
90         Force an underflow exception when setting errno for underflow.
91         Determine underflow based on rounding to normal precision if
92         TININESS_AFTER_ROUNDING.
93         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
94         ERANGE for exact underflow cases.
95         * stdlib/Makefile (tests): Add tst-tininess and
96         tst-strtod-underflow.
97         ($(objpfx)tst-tininess): Use $(link-libm).
98         ($(objpfx)tst-strtod-underflow): Likewise.
99
100 2012-10-30  Andreas Jaeger  <aj@suse.de>
101
102         [BZ#14767]
103         * elf/Makefile (tests): Remove conditional for have-initfini-array
104         since this is now always required and the variable does not exist
105         anymore.
106         (tests-static): Likewise.
107         (modules-names): Likewise.
108
109         * po/eo.po: Add Esperanto translation from translation project.
110
111         * elf/tst-array1.c (fini_array): Make writeable so that it can be
112         merged with constructor/destructor.
113         (init_array): Likewise.
114         * elf/tst-array2dep.c (fini_array): Likewise.
115         (init_array): Likewise.
116
117 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
118
119         * manual/message.texi: Delete @cartouche tags.
120
121 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
122
123         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
124         EOPNOTSUPP.
125         * sysdeps/mach/hurd/fsync.c: Likewise.
126
127         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
128         [_POSIX_REALTIME_SIGNALS]: Change condition to
129         [_POSIX_REALTIME_SIGNALS > 0].
130
131 2012-10-27  Andreas Jaeger  <aj@suse.de>
132
133         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
134         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
135         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
136         [__WORDSIZE != 64]: Likewise.
137
138 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
139
140         *  iconvdata/tst-table.sh: Remove ${SHELL}.
141         *  iconvdata/tst-tables.sh: Likewise.
142
143 2012-10-25  David S. Miller  <davem@davemloft.net>
144
145         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
146         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
147         of strtoull.
148
149         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
150         ifunc-impl-list.c
151         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
152         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
153         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
154         file.
155
156 2012-10-25  Roland McGrath  <roland@hack.frob.com>
157
158         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
159         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
160         __getdirentries.
161
162 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
163             Jim Blandy  <jimb@codesourcery.com>
164
165         * scripts/cross-test-ssh.sh: New file.
166         * manual/install.texi (Configuring and compiling): Document use of
167         cross-test-ssh.sh.
168         * INSTALL: Regenerated.
169
170 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
171
172         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
173         EOPNOTSUPP.
174
175 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
176
177         * Makeconfig (run-program-prefix): Fix comment.
178
179 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
180             Jim Blandy  <jimb@codesourcery.com>
181
182         * Makeconfig (test-wrapper): New variable,
183         (test-wrapper-env): Likewise.
184         [$(cross-compiling) = yes && $(test-wrapper) != ""]
185         (run-built-tests): Define to yes.
186         (run-program-prefix): Use $(test-wrapper).
187         (built-program-cmd): Likewise.
188         * Rules (make-test-out): Use $(test-wrapper-env) and
189         $(host-built-program-cmd).
190         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
191         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
192         tst-pathopt.sh.
193         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
194         $(test-wrapper-env) to tst-rtld-load-self.sh.
195         ($(objpfx)order2.out): Use $(test-wrapper).
196         ($(objpfx)tst-initorder.out): Likewise.
197         ($(objpfx)tst-initorder2.out): Likewise.
198         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
199         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
200         (test_wrapper_env): New variable.  Use it to run ld.so.
201         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
202         Use it to run ld.so.
203         (test_wrapper_env): Likewise.
204         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
205         $(test-wrapper) to run-iconv-test.sh.
206         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
207         (ICONV): Use $test_wrapper.
208         * posix/Makefile ($(objpfx)globtest.out): Pass
209         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
210         globtest.sh, not $(run-program-prefix).
211         * posix/globtest.sh (run_via_rtld_prefix): New variable.
212         (test_wrapper): Likewise.
213         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
214         set together with run_via_rtld_prefix.
215         (run_program_prefix): Define in terms of test_wrapper and
216         run_via_rtld_prefix.
217
218 2012-10-24  Roland McGrath  <roland@hack.frob.com>
219
220         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
221         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
222         Targets removed.
223
224         [BZ #14743]
225         * include/time.h: Remove librt_hidden_proto (clock_gettime).
226         Declare __clock_getres, __clock_gettime, __clock_settime,
227         __clock_nanosleep, and __clock_getcpuclockid.
228         * rt/clock_gettime.c: Define __clock_gettime as an alias.
229         Remove librt_hidden_def (clock_gettime).
230         * sysdeps/unix/clock_gettime.c: Likewise.
231         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
232         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
233         * rt/clock_getres.c: Define __clock_getres as an alias.
234         * sysdeps/posix/clock_getres.c: Likewise.
235         * rt/clock_settime.c: Define __clock_settime as an alias.
236         * sysdeps/unix/clock_settime.c: Likewise.
237         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
238         * sysdeps/unix/clock_nanosleep.c: Likewise.
239         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
240         * rt/clock-compat.c: New file.
241         * rt/Makefile (librt-routines): Add clock-compat and move
242         $(clock-routines) to ...
243         (routines): ... here, new variable.
244         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
245         Don't add get_clockfreq here.
246         * rt/Versions (libc: GLIBC_2.17): New version set.
247         Add clock_* symbols here.
248         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
249         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
250         (GLIBC_2.17): Add clock_* symbols.
251         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
252         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
253         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
254         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
255         Likewise.
256         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
257         Likewise.
258         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
259         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
260         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
261         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
262         * NEWS: Mention the move.
263
264         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
265         Use __open, __read, __close rather than their public counterparts.
266         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
267         (__get_clockfreq_via_cpuinfo): Likewise.
268         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
269         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
270
271         * config.h.in (HAVE_IFUNC): New #undef.
272         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
273         was successful.
274         * configure: Regenerated.
275
276 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
277
278         * configure.in: Move READELF check to start of file.
279         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
280         libc_cv_asm_gnu_indirect_function in the process.
281         * configure: Regenerated.
282
283 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
284
285         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
286         send the output to /dev/null.
287         (libc_cv_cc_with_libunwind): Likewise.
288         (libc_cv_as_noexecstack): Likewise.
289         * configure: Regenerate.
290
291 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
292
293         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
294
295         * posix/globtest.sh (TMPDIR): Do not set.
296         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
297         (testout): Likewise.
298
299 2012-10-24  Andreas Jaeger  <aj@suse.de>
300
301         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
302         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
303         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
304         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
305         posix_fadvise64, posix_fallocate64.
306
307         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
308         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
309         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
310         Likewise.
311         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
312         Likewise.
313         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
314
315         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
316         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
317         <bits/fcntl-linux.h>.
318         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
319
320         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
321         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
322         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
323         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
324         [__WORDSIZE != 64]: Likewise.
325
326 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
327
328         * Makeconfig (run-built-tests): New variable.
329         * Rules [$(cross-compiling) = yes]: Change condition to
330         [$(run-built-tests) = no].
331         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
332         to [$(run-built-tests) = yes].
333         * elf/Makefile [$(cross-compiling) = no]: Likewise
334         * grp/Makefile [$(cross-compiling) = no]: Likewise.
335         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
336         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
337         * intl/Makefile [$(cross-compiling) = no]: Likewise.
338         * io/Makefile [$(cross-compiling) = no]: Likewise.
339         * libio/Makefile [$(cross-compiling) = no]: Likewise.
340         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
341         * misc/Makefile [$(cross-compiling) = no]: Likewise.
342         * posix/Makefile [$(cross-compiling) = no]: Likewise.
343         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
344         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
345         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
346         * string/Makefile [$(cross-compiling) = no]: Likewise.
347
348         * posix/Makefile ($(objpfx)globtest.out): Pass
349         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
350         $(rtld-installed-name).
351         * posix/globtest.sh (elf_objpfx): Remove variable.
352         (rtld_installed_name): Likewise.
353         (library_path): Likewise.
354         (run_program_prefix): New variable.  Use for running globtest
355         binary.
356
357 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
358             Joseph Myers  <joseph@codesourcery.com>
359
360         * Makeconfig (host-built-program-cmd): New variable.
361         * elf/Makefile (tst-stackguard1-ARGS): Use
362         $(host-built-program-cmd).
363         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
364         (tst-spawn-ARGS): Likewise.
365         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
366
367 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
368             Jim Blandy  <jimb@codesourcery.com>
369
370         * Makeconfig (run-via-rtld-prefix): New variable.
371         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
372         (built-program-cmd): Likewise.
373
374 2012-10-22  Andreas Jaeger  <aj@suse.de>
375
376         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
377         __O_RSYNC if it exists, otherwise to O_SYNC.
378
379 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
380             Joseph Myers  <joseph@codesourcery.com>
381
382         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
383         /dev/null.
384         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
385         from /dev/null
386         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
387         /dev/null.
388
389 2012-10-22  Andreas Jaeger  <aj@suse.de>
390
391         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
392         Define always.
393         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
394
395         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
396         bits/fcntl-linux.h.
397
398         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
399         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
400
401         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
402         to __O_LARGEFILE.
403         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
404         to __O_LARGEFILE.
405
406 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
407             Joseph Myers  <joseph@codesourcery.com>
408
409         * config.make.in (NM): New variable.
410
411 2012-10-21  Andreas Jaeger  <aj@suse.de>
412
413         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
414         definitions and declarations that are provided by
415         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
416
417 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
418
419         [BZ #14683]
420         * elf/Makefile (tests-static): Add tst-leaks1-static.
421         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
422         ($(objpfx)tst-leaks1-static): New rule.
423         ($(objpfx)tst-leaks1-static-mem): Likewise.
424         (tst-leaks1-static-ENV): New macro.
425         * elf/dl-open.c (dl_open_worker): Check the main application
426         only if SHARED is defined.
427         * elf/tst-leaks1-static.c: New file.
428
429 2012-10-20  Andreas Jaeger  <aj@suse.de>
430
431         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
432         generic values for Linux.
433         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
434         and declarations that are provided by <bits/fcntl-linux.h> and
435         include <bits/fcntl-linux.h>.
436         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
437         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
438
439 2012-10-20  Roland McGrath  <roland@hack.frob.com>
440
441         * io/fcntl.h: Move include of <bits/types.h> to the top and
442         include it unconditionally.
443
444 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
445
446         * wcsmbs/Makefile (tests-ifunc): New variable.
447         (tests): Add $(tests-ifunc).
448         * wcsmbs/test-wcschr-ifunc.c: New file.
449         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
450         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
451         * wcsmbs/test-wcslen-ifunc.c: Likewise.
452         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
453         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
454
455         * string/Makefile (tests-ifunc): New variable.
456         (tests): Add $(tests-ifunc).
457         * string/test-memccpy.c (TEST_NAME): New macro.
458         * string/test-memchr.c (TEST_NAME): Likewise.
459         * string/test-memcmp.c (TEST_NAME): Likewise.
460         * string/test-memcpy.c (TEST_NAME): Likewise.
461         * string/test-memmem.c (TEST_NAME): Likewise.
462         * string/test-memmove.c (TEST_NAME): Likewise.
463         * string/test-memset.c (TEST_NAME): Likewise.
464         * string/test-rawmemchr.c (TEST_NAME): Likewise.
465         * string/test-stpcpy.c (TEST_NAME): Likewise.
466         * string/test-stpncpy.c (TEST_NAME): Likewise.
467         * string/test-strcasecmp.c (TEST_NAME): Likewise.
468         * string/test-strcasestr.c (TEST_NAME): Likewise.
469         * string/test-strcat.c (TEST_NAME): Likewise.
470         * string/test-strchr.c (TEST_NAME): Likewise.
471         * string/test-strcmp.c(TEST_NAME): Likewise.
472         * string/test-strcpy.c (TEST_NAME): Likewise.
473         * string/test-strcspn.c (TEST_NAME): Likewise.
474         * string/test-strlen.c (TEST_NAME): Likewise.
475         * string/test-strncasecmp.c (TEST_NAME): Likewise.
476         * string/test-strncmp.c (TEST_NAME): Likewise.
477         * string/test-strncpy.c (TEST_NAME): Likewise.
478         * string/test-strnlen.c (TEST_NAME): Likewise.
479         * string/test-strpbrk.c (TEST_NAME): Likewise.
480         * string/test-strrchr.c (TEST_NAME): Likewise.
481         * string/test-strspn.c (TEST_NAME): Likewise.
482         * string/test-strstr.c (TEST_NAME): Likewise.
483         * string/test-bcopy-ifunc.c: New file.
484         * string/test-bzero-ifunc.c: Likewise.
485         * string/test-memccpy-ifunc.c: Likewise.
486         * string/test-memchr-ifunc.c: Likewise.
487         * string/test-memcmp-ifunc.c: Likewise.
488         * string/test-memcpy-ifunc.c: Likewise.
489         * string/test-memmem-ifunc.c: Likewise.
490         * string/test-memmove-ifunc.c: Likewise.
491         * string/test-mempcpy-ifunc.c: Likewise.
492         * string/test-memset-ifunc.c: Likewise.
493         * string/test-rawmemchr-ifunc.c: Likewise.
494         * string/test-stpcpy-ifunc.c: Likewise.
495         * string/test-stpncpy-ifunc.c: Likewise.
496         * string/test-strcasecmp-ifunc.c: Likewise.
497         * string/test-strcasestr-ifunc.c: Likewise.
498         * string/test-strcat-ifunc.c: Likewise.
499         * string/test-strchr-ifunc.c: Likewise.
500         * string/test-strchrnul-ifunc.c: Likewise.
501         * string/test-strcmp-ifunc.c: Likewise.
502         * string/test-strcpy-ifunc.c: Likewise.
503         * string/test-strcspn-ifunc.c: Likewise.
504         * string/test-strlen-ifunc.c: Likewise.
505         * string/test-strncasecmp-ifunc.c: Likewise.
506         * string/test-strncat-ifunc.c: Likewise.
507         * string/test-strncmp-ifunc.c: Likewise.
508         * string/test-strncpy-ifunc.c: Likewise.
509         * string/test-strnlen-ifunc.c: Likewise.
510         * string/test-strpbrk-ifunc.c: Likewise.
511         * string/test-strrchr-ifunc.c: Likewise.
512         * string/test-strspn-ifunc.c: Likewise.
513         * string/test-strstr-ifunc.c: Likewise.
514
515         * debug/Makefile (tests-ifunc): New variable.
516         (tests): Add $(tests-ifunc).
517         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
518         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
519         * debug/test-stpcpy_chk-ifunc.c: New file.
520         * debug/test-strcpy_chk-ifunc.c: Likewise.
521
522 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
523
524         [BZ #13601]
525         * elf/dl-load.c (open_verify): Retry read if the entire ELF
526         header is not read in.
527
528 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
529
530         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
531         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
532         directly.  Pass built executable to script as
533         $(built-program-cmd).
534         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
535         $testprogram without using LD_LIBRARY_PATH and $ldso.
536
537         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
538         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
539         $(rtld-installed-name).
540         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
541         (rtld_installed_name): Likewise.
542         (library_path): Likewise.
543         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
544         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
545         $(run-program-prefix) to tst-tables.sh.
546         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
547         it to run tst-table-from and tst-table-to.
548         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
549         Pass it to tst-table.sh.
550         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
551         $(run-program-prefix) to tst-gettext.sh.
552         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
553         tst-translit.sh.
554         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
555         tst-gettext2.sh.
556         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
557         to run tst-gettext.
558         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
559         to run tst-gettext2.
560         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
561         to run tst-translit.
562         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
563         $(run-program-prefix) to tst-mtrace.sh.
564         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
565         to run tst-mtrace.
566         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
567         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
568         $(rtld-installed-name).
569         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
570         (rtld_installed_name): Likewise.
571         (run_program_prefix): New variable.  Use it to run wordexp-test.
572
573         * Makeconfig (ARCH): Remove all definitions.
574         (machine): Likewise.
575         [ARCH]: Remove conditional code.
576         [!objdir]: Give error.
577         [!objdir] (objpfx): Remove.
578         [!objdir] (common-objpfx): Likewise.
579         [!objdir] (common-objdir): Likewise.
580         * configure.in (config_makefile): Remove.  Hardcode Makefile in
581         AC_CONFIG_FILES call.
582         * configure: Regenerated.
583
584         [BZ #13888]
585         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
586         or TMPDIR.
587         (testout): Likewise.
588
589         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
590         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
591         $(rtld-installed-name).
592         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
593         (rtld_installed_name): Likwise.
594         (runit): Remove function.
595         (run_getconf): New variable,  Use it for running getconf binary.
596
597 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
598
599         [BZ #14716]
600         * string/test-memmem.c (check_result): New function.
601         (do_one_test): Use it.
602         (check1): New function.
603         (test_main): Use it.
604
605 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
606
607         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
608
609 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
610
611         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
612         (_G_LSEEK64): Likewise.
613         (_G_MMAP64): Likewise.
614         (_G_FSTAT64): Likewise.
615         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
616         (_G_LSEEK64): Likewise.
617         (_G_MMAP64): Likewise.
618         (_G_FSTAT64): Likewise.
619         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
620         unconditional.  Call __mmap64 directly.
621         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
622         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
623         __lseek64 directly.
624         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
625         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
626         __mmap64 directly.
627         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
628         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
629         __lseek64 directly.
630         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
631         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
632         __lseek64 directly.
633         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
634         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
635         __lseek64 directly.
636         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
637         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
638         __fxstat64 directly.
639         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
640         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
641         unconditional.
642         (freopen64) [!_G_OPEN64]: Remove conditional code.
643         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
644         unconditional.
645         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
646         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
647         unconditional.
648         (ftello64) [!_G_LSEEK64]: Remove conditional code.
649         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
650         unconditional.
651         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
652         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
653         unconditional.
654         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
655         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
656         unconditional.
657         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
658         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
659         unconditional.
660         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
661         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
662         unconditional.
663         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
664
665 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
666
667         [BZ #12140]
668         * manual/memory.texi (Malloc Tunable Parameters): Add note
669         about free list pointers overwriting some perturb bytes.
670         Wording suggested by Roland McGrath.
671
672 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
673
674         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
675         (lgamma_test): Likewise.
676         (tgamma_test): Likewise.
677
678 2012-10-16  Florian Weimer  <fweimer@redhat.com>
679
680         [BZ #14700]
681         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
682         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
683
684 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
685
686         * NEWS: Mention BZ #14716.
687         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
688         when removing AVAILABLE1_USES_J macro.
689
690 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
691
692         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
693         (__bswap_64): __uint64_t for unsigned 64-bit int.
694
695 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
696
697         * include/string.h (memmem): Declare libc hidden alias.
698         * string/memmem.c (memmem): Define libc hidden alias.
699         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
700         __read, __close instead of open, read, close.
701
702 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
703
704         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
705         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
706         global and hidden.
707         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
708         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
709         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
710         Likewise.
711         (__rawmemchr_sse2): Likewise.
712         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
713         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
714         (__strchr_sse2): Likewise.
715         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
716         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
717         (__strcasecmp_sse2): Likewise.
718         (__strncasecmp_sse2): Likewise.
719         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
720         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
721         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
722         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
723         (__strrchr_sse2): Likewise.
724         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
725         ifunc-impl-list.c.
726         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
727         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
728         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
729         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
730         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
731         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
732         * sysdeps/x86_64/multiarch/memset.S: Likewise.
733         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
734         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
735         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
736         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
737         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
738         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
739         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
740         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
741         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
742         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
743         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
744         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
745         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
746         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
747         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
748         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
749         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
750         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
751         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
752         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
753         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
754         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
755         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
756
757         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
758         global and hidden.
759         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
760         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
761         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
762         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
763         Likewise.
764         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
765         Likewise.
766         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
767         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
768         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
769         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
770         ifunc-impl-list.c.
771         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
772         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
773         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
774         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
775         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
776         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
777         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
778         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
779         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
780         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
781         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
782         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
783         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
784         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
785         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
786         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
787         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
788         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
789         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
790         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
791         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
792         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
793         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
794         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
795         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
796         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
797         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
798         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
799         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
800         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
801         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
802         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
803         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
804         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
805         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
806         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
807         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
808         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
809         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
810         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
811         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
812
813         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
814         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
815         * include/ifunc-impl-list.h: New file.
816         * misc/ifunc-impl-list.c: Likewise.
817         * misc/Makefile (routines): Add ifunc-impl-list.
818         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
819         * string/test-string.h: Include <ifunc-impl-list.h>.
820         [TEST_IFUNC && TEST_NAME] (func_list, func_count, impl_count,
821         impl_array): New variables.
822         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
823         are defined.
824         (test_init): Call __libc_ifunc_impl_list to initialize
825         func_list if TEST_IFUNC and TEST_NAME are defined.
826
827         * string/Makefile (strop-tests): Add bcopy and bzero.
828         * string/test-bcopy.c: New file.
829         * string/test-bzero.c: Likewise.
830         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
831         defined.
832         * string/test-memset.c: Support bzero test if TEST_BZERO is
833         defined.
834         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
835         __libc_memmove.
836         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
837         __libc_memset.
838         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
839         of memset.
840
841 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
842
843         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
844         * configure: Regenerated.
845
846         * Makeconfig (+link-static-before-libc): Don't include
847         $(link-static-libc).
848
849         * libio/libio.h (_IO_pos_t): Remove.
850
851 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
852
853         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
854         McGrath.
855
856 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
857
858         * crypt/crypt-entry.c: Include fips-private.h.
859         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
860         * crypt/md5c-test.c (main): Tolerate disabled MD5.
861         * sysdeps/unix/sysv/linux/fips-private.h: New file.
862         * sysdeps/generic/fips-private.h: New file, dummy fallback.
863
864 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
865
866         * crypt/crypt-private.h: Include stdbool.h.
867         (_ufc_setup_salt_r): Return bool.
868         * crypt/crypt-entry.c: Include errno.h.
869         (__crypt_r): Return NULL with EINVAL for bad salt.
870         * crypt/crypt_util.c (bad_for_salt): New.
871         (_ufc_setup_salt_r): Check that salt is long enough and within
872         the specified alphabet.
873         * crypt/badsalttest.c: New file.
874         * crypt/Makefile (tests): Add it.
875         ($(objpfx)badsalttest): New.
876
877 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
878
879         * NEWS: Add entry for BZ #14602.
880
881 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
882
883         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
884         type-generic.
885         * math/libm-test.inc: Update comment listing what functions and
886         macros are tested.
887         (isgreater_test): New function.
888         (isgreaterequal_test): Likewise.
889         (isless_test): Likewise.
890         (islessequal_test): Likewise.
891         (islessgreater_test): Likewise.
892         (isunordered_test): Likewise.
893         (main): Call the new functions.
894
895 2012-10-09  Roland McGrath  <roland@hack.frob.com>
896
897         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
898         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
899         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
900         * sysdeps/i386/configure: Regenerated.
901         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
902         * sysdeps/mach/configure: Regenerated.
903         * sysdeps/mach/hurd/configure: Regenerated.
904         * sysdeps/powerpc/configure: Regenerated.
905         * sysdeps/powerpc/powerpc32/configure: Regenerated.
906         * sysdeps/powerpc/powerpc64/configure: Regenerated.
907         * sysdeps/s390/s390-32/configure: Regenerated.
908         * sysdeps/s390/s390-64/configure: Regenerated.
909         * sysdeps/sh/configure: Regenerated.
910         * sysdeps/sparc/configure: Regenerated.
911         * sysdeps/unix/sysv/linux/configure: Regenerated.
912         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
913         * sysdeps/x86_64/configure: Regenerated.
914
915         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
916         defined.  Don't check if MAP is NULL.
917
918 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
919
920         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
921         (_G_stat64): Likewise.
922         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
923         (_G_stat64): Likewise.
924         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
925         instead of struct _G_stat64.
926         * libio/fileops.c (mmap_remap_check): Likewise.
927         (decide_maybe_mmap): Likewise.
928         (_IO_new_file_seekoff): Likewise.
929         (_IO_file_stat): Likewise.
930         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
931         _G_off64_t.
932         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
933         instead of struct _G_stat64.
934         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
935
936 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
937
938         [BZ #14602]
939         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
940         Replace with ...
941         (CHECK_EOL): New macro.
942         (two_way_short_needle): Check beginning of haystack for EOL.  Use
943         CHECK_EOL.
944         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
945         Replace with CHECK_EOL.
946         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
947         Replace with CHECK_EOL.
948
949 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
950
951         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
952         type-generic.
953         * math/libm-test.inc: Update comment listing what functions and
954         macros are tested.
955         (finite_test): New function.
956         (isinf_test): Likewise.
957         (isnan_test): Likewise.
958         (fpclassify_test): Test subnormal input.
959         (isfinite_test): Likewise.
960         (isnormal_test): Likewise.
961         (main): Call the new functions.
962
963 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
964
965         [BZ #14660]
966         * Makerules (%.dynsym): Force C locale when running
967         $(OBJDUMP) --dynamic-syms.
968
969 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
970
971         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
972         <stdint.h>.
973
974 2012-10-06  David S. Miller  <davem@davemloft.net>
975
976         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
977         upper 32-bits of the length value in %o2 since we use branch-on-register
978         tests which consider the entire 64-bit register.
979
980 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
981
982         * string/test-strstr.c (check2): Add a test for page boundary.
983
984 2012-10-05  David S. Miller  <davem@davemloft.net>
985
986         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
987         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
988         file.
989         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
990         sysdep_routines.
991         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
992         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
993         and bzero when HWCAP_SPARC_CRYPTO is present.
994
995 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
996
997         [BZ #14602]
998         * string/test-strstr.c (check2): New function.
999         (test_main): Call check2.
1000
1001         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
1002         and bug-strchr1.
1003         * string/bug-strcasestr1.c (do_test): Moved to ...
1004         * string/test-strcasestr.c (check1): Here.  New function.
1005         (do_one_test): Break out result checking code into ...
1006         (check_result): This.  New function.
1007         (do_one_test): Call check_result.
1008         (test_main): Call check1.
1009         * string/bug-strchr1.c (do_test): Moved to ...
1010         * string/test-strchr.c (check1): Here.  New function.
1011         (do_one_test): Break out result checking code into ...
1012         (check_result): This.  New function.
1013         (do_one_test): Call check_result.
1014         (test_main): Call check1.
1015         * string/bug-strstr1.c (main): Moved to ...
1016         * string/test-strchr.c (check1): Here.  New function.
1017         (do_one_test): Break out result checking code into ...
1018         (check_result): This.  New function.
1019         (do_one_test): Call check_result.
1020         (test_main): Call check1.
1021         * string/bug-strcasestr1.c: Removed.
1022         * string/bug-strchr1.c: Likewise.
1023         * string/bug-strstr1.c: Likewise.
1024
1025         * elf/Makefile (dl-routines): Add hwcaps.
1026         * elf/dl-support.c (_dl_important_hwcaps): Removed.
1027         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
1028         (_dl_important_hwcaps): Moved to ...
1029         * elf/dl-hwcaps.c: Here.  New file.
1030         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
1031
1032         [BZ #14557]
1033         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
1034         if IS_IN_rtld isn't defined.
1035
1036         * elf/dl-support.c (_dl_sysinfo_map): New.
1037         Include "get-dynamic-info.h" and "setup-vdso.h".
1038         (_dl_non_dynamic_init): Call setup_vdso.
1039         * elf/dynamic-link.h: Don't include <assert.h>.
1040         (elf_get_dynamic_info): Moved to ...
1041         * elf/get-dynamic-info.h: Here.  New file.
1042         * elf/dynamic-link.h: Include "get-dynamic-info.h".
1043         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
1044         * elf/setup-vdso.h: Here.  New file.
1045         * elf/rtld.c: Include "setup-vdso.h".
1046         (dl_main): Call setup_vdso.
1047
1048 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
1049
1050         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
1051         creal in comment listing functions tested.  List finite, isinf,
1052         isnan, isless, islessequal, isgreater, isgreaterequal,
1053         islessgreater, isunordered, lgamma_r and pow10 as functions and
1054         macros not tested.  Mention which functions not tested are aliases
1055         for other functions.  Fix typo.  Note that signs of NaNs are not
1056         tested.
1057
1058         * scripts/config.guess: Update from config.git.
1059         * scripts/config.sub: Likewise.
1060
1061 2012-10-04  Roland McGrath  <roland@hack.frob.com>
1062
1063         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
1064         * misc/madvise.c (madvise): Renamed to __madvise.
1065         Make madvise a weak alias.
1066         * include/sys/mman.h: Declare __madvise.
1067         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
1068         * sysdeps/unix/syscalls.list
1069         (madvise): Make __madvise the strong name, and madvise a weak alias.
1070         * sysdeps/unix/sysv/linux/syscalls.list
1071         (madvise, mmap): Remove redundant entries.
1072         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
1073         * malloc/malloc.c (mtrim): Likewise.
1074         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
1075
1076 2012-10-03  Roland McGrath  <roland@hack.frob.com>
1077
1078         * sysdeps/mach/hurd/dl-cache.c: File removed.
1079         * config.h.in (USE_LDCONFIG): New #undef.
1080         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
1081         * configure: Regenerated.
1082         * elf/Makefile (dl-routines): Add dl-cache only under
1083         [$(use-ldconfig) = yes].
1084         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
1085         cache on [USE_LDCONFIG].
1086         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
1087         [USE_LDCONFIG].
1088         * elf/rtld.c (dl_main): Likewise.
1089
1090 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
1091
1092         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
1093         _SC_LEVEL4_CACHE_LINESIZE.
1094
1095 2012-10-03  Roland McGrath  <roland@hack.frob.com>
1096
1097         * sysdeps/unix/bsd/confstr.h: File removed.
1098
1099 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
1100
1101         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
1102         sys/sdt-config.h.
1103
1104 2012-10-02  Roland McGrath  <roland@hack.frob.com>
1105
1106         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
1107         Make 'mapoff' field ElfW(Off) rather than off_t.
1108
1109 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
1110
1111         * nscd/Makefile: Remove nscd-cflags and all its users.
1112         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
1113         (CFLAGS-nonlib): Add compiler flags for nscd modules.
1114
1115         [BZ #10631]
1116         * malloc.c (malloc_printerr): Clarify error message.
1117
1118 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
1119
1120         [BZ #14648]
1121         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
1122         Set bit_FMA_Usable if FMA is supported.
1123         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
1124         macro.
1125         (bit_FMA4_Usable): Updated.
1126         (index_FMA_Usable): New macro.
1127         (CPUID_FMA): Likewise
1128         (HAS_FMA): Defined with bit_FMA_Usable.
1129
1130 2012-10-01  Roland McGrath  <roland@hack.frob.com>
1131
1132         * bits/types.h (__swblk_t): Type removed.
1133         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
1134         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
1135         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
1136         (__SWBLK_T_TYPE): Likewise.
1137         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
1138         (__SWBLK_T_TYPE): Likewise.
1139         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
1140         (__SWBLK_T_TYPE): Likewise.
1141         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
1142         (__SWBLK_T_TYPE): Likewise.
1143
1144 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
1145             Honza Horak <hhorak@redhat.com>
1146
1147         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
1148         (xdr_mapname): Use YPMAXMAP as maxsize.
1149         (xdr_peername): Use YPMAXPEER as maxsize.
1150         (xdr_keydat): Use YPAXRECORD as maxsize.
1151         (xdr_valdat): Use YPMAXRECORD as maxsize.
1152
1153 2012-10-01  Roland McGrath  <roland@hack.frob.com>
1154
1155         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
1156
1157         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
1158         * csu/init-first.c: ... here.
1159         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
1160         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
1161         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
1162         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
1163         * sysdeps/i386/init-first.c: File removed.
1164         * sysdeps/sh/init-first.c: File removed.
1165
1166 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
1167
1168         [BZ #14645]
1169         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
1170         if x * y might underflow to zero and z is zero.
1171         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
1172         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
1173         * math/libm-test.inc (min_subnorm_value): New variable.
1174         (fma_test): Add more tests.
1175         (fma_test_towardzero): Likewise.
1176         (fma_test_downward): Likewise
1177         (fma_test_upward): Likewise.
1178         (initialize): Set min_subnorm_value.
1179
1180 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
1181
1182         [BZ #14638]
1183         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
1184         0 + 0.
1185         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
1186         mode for addition resulting in exact zero.
1187         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
1188         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
1189         exact 0 + 0.
1190         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
1191         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
1192         * math/libm-test.inc (fma_test): Add more tests.
1193         (fma_test_towardzero): New function.
1194         (fma_test_downward): Likewise.
1195         (fma_test_upward): Likewise.
1196         (main): Call the new functions.
1197
1198 2012-09-28  David S. Miller  <davem@davemloft.net>
1199
1200         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
1201
1202 2012-09-28  Roland McGrath  <roland@hack.frob.com>
1203
1204         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
1205         instead of SIGALRM.
1206
1207         * sysdeps/gnu/_G_config.h: Moved to ...
1208         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
1209         * sysdeps/mach/hurd/_G_config.h: Moved to ...
1210         * sysdeps/generic/_G_config.h: ... here.
1211
1212         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
1213
1214         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
1215
1216         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
1217         Conditionalize target on [libnss_test1.so-version].
1218
1219         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
1220
1221         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
1222         (elfobjdir): Move out of conditionals.
1223
1224         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
1225         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
1226         (__nss_lookup_function): Conditionalize label remove_from_tree on
1227         [!DO_STATIC_NSS || SHARED], matching its only use.
1228
1229 2012-09-28  David S. Miller  <davem@davemloft.net>
1230
1231         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
1232         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
1233         file.
1234         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
1235         sysdep_routines.
1236         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
1237         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
1238         when HWCAP_SPARC_CRYPTO is present.
1239
1240 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
1241
1242         * io/tst-mknodat.c: Create a FIFO instead of a socket.
1243
1244 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
1245
1246         [BZ #6530]
1247         * stdio-common/vfprintf.c (process_string_arg): Revert
1248         2000-07-22 change.
1249
1250 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
1251
1252         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
1253         for testcase.
1254         * stdio-common/tst-sprintf.c: Include <locale.h>
1255         (main): Test sprintf's handling of incomplete multibyte
1256         characters.
1257
1258 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
1259
1260         * elf/dl-runtime.c (VERSYMIDX): Removed.
1261         * elf/dl-version.c (VERSYMIDX): Likewise.
1262         * elf/do-rel.h (VERSYMIDX): Likewise.
1263         (VALIDX): Likewise.
1264         * elf/dynamic-link.h (VERSYMIDX): Likewise.
1265         * elf/rtld.c (VALIDX): Likewise.
1266         (ADDRIDX): Likewise.
1267         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
1268         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
1269         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
1270         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
1271         (VALIDX): Likewise.
1272         (ADDRIDX): Likewise.
1273
1274 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
1275
1276         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
1277
1278 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
1279
1280         [BZ #11438]
1281         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
1282         to global scope.
1283         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
1284         addresses are in the same scope as 192.0.2/24.
1285         * posix/gai.conf: Document new scope table defaults.
1286
1287 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
1288
1289         [BZ #5298]
1290         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
1291         for ftell.  Compute offsets from write pointers instead.
1292         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
1293
1294 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
1295
1296         [BZ #14543]
1297         * libio/Makefile (tests): New test case tst-fseek.
1298         * libio/tst-fseek.c: New test case to verify that fseek/ftell
1299         combination works in wide mode.
1300         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
1301         state when the external buffer state changes.
1302
1303 2012-09-27  David S. Miller  <davem@davemloft.net>
1304
1305         [BZ #14376]
1306         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
1307         pass reloc->r_addend in as the 'high' argument to
1308         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
1309
1310         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1311
1312 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
1313
1314         * rt/tst-aio2.c: Include <pthread.h>.
1315         * rt/tst-aio3.c: Likewise.
1316
1317 2012-09-27  Steve Ellcey  <sellcey@mips.com>
1318
1319         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
1320
1321 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
1322
1323         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
1324         contents on [SHARED].
1325
1326 2012-09-26  Marek Polacek  <polacek@redhat.com>
1327
1328         [BZ #14530]
1329         [BZ #13741]
1330         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
1331         for C++ and GCC <4.3 as well as for non GCC compilers.
1332
1333 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
1334
1335         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1336
1337 2012-09-25  Roland McGrath  <roland@hack.frob.com>
1338
1339         * Makefile.in (all, install): Declare with .PHONY.
1340         Reported by Michael Hope <michael.hope@linaro.org>.
1341
1342 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1343
1344         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
1345         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
1346         system header.
1347         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
1348         Likewise.
1349         (sydep_routines): Add the new and the internal functions.
1350         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
1351         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
1352         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
1353         (GLIBC_2.17): Add the new function.
1354         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
1355         (GLIBC_2.17): Likewise.
1356         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
1357         (GLIBC_2.17): Likewise.
1358         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
1359         (GLIBC_2.17): Likewise.
1360         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
1361
1362 2012-09-25  Alan Modra  <amodra@gmail.com>
1363
1364         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
1365         Add release barrier before setting once_control to say
1366         initialisation is done.  Add hints on lwarx.  Use macro in
1367         place of isync.
1368         (clear_once_control): Add release barrier.
1369
1370 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
1371
1372         [BZ #13629]
1373         * math/s_clog.c (__clog): Handle more values close to |z| = 1
1374         specially.
1375         * math/s_clog10.c (__clog10): Likewise.
1376         * math/s_clog10f.c (__clog10f): Likewise.
1377         * math/s_clog10l.c (__clog10l): Likewise.
1378         * math/s_clogf.c (__clogf): Likewise.
1379         * math/s_clogl.c (__clogl): Likewise.
1380         * math/Makefile (libm-calls): Add x2y2m1.
1381         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
1382         (__x2y2m1): Likewise.
1383         (__x2y2m1l): Likewise.
1384         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
1385         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
1386         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
1387         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
1388         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
1389         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
1390         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
1391         * sysdeps/i386/fpu/libm-test-ulps: Update.
1392         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1393
1394         [BZ #14621]
1395         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
1396         int as type of variable DEPTH.
1397         (glob): Use size_t instead of int as type of variables NEWCOUNT
1398         and OLD_PATHC.
1399
1400 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1401
1402         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
1403         Add s_sincosf-sse2.
1404         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
1405         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
1406         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
1407         macros for using routine as __sincosf_ia32.
1408         Use macro for function declaration and weak_alias.
1409         * sysdeps/i386/fpu/libm-test-ulps: Update.
1410
1411         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
1412         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1413
1414         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
1415         subnormal argument.
1416         * math/s_cexpf.c (__cexpf): Likewise.
1417         * math/s_csinf.c (__csinf): Likewise.
1418         * math/s_csinhf.c (__csinhf): Likewise.
1419         * math/s_ctanf.c (__ctanf): Likewise.
1420         * math/s_ctanhf.c (__ctanhf): Likewise.
1421         * math/s_ccosh.c (__ccoshf): Likewise.
1422         * math/s_cexp.c (__cexpl): Likewise.
1423         * math/s_csin.c (__csin): Likewise.
1424         * math/s_csinh.c (__csinh): Likewise.
1425         * math/s_ctan.c (__ctan): Likewise.
1426         * math/s_ctanh.c (ctanh): Likewise.
1427         * math/s_ccoshl.c (__ccoshl): Likewise.
1428         * math/s_cexpl.c (__cexpl): Likewise.
1429         * math/s_csinl.c (__csinl): Likewise.
1430         * math/s_csinhl.c (__csinhl): Likewise.
1431         * math/s_ctanl.c (__ctanl): Likewise.
1432         * math/s_ctanhl.c (__ctanhl): Likewise.
1433
1434 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
1435
1436         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
1437         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
1438         (_IO_off_t): Define to __off_t, not _G_off_t.
1439         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
1440         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
1441         (_IO_wint_t): Define to wint_t, not _G_wint_t.
1442         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
1443         type of __dummy and __dummy2 fields.
1444         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
1445         (_G_ssize_t): Likewise.
1446         (_G_off_t): Likewise.
1447         (_G_pid_t): Likewise.
1448         (_G_uid_t): Likewise.
1449         (_G_wchar_t): Likewise.
1450         (_G_wint_t): Likewise.
1451         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
1452         (_G_ssize_t): Likewise.
1453         (_G_off_t): Likewise.
1454         (_G_pid_t): Likewise.
1455         (_G_uid_t): Likewise.
1456         (_G_wchar_t): Likewise.
1457         (_G_wint_t): Likewise.
1458         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
1459         (_G_ssize_t): Likewise.
1460         (_G_off_t): Likewise.
1461         (_G_pid_t): Likewise.
1462         (_G_uid_t): Likewise.
1463         (_G_wchar_t): Likewise.
1464         (_G_wint_t): Likewise.
1465
1466 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
1467
1468         * malloc/arena.c: Include malloc-sysdep.h.
1469         (shrink_heap): Use check_may_shrink_heap to decide if madvise
1470         is sufficient to shrink the heap or an unmap is needed.
1471         * sysdeps/generic/malloc-sysdep.h: New file.  Define
1472         new function check_may_shrink_heap.
1473         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
1474         new function check_may_shrink_heap.
1475
1476 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
1477
1478         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
1479         comments.
1480
1481 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
1482
1483         * catgets/test-gencat.sh: Add "set -e".
1484         * elf/tst-pathopt.sh: Likewise.
1485         * grp/tst_fgetgrent.sh: Likewise.
1486         * iconvdata/run-iconv-test.sh: Likewise.
1487         * intl/tst-gettext.sh: Likewise.
1488         * intl/tst-gettext2.sh: Likewise.
1489         * intl/tst-gettext4.sh: Likewise.
1490         * intl/tst-gettext6.sh: Likewise.
1491         * intl/tst-translit.sh: Likewise.
1492         * io/ftwtest-sh: Likewise.
1493         * libio/test-freopen.sh: Likewise.
1494         * malloc/tst-mtrace.sh: Likewise.
1495         * posix/globtest.sh: Likewise.
1496         * posix/tst-getconf.sh: Likewise.
1497         * posix/wordexp-tst.sh: Likewise.
1498         * stdio-common/tst-printf.sh: Likewise.
1499         * stdio-common/tst-unbputc.sh: Likewise.
1500         * stdlib/tst-fmtmsg.sh: Likewise.
1501         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
1502         * catgets/Makefile: Do not specify -e option when running
1503         testsuite shell scripts.
1504         * elf/Makefile: Likewise.
1505         * grp/Makefile: Likewise.
1506         * iconvdata/Makefile: Likewise.
1507         * intl/Makefile: Likewise.
1508         * io/Makefile: Likewise.
1509         * libio/Makefile: Likewise.
1510         * malloc/Makefile: Likewise.
1511         * posix/Makefile: Likewise.
1512         * stdio-common/Makefile: Likewise.
1513         * stdlib/Makefile: Likewise.
1514         * sysdeps/x86_64/Makefile: Likewise.
1515
1516         * io/ftwtest-sh: Add copyright header.
1517         * posix/globtest.sh: Likewise.
1518         * posix/tst-getconf.sh: Likewise.
1519         * posix/wordexp-tst.sh: Likewise.
1520         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
1521
1522 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
1523
1524         [BZ #13679]
1525         * Makeconfig (+link): Defined as $(+link-static) if
1526         $(build-shared) isn't yes.
1527         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
1528         isn't yes.
1529         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
1530
1531         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
1532
1533         [BZ #14562]
1534         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
1535         new chunk size with MALLOC_ALIGN_MASK.
1536
1537 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
1538
1539         [BZ #5044]
1540         * stdio-common/printf_fphex.c: Include <stdbool.h> and
1541         <rounding-mode.h>.
1542         (__printf_fphex): Determine rounding using get_rounding_mode and
1543         round_away.
1544         * stdio-common/tst-printf-round.c (struct hex_test): New
1545         structure.
1546         (hex_tests): New variable.
1547         (test_hex_in_one_mode): New function.
1548         (do_test): Also run tests for hex float output.
1549
1550 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
1551
1552         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
1553         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
1554         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
1555         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
1556         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
1557         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
1558         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
1559         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
1560
1561 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
1562
1563         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
1564         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
1565         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
1566         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
1567
1568 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
1569
1570         [BZ #14579]
1571         * elf/rtld.c (dl_main): Limit the check for self loading to normal
1572         mode only.
1573         * elf/tst-rtld-load-self.sh: New test.
1574         * elf/Makefile: Run it.
1575
1576 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
1577
1578         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
1579         (tst-writev-ENV): Remove.
1580         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
1581
1582 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
1583
1584         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
1585
1586 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
1587
1588         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
1589         unconditional.
1590         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
1591         Likewise.
1592         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
1593         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
1594         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
1595         Likewise.
1596
1597 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
1598
1599         [BZ #14587]
1600         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
1601         * config.make.in (have-cpp-asm-debuginfo): Removed.
1602         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
1603         * configure: Regenerated.
1604
1605 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
1606
1607         [BZ #5044]
1608         * stdio-common/printf_fp.c: Include <stdbool.h> and
1609         <rounding-mode.h>.
1610         (___printf_fp): Determine rounding using get_rounding_mode and
1611         round_away.
1612         * stdio-common/tst-printf-round.c: New file.
1613         * stdio-common/Makefile (tests): Add tst-printf-round.
1614         (link-libm): New variable.
1615         ($(objpfx)tst-printf-round): Depend in $(link-libm).
1616
1617 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
1618
1619         [BZ #14576]
1620         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
1621         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
1622         Likewise.
1623         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
1624         Likewise.
1625
1626 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
1627
1628         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
1629         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
1630         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
1631         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
1632
1633 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
1634
1635         [BZ #14518]
1636         * include/rounding-mode.h: New file.
1637         * sysdeps/generic/get-rounding-mode.h: Likewise.
1638         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
1639         * stdlib/strtod_l.c: Include <rounding-mode.h>.
1640         (MAX_VALUE): New macro.
1641         (MIN_VALUE): Likewise.
1642         (overflow_value): New function.
1643         (underflow_value): Likewise.
1644         (round_and_return): Use overflow_value and underflow_value to
1645         determine return values in overflow and underflow cases.  Use
1646         round_away to determine rounding depending on rounding mode.
1647         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
1648         determine return values in overflow and underflow cases.
1649         * stdlib/tst-strtod-round.c: Include <fenv.h>.
1650         (struct test_results): New structure.
1651         (struct test): Use struct test_results to store expected results
1652         for all rounding modes.
1653         (TEST): Include expected results for all rounding modes.
1654         (test_in_one_mode): New function.
1655         (do_test): Use test_in_one_mode to compute and check results.
1656         Check results for all rounding modes.
1657         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
1658         $(link-libm).
1659
1660 2012-12-09  Allan McRae  <allan@archlinux.org>
1661
1662         * sysdeps/i386/fpu/libm-test-ulps: Update
1663
1664 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
1665
1666         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
1667         (_G_int32_t): Likewise.
1668         (_G_uint16_t): Likewise.
1669         (_G_uint32_t): Likewise.
1670         (_G_HAVE_BOOL): Likewise.
1671         (_G_HAVE_ATEXIT): Likewise.
1672         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
1673         (_G_HAVE_IO_FILE_OPEN): Likewise.
1674         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
1675         (_G_int32_t): Likewise.
1676         (_G_uint16_t): Likewise.
1677         (_G_uint32_t): Likewise.
1678         (_G_HAVE_BOOL): Likewise.
1679         (_G_HAVE_ATEXIT): Likewise.
1680         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
1681         (_G_HAVE_IO_FILE_OPEN): Likewise.
1682         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
1683         (_G_int32_t): Likewise.
1684         (_G_uint16_t): Likewise.
1685         (_G_uint32_t): Likewise.
1686         (_G_HAVE_BOOL): Likewise.
1687         (_G_HAVE_ATEXIT): Likewise.
1688         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
1689         (_G_HAVE_IO_FILE_OPEN): Likewise.
1690
1691 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
1692
1693         * csu/libc-tls.c: Update copyright years.
1694
1695 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
1696
1697         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
1698         [!_G_USING_THUNKS]: Remove conditional code.
1699         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
1700         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
1701
1702         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
1703         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
1704         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
1705         (_G_VTABLE_LABEL_PREFIX): Likewise.
1706         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
1707         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
1708         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
1709         (_G_VTABLE_LABEL_PREFIX): Likewise.
1710         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
1711         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
1712         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
1713         (_G_VTABLE_LABEL_PREFIX): Likewise.
1714         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
1715
1716 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
1717
1718         * libio/Makefile: Include ../Makeconfig before tests.
1719         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
1720         only if $(build-shared) is yes.
1721
1722         * iconv/gconv_db.c: Update copyright years.
1723
1724 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1725
1726         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
1727         unwind info if defined PIC. Fix special cases description.
1728         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
1729
1730         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
1731         DP_HI_MASK entry.
1732         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
1733
1734 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
1735
1736         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
1737
1738         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
1739         is NULL.
1740
1741         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
1742         (LDLIBS-tst-chk4): This.
1743         (LDFLAGS-tst-chk5): Renamed to ...
1744         (LDLIBS-tst-chk5): This.
1745         (LDFLAGS-tst-chk6): Renamed to ...
1746         (LDLIBS-tst-chk6): This.
1747         (LDFLAGS-tst-lfschk4): Renamed to ...
1748         (LDLIBS-tst-lfschk4): This.
1749         (LDFLAGS-tst-lfschk5): Renamed to ...
1750         (LDLIBS-tst-lfschk5): This.
1751         (LDFLAGS-tst-lfschk6): Renamed to ...
1752         (LDLIBS-tst-lfschk6): This.
1753
1754         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
1755         on $(common-objpfx)soversions.mk.
1756
1757 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
1758
1759         [BZ #10014]
1760         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
1761         example host name.
1762
1763 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
1764
1765         * malloc/arena.c (arena_get_retry): New function that gets
1766         another arena for the caller to try its request on.
1767         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
1768         current arena cannot fulfill the request.
1769         (__libc_memalign): Likewise.
1770         (__libc_memalign): Likewise.
1771         (__libc_pvalloc): Likewise.
1772         (__libc_calloc): Likewise.
1773
1774 2012-09-05  John Tobey  <john.tobey@gmail.com>
1775
1776         [BZ #13542]
1777         * manual/arith.texi (Operations on Complex): Fix description
1778         of carg branch cut.
1779
1780 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
1781
1782         [BZ #10014]
1783         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
1784         host name.
1785
1786         [BZ #10038]
1787         * manual/memory.texi (Memory): Make order of menu items match
1788         order of sections.
1789
1790 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1791
1792         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
1793         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
1794         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
1795
1796 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1797
1798         * csu/libc-tls.c (static_dtv): Renamed to ...
1799         (_dl_static_dtv): This.  Make it global.
1800         (_dl_initial_dtv): Removed.
1801         (__libc_setup_tls): Updated.
1802         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
1803         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
1804         DL_INITIAL_DTV.
1805
1806 2012-09-06  Petr Machata  <pmachata@redhat.com>
1807
1808         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
1809         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
1810         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
1811         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
1812
1813 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1814
1815         [BZ #14545]
1816         * csu/libc-tls.c (_dl_initial_dtv): New variable.
1817         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
1818         freeing dtv[-1].
1819
1820 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1821
1822         [BZ #14544]
1823         * Makeconfig (link-static-before-libc): Replace $(+prector)
1824         with $(+prectorT).
1825         (link-static-after-libc): Replace $(+postctor) with
1826         $(+postctorT).
1827         (link-bounded): Replace $(+prector)/$(+postctor) with
1828         $(+prectorT)/$(+postctorT).
1829         (+prectorT): New macro.
1830         (+postctorT): Likewise.
1831
1832 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
1833
1834         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
1835         (round_str): Handle values above the maximum for IBM long double
1836         as inexact.
1837         * stdlib/tst-strtod-round.c (tests): Regenerated.
1838
1839 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1840
1841         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
1842         assembler flag.
1843         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
1844         zarch_nohighgprs around the zarch optimized routines.
1845         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
1846         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
1847         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
1848         for zarch.
1849
1850 2012-09-05  David S. Miller  <davem@davemloft.net>
1851
1852         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1853
1854         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
1855         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
1856         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
1857         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
1858         entries.
1859
1860 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1861
1862         * malloc/arena.c: Fold copyright years.
1863         * malloc/mcheck.c, malloc/memusage.c: Likewise.
1864
1865 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1866
1867         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
1868
1869 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1870
1871         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
1872
1873 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1874
1875         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
1876         change internal state upon failure.
1877
1878 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1879
1880         * malloc/mcheck.c (mcheck_check_all): Fix typo.
1881         * malloc/memusage.c (mmap): Likewise.
1882         (mmap64, mremap): Likewise.  Adjust name in comment.
1883
1884 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
1885
1886         * libio/fileops.c: Fix typos in comments.
1887         * libio/oldfileops.c: Likewise.
1888         * libio/wfileops.c: Likewise.
1889
1890 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
1891
1892         [BZ #1349]
1893         * malloc/Makefile (tests): Add tst-malloc-usable test case.
1894         (tst-malloc-usable-ENV): Set environment for test case.
1895         * malloc/hooks.c (malloc_check_get_size): New function to get
1896         requested size.
1897         * malloc/malloc.c (musable): Use malloc_check_get_size.
1898         * malloc/tst-malloc-usable.c: New test case.
1899
1900 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
1901
1902         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
1903
1904 2012-09-05  Allan McRae  <allan@archlinux.org>
1905
1906         [BZ #13966]
1907         * configure.in (CXX_SYSINCLUDES): Use compiler output to
1908         determine header location.
1909         * configure: Regenerated.
1910
1911 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
1912
1913         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
1914         float format.
1915         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
1916         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
1917         format.
1918         (test): Regenerate.
1919
1920 2012-09-04  David S. Miller  <davem@davemloft.net>
1921
1922         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
1923         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
1924         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
1925
1926 2012-09-04  Florian Weimer  <fweimer@redhat.com>
1927
1928         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
1929         failures.
1930
1931         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
1932
1933 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
1934
1935         [BZ #9914]
1936         * libio/iogetdelim.c: Include <limits.h>.
1937         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
1938         + len + 1 would overflow.
1939
1940 2012-09-03  Andreas Jaeger  <aj@suse.de>
1941
1942         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1943         * sysdeps/i386/fpu/libm-test-ulps: Update.
1944
1945 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1946
1947         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
1948         Add s_sinf-sse2, s_conf-sse2.
1949
1950         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
1951         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
1952         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
1953         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
1954
1955         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
1956         for using routine as __sinf_ia32.
1957         Use macro for function declaration and weak_alias.
1958         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
1959         for using routine as __cosf_ia32.
1960         Use macro for function declaration and weak_alias.
1961
1962         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
1963         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
1964
1965         * sysdeps/x86_64/fpu/s_sinf.S: New file.
1966         * sysdeps/x86_64/fpu/s_cosf.S: New file.
1967         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1968
1969         * math/libm-test.inc (cos_test): Add more test cases.
1970         (sin_test): Likewise.
1971         (sincos_test): Likewise.
1972
1973 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1974
1975         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
1976         (IFUNC_RESOLVE): Make pointers to the specialized implementations
1977         hidden.
1978         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
1979
1980 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
1981
1982         [BZ #14538]
1983         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
1984         first element of the GOT.
1985         (elf_machine_load_address): Return the difference between
1986         the runtime address of _DYNAMIC and elf_machine_dynamic ().
1987
1988 2012-09-01  Allan McRae  <allan@archlinux.org>
1989
1990         [BZ #13412]
1991         * configure.in (AWK): Require gawk version 3.0 or later.
1992         * configure: Regenerated.
1993
1994 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
1995
1996         * sysdeps/unix/sysv/linux/kernel-features.h
1997         (__ASSUME_POSIX_CPU_TIMERS): Remove.
1998         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
1999         [__NR_clock_getres]: Make code unconditional.
2000         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
2001         (clock_getcpuclockid): Remove code left unreachable by removal of
2002         conditionals.
2003         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
2004         code unconditional.
2005         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
2006         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
2007         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
2008         Make code unconditional.
2009         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
2010         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
2011         * sysdeps/unix/sysv/linux/clock_settime.c
2012         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
2013         conditional code.
2014         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
2015         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
2016
2017 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
2018
2019         [BZ #14476]
2020         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
2021         scripts/test-installation.pl.
2022
2023         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
2024         and $ld_so_version if it is set.
2025
2026 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
2027
2028         [BZ #14516]
2029         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
2030         failure if reading from procfs failed.
2031         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
2032
2033 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
2034
2035         * sysdeps/unix/sysv/linux/kernel-features.h
2036         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
2037         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
2038         Remove conditional code.
2039         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2040         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
2041         Remove conditional code.
2042         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2043         * sysdeps/unix/sysv/linux/i386/fxstat.c
2044         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
2045         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2046         * sysdeps/unix/sysv/linux/i386/fxstatat.c
2047         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
2048         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2049         * sysdeps/unix/sysv/linux/i386/lxstat.c
2050         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
2051         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2052         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
2053         Remove conditional code.
2054         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2055         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
2056         Remove conditional code.
2057         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2058         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
2059         <kernel-features.h>.
2060         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
2061         Remove.
2062         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
2063         Remove conditional code.
2064         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2065         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
2066         Remove conditional.
2067
2068 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
2069
2070         [BZ #5400]
2071         * NEWS: Add fixed bug number.
2072
2073 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
2074
2075         [BZ #14519]
2076         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
2077         underflowing exponent in case of negative sign.
2078         * stdlib/tst-strtod-round-data: Add more tests.
2079         * stdlib/tst-strtod-round.c (tests): Regenerated.
2080
2081         [BZ #3479]
2082         * stdlib/strtod_l.c (NDIG): Remove.
2083         (HEXNDIG): Likewise.
2084         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
2085         smallest representable value.
2086         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
2087         lie within an exact representation of 1/2 ulp of the result.
2088         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
2089         unconditionally.
2090         (TENS_P9_IDX): Define unconditionally.
2091         (TENS_P9_SIZE): Likewise.
2092         (TENS_P10_IDX): Likewise.
2093         (TENS_P10_SIZE): Likewise.
2094         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
2095         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
2096         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
2097         entries for 10^2^13 and 10^2^14.
2098         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
2099         (TENS_P13_IDX): Define.
2100         (TENS_P13_SIZE): Likewise.
2101         (TENS_P14_IDX): Likewise.
2102         (TENS_P14_SIZE): Likewise.
2103         (_fpioconst_pow10): Change array size to
2104         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
2105         unconditional.
2106         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
2107         1024]: Add entries for 10^2^13 and 10^2^14.
2108         [LAST_POW10 > _LAST_POW10]: Remove #error.
2109         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
2110         (_fpioconst_pow10): Change array size to
2111         FPIOCONST_POW10_ARRAY_SIZE.
2112         * stdlib/gen-fpioconst.c: New file.
2113         * stdlib/gen-tst-strtod-round.c: Likewise.
2114         * stdlib/tst-strtod-round-data: Likewise.
2115         * stdlib/tst-strtod-round.c: Likewise.
2116         * stdlib/Makefile (tests): Add tst-strtod-round.
2117
2118         [BZ #14459]
2119         * stdlib/strtod_l.c: Include <stdint.h>.
2120         (NDEBUG): Do not define.
2121         (round_and_return): Change EXPONENT parameter to type intmax_t.
2122         Rearrange calculations to avoid internal overflow possibilities.
2123         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
2124         Rearrange calculations to avoid internal overflow possibilities.
2125         Assert that number fits inside MPNSIZE limbs.
2126         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
2127         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
2128         calculations and add assertions to avoid internal overflow
2129         possibilities.  Add casts to avoid signed/unsigned operations.
2130         * stdlib/tst-strtod-overflow.c: New file.
2131         * stdlib/Makefile (tests): Add tst-strtod-overflow.
2132
2133 2012-08-25  Marek Polacek  <polacek@redhat.com>
2134
2135         * time/time.h: Fix some typos in comments.
2136
2137 2012-08-23  Roland McGrath  <roland@hack.frob.com>
2138
2139         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
2140         * posix/tst-rfc3484-2.c: Likewise.
2141         * posix/tst-rfc3484-3.c: Likewise.
2142
2143 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
2144
2145         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
2146         (EF_ARM_ABI_FLOAT_HARD): Likewise.
2147
2148 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
2149
2150         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
2151         #include of fxstatat64.c.
2152
2153 2012-08-22  Roland McGrath  <roland@hack.frob.com>
2154
2155         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
2156         * shadow/getspent_r.c: Likewise.
2157         * shadow/getspnam.c: Likewise.
2158         * shadow/getspnam_r.c: Likewise.
2159         * gshadow/getsgent.c: Likewise.
2160         * gshadow/getsgent_r.c: Likewise.
2161         * gshadow/getsgnam.c: Likewise.
2162         * gshadow/getsgnam_r.c: Likewise.
2163         * inet/getnetbyad.c: Likewise.
2164         * inet/getnetbyad_r.c: Likewise.
2165         * inet/getnetbynm.c: Likewise.
2166         * inet/getnetbynm_r.c: Likewise.
2167         * inet/getnetent.c: Likewise.
2168         * inet/getnetent_r.c: Likewise.
2169         * inet/getproto.c: Likewise.
2170         * inet/getproto_r.c: Likewise.
2171         * inet/getprtent.c: Likewise.
2172         * inet/getprtent_r.c: Likewise.
2173         * inet/getprtname.c: Likewise.
2174         * inet/getprtname_r.c: Likewise.
2175         * inet/getrpcbyname.c: Likewise.
2176         * inet/getrpcbyname_r.c: Likewise.
2177         * inet/getrpcbynumber.c: Likewise.
2178         * inet/getrpcbynumber_r.c: Likewise.
2179         * inet/getrpcent.c: Likewise.
2180         * inet/getrpcent_r.c: Likewise.
2181         * inet/getaliasent.c: Likewise.
2182         * inet/getaliasent_r.c: Likewise.
2183         * inet/getaliasname.c: Likewise.
2184         * inet/getaliasname_r.c: Likewise.
2185         * nscd/getgrgid_r.c: Likewise.
2186         * nscd/getgrnam_r.c: Likewise.
2187         * nscd/gethstbyad_r.c: Likewise.
2188         * nscd/gethstbynm3_r.c: Likewise.
2189         * nscd/getpwnam_r.c: Likewise.
2190         * nscd/getpwuid_r.c: Likewise.
2191         * nscd/getsrvbynm_r.c: Likewise.
2192         * nscd/getsrvbypt_r.c: Likewise.
2193         * nscd/gai.c: Likewise.
2194
2195         * configure.in (build_nscd): New substituted variable, set
2196         by --disable-build-nscd and defaults to $use_nscd.
2197         * configure: Regenerated.
2198         * config.make.in (build-nscd): New substituted variable.
2199         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
2200         Change conditional to require [$(build-nscd) = yes] as well.
2201         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
2202
2203         [BZ# 13696]
2204         * configure.in (use_nscd): New substituted variable, set by
2205         --disable-nscd.  If enabled, define USE_NSCD.
2206         * configure: Regenerated.
2207         * config.h.in: Add USE_NSCD.
2208         * config.make.in (use-nscd): New substituted variable.
2209         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
2210         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
2211         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
2212         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
2213         (CFLAGS-getgrnam_r.c): Likewise.
2214         (CFLAGS-initgroups.c): Likewise.
2215         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
2216         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
2217         Variables removed.
2218         * inet/getnetgrent_r.c
2219         (nscd_setnetgrent): New function, broken out of ...
2220         (setnetgrent): ... here.  Call it.
2221         (innetgr): Conditionalize nscd bits on [USE_NSCD].
2222         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
2223         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
2224         * nscd/Makefile (routines, aux): Move definitions after include of
2225         Makeconfig.  Conditionalize on [$(use-nscd) != no].
2226         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
2227         Conditionalize on [USE_NSCD].
2228         (is_nscd, nscd_init_cb): Likewise.
2229         (nss_load_library): Conditionalize init callback on [USE_NSCD].
2230         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
2231         * nss/nss_db/db-init.c: Likewise.
2232         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
2233         [USE_NSCD].
2234         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
2235         (make_request): Use it.
2236         (cache_valid_p): New function.
2237         (__check_pf): Use it.
2238         * NEWS: Add item for --disable-nscd.
2239
2240 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
2241
2242         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
2243         to support sed >= 4.2.1-20-ga9bf076.
2244         * configure: Regenerated.
2245
2246 2012-08-22  Roland McGrath  <roland@hack.frob.com>
2247
2248         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
2249         Conditionalize whole body on [IREL].
2250
2251 2012-08-22  Jeff Law <law@redhat.com>
2252
2253         [BZ #14505]
2254         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
2255         if the family is PF_UNSPEC.
2256
2257 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
2258
2259         * Makerules (lib-version): Rename from V.
2260         (install-lib-nosubdir): Change V to lib-version.
2261
2262 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
2263
2264         [BZ #14252]
2265         * powerpc32/power6/wcschr.c: New file.
2266         * powerpc32/power6/wcscpy.c: New file.
2267         * powerpc32/power6/wcsrchr.c: New file.
2268         * powerpc64/power6/wcschr.c: New file.
2269         * powerpc64/power6/wcscpy.c: New file.
2270         * powerpc64/power6/wcsrchr.c: New file.
2271
2272 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
2273
2274         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
2275         (two_way_short_needle): Use it.
2276         * string/strstr.c (AVAILABLE1_USES_J): Define.
2277         * string/strcasestr.c: Likewise.
2278
2279         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
2280         array references.
2281         * string/strcasestr.c (TOLOWER): Make side-effect safe.
2282
2283         [BZ #11607]
2284         * NEWS: Add an entry.
2285         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
2286         define their defaults.
2287         (two_way_short_needle): Detect end-of-string on-the-fly.
2288         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
2289         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
2290         * string/bug-strcasestr1.c: New test.
2291         * string/Makefile: Run it.
2292
2293 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
2294
2295         [BZ #11607]
2296         * string/str-two-way.h (two_way_short_needle): Optimize matching of
2297         the first character.
2298
2299 2012-08-21  Roland McGrath  <roland@hack.frob.com>
2300
2301         * csu/elf-init.c (__libc_csu_irel): Function removed.
2302         * csu/libc-start.c (apply_irel): New function.
2303         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
2304
2305 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
2306
2307         * sysdeps/unix/sysv/linux/kernel-features.h
2308         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
2309         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
2310         <kernel-features.h>.
2311         [__NR_fadvise64_64]: Make code unconditional.
2312         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
2313         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
2314         !__NR_fadvise64_64)]: Likewise.
2315         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
2316         !__NR_fadvise64_64))]: Likewise.
2317         [__NR_fadvise64]: Make code unconditional.
2318         [!__NR_fadvise64]: Remove conditional code.
2319         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
2320         <kernel-features.h>.
2321         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
2322         unconditional.
2323         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
2324         conditional code.
2325         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
2326         not include <kernel-features.h>.
2327         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
2328         unconditional.
2329         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
2330         conditional code.
2331         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
2332         include <kernel-features.h>.
2333         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
2334         unconditional.
2335         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
2336         conditional code.
2337
2338 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
2339
2340         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
2341         slight instruction rearrangements per scrollpipe analysis.
2342         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
2343
2344 2012-08-20  Roland McGrath  <roland@hack.frob.com>
2345
2346         * manual/syslog.texi (syslog; vsyslog, closelog):
2347         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
2348         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
2349
2350         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
2351         DSOCAPS to match condition on defining it.
2352
2353 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
2354
2355         * sysdeps/unix/sysv/linux/kernel-features.h
2356         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
2357         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
2358         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
2359         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
2360         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
2361         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
2362         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
2363         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
2364         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
2365         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
2366
2367         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
2368         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
2369
2370         * sysdeps/unix/sysv/linux/kernel-features.h
2371         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
2372         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
2373         unconditional.
2374         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
2375         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
2376         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
2377         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
2378         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
2379         Make code unconditional.
2380         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
2381         (__mmap64) [!__NR_mmap2]: Likewise.
2382         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
2383         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
2384         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
2385         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
2386         [__NR_mmap2]: Make code unconditional.
2387         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
2388         (__mmap64) [!__NR_mmap2]: Likewise.
2389
2390 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2391
2392         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
2393
2394 2012-08-18  Andreas Jaeger  <aj@suse.de>
2395
2396         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
2397
2398 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
2399
2400         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
2401         * include/unistd.h (__have_sock_cloexec): Likewise.
2402         (__have_pipe2): Likewise.
2403         (__have_dup3): Likewise.
2404
2405 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
2406
2407         [BZ #9685]
2408         * include/unistd.h (__have_pipe2): Change define into an extern int.
2409         (__have_dup3): Likewise.
2410         * socket/have_sock_cloexec.c: Include fcntl.h.
2411         (__have_pipe2): New variable.
2412         (__have_dup3): Likewise.
2413
2414 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
2415
2416         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
2417
2418 2012-08-17  Marek Polacek  <polacek@redhat.com>
2419
2420         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
2421         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
2422
2423 2012-08-17  Roland McGrath  <roland@hack.frob.com>
2424
2425         * configure.in: Add AC_SUBST for sysheaders.
2426         * configure: Regenerated.
2427         * config.make.in (sysheaders): New substituted variable.
2428
2429         * sysdeps/unix/mkfifo.c: Moved ...
2430         * sysdeps/posix/mkfifo.c: ... here.
2431         * sysdeps/unix/mkfifoat.c: Moved ...
2432         * sysdeps/posix/mkfifoat.c: ... here.
2433
2434         * sysdeps/unix/utime.c: Moved ...
2435         * sysdeps/posix/utime.c: ... here.
2436
2437         * sysdeps/unix/time.c: Moved ...
2438         * sysdeps/posix/time.c: ... here.
2439         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
2440         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
2441
2442         * sysdeps/unix/nice.c: Moved ...
2443         * sysdeps/posix/nice.c: ... here.
2444
2445         * sysdeps/unix/alarm.c: Moved ...
2446         * sysdeps/posix/alarm.c: ... here.
2447
2448         * intl/Makefile ($(codeset_mo)): Depend on the input file.
2449
2450 2012-08-17  Jeff Law <law@redhat.com>
2451
2452         * intl/Makefile (codeset_mo): New variable.
2453         ($(codeset_mo)): New target.
2454         (tst-codeset.out): Depend on that.  Remove explicit rule.
2455         (tst-gettext3.out, tst-gettext5.out): Likewise.
2456         (LOCPATH-ENV, tst-codeset-ENV): New variables.
2457         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
2458         * intl/tst-codeset.sh: Remove.
2459         * intl/tst-gettext3.sh: Likewise.
2460         * intl/tst-gettext5.sh: Likewise.
2461
2462 2012-08-17  Roland McGrath  <roland@hack.frob.com>
2463
2464         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
2465         * sysdeps/unix/syscalls.list: ... here.
2466
2467         * sysdeps/posix/getaddrinfo.c
2468         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
2469         (gaiconf_init, gaiconf_reload): Use them.
2470         [!_STATBUF_ST_NSEC]
2471         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
2472         Define using time_t rather than struct timespec.
2473
2474         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
2475         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
2476         Macros removed.
2477         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
2478         [!NO_THREADS].
2479         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
2480         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
2481         Likewise.
2482
2483         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
2484         __libc_cleanup_push argument.
2485
2486         * bits/param.h: New file.
2487         * misc/sys/param.h: New file.
2488         * include/sys/param.h: New file.
2489         * misc/Makefile (headers): Add bits/param.h.
2490         * sysdeps/generic/sys/param.h: File removed.
2491         * sysdeps/unix/sysv/linux/bits/param.h: New file.
2492         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
2493         * sysdeps/mach/hurd/bits/param.h: New file.
2494         * sysdeps/mach/hurd/sys/param.h: New file.
2495
2496         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
2497         last change.
2498
2499         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
2500         [_IO_MTSAFE_IO].
2501         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
2502         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
2503         New macros.
2504
2505         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
2506         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
2507         rather than -D_IO_MTSAFE_IO conditionally.
2508         * stdio-common/Makefile (CPPFLAGS): Likewise.
2509         * wcsmbs/Makefile (CPPFLAGS): Likewise.
2510         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
2511         Use $(libio-mtsafe).
2512         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
2513         of -D_IO_MTSAFE_IO.
2514         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
2515         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
2516         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
2517         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
2518         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
2519         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
2520         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
2521         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
2522         (CFLAGS-fread_u_chk.c): Likewise.
2523         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
2524         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
2525         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
2526         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
2527         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
2528         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
2529         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
2530         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
2531         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
2532
2533         * libio/Makefile: Test [$(libc-reentrant) = yes]
2534         instead of [$(filter %REENTRANT, $(defines)) nonempty].
2535
2536         * Makeconfig
2537         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
2538         * sysdeps/pthread/configure: File removed.
2539         * sysdeps/pthread/Makeconfig: New file.
2540         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
2541         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
2542
2543 2012-08-16  Gary Benson  <gbenson@redhat.com>
2544
2545         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
2546         unmapping the first object in a namespace.
2547
2548 2012-08-16  Roland McGrath  <roland@hack.frob.com>
2549
2550         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
2551         (__internal_setnetgrent): ... this.  Add internal_function to
2552         definition.  Add libc_hidden_def.
2553         (setnetgrent): Update caller.
2554         (internal_endnetgrent): Renamed to ...
2555         (__internal_endnetgrent): ... this.  Add internal_function to
2556         definition.  Add libc_hidden_def.
2557         (endnetgrent): Update caller.
2558         (internal_getnetgrent_r): Renamed to ...
2559         (__internal_getnetgrent_r): ... this.  Add internal_function to
2560         definition.  Add libc_hidden_def.
2561         (__getnetgrent_r): Update caller.
2562         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
2563
2564 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
2565
2566         * stdlib/longlong.h: Update from GCC.
2567
2568 2012-08-16  Roland McGrath  <roland@hack.frob.com>
2569
2570         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
2571         on _QL, which is set by umul_ppmm but never used.
2572         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
2573         variables, which are set by GMP macros but never used.
2574         * stdio-common/_itowa.c (_itowa): Likewise.
2575         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
2576         * stdlib/mod_1.c (mpn_mod_1): Likewise.
2577
2578 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
2579
2580         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
2581         struct La_sh_regs is not constant.
2582         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
2583         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
2584         and struct La_sparc64_regs are not constant.
2585
2586 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
2587
2588         * sysdeps/unix/sysv/linux/kernel-features.h
2589         (__ASSUME_POSIX_TIMERS): Remove.
2590         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
2591         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2592         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
2593         Make code unconditional.
2594         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2595         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
2596         Make code unconditional.
2597         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2598         * sysdeps/unix/sysv/linux/clock_nanosleep.c
2599         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
2600         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2601         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
2602         Make code unconditional.
2603         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2604         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
2605         (__libc_missing_posix_timers): Remove.
2606
2607 2012-08-15  Roland McGrath  <roland@hack.frob.com>
2608
2609         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
2610         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
2611
2612         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
2613
2614         * elf/dl-sym.c: Include <stdlib.h>.
2615
2616         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
2617         constants, which avoids warnings in 32-bit builds.
2618
2619         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
2620         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
2621
2622         * misc/lseek.c: File moved to ...
2623         * io/lseek.c: ... here.
2624
2625         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
2626
2627         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
2628         shifting LEN more than 31 bits at once.
2629
2630 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
2631
2632         [BZ #14195]
2633         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
2634         segmentation fault for a case of two empty input strings.
2635         * string/test-strncasecmp.c (check1): Renamed to...
2636         (bz12205): ...this.
2637         (bz14195): Add new testcase for two empty input strings and N > 0.
2638         (test_main): Call new testcase, adapt for renamed function.
2639
2640 2012-08-15  Andreas Jaeger  <aj@suse.de>
2641
2642         [BZ #14090]
2643         * crypt/md5test2.c: New test, based on test supplied by Serge
2644         Belyshev <belyshev@depni.sinp.msu.ru>.
2645         * crypt/Makefile (xtests): Add md5test-giant..
2646         * crypt/Makefile ($(objpfx)md5test-giant): Add.
2647
2648 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
2649
2650         [BZ #14090]
2651         * crypt/md5.c (md5_process_block): Don't assume the buffer
2652         length is less than 2**32.
2653         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
2654         length is less than 2**64.
2655
2656 2012-08-15  Roland McGrath  <roland@hack.frob.com>
2657
2658         * string/str-two-way.h: Include <sys/param.h>.
2659         (MAX): Macro removed.
2660
2661         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
2662         Move #define and #undef of memmove to just before and after
2663         including <string.h>.
2664
2665         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
2666         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
2667         and after including <string.h>.  Move declarations of
2668         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
2669         to before #include "string/memmove.c".
2670
2671         * include/dirent.h: Declare __getdirentries.
2672
2673         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
2674         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
2675
2676 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
2677
2678         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
2679         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
2680         * sysdeps/i386/configure: Regenerated.
2681         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
2682         STABS_CURRENT_FILE, and STABS_FUN.
2683         (END): Remove call to STABS_FUN_END.
2684         (STABS_CURRENT_FILE1): Delete.
2685         (STABS_CURRENT_FILE): Likewise.
2686         (STABS_FUN): Likewise.
2687         (STABS_FUN_END): Likewise.
2688         (STABS_FUN2): Likewise.
2689         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
2690         * sysdeps/x86_64/configure: Regenerated.
2691
2692 2012-08-14  Roland McGrath  <roland@hack.frob.com>
2693
2694         * elf/dl-open.c: Include <atomic.h>.
2695         * elf/dl-lookup.c: Likewise.
2696
2697 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
2698
2699         * sysdeps/unix/sysv/linux/kernel-features.h
2700         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
2701         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
2702         unconditionally.
2703         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
2704         unconditionally.
2705         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
2706         condition on __ASSUME_CLONE_THREAD_FLAGS.
2707
2708 2012-08-14  Andreas Jaeger  <aj@suse.de>
2709
2710         * sysdeps/i386/fpu/libm-test-ulps: Update.
2711
2712 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
2713
2714         * include/atomic.h (atomic_exchange_and_add): Split into ...
2715         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
2716         New atomic macros.
2717
2718 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
2719
2720         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2721
2722 2012-08-13  Jeff Law <law@redhat.com>
2723
2724         * manual/stdio.texi (snprintf): Clarify handling of the trailing
2725         null byte in the output string.
2726
2727 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
2728
2729         * sysdeps/unix/sysv/linux/kernel-features.h
2730         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
2731         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
2732         (__ASSUME_ARG_MAX_STACK_BASED): Define.
2733         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
2734         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
2735         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
2736         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
2737
2738 2012-08-09  Jeff Law <law@redhat.com>
2739
2740         [BZ #13939]
2741         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
2742         When avoid_arena is set, don't retry in the that arena.  Pick the
2743         next one, whatever it might be.
2744         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
2745         (arena_lock): Pass in new parameter to arena_get2.
2746         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
2747         arena_get2.
2748         (__libc_malloc): Unify retrying after main arena failure with
2749         __libc_memalign version.
2750         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
2751
2752 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
2753
2754         [BZ #14166]
2755         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
2756         to __redirect_strstr.
2757         (__strstr_sse42): Use typeof __redirect_strstr.
2758         (__strstr_ia32): Likewise.
2759         (__libc_strstr): New prototype.
2760         (strstr): Renamed to ...
2761         (__libc_strstr): This.
2762         (strstr): New strong alias of __libc_strstr.
2763         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
2764         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
2765         __redirect_time.
2766         Include <time.h>.
2767         (__libc_time): New prototype.
2768         (time_ifunc): Replace time with __libc_time.
2769         (time): New strong alias and hidden definition of __libc_time.
2770         (__GI_time): Remove strong alias.
2771         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
2772         Include <stddef.h>.
2773         (memmove): Redefined to __redirect_memmove.
2774         (__memmove_sse2): Use typeof __redirect_memmove.
2775         (__memmove_ssse3): Likewise.
2776         (__memmove_ssse3_back): Likewise.
2777         (__libc_memmove): New prototype.
2778         (memmove): Renamed to ...
2779         (__libc_memmove): This.
2780         (memmove): New strong alias of __libc_memmove.
2781
2782 2012-08-08  Mark Salter  <msalter@redhat.com>
2783
2784         * elf/elf.h
2785         (R_MN10300_TLS_GD): Define.
2786         (R_MN10300_TLS_LD): Likewise.
2787         (R_MN10300_TLS_LDO): Likewise.
2788         (R_MN10300_TLS_GOTIE): Likewise.
2789         (R_MN10300_TLS_IE): Likewise.
2790         (R_MN10300_TLS_LE): Likewise.
2791         (R_MN10300_TLS_DTPMOD): Likewise.
2792         (R_MN10300_TLS_DTPOFF): Likewise.
2793         (R_MN10300_TLS_TPOFF): Likewise.
2794         (R_MN10300_SYM_DIFF): Likewise.
2795         (R_MN10300_ALIGN): Likewise.
2796         (R_MN10300_NUM): Update.
2797
2798 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
2799
2800         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
2801         Remove.
2802
2803 2012-08-08  Roland McGrath  <roland@hack.frob.com>
2804
2805         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
2806
2807         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
2808         sysdeps/unix -> sysdeps/posix move.
2809         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
2810
2811 2012-08-07      Allan McRae     <allan@archlinux.org>
2812
2813         [BZ #14303]
2814         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
2815         (SUNOS_CPP): Likewise.
2816         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
2817         not found.
2818         (open_input): Call CPP using execvp.
2819
2820 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
2821
2822         * sysdeps/unix/sysv/linux/kernel-features.h
2823         (__ASSUME_PROT_GROWSUPDOWN): Remove.
2824         (__ASSUME_NO_CLONE_DETACHED): Likewise.
2825         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
2826         (__ASSUME_WAITID_SYSCALL): Likewise.
2827         * sysdeps/unix/sysv/linux/dl-execstack.c
2828         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
2829         code unconditional.
2830         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
2831         conditional code.
2832         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
2833         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
2834         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
2835         code.
2836         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
2837         unconditional.
2838         [__ASSUME_WAITID_SYSCALL]: Likewise.
2839         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
2840
2841 2012-08-07  Roland McGrath  <roland@hack.frob.com>
2842
2843         * sysdeps/unix/closedir.c: Renamed to ...
2844         * sysdeps/posix/closedir.c: ... here.
2845         * sysdeps/unix/dirfd.c: Renamed to ...
2846         * sysdeps/posix/dirfd.c: ... here.
2847         * sysdeps/unix/dirstream.h: Renamed to ...
2848         * sysdeps/posix/dirstream.h: ... here.
2849         * sysdeps/unix/fdopendir.c: Renamed to ...
2850         * sysdeps/posix/fdopendir.c: ... here.
2851         * sysdeps/unix/opendir.c: Renamed to ...
2852         * sysdeps/posix/opendir.c: ... here.
2853         * sysdeps/unix/readdir.c: Renamed to ...
2854         * sysdeps/posix/readdir.c: ... here.
2855         * sysdeps/unix/readdir_r.c: Renamed to ...
2856         * sysdeps/posix/readdir_r.c: ... here.
2857         * sysdeps/unix/rewinddir.c: Renamed to ...
2858         * sysdeps/posix/rewinddir.c: ... here.
2859         * sysdeps/unix/seekdir.c: Renamed to ...
2860         * sysdeps/posix/seekdir.c: ... here.
2861         * sysdeps/unix/telldir.c: Renamed to ...
2862         * sysdeps/posix/telldir.c: ... here.
2863         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
2864         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
2865         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
2866         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
2867
2868         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
2869         * bits/fcntl.h: ... here.
2870
2871         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
2872         not 0.
2873         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
2874         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
2875         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
2876         (struct flock): Move l_start, l_len to the beginning.
2877         Use __pid_t for l_pid.
2878         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
2879         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
2880         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
2881         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
2882         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
2883         [__USE_LARGEFILE64] (struct flock64): New type.
2884         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
2885
2886         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
2887         * bits/dirent.h: ... here.
2888
2889         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
2890         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
2891
2892 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
2893
2894         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
2895         Change from 2.6.0 to 2.6.16.
2896         * sysdeps/unix/sysv/linux/configure: Regenerated.
2897         * sysdeps/unix/sysv/linux/kernel-features.h
2898         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
2899         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
2900         version.
2901         (__ASSUME_UTIMES): Likewise.
2902         (__ASSUME_CLONE_STOPPED): Remove.
2903         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
2904         architectures, not kernel version.
2905         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
2906         (__ASSUME_NO_CLONE_DETACHED): Likewise.
2907         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
2908         (__ASSUME_WAITID_SYSCALL): Likewise.
2909         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
2910         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
2911         * README: State 2.6.16 as minimum Linux kernel version.  Do not
2912         refer to older versions.
2913
2914 2012-08-06  Roland McGrath  <roland@hack.frob.com>
2915
2916         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
2917         Define alphasort64 as an alias.
2918         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
2919         Define versionsort64 as an alias.
2920         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
2921         Define scandir64 as an alias.
2922         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
2923         Define scandirat64 as an alias.
2924         * dirent/alphasort64.c (alphasort64):
2925         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
2926         * dirent/versionsort64.c: Likewise.
2927         * dirent/scandir64.c: Likewise.
2928         * dirent/scandirat64.c: Likewise.
2929         * sysdeps/wordsize-64/alphasort.c: File removed.
2930         * sysdeps/wordsize-64/alphasort64.c: File removed.
2931         * sysdeps/wordsize-64/scandir.c: File removed.
2932         * sysdeps/wordsize-64/scandir64.c: File removed.
2933         * sysdeps/wordsize-64/scandirat.c: File removed.
2934         * sysdeps/wordsize-64/scandirat64.c: File removed.
2935         * sysdeps/wordsize-64/versionsort.c: File removed.
2936         * sysdeps/wordsize-64/versionsort64.c: File removed.
2937         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
2938         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
2939         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
2940         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
2941         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
2942         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
2943         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
2944         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
2945
2946         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
2947         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
2948         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
2949         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
2950         [defined __arch64__ || defined __sparcv9]
2951         (__INO_T_MATCHES_INO64_T): New macro.
2952         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
2953         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
2954         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
2955         * sysdeps/unix/sysv/linux/bits/dirent.h
2956         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
2957         (_DIRENT_MATCHES_DIRENT64): New macro.
2958
2959         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
2960         Define lockf64 as an alias.
2961         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
2962         Define fseeko64 as an alias.
2963         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
2964         Define ftello64 as an alias.
2965         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
2966         Define _IO_fgetpos64 and fgetpos64 as aliases.
2967         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
2968         Define _IO_fsetpos64 and fsetpos64 as aliases.
2969         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
2970         Conditionalize body on this.
2971         * libio/fseeko64.c: Likewise.
2972         * libio/ftello64.c: Likewise.
2973         * libio/iofgetpos64.c: Likewise.
2974         * libio/iofsetpos64.c: Likewise.
2975         * sysdeps/wordsize-64/lockf.c: File removed.
2976         * sysdeps/wordsize-64/lockf64.c: File removed.
2977         * sysdeps/wordsize-64/fseeko.c: File removed.
2978         * sysdeps/wordsize-64/fseeko64.c: File removed.
2979         * sysdeps/wordsize-64/ftello.c: File removed.
2980         * sysdeps/wordsize-64/ftello64.c: File removed.
2981         * sysdeps/wordsize-64/iofgetpos.c: File removed.
2982         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
2983         * sysdeps/wordsize-64/iofsetpos.c: File removed.
2984         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
2985         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
2986         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
2987         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
2988         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
2989         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
2990         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
2991         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
2992         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
2993         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
2994         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
2995
2996         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
2997         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
2998         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
2999         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
3000         [defined __arch64__ || defined __sparcv9]
3001         (__OFF_T_MATCHES_OFF64_T): New macro.
3002         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
3003         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
3004         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
3005         (__OFF_T_MATCHES_OFF64_T): New macro.
3006
3007 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
3008
3009         * stdlib/secure-getenv.c (__secure_getenv): Replace
3010         GLIBC_2_16 with GLIBC_2_17.
3011
3012 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
3013
3014         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
3015         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
3016
3017 2012-08-03  David S. Miller  <davem@davemloft.net>
3018
3019         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3020
3021 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
3022
3023         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
3024         Remove.
3025         (__ASSUME_CORRECT_SI_PID): Likewise.
3026         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
3027         (__ASSUME_TMPFS_NAME): Likewise.
3028         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
3029         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
3030         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
3031         (HAVE_AUX_SECURE): Make definition unconditional.
3032         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
3033         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
3034
3035 2012-08-03  Roland McGrath  <roland@hack.frob.com>
3036
3037         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
3038         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
3039         * sysdeps/mach/hurd/eloop-threshold.h: New file.
3040         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
3041         __eloop_threshold instead of SYMLOOP_MAX.
3042
3043         * sysdeps/generic/eloop-threshold.h: New file.
3044         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
3045         of MAXSYMLINKS.
3046         * elf/chroot_canon.c (chroot_canon): Likewise.
3047
3048 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
3049
3050         [BZ #13717]
3051         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
3052         Change to 2.6.0 everywhere.
3053         * sysdeps/unix/sysv/linux/configure: Regenerated.
3054         * sysdeps/unix/sysv/linux/kernel-features.h
3055         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
3056         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
3057         kernel versions.
3058         (__ASSUME_POSIX_TIMERS): Define unconditionally.
3059         (__ASSUME_FUTEX_REQUEUE): Remove.
3060         (__ASSUME_STATFS64): Define unconditionally.
3061         (__ASSUME_AT_SECURE): Likewise.
3062         (__ASSUME_CORRECT_SI_PID): Likewise.
3063         (__ASSUME_TGKILL): Define without depending on kernel version for
3064         i386.
3065         (__ASSUME_UTIMES): Likewise.
3066         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
3067         kernel version.
3068         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
3069         (__ASSUME_TMPFS_NAME): Likewise.
3070         * README: Update reference to Linux kernel versions.
3071
3072 2012-08-02  Marek Polacek  <polacek@redhat.com>
3073
3074         [BZ# 14150]
3075         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
3076         libc_cv_asm_type_prefix with %.
3077         * configure: Regenerated.
3078         * include/libc-symbols.h: Remove comment about
3079         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
3080         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
3081         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
3082         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
3083         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
3084         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
3085         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
3086         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
3087         * elf/tst-unique2mod1.c: Likewise.
3088         * elf/tst-unique1mod2.c: Likewise.
3089         * elf/tst-unique1mod1.c: Likewise.
3090         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
3091         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
3092         Replace ASM_TYPE_DIRECTIVE with .type.
3093         * sysdeps/s390/s390-64/sysdep.h: Likewise.
3094         * sysdeps/i386/sysdep.h: Likewise.
3095         * sysdeps/x86_64/sysdep.h: Likewise.
3096         * sysdeps/sh/sysdep.h: Likewise.
3097         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
3098         Do not define ASM_TYPE_DIRECTIVE.
3099         * sysdeps/powerpc/sysdep.h: Likewise.
3100         * sysdeps/powerpc/powerpc32/sysdep.h:
3101         Replace ASM_TYPE_DIRECTIVE with .type.
3102         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
3103         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
3104         * sysdeps/i386/fpu/e_powf.S: Likewise.
3105         * sysdeps/i386/fpu/e_expl.S: Likewise.
3106         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
3107         * sysdeps/i386/fpu/e_acosh.S: Likewise.
3108         * sysdeps/i386/fpu/e_pow.S: Likewise.
3109         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
3110         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
3111         * sysdeps/i386/fpu/s_expm1.S: Likewise.
3112         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
3113         * sysdeps/i386/fpu/e_log2.S: Likewise.
3114         * sysdeps/i386/fpu/e_log2l.S: Likewise.
3115         * sysdeps/i386/fpu/e_scalb.S: Likewise.
3116         * sysdeps/i386/fpu/e_powl.S: Likewise.
3117         * sysdeps/i386/fpu/e_log10f.S: Likewise.
3118         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
3119         * sysdeps/i386/fpu/e_logl.S: Likewise.
3120         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
3121         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
3122         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
3123         * sysdeps/i386/fpu/e_log2f.S: Likewise.
3124         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
3125         * sysdeps/i386/fpu/e_log.S: Likewise.
3126         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
3127         * sysdeps/i386/fpu/e_logf.S: Likewise.
3128         * sysdeps/i386/fpu/e_log10l.S: Likewise.
3129         * sysdeps/i386/fpu/e_atanh.S: Likewise.
3130         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
3131         * sysdeps/i386/fpu/e_log10.S: Likewise.
3132         * sysdeps/i386/fpu/s_frexp.S: Likewise.
3133         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
3134         * sysdeps/i386/fpu/s_asinh.S: Likewise.
3135         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
3136         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
3137         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
3138         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
3139         * sysdeps/i386/i686/strtok.S: Likewise.
3140         * sysdeps/i386/i386-mcount.S: Likewise.
3141         * sysdeps/i386/strtok.S: Likewise.
3142         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
3143         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
3144         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
3145         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
3146         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
3147         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
3148         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
3149         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
3150         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
3151         * sysdeps/x86_64/_mcount.S: Likewise.
3152         * sysdeps/x86_64/strtok.S: Likewise.
3153         * sysdeps/sh/_mcount.S: Likewise.
3154
3155 2012-08-01  Roland McGrath  <roland@hack.frob.com>
3156
3157         * libio/iofopen.c: Include <fcntl.h>.
3158         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
3159         (_IO_fopen64, fopen64): Define as aliases.
3160         * libio/iofopen64.c: Include <fcntl.h>.
3161         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
3162         Conditionalize body on this.
3163         * sysdeps/wordsize-64/iofopen.c: File removed.
3164         * sysdeps/wordsize-64/iofopen64.c: File removed.
3165
3166 2012-08-01  Marek Polacek  <polacek@redhat.com>
3167
3168         * libc/Makeconfig: Use elf in place of binfmt-subdir.
3169         Use dlfcn directly instead of a variable.
3170         (binfmt-subdir): Do not define.
3171         (dlfcn): Likewise.
3172
3173 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
3174
3175         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
3176         Remove all definitions.
3177         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
3178         <kernel-features.h>.
3179         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
3180         (miss_F_GETOWN_EX): Remove all definitions.
3181         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
3182         macro definition.
3183         [!__ASSUME_FCNTL64]: Remove conditional code.
3184         [__ASSUME_FCNTL64]: Make code unconditional.
3185         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
3186         <kernel-features.h>.
3187         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
3188         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
3189         (lockf64) [__NR_fcntl64]: Make code unconditional.
3190         (lockf64) [__ASSUME_FCNTL64]: Likewise.
3191
3192         * sysdeps/unix/sysv/linux/kernel-features.h
3193         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
3194         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
3195         Make code unconditional.
3196         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
3197         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
3198         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
3199         [__NR_vfork]: Make code unconditional.
3200         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
3201         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
3202         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
3203         [__NR_vfork]: Make code unconditional.
3204         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
3205         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
3206
3207 2012-08-01  Roland McGrath  <roland@hack.frob.com>
3208
3209         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
3210         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
3211
3212         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
3213         Define mkstemp64 as an alias.
3214         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
3215         Define mkstemps64 as an alias.
3216         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
3217         Define mkostemp64 as an alias.
3218         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
3219         Define mkostemps64 as an alias.
3220         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
3221         Conditionalize body on this.
3222         * misc/mkostemp64.c: Likewise.
3223         * misc/mkostemps64.c: Likewise.
3224         * misc/mkstemps64.c: Likewise.
3225         * sysdeps/wordsize-64/mkstemp64.c: File removed.
3226         * sysdeps/wordsize-64/mkostemp64.c: File removed.
3227         * sysdeps/wordsize-64/mkostemp.c: File removed.
3228         * sysdeps/wordsize-64/mkstemp.c: File removed.
3229         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
3230         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
3231         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
3232         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
3233
3234         [BZ #14138]
3235         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
3236         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
3237         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
3238         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
3239
3240         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
3241         compat_symbol macros from <shlib-compat.h> rather than the underlying
3242         default_symbol_version and symbol_version macros, so that DEFAULT
3243         lines in shlib-versions are respected.
3244         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
3245
3246 2012-08-01  Florian Weimer  <fweimer@redhat.com>
3247
3248         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
3249         Declare with warn_unused_result.
3250         (setgid, setregid, setegid, setresgid): Likewise.
3251         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
3252         Likewise.
3253         * WUR-REPORT: Remove set*id functions.
3254
3255 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
3256
3257         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
3258
3259 2012-07-31  Roland McGrath  <roland@hack.frob.com>
3260
3261         * include/sys/socket.h (__libc_accept, __libc_accept4):
3262         Add attribute_hidden.
3263         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
3264
3265         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
3266         use of PTR_MANGLE.
3267         * inet/getnetgrent_r.c (setup): Likewise.
3268
3269         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
3270
3271 2012-07-31  David S. Miller  <davem@davemloft.net>
3272
3273         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3274
3275 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
3276
3277         [BZ #13629]
3278         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
3279         value between 1.0 and 2.0 and smaller part has absolute value less
3280         than 1.0.
3281         * math/s_clog10.c (__clog10): Likewise.
3282         * math/s_clog10f.c (__clog10f): Likewise.
3283         * math/s_clog10l.c (__clog10l): Likewise.
3284         * math/s_clogf.c (__clogf): Likewise.
3285         * math/s_clogl.c (__clogl): Likewise.
3286         * math/libm-test.inc (clog_test): Add more tests.
3287         (clog10_test): Likewise.
3288         * sysdeps/i386/fpu/libm-test-ulps: Update.
3289         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3290
3291 2012-07-31  Florian Weimer  <fweimer@redhat.com>
3292
3293         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
3294         Exit with zero in case no suitable GID is found, and write a
3295         message to standard error.
3296
3297 2012-07-30  Roland McGrath  <roland@hack.frob.com>
3298
3299         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
3300         rather than to 1.
3301         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
3302         (MAXPATHLEN): Removed.
3303         (NOGROUP, NODEV): New macros.
3304         (setbit, clrbit, isset, isclr): New macros.
3305         (howmany, roundup, powerof2): New macros.
3306         (DEV_BSIZE): New macro.
3307
3308         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
3309         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
3310
3311         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
3312         definition on [!__NO_LONG_DOUBLE_MATH].
3313
3314         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
3315         PTR_MANGLE and PTR_DEMANGLE.
3316
3317         * socket/accept4.c (accept4): Rename to __libc_accept4.
3318         Define accept4 as a weak alias.
3319
3320         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
3321         on [_DIRENT_HAVE_D_TYPE].
3322         * io/ftw.c (ftw_dir): Likewise.
3323
3324         * io/xmknod.c (__xmknod): Don't check PATH for being null.
3325
3326         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
3327
3328         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
3329         Use the BSD numbers rather than the arbitrary ones we had.
3330         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
3331         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
3332         (SIGXCPU, SIGXFSZ): New macros.
3333         (_NSIG): Now 32.
3334
3335         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
3336         initializer on [_LIBC_REENTRANT].
3337
3338         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
3339         definitions inside [_POSIX_MAPPED_FILES].
3340
3341         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
3342
3343         * dirent/opendir.c: Include <fcntl.h>.
3344
3345         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
3346         (__libc_getspecific): Likewise.
3347         (__libc_key_create): Likewise.
3348
3349         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
3350         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
3351         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
3352         (tmpfile64): Define as alias.
3353         * sysdeps/wordsize-64/tmpfile.c: File removed.
3354         * sysdeps/wordsize-64/tmpfile64.c: File removed.
3355         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
3356         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
3357
3358         * stdio-common/vfscanf.c: Include <stdbool.h>.
3359         * nss/makedb.c: Likewise.
3360         * stdio-common/_i18n_number.h: Likewise.
3361         * argp/argp-help.c: Likewise.
3362         * posix/wordexp.c: Likewise.
3363         * sysdeps/posix/spawni.c: Likewise.
3364         * nss/nss_files/files-initgroups.c: Likewise.
3365         * stdio-common/reg-modifier.c: Include <stdlib.h>.
3366         * nss/nss_files/files-initgroups.c: Likewise.
3367         * nss/nss_db/db-netgrp.c: Likewise.
3368         * nss/nss_db/db-initgroups.c: Likewise.
3369         * io/fchmodat.c: Include <sys/stat.h>.
3370
3371         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
3372         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
3373
3374         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
3375         [HAVE_MMAP].
3376
3377         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
3378         Add multiple inclusion protection.
3379
3380 2012-07-27  David S. Miller  <davem@davemloft.net>
3381
3382         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3383
3384 2012-07-27  Gary Benson  <gbenson@redhat.com>
3385
3386         [BZ #14298]
3387         * elf/rtld.c: Include <stap-probe.h>.
3388         (dl_main): Added static probes "init_start" and "init_complete".
3389         * elf/dl-load.c: Include <stap-probe.h>.
3390         (lose): Take new parameter "nsid".
3391         Added static probe "map_failed".
3392         (_dl_map_object_from_fd): Pass namespace id to lose.
3393         Added static probe "map_start".
3394         (open_verify): Pass namespace id to lose.
3395         * elf/dl-open.c: Include <stap-probe.h>.
3396         (dl_open_worker) Added static probes "map_complete", "reloc_start"
3397         and "reloc_complete".
3398         * elf/dl-close.c: Include <stap-probe.h>.
3399         (_dl_close_worker): Added static probes "unmap_start" and
3400         "unmap_complete".
3401         * elf/rtld-debugger-interface.txt: New file documenting the above.
3402
3403 2012-07-26  Roland McGrath  <roland@hack.frob.com>
3404
3405         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
3406         rather than a string variable.
3407         * sunrpc/rpc_main.c (h_output): Likewise.
3408         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
3409
3410 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
3411
3412         * inet/check_native.c: New file.
3413
3414 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
3415
3416         [BZ #13629]
3417         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
3418         if larger part has absolute value 1.0.
3419         * math/s_clog10.c (__clog10): Likewise.
3420         * math/s_clog10f.c (__clog10f): Likewise.
3421         * math/s_clog10l.c (__clog10l): Likewise.
3422         * math/s_clogf.c (__clogf): Likewise.
3423         * math/s_clogl.c (__clogl): Likewise.
3424         * math/libm-test.inc (clog_test): Add more tests.
3425         (clog10_test): Likewise.
3426         * sysdeps/i386/fpu/libm-test-ulps: Update.
3427         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3428
3429         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
3430         (pltexit): Likewise.
3431         (La_regs): Likewise.
3432         (La_retval): Likewise.
3433         (int_retval): Likewise.
3434         Update #error for removed macros to refer only to definitions in
3435         tst-audit.h.
3436         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
3437         macro.
3438         (pltexit): Likewise.
3439         (La_regs): Likewise.
3440         (La_retval): Likewise.
3441         (int_retval): Likewise.
3442         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
3443         macro.
3444         (pltexit): Likewise.
3445         (La_regs): Likewise.
3446         (La_retval): Likewise.
3447         (int_retval): Likewise.
3448         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
3449         macro.
3450         (pltexit): Likewise.
3451         (La_regs): Likewise.
3452         (La_retval): Likewise.
3453         (int_retval): Likewise.
3454         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
3455         macro.
3456         (pltexit): Likewise.
3457         (La_regs): Likewise.
3458         (La_retval): Likewise.
3459         (int_retval): Likewise.
3460         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
3461         macro.
3462         (pltexit): Likewise.
3463         (La_regs): Likewise.
3464         (La_retval): Likewise.
3465         (int_retval): Likewise.
3466         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
3467         macro.
3468         (pltexit): Likewise.
3469         (La_regs): Likewise.
3470         (La_retval): Likewise.
3471         (int_retval): Likewise.
3472         * sysdeps/generic/tst-audit.h: Update comment to refer only to
3473         macro definitions in tst-audit.h.
3474         * sysdeps/i386/tst-audit.h: New file.
3475         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
3476         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
3477         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
3478         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
3479         * sysdeps/sh/tst-audit.h: Likewise.
3480         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
3481         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
3482         * sysdeps/x86_64/tst-audit.h: Likewise.
3483
3484 2012-07-26  Andreas Jaeger  <aj@suse.de>
3485
3486         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
3487         ptrace.
3488
3489         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
3490         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
3491         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
3492         PTRACE_O_MASK.
3493         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
3494         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
3495         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
3496
3497         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
3498         value.
3499
3500         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
3501         _sigsys.
3502         (si_call_addr, si_syscall, si_arch): Define new macro.
3503         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
3504         _sigsys.
3505         (si_call_addr, si_syscall, si_arch): Define new marcro.
3506         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
3507         _sigsys.
3508         (si_call_addr, si_syscall, si_arch): Define new macro.
3509         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
3510         _sigsys.
3511         (si_call_addr, si_syscall, si_arch): Define new macro.
3512
3513 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
3514
3515         [BZ #13717]
3516         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
3517         Change to 2.4.21 where previously 2.4.1.
3518         * sysdeps/unix/sysv/linux/configure: Regenerated.
3519         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
3520         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
3521         Linux kernel version.
3522         (__ASSUME_STD_AUXV): Remove.
3523         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
3524         kernel version.
3525         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
3526         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
3527         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
3528         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
3529         (__ASSUME_NETLINK_SUPPORT): Likewise.
3530         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
3531         (__no_netlink_support): Remove conditional definition.
3532         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
3533         Remove.
3534         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
3535         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
3536         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
3537         (if_nameindex_ioctl): Remove.
3538         (if_nameindex_netlink): Do not handle __no_netlink_support.
3539         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
3540         code.
3541         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
3542         Remove conditional code.
3543         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
3544         code.
3545         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
3546         unconditional.
3547         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
3548         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
3549         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
3550         Remove.
3551         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
3552         [!__ASSUME_STD_AUXV]: Remove conditional code.
3553         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
3554         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
3555         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
3556         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
3557         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
3558         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
3559         code.
3560         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
3561         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
3562         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
3563         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
3564         conditional code.
3565         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
3566         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
3567         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
3568         code.
3569         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
3570         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
3571         conditional code.
3572         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
3573         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
3574         code unconditional.
3575         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3576         conditional code.
3577         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
3578         unconditional.
3579         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3580         conditional code.
3581         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
3582         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
3583         unconditional.
3584         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3585         conditional code.
3586         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
3587         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
3588         code unconditional.
3589         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3590         conditional code.
3591         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
3592         unconditional.
3593         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3594         conditional code.
3595         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
3596         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
3597         code unconditional.
3598         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3599         conditional code.
3600         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
3601         unconditional.
3602         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3603         conditional code.
3604
3605 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
3606
3607         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
3608         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
3609         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
3610         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
3611         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
3612         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
3613         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
3614         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
3615         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
3616         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
3617         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
3618         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
3619         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
3620         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
3621         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
3622         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
3623         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
3624         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
3625         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
3626         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
3627         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
3628         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
3629         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
3630
3631 2012-07-25  Florian Weimer  <fweimer@redhat.com>
3632
3633         * Versions.def: Add GLIBC_2.17.
3634         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
3635         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
3636         Introduce __libc_secure_getenv.
3637         * stdlib/Versions (2.17): Add secure_getenv
3638         (GLIBC_PRIVATE): Add __libc_secure_getenv.
3639         * stdlib/secure-getenv.c: Rename __secure_getenv to
3640         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
3641         symbol __secure_getenv for GLIBC_2.0.
3642         * stdlib/tst-secure-getenv.c: New.
3643         * stdlib/Makefile (tests): Add testcase.
3644         * manual/startup.texi (Environment Access): Document
3645         secure_getenv.
3646         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
3647         __libc_secure_getenv.
3648         * inet/ruserpass.c (ruserpass): Likewise.
3649         * malloc/mtrace.c (mtrace): Likewise.
3650         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
3651         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
3652         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
3653         * sysdeps/posix/tempname.c: Likewise.  Evaluate
3654         HAVE_SECURE_GETENV.
3655         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
3656         __secure_getenv to __libc_secure_getenv.
3657         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
3658         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
3659         Likewise.
3660         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
3661         Likewise.
3662         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
3663         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
3664         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
3665         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
3666         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
3667         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
3668         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
3669
3670 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
3671
3672         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
3673         (struct La_i86_retval): Likewise.
3674         (struct La_x86_64_regs): Likewise.
3675         (struct La_x86_64_retval): Likewise.
3676         (struct La_x32_regs): Likewise.
3677         (struct La_x32_retval): Likewise.
3678         (struct La_ppc32_regs): Likewise.
3679         (struct La_ppc32_retval): Likewise.
3680         (struct La_ppc64_regs): Likewise.
3681         (struct La_ppc64_retval): Likewise.
3682         (struct La_sh_regs): Likewise.
3683         (struct La_sh_retval): Likewise.
3684         (struct La_s390_32_regs): Likewise.
3685         (struct La_s390_32_retval): Likewise.
3686         (struct La_s390_64_regs): Likewise.
3687         (struct La_s390_64_retval): Likewise.
3688         (struct La_sparc32_regs): Likewise.
3689         (struct La_sparc32_retval): Likewise.
3690         (struct La_sparc64_regs): Likewise.
3691         (struct La_sparc64_retval): Likewise.
3692         (struct audit_ifaces): Remove architecture-specific pltenter and
3693         pltexit members.
3694         * sysdeps/i386/ldsodefs.h: New file.
3695         * sysdeps/powerpc/ldsodefs.h: Likewise.
3696         * sysdeps/s390/ldsodefs.h: Likewise.
3697         * sysdeps/sh/ldsodefs.h: Likewise.
3698         * sysdeps/sparc/ldsodefs.h: Likewise.
3699         * sysdeps/x86_64/ldsodefs.h: Likewise.
3700
3701 2012-07-25  Marek Polacek  <polacek@redhat.com>
3702
3703         [BZ #6808]
3704         * math/libm-test.inc (yn_test): Add another test.
3705         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
3706         to ERANGE when the result is +-Inf.
3707         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
3708         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
3709         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
3710         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
3711
3712 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
3713
3714         * conform/data/time.h-data (NULL): Use macro-constant.  Require
3715         equal to 0.
3716         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
3717         clock_t.
3718         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
3719
3720 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
3721
3722         * configure.in <sysdeps resolving>: Correct printing
3723         Implies_before.
3724         * configure: Regenerate.
3725
3726 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
3727
3728         * math/w_ilogb.c: Include <limits.h>.
3729         * math/w_ilogbl.c: Likewise.
3730
3731 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
3732
3733         * manual/lang.texi (__va_copy): Document primarily as ISO C99
3734         va_copy.  Document allowing for unavailable va_copy only as
3735         pre-C99 compatibility.
3736         * manual/string.texi (Copying and Concatenation): Use va_copy
3737         instead of __va_copy in concat example.
3738
3739 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
3740
3741         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
3742         (__sendto): Use create_address_port.  Initialize APORT and deallocate
3743         it if not null.
3744
3745         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
3746         with O_NOLINK passed to __file_name_lookup.
3747
3748         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
3749         with O_NOLINK passed to __file_name_lookup.
3750
3751         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
3752         negative N or less than NGIDS.
3753
3754         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
3755         type to string_t.  Set ERANGE as errno and return it if NAME is not big
3756         enough.  Use memcpy instead of strncpy.
3757
3758 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
3759
3760         * elf/Makefile (check-data): Remove.
3761         (localplt.data): New vpath directive.
3762         ($(objpfx)check-localplt.out): Use localplt.data from vpath
3763         instead of $(check-data).
3764         * scripts/data/localplt-generic.data: Move to ...
3765         * sysdeps/generic/localplt.data: ... here.
3766         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
3767         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
3768         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
3769         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
3770         ... here.
3771         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
3772         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
3773         ... here.
3774         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
3775         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
3776         ... here.
3777         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
3778         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
3779         ... here.
3780         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
3781         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
3782         ... here.
3783         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
3784         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
3785         ... here.
3786
3787 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3788
3789         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
3790         PPC32 and PPC64 files.
3791         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
3792         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
3793
3794 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3795
3796         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
3797         __makecontext_ret to ...
3798         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
3799         ... here and call exit if uc_link is NULL.  New file.
3800         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
3801         __makecontext_ret.S.
3802         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
3803         __makecontext_ret to ...
3804         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
3805         ... here and call exit if uc_link is NULL.  New file.
3806         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
3807         __makecontext_ret.S.
3808
3809 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3810
3811         * elf/elf.h (R_390_IRELATIVE): New definition.
3812         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
3813         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
3814         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
3815         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
3816         (elf_machine_lazy_rel): Likewise.
3817         * sysdeps/s390/dl-irel.h: New file.
3818         * sysdeps/s390/s390-64/memcpy.S: New asm code.
3819         * sysdeps/s390/s390-64/memset.S: New asm code.
3820         * sysdeps/s390/s390-64/memcmp.S: New asm code.
3821         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
3822         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
3823         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
3824         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
3825         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
3826         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
3827         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
3828         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
3829         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
3830         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
3831         * sysdeps/s390/s390-32/memcpy.S: New asm code.
3832         * sysdeps/s390/s390-32/memset.S: New asm code.
3833         * sysdeps/s390/s390-32/memcmp.S: New asm code.
3834
3835 2012-07-17  Marek Polacek  <polacek@redhat.com>
3836
3837         [BZ #14349]
3838         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
3839         * sysdeps/s390/s390-64/configure.in: Likewise.
3840         * sysdeps/sparc/configure.in: Likewise.
3841         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
3842         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
3843         * sysdeps/i386/configure.in: Likewise.
3844         * sysdeps/x86_64/configure.in: Likewise.
3845         * sysdeps/sh/configure.in: Likewise.
3846         * sysdeps/s390/s390-32/configure: Regenerated.
3847         * sysdeps/s390/s390-64/configure: Likewise.
3848         * sysdeps/x86_64/configure: Likewise.
3849         * sysdeps/sh/configure: Likewise.
3850         * sysdeps/powerpc/powerpc64/configure: Likewise.
3851         * sysdeps/powerpc/powerpc32/configure: Likewise.
3852         * sysdeps/sparc/configure: Likwise.
3853         * sysdeps/i386/configure: Likewise.
3854
3855         * elf/dl-open.c: Comment fixes.
3856
3857 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
3858
3859         * Makefile [CXX] (check-data): Remove.
3860         [CXX] (c++-types.data): New vpath directive.
3861         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
3862         vpath.  Do not allow for C++ type data being missing.
3863         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
3864         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
3865         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
3866         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
3867         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
3868         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
3869         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
3870         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
3871         ... here.
3872         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
3873         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
3874         ... here.
3875         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
3876         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
3877         ... here.
3878         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
3879         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
3880         ... here.
3881         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
3882         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
3883         ... here.
3884         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
3885         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
3886         ... here.
3887         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
3888         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
3889         ... here.
3890         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
3891         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
3892
3893         * elf/tls-macros.h (TLS_LE): Move architecture-specific
3894         definitions to architecture-specific files.
3895         (TLS_IE): Likewise.
3896         (TLS_LD): Likewise.
3897         (TLS_GD): Likewise.
3898         * sysdeps/i386/tls-macros.h: New file.
3899         * sysdeps/powerpc/tls-macros.h: Likewise.
3900         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
3901         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
3902         * sysdeps/sh/tls-macros.h: Likewise.
3903         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
3904         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
3905         * sysdeps/x86_64/tls-macros.h: Likewise.
3906
3907 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
3908
3909         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
3910         zero value for regular exit case.
3911
3912         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
3913         (__start_context): Preserve zero value for regular exit case.
3914
3915 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
3916             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3917
3918         * manual/setjmp.texi (setcontext): Clarify normal process
3919         termination when uc_link is the null pointer.
3920         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
3921         exit call.
3922
3923 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
3924
3925         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
3926         preprocessor.  Test for each exception mask separately.
3927
3928 2012-07-16  Andreas Jaeger  <aj@suse.de>
3929
3930         * po/ru.po: Update from translation team.
3931
3932 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
3933
3934         * conform/data/string.h-data (NULL): Use macro-constant.  Require
3935         equal to 0.
3936         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
3937         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
3938         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
3939         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
3940         [ISO || ISO99 || ISO11] (*_t): Do not allow.
3941
3942 2012-07-13  Andreas Jaeger  <aj@suse.de>
3943
3944         * po/fr.po: Update from translation team.
3945
3946 2012-07-12  Marek Polacek  <polacek@redhat.com>
3947
3948         [BZ #14173]
3949         * math/libm-test.inc (yn_test): Add test for BZ #14173.
3950         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
3951         loop condition.
3952
3953 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
3954
3955         [BZ #13717]
3956         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
3957         Change to 2.4.1 where previously 2.4.0.
3958         * sysdeps/unix/sysv/linux/configure: Regenerated.
3959         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
3960         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
3961         version.
3962         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
3963         (__ASSUME_AT_CLKTCK): Remove.
3964         (__ASSUME_AT_PAGESIZE): Likewise.
3965         (__ASSUME_AT_XID): Likewise.
3966         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
3967         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
3968         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
3969         unconditionally.
3970         (HAVE_AUX_PAGESIZE): Likewise.
3971         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
3972         [__ASSUME_AT_CLKTCK]: Make code unconditional.
3973         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
3974
3975 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
3976
3977         [BZ #14307]
3978         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
3979         the temporary buffer used to invoke __gethostbyname2_r,
3980         __gethostbyaddr_r and gethostbyname4_r to make room for struct
3981         host_data / struct gaih_addrtuple.
3982         * resolv/nss_dns/dns-host.c (global scope): Move definition of
3983         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
3984         header file nss/nsswitch.h.
3985         * nss/nsswitch.h (global scope): Add definition of implementation
3986         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
3987         resolv/nss_dns/dns-host.c).
3988
3989 2012-07-11  Andreas Jaeger  <aj@suse.de>
3990
3991         * po/fr.po: Update from translation team.
3992
3993         * po/sv.po: Update from translation team
3994         * po/fr.po: Another update from translation team.
3995
3996 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3997
3998         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
3999         for subnormals or multiply small sinh result by itself.
4000         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
4001         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4002
4003 2012-07-11  David S. Miller  <davem@davemloft.net>
4004
4005         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4006
4007 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
4008
4009         [BZ #14347]
4010         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
4011         (INTERNAL_MARK): Shift it here.
4012
4013 2012-07-10  Marek Polacek  <polacek@redhat.com>
4014
4015         [BZ #14151]
4016         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
4017         libc_cv_asm_global_directive with .globl.
4018         * configure: Regenerated.
4019         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
4020         with .globl.
4021         * sysdeps/i386/configure: Regenerated.
4022         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
4023         with .globl.
4024         * sysdeps/x86_64/configure: Regenerated.
4025         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
4026         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
4027         * elf/tst-unique2mod2.c: Likewise.
4028         * elf/tst-unique2mod1.c: Likewise.
4029         * elf/tst-unique1mod2.c: Likewise.
4030         * elf/tst-unique1mod1.c: Likewise.
4031         * sysdeps/s390/s390-32/sysdep.h: Likewise.
4032         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
4033         * sysdeps/s390/s390-64/sysdep.h: Likewise.
4034         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
4035         * sysdeps/mach/sysdep.h: Likewise.
4036         * sysdeps/i386/sysdep.h: Likewise.
4037         * sysdeps/i386/i386-mcount.S: Likewise.
4038         * sysdeps/x86_64/_mcount.S: Likewise.
4039         * sysdeps/x86_64/sysdep.h: Likewise.
4040         * sysdeps/sh/_mcount.S: Likewise.
4041         * sysdeps/sh/sysdep.h: Likewise.
4042         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
4043         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
4044         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
4045         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
4046         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
4047         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
4048         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
4049         * locale/localeinfo.h: Likewise.
4050         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
4051         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
4052
4053 2012-07-09  Roland McGrath  <roland@hack.frob.com>
4054
4055         [BZ #14336]
4056         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
4057         system".
4058         * manual/message.texi (The Uniforum approach): Likewise.
4059         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
4060         (glibc iconv Implementation): Likewise.
4061
4062 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
4063
4064         [BZ #14337]
4065         * math/s_clog.c (__clog): Avoid scaling a value down where that
4066         could result in underflow.
4067         * math/s_clog10.c (__clog10): Likewise.
4068         * math/s_clog10f.c (__clog10f): Likewise.
4069         * math/s_clog10l.c (__clog10l): Likewise.
4070         * math/s_clogf.c (__clogf): Likewise.
4071         * math/s_clogl.c (__clogl): Likewise.
4072         * math/libm-test.inc (clog_test): Add more tests.
4073         (clog10_test): Likewise.
4074         * sysdeps/i386/fpu/libm-test-ulps: Update.
4075         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4076
4077 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
4078
4079         [BZ #14283]
4080         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
4081         by 7 not 8 to examine high bit of fractional part.
4082
4083         [BZ #14042]
4084         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
4085         for call to __mcount_internal.
4086         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
4087         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
4088         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
4089
4090 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
4091
4092         [BZ #14154]
4093         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
4094         approximation for values within 0x1p-13f of an odd multiple of
4095         pi/4.
4096         * math/libm-test.inc (tan_test): Do not allow spurious underflow
4097         exception.  Add more tests.
4098         * sysdeps/i386/fpu/libm-test-ulps: Update.
4099
4100         [BZ #6778]
4101         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
4102         inputs and return -1 for them.  Do not check for +Inf in case not
4103         reachable for +Inf.
4104         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
4105         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
4106         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
4107         and return -1 for them.  Do not check for +Inf in case not
4108         reachable for +Inf.
4109         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
4110         define.
4111         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
4112         and return -1 for them.  Do not check for +Inf in case not
4113         reachable for +Inf.
4114         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
4115         spurious underflow.
4116         * sysdeps/i386/fpu/libm-test-ulps: Update.
4117         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4118
4119 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
4120
4121         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
4122
4123 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
4124
4125         [BZ #14157]
4126         [BZ #14331]
4127         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
4128         could result in spurious underflow.  Scale down values above
4129         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
4130         * math/s_csqrtf.c (__csqrtf): Likewise.
4131         * math/s_csqrtl.c (__csqrtl): Likewise.
4132         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
4133         spurious underflow.
4134         * sysdeps/i386/fpu/libm-test-ulps: Update.
4135         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4136
4137 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
4138
4139         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
4140         xopen-msg.sed.
4141         * catgets/xopen-msg.awk: New file.
4142         * catgets/xopen-msg.sed: Removed.
4143
4144         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
4145         po2text.sed.
4146         * intl/po2test.awk: New file.
4147         * intl/po2test.sed: Removed.
4148
4149 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
4150
4151         [BZ #14328]
4152         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
4153         or multiply small sinh result by itself.
4154         * math/s_ctanf.c (__ctanf): Likewise.
4155         * math/s_ctanh.c (__ctanh): Likewise.
4156         * math/s_ctanhf.c (__ctanhf): Likewise.
4157         * math/s_ctanhl.c (__ctanhl): Likewise.
4158         * math/s_ctanl.c (__ctanl): Likewise.
4159         * math/libm-test.inc (ctan_test_tonearest): New function.
4160         (ctan_test_towardzero): Likewise.
4161         (ctan_test_downward): Likewise.
4162         (ctan_test_upward): Likewise.
4163         (ctanh_test_tonearest): Likewise.
4164         (ctanh_test_towardzero): Likewise.
4165         (ctanh_test_downward): Likewise.
4166         (ctanh_test_upward): Likewise.
4167         (main): Call these new functions.
4168         * sysdeps/i386/fpu/libm-test-ulps: Update.
4169         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4170
4171 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
4172
4173         * .gitignore: Delete /ports entry.
4174
4175 2012-07-03  Andreas Jaeger  <aj@suse.de>
4176
4177         * po/bg.po: Update from translation team.
4178         * po/cs.po: Likewise.
4179         * po/de.po: Likewise.
4180         * po/hr.po: Likewise.
4181         * po/nl.pl: Likewise.
4182         * po/pl.po: Likewise.
4183         * po/vi.po: Likewise.
4184
4185 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
4186
4187         * Makeconfig [!+link] (+link-before-libc): New variable.
4188         [!+link] (+link-after-libc): Likewise.
4189         [!+link] (+link-tests): Likewise.
4190         [!+link] (+link): Define in terms of $(+link-before-libc) and
4191         $(+link-after-libc).
4192         [!+link-static] (+link-static-before-libc): New variable.
4193         [!+link-static] (+link-static-after-libc): Likewise.
4194         [!+link-static] (+link-static-tests): Likewise.
4195         [!+link-static] (+link-static): Define in terms of
4196         $(+link-static-before-libc) and $(+link-static-after-libc).
4197         [build-shared] (link-libc-before-gnulib): New variable.
4198         [build-shared] (link-libc-tests): Likewise.
4199         [build-shared] (link-libc): Define in terms of
4200         $(link-libc-before-gnulib).
4201         [!build-shared] (link-libc-tests): New variable.
4202         (link-libc-static-tests): New variable.
4203         [!gnulib] (gnulib-arch): New variable.
4204         [!gnulib] (gnulib-tests): Likewise.
4205         [!gnulib] (static-gnulib-arch): Likewise.
4206         [!gnulib] (static-gnulib-tests): Likewise.
4207         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
4208         Define with "=" instead of ":=".
4209         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
4210         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
4211         * Rules (binaries-all-notests): New variable.
4212         (binaries-all-tests): Likewise.
4213         (binaries-static-notests): Likewise.
4214         (binaries-static-tests): Likewise.
4215         (binaries-all): Define using $(binaries-all-notests) and
4216         $(binaries-all-tests).
4217         (binaries-static): Define using $(binaries-static-notests) and
4218         $(binaries-static-tests).
4219         (binaries-shared-tests): New variable.
4220         (binaries-shared-notests): Likewise.
4221         (binaries-shared): Remove variable.
4222         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
4223         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
4224         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
4225         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
4226         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
4227         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
4228         * elf/Makefile (sln-modules): New variable.
4229         (extra-objs): Add $(sln-modules:=.o).
4230         (ldconfig-modules): Add static-stubs.
4231         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
4232         * elf/static-stubs.c: New file.
4233
4234         [BZ #14283]
4235         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
4236         by 7 not 8 to examine high bit of fractional part.  Use volatile
4237         variables when splitting into final array of floats if
4238         __FLT_EVAL_METHOD__ != 0.
4239         * math/libm-test.inc (cos_test): Add another test.
4240         (sin_test): Likewise.
4241         * sysdeps/i386/fpu/libm-test-ulps: Update.
4242
4243         [BZ #14273]
4244         * math/libm-test.inc (cosh_test): Add more tests.
4245
4246         * version.h (RELEASE): Set to "development".
4247         (VERSION): Set to "2.16.90".
4248
4249 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
4250
4251         * NEWS: Update copyright. Remove last-updated date.
4252         Mention math library bug fixes and timezone data changes.
4253         * README: Mention GNU/Hurd, x32, and HPPA support status.
4254
4255 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
4256
4257         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
4258
4259 2012-06-27  Andreas Jaeger  <aj@suse.de>
4260
4261         * manual/contrib.texi (Contributors): Add Samuel Thibault.
4262
4263 2012-06-25  Andreas Jaeger  <aj@suse.de>
4264
4265         * sysdeps/s390/fpu/libm-test-ulps: Update.
4266
4267 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
4268             Thomas Schwinge  <thomas@codesourcery.com>
4269
4270         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
4271         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
4272         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
4273         fanotify_mark.
4274
4275 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
4276
4277         * sysdeps/mach/start.c: Remove file.
4278         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
4279         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
4280         * sysdeps/sh/init-first.c: Likewise.
4281
4282         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
4283         registers for frame unwinding purposes, add CFI directives.
4284         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
4285         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
4286         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
4287         Likewise.
4288
4289         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
4290         __fortify_fail returning.
4291         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
4292
4293         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
4294         sysdeps/sh/____longjmp_chk.S.
4295         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
4296         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
4297         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
4298         (gen-as-const-headers): Append sigaltstack-offsets.sym.
4299
4300         * sysdeps/sh/abort-instr.h: New file.
4301         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
4302         process in case exit returns.
4303
4304         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
4305         initialize the GOT register before use.
4306
4307         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
4308         calculation of ARGC > 4.
4309
4310         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
4311         meaningful names to some local labels.
4312
4313 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
4314             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4315
4316         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
4317         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
4318         (__arch_compare_and_exchange_val_16_acq): Likewise.
4319         (__arch_compare_and_exchange_val_32_acq): Likewise.
4320         (atomic_exchange_and_add): Fix gUSA sequence.
4321         (atomic_add): Likewise.
4322         (atomic_add_negative): Likewise.
4323         (atomic_add_zero): Likewise.
4324         (atomic_bit_test_set): Likewise.
4325
4326 2012-06-22  Andreas Schwab  <schwab@redhat.com>
4327
4328         [BZ #13579]
4329         * include/link.h (struct link_map): Add l_free_initfini.
4330         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
4331         l_initfini.
4332         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
4333         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
4334         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
4335         set.
4336
4337 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
4338
4339         * configure.in: Use AC_LANG_SOURCE.
4340         * configure: Regenerate.
4341
4342 2012-06-22  Roland McGrath  <roland@hack.frob.com>
4343
4344         * configure.in (libc_cv_localstatedir): New substituted variable.
4345         * configure: Regenerated.
4346         * config.make.in (localstatedir): New variable, substituted from
4347         libc_cv_localstatedir.
4348         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
4349         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
4350         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
4351         * sysdeps/gnu/configure: Regenerated.
4352
4353 2012-06-21  Jeff Law  <law@redhat.com>
4354
4355         [BZ #14277]
4356         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
4357         free.  Simplify list management for _LIBC case.
4358
4359 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
4360
4361         [BZ #14273]
4362         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
4363         Clear sign bit of 64-bit integer value before comparing against
4364         overflow value.
4365
4366         * sysdeps/mach/configure: Regenerated.
4367
4368 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
4369
4370         [BZ #14278]
4371         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
4372
4373 2012-06-21  Jeff Law  <law@redhat.com>
4374
4375         [BZ #13882]
4376         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
4377         uint16_t for elements in the "seen" array to avoid char overflows.
4378         * elf/dl-fini.c (_dl_sort_fini): Likewise.
4379         * elf/dl-open.c (dl_open_worker): Likewise.
4380
4381 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
4382
4383         * scripts/list-sources.sh: Scan PORTS for translations.
4384         * po/libc.pot: Regenerated.
4385
4386 2012-06-21  Andreas Jaeger  <aj@suse.de>
4387
4388         [BZ #12194]
4389         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
4390         warning.
4391         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
4392         * bits/byteswap-16.h (__bswap_16): Likewise.
4393         * bits/byteswap.h (__bswap_constant_16): Likewise.
4394
4395 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
4396
4397         [BZ #14117]
4398         * sysdeps/i386/fpu_control.h: Removed.
4399         * sysdeps/x86_64/fpu_control.h: Moved to ...
4400         * sysdeps/x86/fpu_control.h: Here.
4401
4402         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
4403         (_FPU_SETCW): Likewise.
4404
4405 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
4406
4407         [BZ #14117]
4408         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
4409         * sysdeps/x86/fpu/bits/mathinline.h: This.
4410         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
4411
4412         [BZ #14050]
4413         [BZ #14117]
4414         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
4415         functions if __x86_64__ is defined.
4416
4417 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
4418
4419         * string/endian.h: Add !__ASSEMBLER__ condition for including
4420         conversion interfaces.
4421
4422 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
4423
4424         [BZ #14241]
4425         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
4426         of ABS(x) in calculating zero to negative powers other than odd
4427         integers.
4428         * math/libm-test.inc (pow_test): Add more tests.
4429
4430 2012-06-15  Andreas Jaeger  <aj@suse.de>
4431
4432         * manual/contrib.texi (Contributors): Update entry of Liubov
4433         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
4434         Machado Filho.
4435
4436 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
4437
4438         * string/string.h: Add __wur to GNU version of strerror_r.
4439
4440 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
4441
4442         [BZ #14229]
4443         * string/Makefile (tests): Add tst-strtok_r.
4444         * string/tst-strtok_r.c: New file.
4445         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
4446         RAX_LP/RDX_LP on SAVE_PTR.
4447
4448 2012-06-14  Roland McGrath  <roland@hack.frob.com>
4449
4450         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
4451
4452 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
4453
4454         * libm_test.inc (csqrt_test): Allow more spurious underflow
4455         exceptions.
4456         (j0_test): Likewise.
4457         (j1_test): Likewise.
4458         (y0_test): Likewise.
4459         (y1_test): Likewise.
4460
4461 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
4462
4463         * po/Makefile (libc.pot): Use UTF-8 charset.
4464
4465 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
4466
4467         [BZ #14210]
4468         Suppress sign-conversion warning from FD_SET.
4469         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
4470         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
4471         not unsigned long int.
4472         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
4473
4474 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
4475
4476         [BZ #14050]
4477         [BZ #14117]
4478         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
4479         __extern_always_inline instead of __extern_inline.
4480         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
4481         (__signbit): Likewise.
4482         (__signbitl): Support C++ namespace.
4483         (lrintf): New inline function.
4484         (lrint): Likewise.
4485         (llrintf): Likewise.
4486         (llrint): Likewise.
4487         (fmaxf): Likewise.
4488         (fmax): Likewise.
4489         (fminf): Likewise.
4490         (fmin): Likewise.
4491         (rint): Likewise.
4492         (rintf): Likewise.
4493         (ceil): Likewise.
4494         (ceilf): Likewise.
4495         (floor): Likewise.
4496         (floorf): Likewise.
4497         (nearbyint): Likewise.
4498         (nearbyintf): Likewise.
4499
4500 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
4501
4502         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
4503         non-default versions.
4504
4505 2012-06-11  Roland McGrath  <roland@hack.frob.com>
4506
4507         [BZ #14218]
4508         * manual/argp.texi (Argp): Reword argp_parse description slightly.
4509
4510 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
4511
4512         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
4513         (FE_UPWARD, FE_DOWNWARD): Don't define.
4514         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
4515         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
4516
4517         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
4518         reading it.
4519         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
4520         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
4521
4522 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4523
4524         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
4525         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
4526         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
4527         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
4528
4529 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
4530
4531         [BZ #14117]
4532         * sysdeps/i386/fpu/bits/fenv.h: Removed.
4533         * sysdeps/i386/fpu/Implies: New file.
4534         * sysdeps/x86_64/fpu/Implies: Likewise.
4535         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
4536         * sysdeps/x86/fpu/bits/fenv.h: This.
4537
4538         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
4539         __SSE_MATH__.
4540
4541 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
4542
4543         [BZ #14134]
4544         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
4545         character 0xffff that matches the last element of the
4546         conversion table.
4547
4548 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4549
4550         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
4551         fmodl commit.
4552
4553 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4554
4555         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
4556         values higher than 25.6283.
4557
4558 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4559
4560         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
4561         subnormal exponent extraction and add some __builtin_expect.
4562         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
4563         Fix for subnormal mantissa calculation.
4564
4565 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
4566
4567         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
4568         cpu2 is -1 and errno is not ENOSYS.
4569
4570 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
4571
4572         [BZ #14117]
4573         * sysdeps/i386/i486/bits/string.h: Renamed to ...
4574         * sysdeps/x86/bits/string.h: This.
4575         * sysdeps/x86_64/bits/string.h: Removed.
4576
4577         * sysdeps/i386/i486/bits/string.h: Define inline functions only
4578         if not compiling for x86-64, but compiling for >= i486.
4579
4580         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
4581         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
4582
4583         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
4584         New macro from Linux kernel 3.4.0.
4585         (FP_XSTATE_MAGIC2): Likewise.
4586         (FP_XSTATE_MAGIC2_SIZE): Likewise.
4587         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
4588         (struct _fpx_sw_bytes): New struct.
4589         (struct _xsave_hdr): Likewise.
4590         (struct _ymmh_state): Likewise.
4591         (struct _xstate): Likewise.
4592
4593         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
4594         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
4595         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
4596         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
4597         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
4598         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
4599
4600         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
4601         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
4602         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
4603         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
4604         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
4605         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
4606
4607 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
4608
4609         [BZ #13743]
4610         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
4611         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
4612         (sysdep_headers): Include sys/platform/ppc.h.
4613         * sysdeps/powerpc/test-gettimebase.c: Test for
4614         __ppc_get_timebase() to catch future ISA opcode/insn changes.
4615         * manual/Makefile (appendices): Include platform.texi.
4616         * manual/contrib.texi (Contributors): Update @node pointers.
4617         * manual/maint.texi (Maintenance): Likewise.
4618         (Platform): New node.
4619         * manual/platform.texi: New file.  Document the new features.
4620
4621 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
4622             Jakub Jelinek  <jakub@redhat.com>
4623
4624         [BZ #14188]
4625         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
4626         where __builtin_expect is unavailable.
4627
4628 2012-06-03  David S. Miller  <davem@davemloft.net>
4629
4630         * stdlib/longlong.h: Updated from GCC.
4631
4632 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
4633
4634         [BZ #14042]
4635         * sysdeps/powerpc/powerpc32/mcount.c: New file.
4636         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
4637         __mcount_internal.
4638         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
4639         (GLIBC_2.16): Likewise.
4640
4641 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
4642
4643         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
4644
4645 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
4646
4647         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
4648         (default-abi): New variable.
4649         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
4650         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
4651         variable.
4652         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
4653         Likewise.
4654         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
4655         Likewise.
4656         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
4657         Likewise.
4658
4659         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
4660         definition.  Document in comment.
4661
4662 2012-06-01  David S. Miller  <davem@davemloft.net>
4663
4664         * stdlib/longlong.h: Updated from GCC.
4665
4666 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
4667
4668         [BZ #14117]
4669         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
4670         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
4671         sys/debugreg.h sys/io.h here.
4672         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
4673         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
4674         sys/io.h.
4675         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
4676         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
4677         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
4678         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
4679         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
4680         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
4681
4682         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
4683         Define only if __x86_64__ is defined.
4684
4685 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
4686
4687         [BZ #14048]
4688         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
4689         Use int64_t for variable i.
4690         * math/libm-test.inc (fmod_test): Add more tests.
4691
4692         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
4693         z computation is not scheduled after fetestexcept.
4694         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
4695         Use math_force_eval instead of asm to ensure calculation scheduled
4696         before exception test.
4697         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
4698         Ensure a1 + u.d computation is not scheduled after fetestexcept.
4699
4700 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
4701
4702         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
4703         computation is not scheduled after fetestexcept.
4704
4705 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
4706
4707         [BZ #14117]
4708         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
4709         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
4710
4711 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4712
4713         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
4714         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
4715
4716 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
4717
4718         [BZ #14117]
4719         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
4720         <bits/wordsize.h>.
4721         (__WCHAR_MIN): Support __WORDSIZE == 64.
4722         (__WCHAR_MAX): Likewise.
4723
4724         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
4725         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
4726
4727         [BZ #14183]
4728         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
4729         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
4730
4731         [BZ #14117]
4732         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
4733         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
4734
4735         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
4736         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
4737
4738         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
4739         Defined to 1 if __x86_64__ isn't defined.
4740         (_STAT_VER_LINUX_OLD): New.
4741         (st_atime): Remove duplicate.
4742         (st_mtime): Likewise.
4743         (st_ctime): Likewise.
4744
4745 2012-05-31  David S. Miller  <davem@davemloft.net>
4746
4747         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
4748         entries.
4749
4750 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
4751
4752         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
4753         gen-libm-test.pl.
4754
4755         [BZ #14132]
4756         * elf/dl-reloc.c: Include <_itoa.h>.
4757         (_dl_reloc_bad_type): Remove use of INTUSE.
4758         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
4759         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
4760         * stdio-common/psiginfo.c (psiginfo): Likewise.
4761         * stdio-common/psignal.c (psignal): Likewise.
4762         * string/strsignal.c (strsignal): Likewise.
4763         * include/signal.h (_sys_siglist): Declare hidden proto.
4764         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
4765         INTVARDEF with libc_hidden_data_def.
4766         * stdio-common/itoa-udigits.c: Likewise.
4767         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
4768         (_itoa_lower_digits_internal): Remove declaration.
4769         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
4770         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
4771         (_sys_sigabbrev_internal): Remove aliases.
4772         (_sys_siglist): Define hidden alias.
4773
4774 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
4775
4776         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4777         bits/sysctl.h.
4778
4779 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
4780
4781         [BZ #14117]
4782         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
4783         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
4784
4785         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
4786         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
4787         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
4788         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
4789         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
4790         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
4791
4792         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
4793         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
4794         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
4795
4796         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
4797         with __addr.
4798         (insw): Likewise.
4799         (insl): Likewise.
4800         (outsb): Likewise.
4801         (outsw): Likewise.
4802         (outsl): Likewise.
4803
4804         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
4805         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
4806         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
4807
4808         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
4809         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
4810         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
4811         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
4812         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
4813         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
4814
4815         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
4816         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
4817
4818         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
4819         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
4820
4821         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
4822         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
4823         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
4824
4825         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
4826         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
4827         to ...
4828         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
4829
4830         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
4831         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
4832         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
4833
4834         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
4835         for x86-64.
4836         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
4837
4838 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
4839
4840         * math/math.h (M_El): Use two more decimal places.
4841         (M_LOG2El): Likewise.
4842         (M_LOG10El): Likewise.
4843         (M_LN2l): Likewise.
4844         (M_LN10l): Likewise.
4845         (M_PIl): Likewise.
4846         (M_PI_2l): Likewise.
4847         (M_PI_4l): Likewise.
4848         (M_1_PIl): Likewise.
4849         (M_2_PIl): Likewise.
4850         (M_2_SQRTPIl): Likewise.
4851         (M_SQRT2l): Likewise.
4852         (M_SQRT1_2l): Likewise.
4853
4854 2012-05-31  David S. Miller  <davem@davemloft.net>
4855
4856         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
4857         values between float registers.
4858         * sysdeps/sparc/sparc64/memset.S: Likewise.
4859         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
4860
4861 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
4862
4863         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
4864         -D_FORTIFY_SOURCE=1.
4865         (CPPFLAGS-tst-longjmp_chk.c): Define.
4866         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
4867         (CPPFLAGS-tst-longjmp_chk2.c): Define.
4868         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
4869         CFLAGS-tst-wchar-h.c.
4870
4871 2012-05-31  Marek Polacek  <polacek@redhat.com>
4872
4873         [BZ #14132]
4874         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
4875         __endmntent_internal): Remove declaration.
4876         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
4877         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
4878         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
4879
4880 2012-05-30  David S. Miller  <davem@davemloft.net>
4881
4882         * sysdeps/sparc/sparc32/soft-fp/q_util.c
4883         (___Q_simulate_exceptions): Use real FP ops rather than writing
4884         into the %fsr.
4885         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
4886         Likewise.
4887
4888 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
4889
4890         [BZ #14117]
4891         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
4892         * sysdeps/x86/bits/xtitypes.h: This.
4893
4894         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
4895         * sysdeps/x86/bits/wordsize.h: This.
4896
4897         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
4898         * sysdeps/x86/bits/huge_vall.h: This.
4899
4900         * sysdeps/i386/bits/select.h: Removed.
4901         * sysdeps/x86_64/bits/select.h: Renamed to ...
4902         * sysdeps/x86/bits/select.h: This.
4903
4904         * sysdeps/i386/bits/setjmp.h: Removed.
4905         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
4906         * sysdeps/x86/bits/setjmp.h: This.
4907
4908         * sysdeps/i386/bits/mathdef.h: Removed.
4909         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
4910         * sysdeps/x86/bits/mathdef.h: This.
4911
4912 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
4913
4914         [BZ #14132]
4915         * include/sys/socket.h (__connect_internal)
4916         (__libc_sa_len_internal): Remove declaration.
4917         (__connect, __libc_sa_len): Declare hidden_proto.
4918         (SA_LEN): Remove use of INTUSE.
4919         * socket/connect.c: Add libc_hidden_def.
4920         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
4921         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
4922         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
4923         alias.
4924         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
4925         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
4926         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
4927         of adding _internal alias.
4928
4929 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
4930
4931         [BZ #14117]
4932         * sysdeps/i386/bits/link.h: Removed.
4933         * sysdeps/i386/bits/linkmap.h: Likewise.
4934         * sysdeps/x86_64/bits/link.h: Renamed to ...
4935         * sysdeps/x86/bits/link.h: This.
4936         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
4937         * sysdeps/x86/bits/linkmap.h: This.
4938
4939         * sysdeps/i386/bits/endian.h: Removed.
4940         * sysdeps/x86_64/bits/endian.h: Renamed to ...
4941         * sysdeps/x86/bits/endian.h: This.
4942
4943         * sysdeps/i386/bits/byteswap.h: Removed.
4944         * sysdeps/i386/bits/byteswap-16.h: Likewise.
4945         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
4946         * sysdeps/x86/bits/byteswap.h: This.
4947         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
4948         * sysdeps/x86/bits/byteswap-16.h: This.
4949         * sysdeps/i386/Implies: Add x86.
4950         * sysdeps/x86_64/Implies: Likewise.
4951
4952 2012-05-30  David S. Miller  <davem@davemloft.net>
4953
4954         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
4955         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
4956         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
4957         (FP_TRAPPING_EXCEPTIONS): Define.
4958         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
4959         (FP_TRAPPING_EXCEPTIONS): Define.
4960         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
4961         subnormals only when inexact has been signalled or underflow
4962         exceptions are enabled.
4963         (_FP_PACK_CANONICAL): Likewise.
4964
4965 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
4966
4967         [BZ #14183]
4968         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
4969         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
4970
4971 2012-05-30  Richard Henderson  <rth@twiddle.net>
4972
4973         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
4974         with #ifndef NOT_IN_libc.
4975
4976         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
4977         marked to avoid plt entry.
4978
4979 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
4980
4981         [BZ #14112]
4982         * Makeconfig (default-abi): New macro.
4983         (abi-includes): Likewise.
4984         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
4985         $(abi-$(default-abi)-lib-soname) for soname if defined.
4986         ($(common-objpfx)gnu/lib-names.stmp): Generate from
4987         abi-variants.
4988         * Makefile (installed-stubs): Likewise.
4989         * include/stubs-biarch.h: Removed.
4990         * scripts/lib-names.awk: Only handle one library at a time.
4991         * scripts/soversions.awk: Remove WORDSIZE support.
4992         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
4993         entries.
4994         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
4995         Removed.
4996         (syscall-list-default-condition): Likewise.
4997         (syscall-list-default-condition): Likewise.
4998         (syscall-list-includes): Likewise.
4999         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
5000         syscall-list-* with abi-*.  Handle undefined abi-variants.
5001         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
5002         * sysdeps/unix/sysv/linux/i386/Implies: New file.
5003         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
5004         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
5005         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
5006         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
5007         Removed.
5008         (syscall-list-32-options): Likewise.
5009         (syscall-list-32-condition): Likewise.
5010         (syscall-list-64-options): Likewise.
5011         (syscall-list-64-condition): Likewise.
5012         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
5013         macro.
5014         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
5015         Renamed to ...
5016         (abi-*): This.
5017         (abi-64-ld-soname): New macro.
5018         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
5019         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
5020         Renamed to ...
5021         (abi-*): This.
5022         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
5023         * sysdeps/x86_64/x32/shlib-versions: Likewise.
5024
5025 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
5026
5027         * sysdeps/unix/sysv/linux/kernel-features.h
5028         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
5029         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
5030         include <kernel-features.h>.
5031         [!__NR_ftruncate64]: Remove conditional code.
5032         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5033         [__NR_ftruncate64]: Make code unconditional.
5034         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5035         * sysdeps/unix/sysv/linux/truncate64.c: Do not
5036         include <kernel-features.h>.
5037         [!__NR_ftruncate64]: Remove conditional code.
5038         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5039         [__NR_ftruncate64]: Make code unconditional.
5040         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5041         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
5042         include <kernel-features.h>.
5043         [!__NR_ftruncate64]: Remove conditional code.
5044         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5045         [__NR_ftruncate64]: Make code unconditional.
5046         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5047         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
5048         include <kernel-features.h>.
5049         [!__NR_ftruncate64]: Remove conditional code.
5050         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5051         [__NR_ftruncate64]: Make code unconditional.
5052         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5053
5054         * configure.in (libc_cv_fpie): Weaken to a compile test using
5055         LIBC_TRY_CC_OPTION.
5056         * configure: Regenerated.
5057
5058 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5059
5060         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
5061         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
5062         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
5063         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
5064         Refreshed.
5065         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
5066         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
5067         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
5068         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
5069         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
5070         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
5071         Refreshed.
5072
5073 2012-05-27  David S. Miller  <davem@davemloft.net>
5074
5075         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
5076         (___Q_zero): New.
5077         (__Q_simulate_exceptions): Return void.  Change to simulate
5078         exceptions by writing into the %fsr.
5079         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
5080         (__Qp_handle_exceptions): Likewise.
5081         (numbers): Delete.
5082         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
5083         __Qp_handle_exceptions.
5084         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
5085         __Qp_handle_exceptions.
5086         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
5087         as unused and give dummy FP_RND_NEAREST initializer.
5088         (FP_INHIBIT_RESULTS): Define.
5089         (___Q_simulate_exceptions): Update declaration.
5090         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
5091         formatting.
5092         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
5093         as unused and give dummy FP_RND_NEAREST initializer.
5094         (__Qp_handle_exceptions): Update declaration.
5095         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
5096         formatting.
5097
5098 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
5099
5100         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
5101         the temporary FPU control word.
5102         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
5103         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
5104         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
5105         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
5106         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
5107         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
5108         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
5109         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
5110         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
5111         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
5112         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
5113
5114 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5115
5116         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
5117         fields.
5118
5119 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
5120
5121         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
5122         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
5123         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
5124         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
5125         Likewise.
5126         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
5127         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
5128         Likewise.
5129
5130 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
5131
5132         * po/h.po: Update from translation team.
5133
5134 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
5135
5136         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
5137
5138         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
5139         handling of denormals.
5140         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
5141         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
5142         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
5143         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
5144         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
5145         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
5146         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
5147         Likewise.
5148
5149 2012-05-26  Marek Polacek  <polacek@redhat.com>
5150
5151         [BZ #14152]
5152         * math/libm-test.inc (fma_test): Don't always expect underflow
5153         exception.
5154
5155 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
5156
5157         [BZ #12416]
5158         * elf/tst-execstack.c: Include stackinfo.h.
5159         (do_test): Adjust test case to ensure that pthread_getattr_np
5160         behaviour remains the same after marking stack executable.
5161
5162 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
5163
5164         * sysdeps/unix/sysv/linux/kernel-features.h
5165         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
5166         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
5167         kernel-features.h.
5168         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
5169         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
5170         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
5171         kernel-features.h.
5172         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
5173         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
5174
5175 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
5176
5177         * configure.in: Define the default includes to being none.
5178         * configure: Regenerated.
5179
5180 2012-05-25  Roland McGrath  <roland@hack.frob.com>
5181
5182         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
5183         * sysdeps/x86_64/setjmp.S: Likewise.
5184         * sysdeps/i386/bsd-setjmp.S: Likewise.
5185         * sysdeps/i386/bsd-_setjmp.S: Likewise.
5186         * sysdeps/i386/setjmp.S: Likewise.
5187         * sysdeps/i386/__longjmp.S: Likewise.
5188         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
5189         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
5190
5191         * include/stap-probe.h: New file.
5192         * configure.in: Handle --enable-systemtap.
5193         * configure: Regenerated.
5194         * config.h.in (USE_STAP_PROBE): New #undef.
5195         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
5196         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
5197         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
5198
5199 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
5200
5201         [BZ #13717]
5202         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
5203         to 2.4.0 where earlier.
5204         * sysdeps/unix/sysv/linux/configure: Regenerated.
5205         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
5206         <kernel-features.h>.
5207         [__ASSUME_32BITUIDS]: Make code unconditional.
5208         [!__ASSUME_32BITUIDS]: Remove conditional code.
5209         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
5210         <kernel-features.h>.
5211         [__ASSUME_32BITUIDS]: Make code unconditional.
5212         [!__ASSUME_32BITUIDS]: Remove conditional code.
5213         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
5214         [__ASSUME_32BITUIDS]: Make code unconditional.
5215         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
5216         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
5217         <kernel-features.h>.
5218         [__ASSUME_32BITUIDS]: Make code unconditional.
5219         [!__ASSUME_32BITUIDS]: Remove conditional code.
5220         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
5221         <kernel-features.h>.
5222         [__ASSUME_32BITUIDS]: Make code unconditional.
5223         [!__ASSUME_32BITUIDS]: Remove conditional code.
5224         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
5225         <kernel-features.h>.
5226         [__ASSUME_32BITUIDS]: Make code unconditional.
5227         [!__ASSUME_32BITUIDS]: Remove conditional code.
5228         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
5229         <kernel-features.h>.
5230         [__ASSUME_32BITUIDS]: Make code unconditional.
5231         [!__ASSUME_32BITUIDS]: Remove conditional code.
5232         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
5233         <kernel-features.h>.
5234         [__ASSUME_32BITUIDS]: Make code unconditional.
5235         [!__ASSUME_32BITUIDS]: Remove conditional code.
5236         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
5237         <kernel-features.h>.
5238         [__ASSUME_32BITUIDS]: Make code unconditional.
5239         [!__ASSUME_32BITUIDS]: Remove conditional code.
5240         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
5241         <kernel-features.h>.
5242         [__ASSUME_32BITUIDS]: Make code unconditional.
5243         [!__ASSUME_32BITUIDS]: Remove conditional code.
5244         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
5245         <kernel-features.h>.
5246         [__ASSUME_32BITUIDS]: Make code unconditional.
5247         [!__ASSUME_32BITUIDS]: Remove conditional code.
5248         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
5249         <kernel-features.h>.
5250         [__ASSUME_32BITUIDS]: Make code unconditional.
5251         [!__ASSUME_32BITUIDS]: Remove conditional code.
5252         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
5253         <kernel-features.h>.
5254         [__ASSUME_32BITUIDS]: Make code unconditional.
5255         [!__ASSUME_32BITUIDS]: Remove conditional code.
5256         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
5257         <kernel-features.h>.
5258         [__NR_setresgid] (__setresgid): Do not declare.
5259         [__ASSUME_32BITUIDS]: Make code unconditional.
5260         [!__ASSUME_32BITUIDS]: Remove conditional code.
5261         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
5262         <kernel-features.h>.
5263         [__NR_setresuid] (__setresuid): Do not declare.
5264         [__ASSUME_32BITUIDS]: Make code unconditional.
5265         [!__ASSUME_32BITUIDS]: Remove conditional code.
5266         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
5267         <kernel-features.h>.
5268         [__ASSUME_32BITUIDS]: Make code unconditional.
5269         [!__ASSUME_32BITUIDS]: Remove conditional code.
5270         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
5271         <kernel-features.h>.
5272         [__ASSUME_32BITUIDS]: Make code unconditional.
5273         [!__ASSUME_32BITUIDS]: Remove conditional code.
5274         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
5275         <kernel-features.h>.
5276         [__ASSUME_32BITUIDS]: Make code unconditional.
5277         [!__ASSUME_32BITUIDS]: Remove conditional code.
5278         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
5279         <kernel-features.h>.
5280         [__ASSUME_32BITUIDS]: Make code unconditional.
5281         [!__ASSUME_32BITUIDS]: Remove conditional code.
5282         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
5283         <kernel-features.h>.
5284         [__ASSUME_32BITUIDS]: Make code unconditional.
5285         [!__ASSUME_32BITUIDS]: Remove conditional code.
5286         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
5287         <kernel-features.h>.
5288         [__ASSUME_32BITUIDS]: Make code unconditional.
5289         [!__ASSUME_32BITUIDS]: Remove conditional code.
5290         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
5291         <kernel-features.h>.
5292         [__ASSUME_32BITUIDS]: Make code unconditional.
5293         [!__ASSUME_32BITUIDS]: Remove conditional code.
5294         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
5295         <kernel-features.h>.
5296         [__ASSUME_32BITUIDS]: Make code unconditional.
5297         [!__ASSUME_32BITUIDS]: Remove conditional code.
5298         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
5299         <kernel-features.h>.
5300         [__ASSUME_32BITUIDS]: Make code unconditional.
5301         [!__ASSUME_32BITUIDS]: Remove conditional code.
5302         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
5303         <kernel-features.h>.
5304         [__ASSUME_32BITUIDS]: Make code unconditional.
5305         [!__ASSUME_32BITUIDS]: Remove conditional code.
5306         * sysdeps/unix/sysv/linux/kernel-features.h
5307         (__ASSUME_SETRESUID_SYSCALL): Remove.
5308         (__ASSUME_SETRESGID_SYSCALL): Likewise.
5309         (__ASSUME_32BITUIDS): Likewise.
5310         (__ASSUME_LDT_WORKS): Likewise.
5311         (__ASSUME_O_DIRECTORY): Likewise.
5312         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
5313         architecture but not kernel version.
5314         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
5315         (__ASSUME_MMAP2_SYSCALL): Likewise.
5316         (__ASSUME_STAT64_SYSCALL): Likewise.
5317         (__ASSUME_IPC64): Likewise.
5318         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
5319         <kernel-features.h>.
5320         [__ASSUME_32BITUIDS]: Make code unconditional.
5321         [!__ASSUME_32BITUIDS]: Remove conditional code.
5322         * sysdeps/unix/sysv/linux/opendir.c: Do not include
5323         <kernel-features.h>.
5324         [__ASSUME_O_DIRECTORY]: Make code unconditional.
5325         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
5326         132096]: Remove conditional code.
5327         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
5328         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
5329         <kernel-features.h>.
5330         [__ASSUME_32BITUIDS]: Make code unconditional.
5331         [!__ASSUME_32BITUIDS]: Remove conditional code.
5332         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
5333         <kernel-features.h>.
5334         [__ASSUME_32BITUIDS]: Make code unconditional.
5335         [!__ASSUME_32BITUIDS]: Remove conditional code.
5336         * sysdeps/unix/sysv/linux/setegid.c: Do not include
5337         <kernel-features.h>.
5338         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
5339         unconditional.
5340         (__setresgid): Do not declare.
5341         [__ASSUME_32BITUIDS]: Make code unconditional.
5342         [!__ASSUME_32BITUIDS]: Remove conditional code.
5343         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
5344         <kernel-features.h>.
5345         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
5346         unconditional.
5347         (__setresuid): Do not declare.
5348         [__ASSUME_32BITUIDS]: Make code unconditional.
5349         [!__ASSUME_32BITUIDS]: Remove conditional code.
5350         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
5351         <kernel-features.h>.
5352         [__ASSUME_32BITUIDS]: Make code unconditional.
5353         [!__ASSUME_32BITUIDS]: Remove conditional code.
5354         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
5355         <kernel-features.h>.
5356         [__ASSUME_32BITUIDS]: Make code unconditional.
5357         [!__ASSUME_32BITUIDS]: Remove conditional code.
5358
5359 2012-05-25  Richard Henderson  <rth@twiddle.net>
5360
5361         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
5362         dl_hwcap to ifunc resolver.
5363         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
5364         elf_ifunc_invoke.
5365         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
5366         dl_hwcap to ifunc resolver.
5367         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
5368
5369 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
5370
5371         [BZ #14153]
5372         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
5373         for |x| <= 2**-26, not 2**-57.
5374         * math/libm-test.inc (acos_test): Do not allow spurious underflow
5375         exception.
5376
5377 2012-05-24  Jeff Law  <law@redhat.com>
5378
5379         * stdio-common/Makefile (tests): Add bug25.
5380         * stdio-common/bug25.c: New test.
5381
5382 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
5383
5384         [BZ #13576]
5385         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
5386         multiple of MALLOC_ALIGNMENT in size.
5387         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
5388
5389 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
5390
5391         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
5392         Require >= 256.
5393         (FILENAME_MAX): Use macro-int-constant.
5394         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
5395         (_IOFBF): Use macro-int-constant.
5396         (_IOLBF): Likewise.
5397         (_IONBF): Likewise.
5398         (SEEK_CUR): Likewise.
5399         (SEEK_END): Likewise.
5400         (SEEK_SET): Likewise.
5401         (TMP_MAX): Likewise.
5402         (EOF): Use macro-int-constant.  Require < 0.
5403         (NULL): Use macro-constant.  Require == 0.
5404         (stdin): Require type to be FILE *.
5405         (stdout): Likewise.
5406         (stderr): Likewise.
5407         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
5408         macro-int-constant.
5409         (EXIT_SUCCESS): Likewise.
5410         (NULL): Use macro-constant.  Require == 0.
5411         (RAND_MAX): Use macro-int-constant.
5412         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
5413         [C99-based standards] (strtof): Require function.
5414         [C99-based standards] (strtold): Likewise.
5415         [C99-based standards] (strtoll): Likewise.
5416         [C99-based standards] (strtoull): Likewise.
5417         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
5418         [ISO || ISO99 || ISO11] (limits.h): Likewise.
5419         [ISO || ISO99 || ISO11] (math.h): Likewise.
5420         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
5421         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
5422         [ISO || ISO99 || ISO11] (*_t): Do not allow.
5423
5424 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
5425
5426         [BZ #14132]
5427         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
5428         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
5429         * intl/dgettext.c (DCGETTEXT): Likewise.
5430         * intl/gettext.c (DCGETTEXT): Likewise.
5431         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
5432         * posix/regex_internal.h (gettext): Likewise.
5433         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
5434         Remove declaration.
5435         * include/argz.h (__argz_count_internal)
5436         (__argz_stringify_internal): Remove declaration.
5437         (__argz_count, __argz_stringify): Declare hidden proto.
5438         * intl/dcgettext.c: Remove use of INTDEF.
5439         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
5440         * string/argz-stringify.c: Likewise.
5441         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
5442         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
5443         Declare hidden proto.
5444         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
5445         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
5446         Declare hidden proto.
5447         * include/stdio.h (__asprintf_internal): Don't declare.
5448         (__asprintf): Don't define as macro.  Declare hidden proto.
5449         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
5450         (__fsetlocking): Declare hidden proto.
5451         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
5452         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
5453         hidden proto.
5454         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
5455         (_IO_setlinebuf): Remove use of INTUSE.
5456         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
5457         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
5458         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
5459         Remove declaration.
5460         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
5461         (_IO_do_flush): Remove use of INTUSE.
5462         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
5463         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
5464         (_IO_adjust_column, _IO_least_wmarker)
5465         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
5466         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
5467         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
5468         (_IO_default_doallocate, _IO_wdefault_doallocate)
5469         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
5470         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
5471         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
5472         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
5473         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
5474         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
5475         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
5476         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
5477         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
5478         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
5479         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
5480         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
5481         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
5482         proto.
5483         (_IO_flush_all_internal, _IO_adjust_column_internal)
5484         (_IO_default_uflow_internal, _IO_default_finish_internal)
5485         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
5486         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
5487         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
5488         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
5489         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
5490         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
5491         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
5492         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
5493         (_IO_file_close_internal, _IO_file_close_it_internal)
5494         (_IO_file_underflow_internal, _IO_file_overflow_internal)
5495         (_IO_file_init_internal, _IO_file_attach_internal)
5496         (_IO_file_fopen_internal, _IO_file_read_internal)
5497         (_IO_file_sync_internal, _IO_file_seek_internal)
5498         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
5499         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
5500         (_IO_str_underflow_internal, _IO_str_overflow_internal)
5501         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
5502         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
5503         (_IO_list_all_internal, _IO_link_in_internal)
5504         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
5505         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
5506         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
5507         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
5508         (_IO_do_write_internal, _IO_padn_internal)
5509         (_IO_getline_info_internal, _IO_getline_internal)
5510         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
5511         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
5512         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
5513         (_IO_vfscanf_internal, _IO_vfprintf_internal)
5514         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
5515         (_IO_init_internal, _IO_un_link_internal): Don't declare.
5516         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
5517         with libc_hidden_ver, remove use of INTUSE.
5518         * libio/genops.c: Likewise.
5519         * libio/freopen.c: Likewise.
5520         * libio/freopen64.c: Likewise.
5521         * libio/iofclose.c: Likewise.
5522         * libio/iofdopen.c: Likewise.
5523         * libio/iofflush.c: Likewise.
5524         * libio/iofflush_u.c: Likewise.
5525         * libio/iofgets.c: Likewise.
5526         * libio/iofgets_u.c: Likewise.
5527         * libio/iofopen.c: Likewise.
5528         * libio/iofopncook.c: Likewise.
5529         * libio/iofread.c: Likewise.
5530         * libio/iofread_u.c: Likewise.
5531         * libio/ioftell.c: Likewise.
5532         * libio/iofwrite.c: Likewise.
5533         * libio/iogetline.c: Likewise.
5534         * libio/iogets.c: Likewise.
5535         * libio/iogetwline.c: Likewise.
5536         * libio/iopadn.c: Likewise.
5537         * libio/iopopen.c: Likewise.
5538         * libio/ioseekoff.c: Likewise.
5539         * libio/ioseekpos.c: Likewise.
5540         * libio/iosetbuffer.c: Likewise.
5541         * libio/iosetvbuf.c: Likewise.
5542         * libio/ioungetc.c: Likewise.
5543         * libio/ioungetwc.c: Likewise.
5544         * libio/iovdprintf.c: Likewise.
5545         * libio/iovsprintf.c: Likewise.
5546         * libio/iovsscanf.c: Likewise.
5547         * libio/memstream.c: Likewise.
5548         * libio/obprintf.c: Likewise.
5549         * libio/oldfileops.c: Likewise.
5550         * libio/oldiofclose.c: Likewise.
5551         * libio/oldiofdopen.c: Likewise.
5552         * libio/oldiofopen.c: Likewise.
5553         * libio/oldiopopen.c: Likewise.
5554         * libio/oldstdfiles.c: Likewise.
5555         * libio/putc.c: Likewise.
5556         * libio/setbuf.c: Likewise.
5557         * libio/setlinebuf.c: Likewise.
5558         * libio/stdfiles.c: Likewise.
5559         * libio/strops.c: Likewise.
5560         * libio/vasprintf.c: Likewise.
5561         * libio/vscanf.c: Likewise.
5562         * libio/vsnprintf.c: Likewise.
5563         * libio/vswprintf.c: Likewise.
5564         * libio/wfiledoalloc.c: Likewise.
5565         * libio/wfileops.c: Likewise.
5566         * libio/wgenops.c: Likewise.
5567         * libio/wmemstream.c: Likewise.
5568         * libio/wstrops.c: Likewise.
5569         * libio/__fpurge.c: Likewise.
5570         * libio/__fsetlocking.c: Likewise.
5571         * assert/assert.c: Likewise.
5572         * debug/fgets_chk.c: Likewise.
5573         * debug/fgets_u_chk.c: Likewise.
5574         * debug/fread_chk.c: Likewise.
5575         * debug/fread_u_chk.c: Likewise.
5576         * debug/gets_chk.c: Likewise.
5577         * debug/obprintf_chk.c: Likewise.
5578         * debug/vasprintf_chk.c: Likewise.
5579         * debug/vdprintf_chk.c: Likewise.
5580         * debug/vsnprintf_chk.c: Likewise.
5581         * debug/vsprintf_chk.c: Likewise.
5582         * malloc/mtrace.c: Likewise.
5583         * misc/error.c: Likewise.
5584         * misc/syslog.c: Likewise.
5585         * stdio-common/asprintf.c: Likewise.
5586         * stdio-common/fxprintf.c: Likewise.
5587         * stdio-common/getw.c: Likewise.
5588         * stdio-common/isoc99_fscanf.c: Likewise.
5589         * stdio-common/isoc99_scanf.c: Likewise.
5590         * stdio-common/isoc99_vfscanf.c: Likewise.
5591         * stdio-common/isoc99_vscanf.c: Likewise.
5592         * stdio-common/isoc99_vsscanf.c: Likewise.
5593         * stdio-common/printf-prs.c: Likewise.
5594         * stdio-common/printf_fp.c: Likewise.
5595         * stdio-common/printf_fphex.c: Likewise.
5596         * stdio-common/printf_size.c: Likewise.
5597         * stdio-common/putw.c: Likewise.
5598         * stdio-common/scanf.c: Likewise.
5599         * stdio-common/sprintf.c: Likewise.
5600         * stdio-common/tmpfile.c: Likewise.
5601         * stdio-common/vfprintf.c: Likewise.
5602         * stdio-common/vfscanf.c: Likewise.
5603         * stdlib/strfmon_l.c: Likewise.
5604         * sunrpc/openchild.c: Likewise.
5605         * sunrpc/xdr_stdio.c: Likewise.
5606         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
5607         * sysdeps/mach/hurd/tmpfile.c: Likewise.
5608
5609 2012-05-24  Roland McGrath  <roland@hack.frob.com>
5610
5611         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
5612
5613         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
5614         in the third column, to generate for the shared library an IFUNC
5615         that uses _dl_vdso_vsym.
5616         * Makerules (COMPILE.c, compile-stdin.c): New variables.
5617         * Makeconfig (object-suffixes-noshared): New variable.
5618
5619         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
5620         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
5621         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
5622         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
5623
5624         [BZ #14132]
5625         * include/sys/time.h (__gettimeofday): Remove macro.
5626         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
5627         * time/gettimeofday.c (__gettimeofday): Remove #undef.
5628         Remove INTDEF.
5629         (__gettimeofday): Add libc_hidden_def.
5630         (gettimeofday): Add libc_hidden_weak.
5631         * sysdeps/mach/gettimeofday.c: Likewise.
5632         * sysdeps/posix/gettimeofday.c: Likewise.
5633         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
5634         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
5635         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
5636         (__gettimeofday_internal): Remove strong_alias.
5637         (__gettimeofday): Add libc_hidden_def.
5638         (gettimeofday): Add libc_hidden_weak.
5639         * sysdeps/unix/syscalls.list (gettimeofday):
5640         Remove __gettimeofday_internal alias.
5641
5642 2012-05-24  Daniel Jacobowitz  <drow@false.org>
5643             H.J. Lu  <hongjiu.lu@intel.com>
5644
5645         [BZ #12495]
5646         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
5647         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
5648         (largebin_index_32_big): New.
5649         (largebin_index): Use it for 16-byte alignment.
5650         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
5651         correction with front_misalign.
5652
5653 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
5654
5655         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
5656         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
5657         Likewise.
5658         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
5659         Likewise.
5660         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
5661         Likewise.
5662         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
5663         Likewise.
5664         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
5665         Likewise.
5666         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
5667         Likewise.
5668         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
5669         Likewise.
5670         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
5671         Likewise.
5672         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
5673         Likewise.
5674         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
5675         Likewise.
5676         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
5677         Likewise.
5678         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
5679         Likewise.
5680
5681         * scripts/data/c++-types-x32-linux-gnu.data: New file.
5682         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
5683
5684 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
5685
5686         [BZ #10846]
5687         [BZ #14036]
5688         * math/libm-test.inc (exp_test): Add test from bug 14036.
5689         (pow_test): Add test from bug 10846.
5690
5691         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
5692         and other flags.
5693         (special_function): Do not include flags in test name.
5694         (parse_args): Likewise.
5695         * sysdeps/i386/fpu/libm-test-ulps: Update.
5696         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
5697         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
5698         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
5699         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5700
5701         * math/gen-libm-test.pl (%beautify): Add entries for underflow
5702         exceptions.
5703         * math/libm-test.inc ("Philosophy"): Update comment about
5704         exception testing.
5705         (UNDERFLOW_EXCEPTION): New macro.
5706         (UNDERFLOW_EXCEPTION_OK): Likewise.
5707         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
5708         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
5709         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
5710         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
5711         (INVALID_EXCEPTION_OK): Update value.
5712         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
5713         (OVERFLOW_EXCEPTION_OK): Likewise.
5714         (IGNORE_ZERO_INF_SIGN): Likewise.
5715         (test_exceptions): Handle underflow exceptions.
5716         (acos_test): Update for underflow exception expectations.
5717         (cexp_test): Likewise.
5718         (clog_test): Likewise.
5719         (clog10_test): Likewise.
5720         (csqrt_test): Likewise.
5721         (ctan_test): Likewise.
5722         (ctanh_test): Likewise.
5723         (exp_test): Likewise.
5724         (exp10_test): Likewise.
5725         (exp2_test): Likewise.
5726         (expm1_test): Likewise.
5727         (fma_test): Likewise.
5728         (j0_test): Likewise.
5729         (jn_test): Likewise.
5730         (nexttoward_test): Likewise.
5731         (pow_test): Likewise.
5732         (scalbn_test): Likewise.
5733         (scalbln_test): Likewise.
5734         (tan_test): Likewise.
5735         (y1_test): Likewise.
5736         * sysdeps/i386/fpu/libm-test-ulps: Update.
5737         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5738
5739 2012-05-23  David S. Miller  <davem@davemloft.net>
5740
5741         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
5742         (__libc_sigaction): Remove unused local variables.
5743
5744 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
5745
5746         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
5747
5748 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
5749
5750         mktime: avoid signed integer overflow
5751         * time/mktime.c (__mktime_internal): Do not mishandle the case
5752         where diff == INT_MIN.
5753
5754         mktime: simplify computation of average
5755         * time/mktime.c (ranged_convert): Use new time_t_avg function
5756         instead of rolling our own (probably-slower) code.
5757
5758         mktime: do not assume signed right shift propagates sign bit
5759         * time/mktime.c (isdst_differ): New static function.
5760         (__mktime_internal): No need to normalize tm_isdst now.
5761         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
5762         tm_isdst values.
5763
5764         mktime: merge another wrapv change from gnulib
5765         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
5766         from some compilers.
5767
5768         mktime: remove incorrect attempt at unusual arithmetics
5769         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
5770         The code didn't really work on such machines anyway.
5771         (TYPE_MINIMUM): Assume two's complement.
5772         (twos_complement_arithmetic): Verify that long_int and time_t
5773         are two's complement (or unsigned, in the latter case).
5774
5775         mktime: check signed shifts on long_int and time_t, too
5776         * time/mktime.c (SHR): Check that shifts work as desired
5777         on the types long_int and time_t too, as SHR is used on
5778         such types.
5779
5780         mktime: do not assume 'long' is wide enough
5781         * time/mktime.c (verify): Move decl up.
5782         (long_int): New type.
5783         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
5784         to remove assumption in the code that 'long' is wide enough to
5785         store year values.  This assumption is not true on x32 and on
5786         some non-glibc platforms.
5787
5788         mktime: merge wrapv change from gnulib
5789         * time/mktime.c (WRAPV): New macro.
5790         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
5791         (guess_time_tm, __mktime_internal): Do not assume that signed
5792         integer overflow wraps around; modern compilers generate code
5793         where this assumption is no longer valid.
5794
5795 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
5796
5797         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
5798         Replace "jmp L(pseudo_end)" with "ret".
5799         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
5800         Likewise.
5801
5802 2012-05-23  Andreas Jaeger  <aj@suse.de>
5803
5804         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
5805         * sysdeps/unix/sysv/linux/poll.c: Remove file.
5806
5807 2012-05-23  Andreas Jaeger  <aj@suse.de>
5808             Maximilian Attems  <max@stro.at>
5809
5810         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
5811         New macros.
5812
5813 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
5814
5815         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
5816         code so that pseudo_end is just ret and the stack pointer is
5817         correct also for static library in error case.
5818
5819 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
5820
5821         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
5822         move to syscalls.list.
5823         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
5824         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
5825         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
5826         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
5827
5828         * manual/install.texi (Running make install): Do not mention Linux
5829         kernel version for which pt_chown is not needed.
5830         (Linux): Do not mention problems with nscd with 2.0 kernels.
5831         * INSTALL: Regenerated.
5832
5833 2012-05-23  Andreas Jaeger  <aj@suse.de>
5834
5835         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
5836         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
5837         macro.
5838         * sysdeps/unix/sysv/linux/s390/bits/mman.h
5839         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5840         * sysdeps/unix/sysv/linux/sh/bits/mman.h
5841         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5842         * sysdeps/unix/sysv/linux/i386/bits/mman.h
5843         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5844         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
5845         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5846         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
5847         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5848         * sysdeps/unix/sysv/linux/bits/in.h
5849         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
5850
5851 2012-05-22  Roland McGrath  <roland@hack.frob.com>
5852
5853         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
5854         (PREPARE_VERSION): Just use assert instead, it will be elided
5855         under [NDEBUG] anyway.
5856
5857 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
5858
5859         * sysdeps/unix/sysv/linux/Makefile: Include
5860         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
5861         (sysdep_routines): Remove sysctl.
5862         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
5863         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
5864         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
5865         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
5866         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
5867
5868 2012-05-22  Andreas Jaeger  <aj@suse.de>
5869
5870         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
5871         that pseudo_end is just ret and the stack pointer is correct also
5872         for static library in error case.
5873
5874 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
5875
5876         [BZ #14122]
5877         * nss/nsswitch.c (defconfig_entries): New variable.
5878         (__nss_database_lookup): Don't leak defconfig entries.
5879         (nss_parse_service_list): Don't leak on error paths.
5880         (free_database_entries): New function.
5881         (free_defconfig): New function.
5882         (free_mem): Move common code to free_database_entries.
5883
5884 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
5885
5886         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
5887         Add arch_prctl.
5888         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
5889
5890         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
5891         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
5892         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
5893         New macro.
5894         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
5895         (INTERNAL_SYSCALL_TYPES): Likewise.
5896         (LOAD_ARGS_TYPES_[1-6]): Likewise.
5897         (LOAD_REGS_TYPES_[1-6]): Likewise.
5898         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
5899         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
5900
5901 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5902
5903         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
5904         copysignl for GLIBC_2_0.
5905         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
5906         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
5907         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
5908         logbl for GLIBC_2_0.
5909         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
5910         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
5911
5912 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
5913
5914         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
5915         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
5916
5917         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
5918         Use "neg %eax".
5919
5920         * time/mktime.c: Update copyright years.
5921
5922 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
5923
5924         mktime: merge comment-quoting-style change from gnulib
5925         * time/mktime.c: Quote 'like this' in comments.
5926         The GNU coding standards suggest that we no longer quote `like this',
5927         as "`" and "'" are typically rendered asymmetrically nowadays.
5928         The typical gnulib style is to quote 'like this' when quoting
5929         code, and "like this" when quoting English.
5930
5931         * time/mktime.c (compile-command): Add "-I.".
5932
5933         mktime: merge mktime-internal.h change from gnulib
5934         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
5935
5936         mktime: merge time_r change from gnulib
5937         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
5938
5939         mktime: merge DEBUG change from gnulib
5940         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
5941         case system <time.h> has a #define.
5942
5943         mktime: merge <sys/types.h> change from gnulib
5944         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
5945         since <time.t> is now guaranteed to define time_t.
5946
5947         mktime: merge HAVE_CONFIG_H change from gnulib
5948         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
5949
5950 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
5951
5952         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
5953         Use "neg %eax".
5954
5955         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
5956         __rlim_t cast.
5957         (struct rusage): Use anonymous union to pad each field to
5958         __syscall_slong_t.
5959
5960 2012-05-21  David S. Miller  <davem@davemloft.net>
5961
5962         * Makefules (o-iterator): Remove .s cases.
5963         (compile-command.s): Delete.
5964         (COMPILE.s): Delete.
5965         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
5966
5967 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
5968
5969         * configure.in (libc_cv_predef_stack_protector): Only consider
5970         "foobar" and "__stack_chk_fail" lines in libc_undefs.
5971         * configure: Regenerated.
5972
5973 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
5974
5975         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
5976         New macro.  Use R*LP on int and pointer.
5977         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
5978         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
5979         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
5980         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
5981
5982         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
5983         [__WORDSIZE_TIME64_COMPAT32] instead of
5984         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
5985         (struct utmp): Likewise.
5986         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
5987         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
5988         Renamed to ...
5989         (__WORDSIZE_TIME64_COMPAT32): This.
5990         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
5991         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
5992         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
5993         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
5994         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
5995         (__WORDSIZE_TIME64_COMPAT32): New macro.
5996
5997 2012-05-21  Andreas Jaeger  <aj@suse.de>
5998
5999         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
6000         only if [SHARED]. Add prototype for __wcschr_ia32.
6001
6002 2012-05-21  Roland McGrath  <roland@hack.frob.com>
6003
6004         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
6005         of %rbp unmolested in the jmp_buf while mangling the low bits.
6006         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
6007         unmolested high bits of %rbp while demangling the low bits.
6008         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
6009
6010 2012-05-21  Andreas Jaeger  <aj@suse.de>
6011
6012         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
6013         * sunrpc/svc_simple.c: Use it for registerrpc.
6014         * sunrpc/xcrypt.c: Use it for passwd2des.
6015
6016         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
6017
6018 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6019
6020         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
6021         Don't define if [__SYSCALL_WORDSIZE != 32].
6022         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
6023         New macro.
6024
6025 2012-05-21  Bruno Haible  <bruno@clisp.org>
6026             Andreas Jaeger  <aj@suse.de>
6027
6028         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
6029         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
6030         inptr and inend for must_buffer_ch.
6031         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
6032         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
6033         * stdio-common/Makefile (tests): Remove bug15.
6034         (bug15-ENV): Remove macro.
6035         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
6036         anymore.
6037
6038 2012-05-19  Andreas Jaeger  <aj@suse.de>
6039             Roland McGrath  <roland@hack.frob.com>
6040
6041         * manual/contrib.texi: Completely rewritten. It contains now an
6042         alphabetical list of contributors and their contributions.
6043
6044 2012-05-21  Richard Henderson  <rth@twiddle.net>
6045
6046         * misc/getauxval.c (__getauxval): Use unsigned long int.
6047         * misc/sys/auxv.h: Include <sys/cdefs.h>.
6048         (getauxval): Use unsigned long int.
6049
6050 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6051
6052         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
6053
6054 2012-05-21  Roland McGrath  <roland@hack.frob.com>
6055
6056         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
6057         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
6058         __alignof__ (long double).
6059
6060 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6061
6062         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6063
6064 2012-05-20  Richard Henderson  <rth@twiddle.net>
6065
6066         * misc/getauxval.c: New file.
6067         * misc/sys/auxv.h: New file.
6068         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
6069         (routines): Add getauxval.
6070         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
6071         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
6072         * elf/dl-sysdep.c (_dl_auxv): Remove.
6073         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
6074         * elf/dl-support.c (_dl_auxv): New variable.
6075         (_dl_aux_init): Initialize it.
6076         * manual/startup.texi (Auxiliary Vector): New node.
6077         * sysdeps/generic/bits/hwcap.h: New file.
6078         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
6079         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
6080         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
6081         * sysdeps/sparc/sysdep.h: ... here.  Include it.
6082         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
6083         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
6084         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
6085         Update.
6086         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
6087         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
6088         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
6089         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
6090         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
6091         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
6092         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
6093         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
6094
6095 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6096
6097         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6098
6099 2012-05-19  David S. Miller  <davem@davemloft.net>
6100
6101         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6102
6103 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
6104
6105         [BZ #14123]
6106         * math/s_ccosh.c: Include <float.h>
6107         (__ccosh): Avoid internal overflow calculating sinh and cosh
6108         values before multiplying by sin and cos values.
6109         * math/s_ccoshf.c: Likewise.
6110         * math/s_ccoshl.c: Likewise.
6111         * math/s_csin.c: Likewise.
6112         * math/s_csinf.c: Likewise.
6113         * math/s_csinl.c: Likewise.
6114         * math/s_csinh.c: Likewise.
6115         * math/s_csinhf.c: Likewise.
6116         * math/s_csinhl.c: Likewise.
6117         * math/libm-test.inc (ccos_test): Add more tests.
6118         (ccosh_test): Likewise.
6119         (csin_test): Likewise.
6120         (csinh_test): Likewise.
6121         * sysdeps/i386/fpu/libm-test-ulps: Update.
6122         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6123
6124 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
6125
6126         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
6127         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
6128
6129         * sysdeps/x86_64/x32/_itoa.h: Add comment.
6130
6131 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
6132
6133         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
6134         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
6135         * sysdeps/powerpc/soft-fp/Versions: Likewise.
6136         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
6137         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
6138         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
6139         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
6140         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
6141         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
6142         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
6143         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
6144         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
6145         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
6146         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
6147         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
6148         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
6149         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
6150         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
6151         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
6152         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
6153         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
6154         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
6155         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
6156         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
6157         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
6158         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
6159         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
6160         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
6161         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
6162         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
6163         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
6164
6165 2012-05-18  Andreas Jaeger  <aj@suse.de>
6166
6167         * csu/.gitignore: Delete.
6168
6169 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
6170
6171         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
6172         (timex): Use __syscall_slong_t.
6173
6174 2012-05-18  Andreas Jaeger  <aj@suse.de>
6175             Carlos O'Donell  <carlos_odonell@mentor.com>
6176
6177         * manual/install.texi (Configuring and compiling): Update
6178         description about files modified in the source directory.
6179         * INSTALL: Regenerated.
6180
6181 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
6182
6183         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
6184         value.  Use "or" to set return value to -1.
6185         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
6186         negate return value.
6187
6188 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
6189
6190         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
6191         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
6192         failure if the compiler has Graphite support disabled.
6193         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
6194         Likewise.
6195         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
6196         CFLAGS-memmove.c): Likewise.
6197         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
6198         Likewise.
6199
6200 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
6201
6202         * sysdeps/x86_64/x32/_itoa.h: New file.
6203
6204         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
6205         getdents system call only if kernel and user dirents have the
6206         same d_ino and d_off.
6207
6208         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
6209         LLONG_MAX != LONG_MAX.
6210         (_itoa_word): Use _ITOA_WORD_TYPE on value.
6211         (_fitoa_word): Likewise.
6212
6213         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
6214         years.
6215         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
6216         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
6217         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
6218
6219         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
6220         include <bits/wordsize.h>.  Check __x86_64__ instead of
6221         __WORDSIZE.
6222         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
6223         if __x86_64__ is defined.  Use anonymous union on fpstate.
6224
6225         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
6226         anonymous union.
6227
6228 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
6229
6230         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
6231         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
6232         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
6233         Refer to _rtld_local_ro instead of _rtld_global_ro.
6234         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
6235         Likewise.
6236         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
6237         Likewise.
6238         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
6239         Likewise.
6240         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
6241         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
6242         of _rtld_global, and rtld_progname instead of _dl_argv[0].
6243
6244         * sysdeps/powerpc/powerpc32/dl-machine.c
6245         (__elf_machine_runtime_setup) [PROF]: Don't reference
6246         _dl_prof_resolve.
6247
6248 2012-05-18  Andreas Jaeger  <aj@suse.de>
6249
6250         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
6251         function only available for GCCs before 3.4 since GCC 3.4
6252         introduced a builtin.
6253         (lrint): Likewise.
6254         (llrintf): Likewise.
6255         (llrint): Likewise.
6256         (fmaxf): Likewise.
6257         (fmax): Likewise.
6258         (fminf): Likewise.
6259         (fmin): Likewise.
6260         (rint): Likewise.
6261         (rintf): Likewise.
6262         (nearbyint): Likewise.
6263         (nearbyintf): Likewise.
6264         (ceil): Likewise.
6265         (ceilf): Likewise.
6266         (floor): Likewise.
6267         (floorf): Likewise.
6268
6269 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
6270
6271         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
6272         on both fields and cast pointer to __syscall_ulong_t.
6273
6274         * bits/types.h (__fsword_t): New type.
6275         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
6276         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
6277         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
6278         (__FSWORD_T_TYPE): Likewise.
6279         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
6280         (__FSWORD_T_TYPE): Likewise.
6281         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
6282         (__FSWORD_T_TYPE): Likewise.
6283         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
6284         (__FSWORD_T_TYPE): Likewise.
6285         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
6286         __SWORD_TYPE with __fsword_t.
6287         (statfs64): Likewise.
6288
6289 2012-05-17  David S. Miller  <davem@davemloft.net>
6290
6291         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
6292
6293 2012-05-17  Andreas Jaeger  <aj@suse.de>
6294
6295         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
6296         warning.
6297
6298 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
6299
6300         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
6301
6302 2012-05-17  Andreas Jaeger  <aj@suse.de>
6303
6304         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
6305         when it is used.
6306
6307 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
6308
6309         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
6310
6311 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
6312
6313         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
6314         * sysdeps/x86_64/tst-mallocalign1.c: New file.
6315
6316 2012-05-17  Andreas Jaeger  <aj@suse.de>
6317             Carlos O'Donell  <carlos_odonell@mentor.com>
6318
6319         [BZ #14059]
6320         * sysdeps/x86_64/multiarch/init-arch.h
6321         (bit_YMM_Usable): Rename to...
6322         (bit_AVX_Usable): ... this.
6323         (bit_FMA4_Usable): New macro.
6324         (bit_XMM_state): New macro.
6325         (bit_YMM_state): New macro.
6326         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
6327         [__ASSEMBLER__] (index_AVX_Usable): ... this.
6328         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
6329         (CPUID_OSXSAVE): New macro.
6330         (CPUID_AVX): New macro.
6331         (CPUID_FMA4): New macro.
6332         (index_YMM_Usable): Rename to...
6333         (index_AVX_Usable): ... this.
6334         (HAS_AVX): Use HAS_ARCH_FEATURE.
6335         (HAS_FMA4): Likewise.
6336         (HAS_YMM_USABLE): Remove.
6337         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
6338         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
6339         are present.
6340         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
6341         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
6342         * sysdeps/x86_64/multiarch/Makefile: Likewise.
6343         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
6344         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
6345
6346 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
6347
6348         * math/libm-test.c: Support platforms without multiple rounding modes.
6349         * math/bug-nextafter.c: Support platforms without FP exceptions.
6350         * math/bug-nexttoward.c: Likewise.
6351         * math/test-fenv.c: Likewise.
6352         * math/test-misc.c: Likewise.
6353         * stdlib/bug-getcontext.c: Likewise.
6354
6355 2012-05-17  Andreas Jaeger  <aj@suse.de>
6356
6357         * manual/examples/search.c (critter_cmp): Change signature to
6358         avoid warnings.
6359         * manual/string.texi (Collation Functions): Likewise.
6360
6361 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6362
6363         * bits/types.h: Fold copyright years.
6364         * bits/typesizes.h: Likewise.
6365         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
6366         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
6367         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
6368         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
6369         * time/time.h: Likewise.
6370
6371 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
6372
6373         [BZ #208]
6374         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
6375         in instead of returning them.  Return void.
6376         (__libc_mallinfo): Accumulate over all arenas.
6377         (__malloc_stats): Adjust for change in int_mallinfo interface.
6378
6379 2012-05-16  Roland McGrath  <roland@hack.frob.com>
6380
6381         [BZ #10375]
6382         * configure.in (NM): Add AC_CHECK_TOOL for it.
6383         (libc_extra_cflags): New substituted variable.
6384         Check for -fstack-protector being used implicitly.
6385         * configure: Regenerated.
6386         * config.make.in (config-extra-cflags): New variable,
6387         gets @libc_extra_cflags@.
6388         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
6389
6390         [BZ #10375]
6391         * configure.in: Check for _FORTIFY_SOURCE being predefined.
6392         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
6393         * configure: Regenerated.
6394         * config.make.in (CPPUNDEFS): New substituted variable.
6395         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
6396         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
6397         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
6398
6399 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6400
6401         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
6402         (mq_attr): Use __syscall_slong_t.
6403
6404 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6405
6406         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
6407         Check __x86_64__ instead of __WORDSIZE.
6408         (_STAT_VER_LINUX): Likewise.
6409         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
6410         __syscall_ulong_t and __syscall_slong_t.
6411         (stat64): Likewise.
6412
6413 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6414
6415         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
6416
6417 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6418
6419         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
6420
6421 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6422
6423         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
6424         __syscall_ulong_t.
6425
6426         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
6427         include <bits/wordsize.h>.  Check __x86_64__ instead of
6428         __WORDSIZE.
6429         (greg_t): Use "__extension__ long long int" if __x86_64__ is
6430         defined.
6431         (mcontext_t): Replace "unsigned long" with "unsigned long long".
6432
6433         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
6434         include <bits/wordsize.h>.  Check __x86_64__ instead of
6435         __WORDSIZE.
6436         (user_regs_struct): Use "__extension__ unsigned long long"
6437         instead of "unsigned long" if __x86_64__ is defined.
6438         (user): Likewise.  Pad after pointer field if __ILP32__ is
6439         defined.
6440
6441 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
6442
6443         * configure.in (makeinfo): Require version 4.5 or later.  Allow
6444         versions 5 to 9.
6445         * configure: Regenerated.
6446         * manual/install.texi (texinfo): Increase version requirement to
6447         4.5 or later.
6448         * INSTALL: Regenerated.
6449
6450         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
6451
6452 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6453
6454         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
6455
6456         * sysdeps/x86_64/x32/ffs.c: New file.
6457
6458         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
6459         __syscall_ulong_t.
6460         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
6461         defined.  Use __syscall_ulong_t.
6462         (shminfo): Use __syscall_ulong_t.
6463         (shm_info): Likewise.
6464
6465         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
6466         __syscall_ulong_t.
6467
6468         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
6469         <bits/wordsize.h>.
6470         (msgqnum_t): Use __syscall_ulong_t.
6471         (msglen_t): Likewise.
6472         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
6473         __syscall_ulong_t.
6474
6475         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
6476         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
6477
6478         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
6479
6480         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
6481         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
6482
6483         * sysvipc/sys/msg.h (msgbuf): Replace long int with
6484         __syscall_slong_t.
6485
6486         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
6487         include <bits/wordsize.h>.  Check __x86_64__ instead of
6488         __WORDSIZE.
6489
6490         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
6491         "unsigned long long int" if __x86_64__ is defined.
6492         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
6493
6494         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
6495         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
6496         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
6497
6498         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
6499         <stdint.h>.
6500         (GET_PC): Cast to uintptr_t first.
6501         (GET_FRAME): Likewise.
6502         (GET_STACK): Likewise.
6503
6504         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
6505         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
6506         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
6507         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
6508         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
6509         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
6510         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
6511         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
6512         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
6513         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
6514         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
6515         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
6516         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
6517         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
6518         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
6519         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
6520         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
6521         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
6522         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
6523         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
6524         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
6525         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
6526         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
6527         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
6528         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
6529         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
6530         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
6531         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
6532         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
6533
6534 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
6535
6536         * Makerules (+depfiles): Also collect depfiles from .oS in
6537         $(extra-objs).
6538         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
6539         .oS, $(libnldbl-routines)).
6540
6541         * Makerules (native-compile-mkdep-flags): Define.
6542         * sunrpc/Makefile (extra-objs): Add $(addprefix
6543         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
6544         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
6545         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
6546         calling $(make-target-directory).
6547
6548 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6549
6550         * bits/types.h (__snseconds_t): Removed.
6551         * time/time.h (struct timespec): Replace __snseconds_t with
6552         __syscall_slong_t.
6553         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
6554         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
6555         Likewise.
6556         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
6557         (__SNSECONDS_T_TYPE): Likewise.
6558         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
6559         (__SNSECONDS_T_TYPE): Likewise.
6560         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
6561         (__SNSECONDS_T_TYPE): Likewise.
6562
6563 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6564
6565         * sysdeps/mach/hurd/bits/typesizes.h
6566         (__SYSCALL_SLONG_TYPE): New macro.
6567         (__SYSCALL_ULONG_TYPE): Likewise.
6568
6569 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6570
6571         * bits/types.h (__syscall_slong_t): New type.
6572         (__syscall_ulong_t): Likewise.
6573
6574         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
6575         (__SYSCALL_ULONG_TYPE): Likewise.
6576         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
6577         (__SYSCALL_SLONG_TYPE): Likewise.
6578         (__SYSCALL_ULONG_TYPE): Likewise.
6579         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
6580         (__SYSCALL_SLONG_TYPE): Likewise.
6581         (__SYSCALL_ULONG_TYPE): Likewise.
6582         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
6583         (__SYSCALL_SLONG_TYPE): Likewise.
6584         (__SYSCALL_ULONG_TYPE): Likewise.
6585
6586 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6587
6588         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
6589         Add sigaltstack-offsets.sym.
6590         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
6591         <sigaltstack-offsets.h>.
6592         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
6593         longjmp_msg pointer.
6594         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
6595         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
6596         signal stack.
6597         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
6598
6599 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
6600
6601         * elf/stackguard-macros.h: Remove file.
6602         * sysdeps/generic/stackguard-macros.h: New file.
6603         * sysdeps/i386/stackguard-macros.h: Likewise.
6604         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
6605         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
6606         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
6607         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
6608         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
6609         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
6610         * sysdeps/x86_64/stackguard-macros.h: Likewise.
6611         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
6612         <elf/stackguard-macros.h>.
6613
6614         [BZ #14109]
6615         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
6616         __aligned__ in attribute.
6617         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
6618         (gregset_t): Likewise.
6619
6620 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6621
6622         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
6623         * sysdeps/x86_64/64/Implies-after: Here.  New file.
6624         * sysdeps/x86_64/x32/Implies-after: New file.
6625
6626 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6627
6628         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
6629         and access return value for _dl_profile_fixup.  Use R10_LP to
6630         load frame size.
6631
6632 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6633
6634         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
6635
6636 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6637
6638         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
6639         * sysdeps/x86_64/x32/sysdep.h: New file.
6640
6641 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6642
6643         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
6644         * sysdeps/x86_64/setjmp.S: Likewise.
6645
6646 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6647
6648         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
6649         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
6650         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
6651         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
6652         remove unused global constant.
6653
6654 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
6655
6656         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
6657         include of <not-cancel.h>.
6658
6659 2012-05-15  Roland McGrath  <roland@hack.frob.com>
6660
6661         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
6662
6663 2012-05-15  Jeff Law  <law@redhat.com>
6664             Andreas Jaeger  <aj@suse.de>
6665
6666         [BZ #13594]
6667         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
6668         out from...
6669         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
6670         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
6671         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
6672         code changing __hst_map_handle.map.
6673
6674 2012-05-15  Roland McGrath  <roland@hack.frob.com>
6675
6676         * configure.in (sysnames): Look for Implies-before and Implies-after
6677         files.
6678         * configure: Regenerated.
6679
6680 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6681
6682         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
6683         8-byte data alignment with LP_SIZE alignment.
6684
6685 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6686
6687         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
6688         into R10_LP.
6689
6690 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6691
6692         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
6693
6694 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6695
6696         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
6697         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
6698         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
6699         Likewise.
6700         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
6701
6702 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6703
6704         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
6705         (stackinfo_sub_sp): Likewise.
6706
6707 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6708
6709         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
6710         RAX_LP.
6711
6712 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6713
6714         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
6715         into R*_LP.
6716
6717 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6718
6719         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
6720         sizes into R*_LP.
6721
6722 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6723
6724         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
6725
6726 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6727
6728         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
6729         into R11_LP and load __x86_64_shared_cache_size_half into
6730         R8_LP.
6731
6732 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6733
6734         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
6735         R8_LP.
6736
6737 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6738
6739         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
6740         logb for POWER7.
6741         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
6742         logbf for POWER7.
6743         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
6744         logbl for POWER7.
6745         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
6746         powerpc32/power7/fpu/s_logb.c via #include.
6747         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
6748         powerpc32/power7/fpu/s_logbf.c via #include.
6749         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
6750         powerpc32/power7/fpu/s_logbl.c via #include.
6751
6752 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
6753
6754         * README.libm: Remove file.
6755
6756 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6757
6758         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
6759         count for x32.  Use R*_LP and omit operand-size suffix.
6760
6761 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6762
6763         * shlib-versions: Move x86_64-.*-linux.* entries to ...
6764         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
6765         * sysdeps/x86_64/x32/shlib-versions: New file.
6766
6767 2012-05-14  Roland McGrath  <roland@hack.frob.com>
6768
6769         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
6770         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
6771         Use _dl_fatal_printf instead.
6772
6773 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
6774
6775         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
6776         set if not set by the user.  Do not allow for being unset.
6777         * sysdeps/unix/sysv/linux/configure: Regenerated.
6778
6779 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6780
6781         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
6782         the `q' suffix from lea and replace .quad with ASM_ADDR.
6783
6784 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6785
6786         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
6787         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
6788         instead of $17.
6789         (PTR_DEMANGLE): Likewise.
6790
6791 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6792
6793         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
6794         (LP_OP): Likewise.
6795         (ASM_ADDR): Likewise.
6796         (RAX_LP): Likewise.
6797         (RBP_LP): Likewise.
6798         (RBX_LP): Likewise.
6799         (RCX_LP): Likewise.
6800         (RDI_LP): Likewise.
6801         (RSI_LP): Likewise.
6802         (RSP_LP): Likewise.
6803         (R8_LP): Likewise.
6804         (R9_LP): Likewise.
6805         (R10_LP): Likewise.
6806         (R10_LP): Likewise.
6807         (R11_LP): Likewise.
6808         (R12_LP): Likewise.
6809         (R13_LP): Likewise.
6810         (R14_LP): Likewise.
6811         (R15_LP): Likewise.
6812
6813 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6814
6815         * sysdeps/x86_64/x32/dl-machine.h: New file.
6816
6817 2012-05-14  Andreas Jaeger  <aj@suse.de>
6818
6819         * manual/Makefile (subdir): Remove export of subdir.
6820         (all): Remove target.
6821         (.PHONY): Remove all from list.
6822         (mkinstalldirs): Remove.
6823         (.PHONY): Remove installdirs from list.
6824         ($(inst_infodir)/libc.info): Use make-target-directory.
6825         (installdirs): Remove.
6826         (subdir_%): Remove.
6827         (glibc-targets): Remove.
6828         (lib): Remove.
6829         (stubs): Remove.
6830         ($(objpfx)stubs ../po/manual.pot): Remove.
6831         ($(objpfx)stamp%): Remove.
6832         (make-target-directory): Remove.
6833         (subdir_install): Remove.
6834         (routines): Remove.
6835         (aux): Remove.
6836         (sources): Remove.
6837         (objects): Remove.
6838         (headers): Remove.
6839
6840         [BZ #13750]
6841         * manual/.gitignore: Remove, it's not needed anymore.
6842         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
6843         all files in it.
6844         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
6845         directory.
6846         (texis): Renamed to $(objpfx)texis.
6847         (texis-path): New, contains path to generated files.
6848         (chapters.%): Use texis-path for complete path, add extra argument
6849         libc-texinfo.sh.
6850         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
6851         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
6852         (summary,texi, stamp-summary): Use complete path of
6853         files. Generate files in build dir.
6854         (dir-add.texi): Build in build dir.
6855         (libm-err.texi,stamp-libm-err): Likewise.
6856         (version.texi, stamp-version): Likewise.
6857         (.%c.texi): Likewise.
6858         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
6859         (mostlyclean): Remove target.
6860         (realclean): Remove target.
6861         (generated): Add new variable with contents from mostlyclean and
6862         realclean, remove entries duplicated in common-mostlyclean, add
6863         stamp-libm-err and stamp-version.
6864         (generated-dirs): Add libc directory.
6865         ($(inst_infodir)/libc.info): Install files from build dir.
6866
6867         * manual/install.texi (Configuring and compiling): Adjust since
6868         the info files are not part of the tar ball anymore.
6869
6870 2012-05-14  Andreas Jaeger  <aj@suse.de>
6871
6872         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
6873         variable.
6874
6875 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
6876
6877         [BZ #13717]
6878         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
6879         to 2.2.0 where earlier.
6880         * sysdeps/unix/sysv/linux/configure: Regenerated.
6881         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
6882         Remove conditional code.
6883         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
6884         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
6885         Remove conditional code.
6886         [!__NR_lchown]: Likewise.
6887         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
6888         [__NR_lchown]: Likewise.
6889         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
6890         comment referencing __ASSUME_LCHOWN_SYSCALL.
6891         * sysdeps/unix/sysv/linux/i386/sigaction.c
6892         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
6893         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
6894         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
6895         Remove conditional code.
6896         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
6897         (__protocol_available): Remove #if 0 code.
6898         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
6899         conditional code.
6900         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
6901         * sysdeps/unix/sysv/linux/kernel-features.h
6902         (__ASSUME_GETCWD_SYSCALL): Don't define.
6903         (__ASSUME_REALTIME_SIGNALS): Likewise.
6904         (__ASSUME_PREAD_SYSCALL): Likewise.
6905         (__ASSUME_PWRITE_SYSCALL): Likewise.
6906         (__ASSUME_POLL_SYSCALL): Likewise.
6907         (__ASSUME_LCHOWN_SYSCALL): Likewise.
6908         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
6909         non-SPARC.
6910         (__ASSUME_SIOCGIFNAME): Don't define.
6911         (__ASSUME_MSG_NOSIGNAL): Likewise.
6912         (__ASSUME_SENDFILE): Define unconditionally.
6913         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
6914         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
6915         conditional code.
6916         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
6917         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
6918         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
6919         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
6920         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
6921         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
6922         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
6923         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
6924         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
6925         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6926         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
6927         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
6928         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6929         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
6930         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
6931         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6932         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
6933         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
6934         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6935         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
6936         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
6937         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6938         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
6939         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
6940         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6941         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
6942         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
6943         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6944         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
6945         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
6946         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6947         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
6948         Remove conditional code.
6949         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6950         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
6951         Remove conditional code.
6952         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6953         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
6954         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
6955         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
6956         Remove conditional code.
6957         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6958         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
6959         Remove conditional code.
6960         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6961         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
6962         Remove conditional code.
6963         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6964         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
6965         Remove conditional code.
6966         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
6967         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
6968         Remove conditional code.
6969         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6970         * sysdeps/unix/sysv/linux/sh/pwrite64.c
6971         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
6972         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
6973         * sysdeps/unix/sysv/linux/sigaction.c
6974         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
6975         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
6976         * sysdeps/unix/sysv/linux/sigpending.c
6977         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
6978         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
6979         * sysdeps/unix/sysv/linux/sigprocmask.c
6980         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
6981         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
6982         * sysdeps/unix/sysv/linux/sigsuspend.c
6983         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
6984         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
6985         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
6986         (__libc_missing_rt_sigs): Remove.
6987         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
6988         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
6989         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
6990         Remove conditional code.
6991         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
6992         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
6993         return 1.
6994         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
6995         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
6996         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
6997         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
6998
6999 2012-05-14  Andreas Jaeger  <aj@suse.de>
7000
7001         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
7002         it's not used in glibc.
7003         (__coshm1): Likewise.
7004         (__acosh1p): Likewise.
7005         (__sgn): Likewise.
7006
7007         * manual/string.texi (Copying and Concatenation): Add missing
7008         variable in concat example.
7009         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
7010
7011 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7012
7013         [BZ #14103]
7014         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
7015         __builtin_clzl with __builtin_clzll.
7016
7017 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7018
7019         [BZ #14104]
7020         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
7021         libc_freeres_ptr.
7022
7023 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7024
7025         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
7026         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
7027         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
7028         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
7029
7030 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
7031
7032         * NEWS: Update ia64 info.
7033
7034 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
7035
7036         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
7037         used as bcopy.
7038
7039 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
7040
7041         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
7042         * sysdeps/unix/syscalls.list (dup3): Likewise.
7043         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
7044         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
7045
7046 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
7047
7048         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
7049         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
7050
7051 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
7052
7053         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
7054         thread pointer.
7055         (TLS_IE): Use mov/add instead of movq/addq to load thread
7056         pointer.
7057         (TLS_GD_PREFIX): New.
7058         (TLS_GD): Use it.
7059
7060 2012-05-11  David S. Miller  <davem@davemloft.net>
7061
7062         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
7063         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
7064         (_FPU_SETCW): Likewise.
7065
7066 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
7067
7068         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
7069         is 32-byte aligned.
7070
7071 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
7072
7073         [BZ #11837]
7074         * iconvdata/gb18030.c: Update tables.
7075         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
7076         characters specially.
7077         (BODY for TO_LOOP): Add encoding of missing ranges.
7078
7079 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
7080
7081         [BZ #13673]
7082         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
7083         * sysdeps/mach/hurd/dup3.c: Likewise.
7084         * sysdeps/mach/hurd/readlinkat.c: Likewise.
7085         * sysdeps/powerpc/memmove.c:: Likewise.
7086
7087 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
7088
7089         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
7090         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
7091
7092 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
7093
7094         * elf/elf.h (R_X86_64_RELATIVE64): New.
7095         (R_X86_64_NUM): Updated.
7096         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
7097         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
7098         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
7099         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
7100         tst-quad1pie tst-quad2pie
7101         (modules-names): Add tst-quadmod1 tst-quadmod2.
7102         ($(objpfx)tst-quad1): New dependency.
7103         ($(objpfx)tst-quad2): Likewise.
7104         ($(objpfx)tst-quad1pie): Likewise.
7105         ($(objpfx)tst-quad2pie): Likewise.
7106         * sysdeps/x86_64/tst-quad1.c: New file.
7107         * sysdeps/x86_64/tst-quad1pie.c: New file.
7108         * sysdeps/x86_64/tst-quad2.c: Likewise.
7109         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
7110         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
7111         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
7112         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
7113         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
7114
7115 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7116
7117         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
7118         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
7119         * streams/stropts.h (t_scalar_t): Define type.
7120
7121         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
7122         (_PATH_PRESERVE): Set to "/var/lib".
7123         (_PATH_RWHODIR): Set to "/var/spool/rwho".
7124
7125         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
7126         instead of int.
7127
7128         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
7129         if __dir_mkfile succeeded.
7130
7131         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
7132         checking for _hurd_dtablesize.  Unlock it right after having
7133         finished _hurd_dtable allocation.
7134
7135 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7136
7137         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
7138         * sysdeps/mach/hurd/configure: Regenerated.
7139         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
7140         special-casing to...
7141         * sysdeps/gnu/configure.in: ... this new file.
7142         * sysdeps/unix/sysv/linux/configure: Regenerated.
7143         * sysdeps/gnu/configure: New generated file.
7144
7145         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
7146         for Linux: use nsec instead of usec, as well as:
7147         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
7148         members of type struct timespec.
7149         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
7150         New macros.
7151         (struct stat64): Likewise.
7152         (_STATBUF_ST_NSEC): New macro.
7153         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
7154
7155         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
7156         __strtoul_internal rather than strtoul.
7157
7158 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
7159
7160         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
7161         and reject them.
7162
7163 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7164
7165         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
7166         which preserves existing values.
7167         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
7168
7169 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
7170
7171         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
7172         TIMEOUT values.  Return EINVAL for NFDS values either negative or
7173         greater than FD_SETSIZE.
7174
7175 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7176
7177         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
7178         allocated, call __vm_protect to finish enabling the existing space, and
7179         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
7180         allocate the remainder.
7181
7182 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
7183
7184         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
7185         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
7186
7187 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7188
7189         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
7190         sysdeps/mach/hurd/readlink.c.
7191
7192         * posix/tst-sysconf.c (posix_options): Only use
7193         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
7194         _POSIX_SYNCHRONIZED_IO when they are defined
7195         * sysdeps/mach/hurd/bits/posix_opt.h:
7196         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
7197         (_XOPEN_REALTIME): Undefine macro.
7198         (_XOPEN_REALTIME_THREADS): Undefine macro.
7199         (_XOPEN_SHM): Undefine macro.
7200         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
7201         macro to -1.
7202         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
7203         macro to -1.
7204         (_POSIX_ASYNC_IO): Undefine macro.
7205         (_POSIX_PRIORITIZED_IO): Undefine macro.
7206         (_POSIX_SPIN_LOCKS): Define macro to -1.
7207
7208         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
7209         SA_NODEFER, SA_RESETHAND.
7210         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
7211         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
7212         F_DUPFD_CLOEXEC.
7213
7214 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7215
7216         * elf/Makefile (pldd-modules): Define unconditionally.
7217
7218 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7219
7220         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
7221
7222 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7223
7224         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
7225         Return ENOENT when name is empty.
7226         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
7227
7228 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7229
7230         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
7231
7232         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
7233
7234 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7235
7236         Fix mlock in all cases except non-readable pages.
7237         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
7238         instead of VM_PROT_ALL as parameter to __vm_wire function.
7239
7240         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
7241         (__mkdir): When path is `/', just fail with EEXIST.
7242         * sysdeps/mach/hurd/mkdirat.c: Likewise.
7243
7244 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7245
7246         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
7247         <sys/uio.h> (for writev).
7248         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
7249         and <sys/param.h> (for MIN).
7250
7251 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
7252
7253         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
7254         REQUESTED_TIME.  Properly set the remaining time and return EINTR
7255         if interrupted.
7256
7257 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7258
7259         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
7260         Depend on against $(link-rpcuserlibs).
7261
7262 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7263
7264         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
7265         (__libc_stack_end): Do not use attribute_relro.
7266         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
7267         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
7268         to libthread-provided value.
7269         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
7270         attribute_relro.
7271
7272 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7273
7274         [BZ #3748]
7275         * bits/libc-lock.h (__libc_once_get): New macro.
7276         * sysdeps/mach/bits/libc-lock.h: Likewise.
7277         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
7278         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
7279         instead of using implementation details.
7280
7281         * libio/fileops.c: Unconditionally include <kernel-features.h>.
7282         * libio/freopen.c: Likewise.
7283         * libio/freopen64.c: Likewise.
7284         * misc/syslog.c: Likewise.
7285         * nscd/connections.c: Likewise.
7286         * nscd/netgroupcache.c: Likewise.
7287         * sysdeps/posix/getcwd.c: Likewise.
7288
7289 2012-05-10  Roland McGrath  <roland@hack.frob.com>
7290
7291         * math/w_ilogbf.c: Add #include <limits.h>.
7292
7293 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7294
7295         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
7296         path instead of returning without unlocking.
7297
7298         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
7299         immediate-write ioctls.
7300         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
7301
7302 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7303
7304         * sysdeps/mach/hurd/i386/init-first.c (init): Use
7305         __builtin_frame_address instead of making assumptions about the
7306         location of the return address relative to DATA.  Force early load of
7307         the return address.
7308         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
7309         __builtin_frame_address.
7310
7311         dup3 for GNU Hurd.
7312         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
7313         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
7314         implement dup3 and do some further code clean-ups.
7315         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
7316         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
7317
7318 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7319
7320         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
7321
7322         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
7323         HURD_CRITICAL_END around holding _hurd_dtable_lock.
7324         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
7325         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
7326         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
7327         d->port.lock.
7328
7329         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
7330         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
7331         when handler == SIG_ERR, not when handler != SIG_ERR.
7332
7333 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7334
7335         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
7336         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
7337         definitions.
7338
7339         accept4 for GNU Hurd.
7340         * include/sys/socket.h (__libc_accept4): New prototype.
7341         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
7342         to implement __libc_accept4.
7343         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
7344         __libc_accept4.
7345         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
7346
7347         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
7348         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
7349         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
7350         signal-defines.sym.
7351
7352 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7353
7354         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
7355
7356 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7357
7358         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
7359         assertion on O_CLOEXEC flag.
7360         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
7361         * hurd/intern-fd.c: Likewise.
7362         * hurd/port2fd.c: Likewise.
7363
7364 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7365
7366         [BZ #3906]
7367         * bits/in.h (IPV6_PKTINFO): Define new macro.
7368         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
7369
7370 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7371
7372         [BZ #13954]
7373         [BZ #13955]
7374         [BZ #13956]
7375         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
7376         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
7377         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
7378         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
7379         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
7380         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
7381         * math/libm-test.inc (logb_test) : Additional logb tests.
7382
7383 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
7384             Andreas Jaeger  <aj@suse.de>
7385
7386         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
7387         * configure: Regenerated.
7388         * config.h.in (LINK_OBSOLETE_RPC): New macro.
7389         * config.make.in (link-obsolete-rpc): New substituted variable.
7390         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
7391         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
7392         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
7393         (shared-only-routines): Don't set it under [link-obsolete-rpc],
7394         so that libc.a contains the symbols.
7395         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
7396         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
7397         * sunrpc/auth_none.c: Likewise.
7398         * sunrpc/auth_unix.c: Likewise.
7399         * sunrpc/authdes_prot.c: Likewise.
7400         * sunrpc/authuxprot.c: Likewise.
7401         * sunrpc/clnt_gen.c: Likewise.
7402         * sunrpc/clnt_perr.c: Likewise.
7403         * sunrpc/clnt_raw.c: Likewise.
7404         * sunrpc/clnt_simp.c: Likewise.
7405         * sunrpc/clnt_tcp.c: Likewise.
7406         * sunrpc/clnt_udp.c: Likewise.
7407         * sunrpc/clnt_unix.c: Likewise.
7408         * sunrpc/des_crypt.c: Likewise.
7409         * sunrpc/des_soft.c: Likewise.
7410         * sunrpc/get_myaddr.c: Likewise.
7411         * sunrpc/key_call.c: Likewise.
7412         * sunrpc/key_prot.c: Likewise.
7413         * sunrpc/netname.c: Likewise.
7414         * sunrpc/pm_getmaps.c: Likewise.
7415         * sunrpc/pm_getport.c: Likewise.
7416         * sunrpc/pmap_clnt.c: Likewise.
7417         * sunrpc/pmap_prot.c: Likewise.
7418         * sunrpc/pmap_prot2.c: Likewise.
7419         * sunrpc/pmap_rmt.c: Likewise.
7420         * sunrpc/publickey.c: Likewise.
7421         * sunrpc/rpc_cmsg.c: Likewise.
7422         * sunrpc/rpc_common.c: Likewise.
7423         * sunrpc/rpc_dtable.c: Likewise.
7424         * sunrpc/rpc_prot.c: Likewise.
7425         * sunrpc/rpc_thread.c: Likewise.
7426         * sunrpc/rtime.c: Likewise.
7427         * sunrpc/svc.c: Likewise.
7428         * sunrpc/svc_auth.c: Likewise.
7429         * sunrpc/svc_raw.c: Likewise.
7430         * sunrpc/svc_run.c: Likewise.
7431         * sunrpc/svc_tcp.c: Likewise.
7432         * sunrpc/svc_udp.c: Likewise.
7433         * sunrpc/svc_unix.c: Likewise.
7434         * sunrpc/svcauth_des.c: Likewise.
7435         * sunrpc/xcrypt.c: Likewise.
7436         * sunrpc/xdr.c: Likewise.
7437         * sunrpc/xdr_array.c: Likewise.
7438         * sunrpc/xdr_float.c: Likewise.
7439         * sunrpc/xdr_intXX_t.c: Likewise.
7440         * sunrpc/xdr_mem.c: Likewise.
7441         * sunrpc/xdr_rec.c: Likewise.
7442         * sunrpc/xdr_ref.c: Likewise.
7443         * sunrpc/xdr_sizeof.c: Likewise.
7444         * sunrpc/xdr_stdio.c: Likewise.
7445
7446 2012-05-10  Roland McGrath  <roland@hack.frob.com>
7447
7448         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
7449         change.  Update copyright years.
7450
7451 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
7452
7453         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
7454
7455 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
7456             Joseph Myers  <joseph@codesourcery.com>
7457             Paul Pluzhnikov  <ppluzhnikov@google.com>
7458
7459         [BZ #14012]
7460         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
7461         requiring rpcgen.
7462         [cross-compiling] (extra-libs): Likewise.
7463         [cross-compiling] (extra-libs-others): Likewise.
7464         [cross-compiling] (librpcsvc-routines): Likewise.
7465         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
7466         [cross-compiling] (omit-deps): Likewise.
7467         (sunrpc-CPPFLAGS): New variable.
7468         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
7469         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
7470         (cross-rpcgen-objs): New variable.
7471         (extra-objs): Append $(cross-rpcgen-objs).
7472         ($(cross-rpcgen-objs)): New rule.
7473         ($(objpfx)cross-rpcgen): Likewise.
7474         (rpcgen-cmd): Define to use $(built-program-file).  Expand
7475         comment.
7476         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
7477         ($(objpfx)x%.stmp): Likewise.
7478         * sunrpc/proto.h [IS_IN_build] (_): Define.
7479         [IS_IN_build] (_libc_intl_domainname): Likewise.
7480
7481 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
7482
7483         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
7484         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
7485         and R_X86_64_TPOFF64.
7486
7487 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
7488
7489         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
7490         sysdeps/unix/sysv/syscalls.list.
7491         (stime): Likewise.
7492         (utime): Likewise.
7493         * sysdeps/unix/sysv/syscalls.list: Remove file.
7494
7495 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
7496
7497         [BZ #3440]
7498         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
7499         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
7500         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
7501         (__LC_IDENTIFICATION): Make these macros useful in #if
7502         expressions, as required by C99.
7503
7504 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
7505
7506         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
7507         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
7508         after this.
7509
7510 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
7511
7512         * stdlib/longlong.h: Updated from GCC.
7513
7514 2012-05-09  Andreas Jaeger  <aj@suse.de>
7515
7516         * nscd/nscd.c (run_modes): Make named enum, reorder so that
7517         default is first entry.
7518         (run_mode): Set type.
7519         (main): Remove informal message about syslog.
7520         (options): Fix typo.
7521
7522         [BZ #14053]
7523         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
7524         to asm.
7525         (lrint): Likewise.
7526         (llrintf): Likewise.
7527         (llrint): Likewise.
7528         (rint): Likewise.
7529         (rintf): Likewise.
7530         (nearbyint): Likewise.
7531         (nearbyintf): Likewise.
7532
7533 2012-05-09  Andreas Jaeger  <aj@suse.de>
7534             Pedro Alves  <palves@redhat.com>
7535
7536         * nscd/nscd.c (run_mode): Use enum.
7537         (main): Cleanup coding style issue.
7538
7539 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
7540             Andreas Jaeger  <aj@suse.de>
7541
7542         * nscd/nscd.c (go_background): Replaced with...
7543         (run_mode): ... this.
7544         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
7545         (options): Add -F --foreground.
7546         (main): Implement it.
7547         (parse_opt): Parse it.
7548
7549 2012-05-09  Andreas Jaeger  <aj@suse.de>
7550
7551         [BZ #14083]
7552         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
7553         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
7554         -Wconversion warning.
7555         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
7556         Likewise.
7557
7558 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
7559
7560         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
7561         == 0.
7562         (LC_ALL): Use macro-int-constant.
7563         (LC_COLLATE): Likewise.
7564         (LC_CTYPE): Likewise.
7565         (LC_MESSAGES): Likewise.
7566         (LC_MONETARY): Likewise.
7567         (LC_NUMERIC): Likewise.
7568         (LC_TIME): Likewise.
7569         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
7570         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
7571         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7572         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
7573         Specify type.
7574         [C99-based standards] (float_t): Expect type.
7575         [C99-based standards] (double_t): Expect type.
7576         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
7577         type.
7578         [C99-based standards] (HUGE_VALL): Likewise.
7579         [C99-based standards] (INFINITY): Likewise.
7580         [C99-based standards] (NAN): Likewise.
7581         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
7582         [C99-based standards] (FP_NAN): Likewise.
7583         [C99-based standards] (FP_NORMAL): Likewise.
7584         [C99-based standards] (FP_SUBNORMAL): Likewise.
7585         [C99-based standards] (FP_ZERO): Likewise.
7586         [C99-based standards] (FP_FAST_FMA): Use
7587         optional-macro-int-constant.  Specify type.  Require == 1.
7588         [C99-based standards] (FP_FAST_FMAF): Likewise.
7589         [C99-based standards] (FP_FAST_FMAL): Likewise.
7590         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
7591         [C99-based standards] (FP_ILOGBNAN): Likewise.
7592         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
7593         Specify type.
7594         [C99-based standards] (MATH_ERREXCEPT): Likewise.
7595         [C99-based standards] (math_errhandling): Specify type.
7596         [ISO99 || ISO11] (signgam): Do not allow.
7597         [non-C99-based standards] (copysignf): Do not allow.
7598         [non-C99-based standards] (exp2f): Likewise.
7599         [non-C99-based standards] (log2f): Likewise.
7600         [non-C99-based standards] (modff): Allow.
7601         [non-C99-based standards] (erff): Do not allow.
7602         [non-C99-based standards] (erfcf): Likewise.
7603         [non-C99-based standards] (gammaf): Likewise.
7604         [non-C99-based standards] (hypotf): Likewise.
7605         [non-C99-based standards] (j0f): Likewise.
7606         [non-C99-based standards] (j1f): Likewise.
7607         [non-C99-based standards] (jnf): Likewise.
7608         [non-C99-based standards] (lgammaf): Likewise.
7609         [non-C99-based standards] (tgammaf): Likewise.
7610         [non-C99-based standards] (y0f): Likewise.
7611         [non-C99-based standards] (y1f): Likewise.
7612         [non-C99-based standards] (ynf): Likewise.
7613         [non-C99-based standards] (isnanf): Likewise.
7614         [non-C99-based standards] (acoshf): Likewise.
7615         [non-C99-based standards] (asinhf): Likewise.
7616         [non-C99-based standards] (atanhf): Likewise.
7617         [non-C99-based standards] (cbrtf): Likewise.
7618         [non-C99-based standards] (expm1f): Likewise.
7619         [non-C99-based standards] (ilogbf): Likewise.
7620         [non-C99-based standards] (log1pf): Likewise.
7621         [non-C99-based standards] (logbf): Likewise.
7622         [non-C99-based standards] (nextafterf): Likewise.
7623         [non-C99-based standards] (remainderf): Likewise.
7624         [non-C99-based standards] (rintf): Likewise.
7625         [non-C99-based standards] (scalbf): Likewise.
7626         [non-C99-based standards] (copysignl): Likewise.
7627         [non-C99-based standards] (exp2l): Likewise.
7628         [non-C99-based standards] (log2l): Likewise.
7629         [non-C99-based standards] (modfl): Allow.
7630         [non-C99-based standards] (erfl): Do not allow.
7631         [non-C99-based standards] (erfcl): Likewise.
7632         [non-C99-based standards] (gammal): Likewise.
7633         [non-C99-based standards] (hypotl): Likewise.
7634         [non-C99-based standards] (j0l): Likewise.
7635         [non-C99-based standards] (j1l): Likewise.
7636         [non-C99-based standards] (jnl): Likewise.
7637         [non-C99-based standards] (lgammal): Likewise.
7638         [non-C99-based standards] (tgammal): Likewise.
7639         [non-C99-based standards] (y0l): Likewise.
7640         [non-C99-based standards] (y1l): Likewise.
7641         [non-C99-based standards] (ynl): Likewise.
7642         [non-C99-based standards] (isnanl): Likewise.
7643         [non-C99-based standards] (acoshl): Likewise.
7644         [non-C99-based standards] (asinhl): Likewise.
7645         [non-C99-based standards] (atanhl): Likewise.
7646         [non-C99-based standards] (cbrtl): Likewise.
7647         [non-C99-based standards] (expm1l): Likewise.
7648         [non-C99-based standards] (ilogbl): Likewise.
7649         [non-C99-based standards] (log1pl): Likewise.
7650         [non-C99-based standards] (logbl): Likewise.
7651         [non-C99-based standards] (nextafterl): Likewise.
7652         [non-C99-based standards] (remainderl): Likewise.
7653         [non-C99-based standards] (rintl): Likewise.
7654         [non-C99-based standards] (scalbl): Likewise.
7655         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7656         [non-C99-based standards] (FP_*): Do not allow.
7657         [C99-based standards] (FP_*): Change to
7658         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
7659         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
7660         allow.
7661         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
7662         (SIG_ERR): Likewise.
7663         [X/Open-based standards] (SIG_HOLD): Likewise.
7664         (SIG_IGN): Likewise.
7665         (SIGABRT): Use macro-int-constant.  Specify type.  Require
7666         positive value.
7667         (SIGFPE): Likewise.
7668         (SIGILL): Likewise.
7669         (SIGINT): Likewise.
7670         (SIGSEGV): Likewise.
7671         (SIGTER): Likewise.
7672         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
7673         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
7674         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
7675         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
7676         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
7677         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
7678         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
7679         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
7680         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
7681         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
7682         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
7683         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
7684         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
7685         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
7686         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
7687         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
7688         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
7689         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
7690         [X/Open-based standards] (SIGTRAP): Likewise.
7691         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
7692         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
7693         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
7694         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
7695         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
7696         allow.
7697
7698 2012-05-08  Ian Wienand  <ianw@vmware.com>
7699
7700         [BZ #14080]
7701         * time/tzset.c (__tzset_parse_tz): Update default rules for
7702         daylight time changes in the Energy Policy Act of 2005.
7703
7704 2012-05-09  Andreas Jaeger  <aj@suse.de>
7705
7706         [BZ #13983]
7707         * elf/ldconfig.c (parse_conf): Change string to make clear that
7708         ldconfig only issued a warning if ld.so.conf does not exist.
7709
7710 2012-05-08  David S. Miller  <davem@davemloft.net>
7711
7712         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
7713         movxtod instead of popping the value on the stack.
7714
7715         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7716
7717 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
7718
7719         * config.h.in: Add HAVE_ARM_PCS_VFP.
7720
7721 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
7722
7723         [BZ #13979]
7724         * include/features.h: Warn if user requests __FORTIFY_SOURCE
7725         checking but the checks are disabled for any reason.
7726
7727 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
7728
7729         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
7730         and ELF64_R_TYPE with ELFW(R_TYPE).
7731
7732 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
7733
7734         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
7735         (ulimit): Likewise.
7736
7737         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
7738         (settimeofday): Likewise.
7739
7740 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
7741
7742         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
7743         a struct th_u2 inside the union, and move tu_block/tu_code into
7744         a new th_u3 union of tu_block/tu_code inside of that.  Move
7745         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
7746         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
7747         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
7748         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
7749         (th_stuff): Change to th_u1.tu_stuff.
7750         (th_data): Define.
7751         (th_msg): Change to th_u1.th_u2.tu_data.
7752
7753 2012-05-07  David S. Miller  <davem@davemloft.net>
7754
7755         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7756
7757         [BZ #14074]
7758         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
7759         (SETUP_PIC_REG): Use it.
7760         (SETUP_PIC_REG_LEAF): Use it.
7761
7762 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
7763
7764         [BZ #13885]
7765         [BZ #13923]
7766         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7767         USE_AS_EXPM1L.
7768         (EXPL_FINITE): Likewise.
7769         (FLDLOG): Likewise.
7770         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
7771         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
7772         e_expl.S.
7773         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7774         USE_AS_EXPM1L.
7775         (EXPL_FINITE): Likewise.
7776         (FLDLOG): Likewise.
7777         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
7778         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
7779         e_expl.S.
7780         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
7781         test of -max_value argument for long double.
7782         * sysdeps/i386/fpu/libm-test-ulps: Update.
7783         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7784
7785 2012-05-06  David S. Miller  <davem@davemloft.net>
7786
7787         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
7788         quad soft-float symbols whose references which are compiler
7789         generated.
7790         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
7791
7792 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
7793
7794         [BZ #13884]
7795         [BZ #13914]
7796         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7797         USE_AS_EXP10L.
7798         (EXPL_FINITE): Likewise.
7799         (FLDLOG): Likewise.
7800         (c0): Likewise.
7801         (c1): Likewise.
7802         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
7803         Adjust comments for base varying.
7804         (__expl_finite): Change alias to EXPL_FINITE.
7805         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
7806         e_expl.S.
7807         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
7808         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
7809         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
7810         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
7811         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7812         USE_AS_EXP10L.
7813         (EXPL_FINITE): Likewise.
7814         (FLDLOG): Likewise.
7815         (c0): Likewise.
7816         (c1): Likewise.
7817         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
7818         Adjust comments for base varying.
7819         (__expl_finite): Change alias to EXPL_FINITE.
7820         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
7821         tests for bugs.
7822         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7823
7824         [BZ #14064]
7825         * math/libm-test.inc (check_float_internal): Correct ulp
7826         calculation for subnormal expected results.
7827
7828 2012-05-06  Andreas Jaeger  <aj@suse.de>
7829
7830         * Makeconfig (+math-flags): New, set to -frounding-math.
7831         (+cflags): Add +math-flags so that all of glibc gets compiled with
7832         it.
7833
7834         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
7835
7836 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
7837
7838         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
7839         Disable one test.
7840
7841         [BZ #13787]
7842         [BZ #13922]
7843         [BZ #14036]
7844         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
7845         (__ieee754_expl): Allow for and saturate large arguments.
7846         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
7847         (u_threshold): Likewise.
7848         (__exp): Call __ieee754_exp before checking for overflow and
7849         underflow.
7850         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
7851         (u_threshold): Likewise.
7852         (__expf): Call __ieee754_expf before checking for overflow and
7853         underflow.
7854         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
7855         (u_threshold): Likewise.
7856         (__expl): Call __ieee754_expl before checking for overflow and
7857         underflow.
7858         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
7859         (__ieee754_expl): Allow for and saturate large arguments.
7860         * math/libm-test.inc (exp_test): Add another test.  Do not allow
7861         missing overflow exception on overflow.
7862         (expm1_test): Do not allow missing overflow exception on overflow.
7863
7864         * sysdeps/i386/fpu/e_expl.c: Move to ...
7865         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
7866         rather than using inline asm.
7867         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
7868         * sysdeps/x86_64/fpu/e_expl.S: Copy from
7869         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
7870
7871         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
7872         (nice): Likewise.
7873         (poll): Likewise.
7874         (signal): Likewise.
7875         (time): Likewise.
7876         (times): Likewise.
7877
7878 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
7879
7880         * sysdeps/unix/syscalls.list (adjtime): Add entry from
7881         sysdeps/unix/common/syscalls.list.
7882         (fchmod): Likewise.
7883         (fchown): Likewise.
7884         (ftruncate): Likewise.
7885         (getrusage): Likewise.
7886         (gettimeofday): Likewise.
7887         (setpgid): Likewise.
7888         (setregid): Likewise.
7889         (setreuid): Likewise.
7890         (sigaction): Likewise.
7891         (truncate): Likewise.
7892         (vhangup): Likewise.
7893         * sysdeps/unix/common/syscalls.list: Remove file.
7894         * sysdeps/unix/bsd/Implies: Don't include unix/common.
7895         * sysdeps/unix/sysv/linux/Implies: Likewise.
7896
7897 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
7898
7899         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
7900         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
7901         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
7902         Moved to ...
7903         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
7904         Here.
7905         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
7906         to ...
7907         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
7908         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
7909         to ...
7910         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
7911         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
7912         to ...
7913         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
7914         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
7915         to ...
7916         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
7917         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
7918         to ...
7919         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
7920         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
7921         to ...
7922         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
7923         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
7924         to ...
7925         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
7926         Here.
7927         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
7928         to ...
7929         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
7930         Here.
7931         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
7932         to ...
7933         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
7934         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
7935         Moved to ...
7936         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
7937         Here.
7938         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
7939         to ...
7940         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
7941
7942 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
7943
7944         * sysdeps/unix/common/bits/dirent.h: Remove file.
7945         * sysdeps/unix/common/bits/fcntl.h: Likewise.
7946
7947         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
7948         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
7949         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
7950         * sysdeps/unix/bsd/isatty.c: Likewise.
7951         * sysdeps/unix/bsd/tcdrain.c: Likewise.
7952         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
7953         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
7954
7955 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7956
7957         [BZ #13563]
7958         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
7959         long double comparison inaccuracies.
7960         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
7961         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7962
7963 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
7964
7965         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
7966         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
7967
7968 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
7969
7970         [BZ #14049]
7971         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
7972         nonzero digits before rounding a hex value.
7973         * stdlib/tst-strtod.c (tests): Add another test.
7974
7975 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7976
7977         * sysdeps/s390/fpu/libm-test-ulps: Update.
7978
7979 2012-05-03  Andreas Jaeger  <aj@suse.de>
7980
7981         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
7982         does not get optimized out.
7983         (malloc_opt_barrier): New.
7984
7985 2012-05-03  Andreas Jaeger  <aj@suse.de>
7986             Roland McGrath  <roland@hack.frob.com>
7987
7988         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
7989         intermediate file deletion.
7990         (generated): Add .symlist files.
7991
7992 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
7993
7994         [BZ #13775]
7995         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
7996         Redirect under this condition.
7997         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
7998         [__USE_GNU] (__dprintf_chk): Not under this condition.
7999         [__USE_GNU] (__vdprintf_chk): Likewise.
8000         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
8001         under this condition.
8002         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
8003         [__USE_XOPEN2K8] (dprintf): Define under this condition.
8004         [__USE_XOPEN2K8] (vdprintf): Likewise.
8005         [__USE_GNU] (__dprintf_chk): Not under this condition.
8006         [__USE_GNU] (__vdprintf_chk): Likewise.
8007         [__USE_GNU] (dprintf): Likewise.
8008         [__USE_GNU] (vdprintf): Likewise.
8009
8010 2012-05-03  Roland McGrath  <roland@hack.frob.com>
8011
8012         * elf/Makefile (common-generated): Set this instead of generated for
8013         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
8014         $(all-built-dso)-derived lists.
8015
8016 2012-05-03  Andreas Jaeger  <aj@suse.de>
8017
8018         * sysdeps/i386/fpu/libm-test-ulps: Update.
8019
8020         * FAQ: Removed.
8021         * FAQ.in: Likewise.
8022         * scripts/gen-FAQ.pl: Likewise.
8023         * manual/install.texi (Installation): Point to online location of
8024         FAQ.
8025         * Makefile (files-for-dist): Remove FAQ.
8026         (FAQ): Remove.
8027
8028 2012-05-02  Allan McRae  <allan@archlinux.org>
8029
8030         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
8031         (LDFLAGS-reldepmod5.so): Likewise.
8032         (LDFLAGS-reldep6mod1.so): Likewise.
8033         (LDFLAGS-reldep6mod4.so): Likewise.
8034         (LDFLAGS-reldep8mod3.so): Likewise.
8035         (LDFLAGS-unload4mod1.so): Likewise.
8036         (LDFLAGS-unload4mod2.so): Likewise.
8037         (LDFLAGS-tst-initorder): Likewise.
8038         (LDFLAGS-tst-initordera2.so): Likewise.
8039         (LDFLAGS-tst-initordera3.so): Likewise.
8040         (LDFLAGS-tst-initordera4.so): Likewise.
8041         (LDFLAGS-tst-initorderb2.so): Likewise.
8042         (LDFLAGS-noload): Likewise.
8043         (LDFLAGS-next): Likewise.
8044         (LDFLAGS-order2mod1.so): Likewise.
8045         (LDFLAGS-order2mod2.so): Likewise.
8046         (LDFLAGS-tst-initorder2): Likewise.
8047         (LDFLAGS-tst-initorder2a.so): Likewise.
8048         (LDFLAGS-tst-initorder2b.so): Likewise.
8049         (LDFLAGS-tst-initorder2c.so): Likewise.
8050         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
8051
8052 2012-05-02  David S. Miller  <davem@davemloft.net>
8053
8054         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8055
8056 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
8057
8058         [BZ #14055]
8059         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
8060
8061 2012-05-02  Andreas Jaeger  <aj@suse.de>
8062
8063         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
8064         since we manipulate rounding mode.
8065         (CPPFLAGS-test-idouble.c): Likewise.
8066         (CPPFLAGS-test-ifloat.c): Likewise.
8067         (CFLAGS-test-ldouble.c): Likewise.
8068         (CFLAGS-test-double.c): Likewise.
8069         (CFLAGS-test-float.c): Likewise.
8070         (CFLAGS-test-misc.c): Likewise.
8071         (CFLAGS-test-test-fenv.c): Likewise.
8072
8073 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8074
8075         [BZ #2550]
8076         [BZ #2570]
8077         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
8078         comparisons to determine direction to adjust input.
8079
8080 2012-05-01  Roland McGrath  <roland@hack.frob.com>
8081
8082         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
8083         output to the target.
8084
8085         * scripts/localplt.awk: New file.
8086         * elf/Makefile ($(objpfx)check-localplt): Target removed.
8087         (check-localplt-CFLAGS): Variable removed.
8088         ($(all-built-dso:=.jmprel)): New static pattern rule.
8089         (generated): Add those targets.
8090         (localplt-built-dso): New variable.
8091         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
8092
8093         * elf/check-localplt.c: File removed.
8094
8095         * scripts/check-execstack.awk: New file.
8096         * elf/Makefile ($(objpfx)check-execstack): Target removed.
8097         (check-execstack-CFLAGS): Variable removed.
8098         ($(objpfx)check-execstack.h): Target removed.
8099         ($(objpfx)execstack-default): New target.
8100         (generated): Add that instead of check-execstack.h.
8101         ($(all-built-dso:=.phdr)): New static pattern rule.
8102         (generated): Add those targets.
8103         * elf/check-execstack.c: File removed.
8104
8105         * scripts/check-textrel.awk: New file.
8106         * elf/Makefile ($(objpfx)check-textrel): Target removed.
8107         (check-textrel-CFLAGS): Variable removed.
8108         (all-built-dso): Use := to define.o
8109         ($(all-built-dso:=.dyn)): New static pattern rule.
8110         (generated): Add those targets.
8111         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
8112         * config.make.in (READELF): New substituted variable.
8113         * elf/check-textrel.c: File removed.
8114
8115 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
8116
8117         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
8118         allow.
8119         * conform/data/ctype.h-data [C99-based standards] (isblank):
8120         Expect function.
8121         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
8122         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
8123         [ISO || ISO99 || ISO11] (*_t): Do not allow.
8124         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
8125         Specify type.  Require positive value.
8126         (EILSEQ): Likewise.
8127         (ERANGE): Likewise.
8128         [ISO || POSIX] (EILSEQ): Do not expect.
8129         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
8130         Specify type.  Require positive value.
8131         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
8132         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
8133         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
8134         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
8135         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
8136         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
8137         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
8138         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
8139         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
8140         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
8141         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
8142         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
8143         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
8144         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
8145         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
8146         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
8147         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
8148         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
8149         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
8150         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
8151         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
8152         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
8153         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
8154         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
8155         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
8156         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
8157         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
8158         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
8159         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
8160         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
8161         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
8162         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
8163         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
8164         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
8165         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
8166         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
8167         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
8168         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
8169         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
8170         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
8171         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
8172         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
8173         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
8174         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
8175         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
8176         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
8177         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
8178         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
8179         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
8180         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
8181         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
8182         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
8183         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
8184         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
8185         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
8186         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
8187         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
8188         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
8189         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
8190         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
8191         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
8192         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
8193         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
8194         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
8195         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
8196         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
8197         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
8198         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
8199         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
8200         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
8201         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
8202         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
8203         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
8204         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
8205         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
8206         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
8207         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
8208         Require >= 2.
8209         (FLT_ROUNDS): Expect as macro, not constant.
8210         (FLT_MANT_DIG): Use macro-int-constant.
8211         (DBL_MANT_DIG): Likewise.
8212         (LDBL_MANT_DIG): Likewise.
8213         (FLT_DIG): Likewise.
8214         (DBL_DIG): Likewise.
8215         (LDBL_DIG): Likewise.
8216         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
8217         (DBL_MIN_EXP): Likewise.
8218         (LDBL_MIN_EXP): Likewise.
8219         (FLT_MAX_EXP): Use macro-int-constant.
8220         (DBL_MAX_EXP): Likewise.
8221         (LDBL_MAX_EXP): Likewise.
8222         (FLT_MAX_10_EXP): Likewise.
8223         (DBL_MAX_10_EXP): Likewise.
8224         (LDBL_MAX_10_EXP): Likewise.
8225         (FLT_MAX): Use macro-constant.
8226         (DBL_MAX): Likewise.
8227         (LDBL_MAX): Likewise.
8228         (FLT_EPSILON): Use macro-constant.  Give upper bound.
8229         (DBL_EPSILON): Likewise.
8230         (LDBL_EPSILON): Likewise.
8231         (FLT_MIN): Likewise.
8232         (DBL_MIN): Likewise.
8233         (LDBL_MIN): Likewise.
8234         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
8235         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
8236         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
8237         [ISO11] (FLT_HAS_SUBNORM): Likewise.
8238         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
8239         [ISO11] (DBL_DECIMAL_DIG): Likewise.
8240         [ISO11] (FLT_DECIMAL_DIG): Likewise.
8241         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
8242         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
8243         [ISO11] (FLT_TRUE_MIN): Likewise.
8244         [ISO11] (LDBL_TRUE_MIN): Likewise.
8245         [ISO || ISO99 || ISO11] (*_t): Do not allow.
8246         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
8247         (SCHAR_MIN): Use macro-int-constant.  Specify type.
8248         (SCHAR_MAX): Likewise.
8249         (UCHAR_MAX): Likewise.
8250         (CHAR_MIN): Likewise.
8251         (CHAR_MAX): Likewise.
8252         (MB_LEN_MAX): Use macro-int-constant.
8253         (SHRT_MIN): Use macro-int-constant.  Specify type.
8254         (SHRT_MAX): Likewise.
8255         (USHRT_MAX): Likewise.
8256         (INT_MAX): Likewise.
8257         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
8258         bound negative.
8259         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
8260         bound with "U".
8261         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
8262         bound with "L".
8263         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
8264         bound negative.  Suffix upper bound with "L".
8265         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
8266         bound with "UL".
8267         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
8268         Specify type.
8269         [C99-based standards] (LLONG_MAX): Likewise.
8270         [C99-based standards] (ULLONG_MAX): Likewise.
8271         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
8272         == 0.
8273         [ISO11] (max_align_t): Require type.
8274         [ISO || ISO99 || ISO11] (*_t): Do not allow.
8275
8276         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
8277         from $CFLAGS, without defining away __attribute__ calls.
8278         (checknamespace): Use $CFLAGS_namespace.
8279
8280         * conform/conformtest.pl (@keywords): Only include C99 keywords
8281         for standards based on C99 or C11.
8282
8283         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
8284         Disable tests.
8285         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
8286         UNIX98]: Likewise.
8287
8288         * conform/conformtest.pl: Handle "macro-int-constant" and test for
8289         usability of symbols in #if.
8290
8291         * conform/conformtest.pl: If macro or constant types start
8292         "promoted:", expect the symbol to be of the following type
8293         promoted by the integer promotions.
8294
8295         * conform/conformtest.pl: Parse all "constant" and "macro" lines
8296         in one place.  Also handle "macro-constant".
8297
8298         * conform/conformtest.pl: Only accept expected macro values with
8299         "==".  Parse all "macro" lines in one place.
8300         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
8301
8302         * conform/conformtest.pl: Handle braced types on "constant" lines
8303         instead of handling "typed-constant".
8304         * conform/data/signal.h-data: Use "constant" instead of
8305         "typed-constant".
8306
8307         * conform/conformtest.pl: Handle "optional-" at start of lines in
8308         one place rather than duplicating several cases.  Handle each
8309         format of "macro" line with initial "optional-".
8310
8311         * conform/conformtest.pl: Only accept expected constant or
8312         optional-constant values with "==".  Parse all "constant" lines in
8313         one place.  Parse all "optional-constant" lines in one place.
8314         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
8315         * conform/data/fmtmsg.h-data: Likewise.
8316         * conform/data/netinet/in.h-data: Likewise.
8317         * conform/data/tar.h-data: Likewise.
8318         * conform/data/limits.h-data: Use "==" form on "constant" and
8319         "optional-constant" lines.
8320
8321         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
8322         Use -std=c99 for XOPEN2K.
8323         (@knownproblems): Remove.
8324         (newtoken): Don't check %isknown.
8325
8326         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
8327         Do not expect macro.
8328         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
8329         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
8330         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
8331         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
8332         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
8333         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
8334         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
8335         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
8336         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
8337         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
8338         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
8339         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
8340         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
8341         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
8342         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
8343         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
8344         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
8345         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
8346         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
8347         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
8348         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
8349         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
8350         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
8351         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
8352         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
8353         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
8354         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
8355         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
8356         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
8357         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
8358         [XPG3] (acosh): Likewise.
8359         [XPG3] (asinh): Likewise.
8360         [XPG3] (atanh): Likewise.
8361         [XPG3] (cbrt): Likewise.
8362         [XPG3] (expm1): Likewise.
8363         [XPG3] (ilogb): Likewise.
8364         [XPG3] (log1p): Likewise.
8365         [XPG3] (logb): Likewise.
8366         [XPG3] (nextafter): Likewise.
8367         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
8368         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
8369         [XPG3] (remainder): Likewise.
8370         [XPG3] (rint): Likewise.
8371         [XPG3 || XPG4 || UNIX98] (round): Likewise.
8372         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
8373         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
8374         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
8375         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
8376         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
8377         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
8378         [UNIX98 || XOPEN2K] (scalb): Expect.
8379         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
8380         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
8381         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
8382         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
8383         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
8384         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
8385         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
8386         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
8387         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
8388         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
8389         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
8390         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
8391         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
8392         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
8393         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
8394         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
8395         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
8396         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
8397         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
8398         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
8399         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
8400         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
8401         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
8402         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
8403         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
8404         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
8405         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
8406         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
8407         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
8408         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
8409         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
8410         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
8411         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
8412         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
8413         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
8414         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
8415         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
8416         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
8417         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
8418         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
8419         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
8420         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
8421         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
8422         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
8423         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
8424         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
8425         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
8426         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
8427         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
8428         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
8429         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
8430         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
8431         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
8432         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
8433         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
8434         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
8435         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
8436         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
8437         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
8438         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
8439         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
8440         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
8441         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
8442         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
8443         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
8444         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
8445         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
8446         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
8447         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
8448         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
8449         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
8450         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
8451         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
8452         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
8453         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
8454         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
8455         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
8456         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
8457         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
8458         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
8459         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
8460         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
8461         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
8462         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
8463         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
8464         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
8465         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
8466         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
8467         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
8468         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
8469         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
8470         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
8471         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
8472         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
8473         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
8474         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
8475         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
8476         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
8477         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
8478         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
8479         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
8480         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
8481         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
8482         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
8483         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
8484         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
8485         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
8486         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
8487         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
8488         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
8489         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
8490         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
8491         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
8492         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
8493         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
8494         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
8495         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
8496         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
8497         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
8498         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
8499         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
8500         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
8501         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
8502         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
8503         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
8504         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
8505         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
8506         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
8507         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
8508         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
8509         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
8510         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
8511         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
8512         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
8513         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
8514         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
8515         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
8516
8517         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
8518         _XOPEN_SOURCE_EXTENDED for XPG4.
8519
8520         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
8521
8522         * Makeconfig (localtime): Remove variable.
8523         (inst_localtime-file): Likewise.
8524
8525 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
8526
8527         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
8528         Update.
8529         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
8530         Update.
8531         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
8532         Update.
8533         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
8534         Update.
8535         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
8536         Update.
8537         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
8538         Update.
8539         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
8540         Update.
8541         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
8542         Update.
8543         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
8544         Update.
8545
8546 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
8547
8548         [BZ #2550]
8549         [BZ #2570]
8550         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
8551         comparisons to determine direction to adjust input.
8552         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
8553         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
8554         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
8555         Likewise.
8556         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
8557         Likewise.
8558         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
8559         Likewise.
8560         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
8561         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
8562         Likewise.
8563         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
8564         Likewise.
8565         * math/libm-test.inc (nexttoward_test): Add more tests.
8566
8567 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
8568
8569         [BZ #14040]
8570         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
8571         in version GLIBC_2.1, not GLIBC_2.0.
8572         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
8573         Likewise.
8574
8575 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
8576
8577         [BZ #13942]
8578         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
8579         (1 - x) * (1 + x).
8580         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
8581         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
8582         * math/libm-test.inc (acos_test): Add more tests.
8583         (asin_test): Likewise.
8584         * sysdeps/i386/fpu/libm-test-ulps: Update.
8585         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8586
8587         [BZ #14034]
8588         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
8589         of square root.
8590         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
8591         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
8592         * math/libm-test.inc (acos_test_tonearest): New function.
8593         (acos_test_towardzero): Likewise.
8594         (acos_test_downward): Likewise.
8595         (acos_test_upward): Likewise.
8596         (asin_test_tonearest): Likewise.
8597         (asin_test_towardzero): Likewise.
8598         (asin_test_downward): Likewise.
8599         (asin_test_upward): Likewise.
8600         (main): Call the new functions.
8601         * sysdeps/i386/fpu/libm-test-ulps: Update.
8602         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8603
8604         [BZ #13884]
8605         [BZ #13924]
8606         * math/e_exp10.c: Include <float.h>.
8607         (__ieee754_exp10): Handle underflow here rather than multiplying
8608         large negative argument by M_LN10.
8609         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
8610         of __ieee754_expf.
8611         * math/e_exp10l.c: Include <float.h>.
8612         (__ieee754_exp10l): Handle underflow here rather than multiplying
8613         large negative argument by M_LN10l.
8614         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
8615         spurious overflow exception on underflow.
8616
8617 2012-04-29  Marek Polacek  <polacek@redhat.com>
8618
8619         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
8620         (__fortify_function): New macro.
8621         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
8622         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
8623         __extern_always_inline.
8624         * libio/bits/stdio2.h: Likewise.
8625         * libio/bits/stdio.h: Likewise.
8626         * string/string.h: Likewise.
8627         * string/bits/string3.h: Likewise.
8628         * include/stdio.h: Likewise.
8629         * stdlib/bits/stdlib.h: Likewise.
8630         * stdlib/stdlib.h: Likewise.
8631         * rt/bits/mqueue2.h: Likewise.
8632         * rt/mqueue.h: Likewise.
8633         * posix/bits/unistd.h: Likewise.
8634         * posix/unistd.h: Likewise.
8635         * io/bits/poll2.h: Likewise.
8636         * io/bits/fcntl2.h: Likewise.
8637         * io/fcntl.h: Likewise.
8638         * io/sys/poll.h: Likewise.
8639         * misc/bits/syslog.h: Likewise.
8640         * misc/bits/syslog-ldbl.h: Likewise.
8641         * misc/sys/syslog.h: Likewise.
8642         * socket/bits/socket2.h: Likewise.
8643         * socket/sys/socket.h: Likewise.
8644         * debug/tst-chk1.c: Likewise.
8645         * wcsmbs/bits/wchar2.h: Likewise.
8646         * wcsmbs/bits/wchar-ldbl.h: Likewise.
8647         * wcsmbs/wchar.h: Likewise.
8648
8649 2012-04-29  Andreas Jaeger  <aj@suse.de>
8650
8651         * Makerules (tests): Remove enable-check-abi protection.
8652         (check-abi-warn): Remove.
8653         (check-abi-%): Remove check-abi-warn usage.
8654
8655         * configure.in: Remove check-abi configure option.
8656         * configure: Regenerated.
8657         * config.make.in (enable-check-abi): Remove.
8658
8659 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
8660
8661         [BZ #14033]
8662         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
8663         double functions to double *_finite functions.
8664
8665         [BZ #13941]
8666         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
8667         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
8668         LDBL_MIN_EXP.
8669         * stdio-common/Makefile (tests): Add tst-sprintf3.
8670         * stdio-common/tst-sprintf3.c: New file.
8671
8672         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
8673         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
8674
8675 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
8676
8677         * conform/conformtest.pl: Remove duplicate typed-constant
8678         handling.
8679
8680 2012-04-28  David S. Miller  <davem@davemloft.net>
8681
8682         * Makerules (%.abilist): Add vpath on sysdep_dirs.
8683         (check-abi-%): Remove AWK script prerequisite and explicit
8684         abilist directory.
8685         (check-abi): Rewrite to just diff the symlist with the abilist.
8686         (config-tls, config-abi-config): Delete, no longer used.
8687         (update-abi-%): Remove AWK script and explicit abilist directory.
8688         (update-abi): Rewrite to simply compare and conditionally copy the
8689         symlist and the sysdep abilist file.  Remove update-abi-config
8690         checks.
8691         * abilist/ld.abilist: Remove.
8692         * abilist/libBrokenLocale.abilist: Remove.
8693         * abilist/libanl.abilist: Remove.
8694         * abilist/libcrypt.abilist: Remove.
8695         * abilist/libdl.abilist: Remove.
8696         * abilist/librt.abilist: Remove.
8697         * abilist/libthread_db.abilist: Remove.
8698         * abilist/libutil.abilist: Remove.
8699         * scripts/extract-abilist.awk: Remove.
8700         * scripts/merge-abilist.awk: Remove.
8701         * sysdeps/generic/libcidn.abilist: New file.
8702         * sysdeps/generic/libnss_compat.abilist: New file.
8703         * sysdeps/generic/libnss_db.abilist: New file.
8704         * sysdeps/generic/libnss_dns.abilist: New file.
8705         * sysdeps/generic/libnss_files.abilist: New file.
8706         * sysdeps/generic/libnss_hesiod.abilist: New file.
8707         * sysdeps/generic/libnss_nis.abilist: New file.
8708         * sysdeps/generic/libnss_nisplus.abilist: New file.
8709         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
8710         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
8711         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
8712         file.
8713         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
8714         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
8715         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
8716         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
8717         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
8718         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
8719         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
8720         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
8721         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
8722         file.
8723         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
8724         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
8725         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
8726         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
8727         file.
8728         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
8729         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
8730         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
8731         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
8732         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
8733         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
8734         file.
8735         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
8736         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
8737         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
8738         file.
8739         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
8740         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
8741         New file.
8742         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
8743         New file.
8744         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
8745         New file.
8746         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
8747         New file.
8748         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
8749         New file.
8750         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
8751         New file.
8752         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
8753         New file.
8754         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
8755         New file.
8756         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
8757         New file.
8758         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
8759         New file.
8760         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
8761         New file.
8762         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
8763         New file.
8764         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
8765         New file.
8766         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
8767         file.
8768         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
8769         New file.
8770         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
8771         New file.
8772         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
8773         file.
8774         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
8775         New file.
8776         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
8777         New file.
8778         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
8779         file.
8780         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
8781         New file.
8782         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
8783         New file.
8784         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
8785         New file.
8786         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
8787         New file.
8788         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
8789         New file.
8790         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
8791         New file.
8792         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
8793         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
8794         file.
8795         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
8796         New file.
8797         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
8798         file.
8799         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
8800         file.
8801         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
8802         file.
8803         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
8804         file.
8805         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
8806         file.
8807         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
8808         New file.
8809         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
8810         file.
8811         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
8812         file.
8813         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
8814         New file.
8815         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
8816         file.
8817         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
8818         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
8819         file.
8820         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
8821         New file.
8822         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
8823         file.
8824         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
8825         file.
8826         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
8827         file.
8828         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
8829         file.
8830         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
8831         file.
8832         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
8833         New file.
8834         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
8835         file.
8836         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
8837         file.
8838         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
8839         New file.
8840         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
8841         file.
8842         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
8843         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
8844         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
8845         file.
8846         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
8847         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
8848         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
8849         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
8850         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
8851         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
8852         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
8853         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
8854         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
8855         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
8856         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
8857         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
8858         file.
8859         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
8860         New file.
8861         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
8862         file.
8863         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
8864         file.
8865         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
8866         file.
8867         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
8868         file.
8869         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
8870         file.
8871         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
8872         New file.
8873         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
8874         New file.
8875         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
8876         file.
8877         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
8878         New file.
8879         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
8880         file.
8881         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
8882         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
8883         file.
8884         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
8885         New file.
8886         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
8887         file.
8888         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
8889         file.
8890         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
8891         file.
8892         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
8893         file.
8894         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
8895         file.
8896         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
8897         New file.
8898         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
8899         New file.
8900         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
8901         file.
8902         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
8903         New file.
8904         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
8905         file.
8906
8907 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
8908
8909         * conform/conformtest.pl: Fix typo in handling typed-constant from
8910         allow-header.
8911
8912 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
8913
8914         * README: Cut down references to pre-2.6 Linux kernels and
8915         Linuxthreads.  Update lists of configurations in libc and ports
8916         and sort alphabetically.  Say "or newer" with Linux kernel version
8917         requirements.
8918
8919         * config.h.in [IS_IN_build]: Allow compiling without optimization.
8920
8921 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
8922
8923         [BZ #887]
8924         * math/libm-test.inc (logb_test_downward): New test to expose
8925         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
8926         rounding mode.
8927
8928 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
8929
8930         [BZ #14027]
8931         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
8932         to be done.
8933         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
8934         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
8935
8936 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
8937
8938         * sysdeps/unix/i386/brk.S: Remove file.
8939         * sysdeps/unix/i386/dl-brk.S: Likewise.
8940         * sysdeps/unix/i386/pipe.S: Likewise.
8941         * sysdeps/unix/i386/sigreturn.S: Likewise.
8942         * sysdeps/unix/i386/syscall.S: Likewise.
8943         * sysdeps/unix/i386/vfork.S: Likewise.
8944         * sysdeps/unix/i386/wait.S: Likewise.
8945
8946         * sysdeps/unix/common/tcsendbrk.c: Move to ...
8947         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
8948
8949         * configure.in (arm*-none*): Do not allow without
8950         --enable-hacker-mode.
8951         (netbsd*): Remove case setting base_os.
8952         (386bsd*): Likewise.
8953         (freebsd*): Likewise.
8954         (bsdi*): Likewise.
8955         (osf*): Likewise.
8956         (sunos*): Likewise.
8957         (ultrix*): Likewise.
8958         (newsos*): Likewise.
8959         (dynix*): Likewise.
8960         (*bsd*): Likewise.
8961         (sysv*): Likewise.
8962         (isc*): Likewise.
8963         (esix*): Likewise.
8964         (sco*): Likewise.
8965         (minix*): Likewise.
8966         (irix4*): Likewise.
8967         (irix6*): Likewise.
8968         (solaris[2-9]*): Likewise.
8969         (none): Likewise.
8970         * configure: Regenerated.
8971
8972 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8973
8974         [BZ #11521]
8975         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
8976         overflow or cancellation in calculating denominator.
8977         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
8978         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
8979         down expression to avoid unexpected rounding in newer GCCs.
8980         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
8981
8982 2012-04-26  David S. Miller  <davem@davemloft.net>
8983
8984         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
8985         long-double compat symbols.
8986         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
8987         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
8988         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
8989         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
8990         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
8991         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
8992         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
8993         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
8994         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
8995         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
8996         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
8997         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
8998         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
8999
9000 2012-04-25  David S. Miller  <davem@davemloft.net>
9001
9002         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
9003         HWCAP_* values only after the memory barriers have been defined.
9004         (atomic_full_barrier): Define.
9005         (atomic_read_barrier): Define.
9006         (atomic_write_barrier): Define.
9007
9008 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
9009
9010         * shlib-versions: Add libgcc_s version information.
9011         * sysdeps/generic/libgcc_s.h: Remove.
9012         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
9013         libgcc_s.h.
9014         * sysdeps/gnu/unwind-resume.c: Likewise.
9015         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
9016
9017 2012-04-25  David S. Miller  <davem@davemloft.net>
9018
9019         * sysdeps/unix/sparc/brk.S: Delete.
9020         * sysdeps/unix/sparc/dl-brk.S: Delete.
9021         * sysdeps/unix/sparc/pipe.S: Delete.
9022         * sysdeps/unix/sparc/sysdep.S: Delete.
9023         * sysdeps/unix/sparc/sysdep.h: Delete.
9024         * sysdeps/unix/sparc/vfork.S: Delete.
9025         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
9026         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
9027         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
9028         ret_ERRVAL, r0, r1, MOVE): Define.
9029         (JUMPTARGET): Remove.
9030         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
9031         sysdeps/unix/sparc/sysdep.h
9032         (ENTRY, END): Remove.
9033         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
9034
9035 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
9036
9037         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
9038         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
9039         -DIS_IN_build.
9040
9041         * timezone/README: Update upstream location and email address for
9042         tzcode and tzdata.
9043         * timezone/zdump.c: Update from tzcode 2012b.
9044         * timezone/zic.c: Likewise.
9045
9046         * configure.in (libc_cv_as_needed): Remove test.
9047         * configure: Regenerated.
9048         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
9049         conditional definition.
9050         [$(have-as-needed) != yes] (no-as-needed): Likewise.
9051         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
9052         * config.make.in (have-as-needed): Remove variable.
9053
9054 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
9055             Paul Pluzhnikov  <ppluzhnikov@google.com>
9056
9057         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
9058         strings correctly.
9059
9060 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
9061
9062         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
9063         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
9064         * sysdeps/sh/strlen.S: Likewise.
9065
9066 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
9067
9068         * sysdeps/unix/fork.S: Remove file.
9069         * sysdeps/unix/i386/fork.S: Likewise.
9070         * sysdeps/unix/sparc/fork.S: Likewise.
9071
9072         * sysdeps/unix/system.c: Remove file.
9073         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
9074
9075         * sysdeps/unix/getegid.S: Remove file.
9076         * sysdeps/unix/geteuid.S: Likewise.
9077
9078 2012-04-24  Roland McGrath  <roland@hack.frob.com>
9079
9080         * scripts/check-localplt.awk: New file.
9081         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
9082         of diff.
9083         * scripts/data/localplt-generic.data: Add a comment.
9084
9085         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
9086         NODE when __dir_mkfile failed.
9087         * sysdeps/mach/hurd/symlinkat.c: Likewise.
9088         Reported by Ludovic Courtès <ludo@gnu.org>.
9089
9090 2012-04-24  Andreas Jaeger  <aj@suse.de>
9091
9092         * Makerules (common-clean): Also remove gen-as-const-headers
9093         files.
9094
9095 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
9096
9097         * Makerules (native-compile): Do not change working directory for
9098         build.  Use $(OUTPUT_OPTION) in command.
9099         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
9100
9101 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9102
9103         [BZ #13886]
9104         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
9105         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
9106         * math/libm-test.inc (floor_test): Add more tests.
9107         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
9108
9109 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
9110
9111         * sysdeps/unix/getdents.c: Remove file.
9112         * sysdeps/unix/sysv/getdents.c: Likewise.
9113         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
9114
9115         * sysdeps/unix/syscalls.list (madvise): Add syscall from
9116         sysdeps/unix/mman/syscalls.list.
9117         (mmap): Likewise.
9118         (mprotect): Likewise.
9119         (msync): Likewise.
9120         (munmap): Likewise.
9121         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
9122         * sysdeps/unix/mman/syscalls.list: Remove.
9123         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
9124
9125         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
9126         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
9127         * configure: Regenerated.
9128         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
9129         $(libgcc_s_suffix).
9130         * config.make.in (libgcc_s_suffix): Remove variable.
9131
9132 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
9133
9134         * sysdeps/unix/sysv/gethostname.c: Move to ...
9135         * sysdeps/posix/gethostname.c: ... here.
9136
9137         * sysdeps/unix/execve.S: Remove file.
9138
9139         * sysdeps/unix/_exit.S: Remove file.
9140
9141 2012-04-23  Andreas Jaeger  <aj@suse.de>
9142
9143         [BZ #13739]
9144         * manual/Makefile: Remove make dist support, there's no
9145         need for a stand-alone documentation tar ball.
9146         (TEXI2DVI): Define always, it's not in Makeconfig.
9147         (dist): Removed.
9148         (tar-it): Removed.
9149         (edition): Removed.
9150         (glibc-doc-$(edition).tar): Removed
9151         (%.Z): Removed.
9152         (%.gz): Removed.
9153         (%.uu): Removed.
9154         (ETAGS): Remove, it's in Makeconfig.
9155         (move-if-change): Remove, it's in Makeconfig.
9156
9157 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
9158
9159         [BZ #13970]
9160         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
9161         (strtod, strtof, strtold, strtol, strtoul, strtoq)
9162         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
9163         (strtod_l, strtof_l, strtold_l): Remove __wur.
9164         It is not necessarily an error to ignore strtol's return value.
9165         One can reliably look at the stored endptr to decide whether
9166         the number had valid syntax.
9167
9168 2012-04-21  Andreas Jaeger  <aj@suse.de>
9169
9170         [BZ #13739]
9171         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
9172
9173 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
9174
9175         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
9176         * sysdeps/unix/sysv/Versions: Remove file.
9177
9178 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
9179
9180         [BZ #13927]
9181         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9182
9183 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
9184
9185         [BZ #7064]
9186         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
9187         version from __vm86.
9188
9189 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
9190
9191         * sysdeps/unix/common/lxstat.c: Remove file.
9192         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
9193
9194         * sysdeps/unix/sysv/Makefile: Remove file.
9195
9196         * sysdeps/unix/sysv/direct.h: Remove file.
9197
9198         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
9199         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
9200         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
9201         * sysdeps/unix/sysv/bits/signum.h: Likewise.
9202         * sysdeps/unix/sysv/bits/stat.h: Likewise.
9203         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
9204         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
9205
9206         * sysdeps/unix/sysv/setrlimit.c: Remove file.
9207
9208         * sysdeps/unix/xmknod.c: Remove file.
9209         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
9210
9211         * sysdeps/unix/sysv/settimeofday.c: Remove file.
9212
9213         * sysdeps/unix/sysv/i386/time.S: Remove file.
9214
9215         * sysdeps/unix/fxstat.c: Remove file.
9216         * sysdeps/unix/xstat.c: Likewise.
9217         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
9218
9219         * sysdeps/unix/sysv/sigaction.c: Remove file.
9220
9221         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
9222         (sysdep_headers): Remove variable.
9223         [termio.h not in sysdep_headers] (generated): Likewise.
9224         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
9225         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
9226         * sysdeps/unix/sysv/tcdrain.c: Likewise.
9227         * sysdeps/unix/sysv/tcflow.c: Likewise.
9228         * sysdeps/unix/sysv/tcflush.c: Likewise.
9229         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
9230         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
9231         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
9232         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
9233         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
9234
9235         * sysdeps/unix/siglist.c: Remove file.
9236
9237         * sysdeps/unix/getppid.S: Remove file.
9238
9239         * sysdeps/unix/mkdir.c: Remove file.
9240         * sysdeps/unix/rmdir.c: Likewise.
9241
9242 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
9243
9244         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
9245         ERR_MAX value.
9246         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
9247         errlist-compat value.
9248
9249 2012-04-18  David S. Miller  <davem@davemloft.net>
9250
9251         * sysdeps/generic/memcopy.h (reg_char): Delete.
9252         * debug/strcat_chk.c: Use char, not reg_char.
9253         * debug/strcpy_chk.c: Likewise.
9254         * debug/strncat_chk.c: Likewise.
9255         * debug/strncpy_chk.c: Likewise.
9256         * string/memchr.c: Likewise.
9257         * string/memrchr.c: Likewise.
9258         * string/rawmemchr.c: Likewise.
9259         * string/strcat.c: Likewise.
9260         * string/strchr.c: Likewise.
9261         * string/strchrnul.c: Likewise.
9262         * string/strcmp.c: Likewise.
9263         * string/strcpy.c: Likewise.
9264         * string/strncat.c: Likewise.
9265         * string/strncmp.c: Likewise.
9266         * string/strncpy.c: Likewise.
9267
9268 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
9269
9270         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
9271         __builtin_memcopy is called when src and dest ranges are known to not
9272         overlap.
9273
9274 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
9275
9276         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
9277         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
9278         fwd_align_merge macro call.
9279         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
9280         bwd_align_merge macro call.
9281         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
9282
9283 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
9284
9285         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
9286         bwd_align_merge macros.
9287         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
9288         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
9289         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
9290
9291 2012-04-18  David S. Miller  <davem@davemloft.net>
9292
9293         * sysdeps/sparc/sparc64/memcopy.h: Delete.
9294
9295 2012-04-18  Andreas Jaeger  <aj@suse.de>
9296
9297         [BZ# 6794]
9298         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
9299         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
9300         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
9301
9302         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
9303         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
9304         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
9305
9306         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
9307         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
9308         Adjust for changed ldbl-128 files.
9309
9310         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
9311         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
9312         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
9313
9314 2012-04-17  David S. Miller  <davem@davemloft.net>
9315
9316         * sysdeps/sparc/sparc32/memcopy.h: Delete.
9317
9318 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
9319
9320         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
9321         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
9322         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
9323         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
9324         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
9325         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
9326
9327 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9328
9329         [BZ #6794]
9330         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
9331         * math/libm-test.inc: Add ilogb errno and exception tests.
9332         * math/w_ilogb.c: New file: ilogb wrapper.
9333         * math/w_ilogbf.c: New file: ilogbf wrapper.
9334         * math/w_ilogbl.c: New file: ilogbl wrapper.
9335         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
9336         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
9337         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
9338         exception being thrown with 0.0 as argument.
9339         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
9340         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
9341         exception being thrown with 0.0 as argument.
9342         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
9343         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
9344         exception being thrown with 0.0 as argument.
9345         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
9346         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
9347         exception being thrown with 0.0 as argument.
9348         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
9349         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
9350         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
9351         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
9352         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
9353         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
9354         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
9355         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
9356         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
9357
9358 2012-04-17  Petr Baudis  <pasky@ucw.cz>
9359
9360         * include/sys/uio.h: Change __vector to __iovec to avoid clash
9361         with altivec.
9362
9363 2012-04-16  Marek Polacek  <polacek@redhat.com>
9364
9365         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
9366
9367 2012-04-16  Marek Polacek  <polacek@redhat.com>
9368
9369         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
9370         operands of fdivp instruction.
9371
9372 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
9373
9374         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
9375         * elf/tst-auditmod3b.c: Likewise.
9376         * elf/tst-auditmod4b.c: Likewise.
9377         * elf/tst-auditmod5b.c: Likewise.
9378         * elf/tst-auditmod6b.c: Likewise.
9379         * elf/tst-auditmod6c.c: Likewise.
9380         * elf/tst-auditmod7b.c: Likewise.
9381         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
9382         * sysdeps/x86_64/preconfigure.in: Likewise.
9383         * sysdeps/x86_64/preconfigure: Regenerated.
9384
9385 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
9386
9387         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
9388         __ILP32__.
9389
9390 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
9391
9392         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
9393         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
9394
9395 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
9396
9397         [BZ #13973]
9398         * locale/iso-639.def: Fix gl language name. Spotted by
9399         Yaron Shahrabani.
9400
9401 2012-04-12  Roland McGrath  <roland@hack.frob.com>
9402
9403         [BZ #2074]
9404         * libio/libio.h (__io_write_fn): Update comment.
9405
9406 2012-04-12  Petr Baudis  <pasky@ucw.cz>
9407
9408         [BZ #2074]
9409         * stdio.texi (Hook Functions): The user provided writer function
9410         is not allowed to return -1.
9411
9412 2012-04-11  David S. Miller  <davem@davemloft.net>
9413
9414         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9415
9416 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
9417
9418         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
9419         Add a leading slash to rtkaio.
9420
9421 2012-04-11  Jim Meyering  <meyering@redhat.com>
9422
9423         [BZ #11959]
9424         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
9425         It is not necessarily an error to ignore fwrite's return
9426         value.  One can reliably use ferror to test for errors after
9427         the fact.
9428
9429 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
9430
9431         * bits/types.h (__snseconds_t): New type.
9432         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
9433
9434         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
9435         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
9436         (__SNSECONDS_T_TYPE): Likewise.
9437         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
9438         (__SNSECONDS_T_TYPE): Likewise.
9439         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
9440         (__SNSECONDS_T_TYPE): Likewise.
9441
9442 2012-04-10  Andreas Jaeger  <aj@suse.de>
9443
9444         [BZ #2636]
9445         * manual/time.texi (Processor Time): Return type of times is
9446         elapsed real time since an arbitrary point in the past.
9447         (CPU Time): Move CLK_TCK from here...
9448         (Processor Time): ...to here.  Correct description.
9449         * manual/conf.texi (Constants for Sysconf): Correct description of
9450         _SC_CLK_TCK.
9451
9452 2012-04-10  David S. Miller  <davem@davemloft.net>
9453
9454         [BZ #13967]
9455         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
9456         where the is a gap between DT_REL(A) and DT_JMPREL.
9457
9458 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
9459
9460         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
9461         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
9462         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
9463
9464 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
9465
9466         * elf/dl-support.c (_dl_inhibit_cache): New variable.
9467         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
9468         (dl_main): Handle --inhibit-cache.
9469         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
9470         _dl_inhibit_cache.
9471         * elf/dl-load.c (_dl_map_object): Use it.
9472         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
9473
9474 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
9475
9476         [BZ #13872]
9477         * sysdeps/i386/fpu/e_powl.S (p78): New object.
9478         (__ieee754_powl): Saturate large exponents rather than testing for
9479         overflow of y*log2(x).
9480         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
9481         * math/libm-test.inc (pow_test): Do not permit spurious overflow
9482         exceptions.
9483
9484         [BZ #11521]
9485         * math/s_ctan.c: Include <float.h>.
9486         (__ctan): Avoid internal overflow or cancellation in calculating
9487         denominator.
9488         * math/s_ctanf.c: Likewise.
9489         * math/s_ctanl.c: Likewise.
9490         * math/s_ctanh.c: Likewise.
9491         * math/s_ctanhf.c: Likewise.
9492         * math/s_ctanhl.c: Likewise.
9493         * math/libm-test.inc (ctan_test): Add more tests.
9494         (ctanh_test): Likewise.
9495         * sysdeps/i386/fpu/libm-test-ulps: Update.
9496         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9497
9498 2012-04-09  Andreas Jaeger  <aj@suse.de>
9499
9500         [BZ #6894]
9501         * manual/filesys.texi (Directory Entries): Mention that d_namlen
9502         is an optional BSD extension.
9503
9504         [BZ #10254]
9505         * manual/stdio.texi (Opening Streams): Document additional fopen
9506         parameters.
9507
9508 2012-04-09  Roland McGrath  <roland@hack.frob.com>
9509
9510         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
9511         %eax without telling the compiler.
9512
9513 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
9514
9515         [BZ # 13963]
9516         * manual/install.texi: Use sourceware.org.
9517
9518 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
9519
9520         [BZ #13873]
9521         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
9522         (__ieee754_pow): Generate overflow and underflow using huge*huge
9523         and tiny*tiny rather than just returning constant infinity or zero
9524         for large exponents.
9525         * math/libm-test.inc (pow_test): Require overflow exceptions for
9526         applicable cases of large exponents.
9527
9528         [BZ #706]
9529         * sysdeps/i386/fpu/e_pow.S (p10): New object.
9530         (__ieee754_pow): Use iterative multiplication algorithm only for
9531         integer exponents with absolute value below 1024.  Check for odd
9532         integer exponents when using algorithm for real exponents.
9533         * math/libm-test.inc (pow_test): Add more tests.
9534         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9535
9536 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
9537
9538         [BZ #13705]
9539         * math/libm-test.inc (exp_test): Do not allow overflow exception
9540         on underflow test.
9541
9542 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
9543
9544         [BZ #13705]
9545         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
9546         instead of __kernel_standard_f.
9547
9548 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
9549
9550         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
9551         * sysdeps/x86_64/memset_chk.S: Likewise.
9552
9553 2012-04-08  Andreas Jaeger  <aj@suse.de>
9554
9555         [BZ #10153]
9556         * manual/startup.texi (Environment Access): Describe return value
9557         for putenv and setenv.
9558
9559         [BZ #6895]
9560         * manual/filesys.texi (Directory Entries): Add description for
9561         DT_LNK.
9562
9563         [BZ #6890]
9564         * manual/filesys.texi (Directory Entries): Clarify that it's file
9565         system not operating system in the description of DT_UNKNOWN.
9566
9567         [BZ #6578]
9568         * manual/syslog.texi (closelog): Fix reference, it's openlog.
9569
9570 2012-04-08  Stephen Compall  <s11@member.fsf.org>
9571
9572         [BZ #6649]
9573         * manual/llio.texi (Opening and Closing Files): Add cross
9574         reference to explain mode argument.
9575
9576 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
9577
9578         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
9579         * sysdeps/x86_64/memset_chk.S: Likewise.
9580
9581 2012-04-07  David S. Miller  <davem@davemloft.net>
9582
9583         * elf/elf.h (R_SPARC_WDISP10): Define.
9584         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
9585         R_SPARC_SIZE32.
9586         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
9587         R_SPARC_SIZE64 and R_SPARC_H34.
9588
9589 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
9590
9591         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
9592         conditions and remove no longer applicable assertion.
9593
9594 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
9595
9596         * bits/byteswap.h: Include <features.h>.
9597         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
9598         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
9599
9600 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
9601
9602         * bits/byteswap.h (__bswap_16): Removed.
9603         Include <bits/byteswap-16.h> to get __bswap_16.
9604         * sysdeps/i386/bits/byteswap.h: Likewise.
9605         * sysdeps/s390/bits/byteswap.h: Likewise.
9606         * sysdeps/x86_64/bits/byteswap.h: Likewise.
9607         * bits/byteswap-16.h: New file.
9608         * sysdeps/i386/bits/byteswap-16.h: Likewise.
9609         * sysdeps/s390/bits/byteswap-16.h: Likewise.
9610         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
9611         * string/Makefile (headers): Add bits/byteswap-16.h.
9612
9613 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
9614
9615         [BZ #13895]
9616         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
9617         extra indirection.
9618         * nss/Makefile (tests-static, tests): Add tst-nss-static.
9619         * nss/tst-nss-static.c: New.
9620
9621 2012-04-06  Robert Millan  <rmh@gnu.org>
9622
9623         [BZ #6486]
9624         * manual/llio.texi (File Position Primitive): lseek
9625         refers to WHENCE when it really means OFFSET.
9626
9627 2012-04-06  Andreas Jaeger  <aj@suse.de>
9628
9629         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
9630         strncmp declarations.
9631
9632         * abilist/libc.abilist: Add __poll and __ppoll.
9633
9634 2012-04-05  David S. Miller  <davem@davemloft.net>
9635
9636         * scripts/check-local-headers.sh: Accept a host triplet in the
9637         path matched by the exclude regexp.
9638
9639         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
9640         definition.
9641         * sysdeps/powerpc/powerpc32/dl-machine.h
9642         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
9643         * sysdeps/s390/s390-32/dl-machine.h
9644         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
9645         * sysdeps/sparc/sparc32/dl-machine.h
9646         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
9647         * sysdeps/sparc/sparc64/dl-machine.h
9648         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
9649
9650         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
9651         lazy binding.
9652         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
9653         undefined symbol errors.
9654
9655         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
9656         DT_NEEDED entries.
9657
9658 2012-04-05  Michael Matz  <matz@suse.de>
9659
9660         [BZ #13592]
9661         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
9662
9663 2012-04-05  Andreas Jaeger  <aj@suse.de>
9664
9665         [BZ #13908]
9666         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
9667         comment.
9668
9669 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9670
9671         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
9672         which ROUND is no valid rounding mode.
9673
9674 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9675
9676         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
9677         read again.
9678         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
9679
9680 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9681
9682         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
9683         an exception using FPU order intentionally.
9684
9685 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9686
9687         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
9688         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
9689         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
9690         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
9691
9692 2012-04-05  Simon Josefsson  <simon@josefsson.org>
9693
9694         [BZ #12340]
9695         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
9696         EINVAL when BUFLEN is too smal.
9697
9698 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
9699
9700         [BZ #13553]
9701         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
9702         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
9703
9704 2012-04-03  Andreas Jaeger  <aj@suse.de>
9705
9706         [BZ #13938]
9707         * manual/setjmp.texi (System V contexts): Fix sentence.
9708
9709         [BZ #13926]
9710         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
9711         New macro for this case.
9712         [!__GNUC__] (__bswap_64): New inline function for this case.
9713         * sysdeps/x86_64/bits/byteswap.h: Likewise.
9714         * bits/byteswap.h: Likewise.
9715         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
9716         ull, guard with __GLIBC_HAVE_LONG_LONG.
9717
9718         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
9719         __GLIBC_HAVE_LONG_LONG.
9720
9721         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
9722         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
9723
9724 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
9725
9726         [BZ #13691]
9727         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
9728         inptr and inend, rather than using last_ch.
9729
9730 2012-04-02  David S. Miller  <davem@davemloft.net>
9731
9732         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
9733         * stdio-common/printf-parse.h (read_int): Change return type to
9734         'int', return -1 on INT_MAX overflow.
9735         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
9736         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
9737         overflows INT_MAX.  Check for overflow of in-format-string precision
9738         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
9739         SIZE_MAX not INT_MAX for integer overflow test.
9740         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
9741         skip the construct in the format string but do not record anything.
9742         * stdio-common/bug22.c: Adjust to test both width/prevision
9743         INT_MAX overflow as well as total length INT_MAX overflow.  Check
9744         explicitly for proper errno values.
9745
9746 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
9747
9748         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
9749         CHAR_MAX.
9750         * string/test-strcmp.c [! WIDE]: Likewise.
9751         * time/tst-mktime2.c: Likewise for INT_MAX.
9752         * string/test-string.h: #include <sys/param.h> for MIN.
9753
9754         * csu/init-first.c (__libc_init_first): Call __ctype_init.
9755         * sysdeps/i386/init-first.c (init): Likewise.
9756         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
9757         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
9758         * sysdeps/sh/init-first.c (init): Likewise.
9759
9760 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
9761
9762         * po/ru.po: Update from translation team.
9763         * po/vi.po: Likewise.
9764
9765 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
9766
9767         * resolv/nss_dns/dns-host.c: Merge copyright years.
9768
9769 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9770
9771         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
9772         Optimize memcpy with prefetch if
9773         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
9774         src, dst pointers have unequal 16 byte alignments.
9775
9776 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
9777
9778         [BZ #13928]
9779         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
9780         from a CNAME entry and return the minimum ttl for the query.
9781         (gaih_getanswer_slice): Likewise.
9782
9783 2012-03-30  Jeff Law  <law@redhat.com>
9784
9785         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
9786         due to long keys.
9787         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
9788         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
9789
9790         * resolv/nss_dns/dns-host.c: Update copyright year.
9791
9792 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
9793
9794         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
9795         requests to save a system call.  Fix check that all bytes are sent.
9796
9797         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
9798         comments for sendmmsg.
9799
9800 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
9801
9802         [BZ #13691]
9803         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
9804         with only 1 character between 0x0041 and 0x01b0.
9805         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
9806         * wcsmbs/tst-mbsnrtowcs.c: New file.
9807
9808 2012-03-29  David S. Miller  <davem@davemloft.net>
9809
9810         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
9811         small copies by hand.
9812
9813 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
9814
9815         [BZ #13761]
9816         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
9817         _nss_compat_initgroups_dyn): Fall back to malloc/free
9818         for large group memberships.
9819
9820 2012-03-28  David S. Miller  <davem@davemloft.net>
9821
9822         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
9823         that branches into memcpy.
9824         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
9825         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
9826         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
9827         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
9828         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
9829         bits.
9830         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
9831         implementation too.
9832         * sysdeps/sparc/mempcpy.S: New file.
9833
9834         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
9835         the IFUNC routine in the libc case.
9836         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
9837
9838         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
9839         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
9840         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
9841         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
9842         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
9843         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
9844         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
9845         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
9846
9847         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
9848         loop to 256 bytes instead of 64 bytes and fix test signedness.
9849
9850         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
9851         * sysdeps/sparc/sparc32/Makefile: rather than here...
9852         * sysdeps/sparc/sparc64/Makefile: and here.
9853
9854 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
9855
9856         * malloc/mallocbug.c: Avoid warnings about unused variables.
9857
9858 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
9859
9860         [BZ #13760]
9861         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
9862         in the right place. Discard and retry query if response is
9863         larger than input buffer size.
9864
9865 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
9866
9867         [BZ #369]
9868         [BZ #2678]
9869         [BZ #3866]
9870         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
9871         x for large integer exponent.
9872         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
9873         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
9874         sign of result as needed afterwards.
9875         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
9876         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
9877         result for underflowing pow the same as for overflow.
9878         (__kernel_standard_l): Handle powl overflow and underflow here
9879         rather than calling __kernel_standard.
9880         * math/libm-test.inc (pow_test): Add more tests.
9881
9882         [BZ #3868]
9883         [BZ #13879]
9884         [BZ #13910]
9885         [BZ #13911]
9886         [BZ #13912]
9887         [BZ #13913]
9888         [BZ #13915]
9889         [BZ #13916]
9890         [BZ #13917]
9891         [BZ #13918]
9892         [BZ #13919]
9893         [BZ #13920]
9894         [BZ #13921]
9895         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
9896         * sysdeps/ieee754/k_standard.c: Include <float.h>.
9897         (__kernel_standard_l): New function.
9898         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
9899         __kernel_standard.
9900         * math/w_acosl.c (__acosl): Likewise.
9901         * math/w_asinl.c (__asinl): Likewise.
9902         * math/w_atan2l.c (__atan2l): Likewise.
9903         * math/w_atanhl.c (__atanhl): Likewise.
9904         * math/w_coshl.c (__coshl): Likewise.
9905         * math/w_exp10l.c (__exp10l): Likewise.
9906         * math/w_exp2l.c (__exp2l): Likewise.
9907         * math/w_fmodl.c (__fmodl): Likewise.
9908         * math/w_hypotl.c (__hypotl): Likewise.
9909         * math/w_j0l.c (__j0l, __y0l): Likewise.
9910         * math/w_j1l.c (__j1l, __y1l): Likewise.
9911         * math/w_jnl.c (__jnl, __ynl): Likewise.
9912         * math/w_lgammal.c (__lgammal): Likewise.
9913         * math/w_log10l.c (__log10l): Likewise.
9914         * math/w_log2l.c (__log2l): Likewise.
9915         * math/w_logl.c (__logl): Likewise.
9916         * math/w_powl.c (__powl): Likewise.
9917         * math/w_remainderl.c (__remainderl): Likewise.
9918         * math/w_scalbl.c (sysv_scalbl): Likewise.
9919         * math/w_sinhl.c (__sinhl): Likewise.
9920         * math/w_sqrtl.c (__sqrtl): Likewise.
9921         * math/w_tgammal.c (__tgammal): Likewise.
9922         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
9923         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
9924         * math/libm-test.inc (acos_test): Add more tests.
9925         (acosh_test): Likewise.
9926         (asin_test): Likewise.
9927         (atanh_test): Likewise.
9928         (exp_test): Likewise.
9929         (exp10_test): Likewise.
9930         (exp2_test): Likewise.
9931         (expm1_test): Likewise.
9932         (lgamma_test): Likewise.
9933         (log_test): Likewise.
9934         (log10_test): Likewise.
9935         (log1p_test): Likewise.
9936         (log2_test): Likewise.
9937         (pow_test): Do not allow some spurious overflow exceptions.
9938         (sqrt_test): Add more tests.
9939         (tgamma_test): Likewise.
9940         (y0_test): Likewise.
9941         (y1_test): Likewise.
9942         (yn_test): Likewise.
9943
9944 2012-03-27  Anton Blanchard  <anton@samba.org>
9945
9946         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
9947         MAP_HUGETLB.
9948         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
9949         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
9950         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
9951
9952 2012-03-27  David S. Miller  <davem@davemloft.net>
9953
9954         * conform/Makefile: Run run-conformtest.sh using $(BASH).
9955
9956         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
9957         have-as-vis3 check.
9958
9959 2012-03-27  Andreas Jaeger  <aj@suse.de>
9960
9961         * sysdeps/x86_64/elf/configure.in: Moved to ...
9962         * sysdeps/x86_64/configure.in: ... here.
9963         * sysdeps/x86_64/elf/start.S: Moved to ...
9964         * sysdeps/x86_64/start.S: ... here.
9965         * sysdeps/x86_64/elf/configure: Delete.
9966
9967         * sysdeps/x86_64/configure.in: Merge contents from
9968         sysdeps/i386/configure.in (without i686 check).
9969
9970         * sysdeps/i386/elf/Versions: Merge into ...
9971         * sysdeps/i386/Versions: ... this.
9972         * sysdeps/i386/elf/Versions: Delete file.
9973         * sysdeps/i386/elf/start.S: Moved to ...
9974         * sysdeps/i386/start.S: ...here.
9975         * sysdeps/i386/elf/configure.in: Merge into...
9976         * sysdeps/i386/configure.in: ...here.
9977         * sysdeps/i386/elf/configure.in: Delete file.
9978         * sysdeps/i386/elf/configure: Delete file.
9979
9980         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
9981         * debug/backtracesyms.c: ... here.
9982         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
9983         * debug/backtracesymsfd.c: ... here.
9984         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
9985         * sysdeps/generic/ifunc-sel.h: ... here.
9986
9987         * sysdeps/unix/i386/start.c: Delete file.
9988         * sysdeps/unix/sparc/start.c: Delete file.
9989         * sysdeps/unix/start.c: Delete file.
9990
9991         * sysdeps/sh/elf/configure.in: Moved to ...
9992         * sysdeps/sh/configure.in: ... here.
9993         * sysdeps/sh/elf/start.S: Moved to ...
9994         * sysdeps/sh/start.S: ... here.
9995         * sysdeps/sh/elf/configure: Delete file.
9996
9997         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
9998         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
9999         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
10000         * sysdeps/powerpc/powerpc64/entry.h: ... here.
10001         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
10002         * sysdeps/powerpc/powerpc64/start.S: here.
10003         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
10004         * sysdeps/powerpc/powerpc64/Makefile: ... this.
10005         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
10006         * sysdeps/powerpc/powerpc64/configure.in: ... this.
10007         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
10008
10009         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
10010         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
10011         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
10012         * sysdeps/powerpc/powerpc32/start.S: ... here.
10013         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
10014         * sysdeps/powerpc/powerpc32/configure.in: ... this.
10015         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
10016
10017         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
10018         * sysdeps/powerpc/ifunc-sel.h: ... here.
10019         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
10020         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
10021
10022         * sysdeps/sparc/elf/configure.in: Moved to ...
10023         * sysdeps/sparc/configure.in: ... here.
10024         * sysdeps/sparc/elf/configure: Delete file.
10025         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
10026         * sysdeps/sparc/sparc32/start.S: ... here.
10027         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
10028         * sysdeps/sparc/sparc64/start.S: ... here.
10029         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
10030         * sysdeps/sparc/sparc32/Makefile: ... this.
10031         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
10032         * sysdeps/sparc/sparc64/Makefile: ... this.
10033
10034         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
10035         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
10036         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
10037         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
10038         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
10039         * sysdeps/s390/s390-32/setjmp.S: ... here.
10040         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
10041         * sysdeps/s390/s390-32/configure.in: ... here.
10042         * sysdeps/s390/s390-32/elf/configure: Delete file.
10043         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
10044         * sysdeps/s390/s390-32/start.S: ... here.
10045
10046         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
10047         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
10048         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
10049         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
10050         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
10051         * sysdeps/s390/s390-64/setjmp.S: ... here.
10052         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
10053         * sysdeps/s390/s390-64/configure.in: ... here
10054         * sysdeps/s390/s390-64/elf/configure: Delete file.
10055         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
10056         * sysdeps/s390/s390-64/start.S: ... here.
10057         * sysdeps/s390/s390-64/elf/configure: Delete.
10058
10059         * configure.in: Remove support for elf directories in sysdeps.
10060
10061         * configure: Regenerated.
10062         * sysdeps/i386/configure: Regenerated.
10063         * sysdeps/powerpc/powerpc32/configure: Regenerated.
10064         * sysdeps/powerpc/powerpc64/configure: Regenerated.
10065         * sysdeps/s390/s390-32/configure: Regenerated.
10066         * sysdeps/s390/s390-64/configure: Regenerated.
10067         * sysdeps/sh/configure: Regenerated.
10068         * sysdeps/sparc/configure: Regenerated.
10069         * sysdeps/x86_64/configure: Regenerated.
10070
10071 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
10072
10073         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10074
10075         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
10076         denormal result into account.
10077
10078 2012-03-25  Roland McGrath  <roland@hack.frob.com>
10079
10080         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
10081         Reported by Allan McRae <allan@archlinux.org>.
10082
10083 2012-03-23  Jeff Law  <law@redhat.com>
10084
10085         * nss/getnssent.c (__nss_getent): Fix typo.
10086
10087 2012-03-23  David S. Miller  <davem@davemloft.net>
10088
10089         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10090
10091 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
10092
10093         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
10094         to pad to uint64_t for each field.
10095         (dl_tls_index): Replace unsigned long with uint64_t.
10096
10097 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
10098         Paul Pluzhnikov  <ppluzhnikov@google.com>
10099
10100         [BZ #6528]
10101         * grp/Makefile (otherlibs): Don't set it.
10102         * inet/Makefile (otherlibs): Likewise.
10103         * login/Makefile (otherlibs): Likewise.
10104         * nscd/Makefile (otherlibs): Likewise.
10105         * posix/Makefile (otherlibs): Likewise.
10106         * pwd/Makefile (otherlibs): Likewise.
10107         * rt/Makefile (otherlibs): Likewise.
10108         * sunrpc/Makefile (otherlibs): Likewise.
10109         * nss/Makefile (otherlibs): Likewise.
10110         Add libnss_files to routines and static-only-routines.
10111         ($(objpfx)getent): Remove rule.
10112         * resolv/Makefile: Add libnss_dns and libresolv to routines and
10113         static-only-routines.
10114
10115 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
10116
10117         [BZ #13892]
10118         * math/s_cexp.c: Include <float.h>.
10119         (__cexp): Handle exp result overflowing not necessarily
10120         overflowing both real and imaginary parts of result.
10121         * math/s_cexpf.c: Likewise.
10122         * math/s_cexpl.c: Likewise.
10123         * math/libm-test.inc (cexp_test): Add more tests.
10124         * sysdeps/i386/fpu/libm-test-ulps: Update.
10125         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10126
10127 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10128
10129         * include/link.h (ELFW): New macro.
10130         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
10131         Replace ELF64_R_TYPE with ELFW(R_TYPE).
10132
10133 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10134
10135         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
10136         with uint64_t.
10137
10138 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10139
10140         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
10141         declaration.
10142         (struct La_x32_retval): Likewise.
10143
10144 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10145
10146         * sysdeps/x86_64/preconfigure.in: New file.
10147         * sysdeps/x86_64/preconfigure: New generated file.
10148
10149 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
10150
10151         [BZ #13824]
10152         * math/e_exp2l.c: Include <float.h>.
10153         (__ieee754_exp2l): Handle overflow and underflow cases
10154         separately.  Only pass fractional part of argument to
10155         __ieee754_expl.
10156         * math/libm-test.inc (exp2_test): Add more tests.
10157
10158         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
10159         negating x to take absolute value.
10160         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
10161         Likewise.
10162         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
10163         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
10164         Likewise.
10165         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
10166         computing low part if x was negated.
10167         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
10168
10169 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
10170
10171         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
10172         la_x32_gnu_pltexit.
10173         (pltexit): Cast int_retval to ptrdiff_t.
10174         * elf/tst-auditmod3b.c: Likewise.
10175         * elf/tst-auditmod4b.c: Likewise.
10176         * elf/tst-auditmod5b.c: Likewise.
10177         * elf/tst-auditmod6b.c: Likewise.
10178         * elf/tst-auditmod6c.c: Likewise.
10179         * elf/tst-auditmod7b.c: Likewise.
10180
10181         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
10182         and x32_gnu_pltexit.
10183
10184         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
10185         __ELF_NATIVE_CLASS.
10186         (La_x32_regs): New macro.
10187         (La_x32_retval): Likewise.
10188         (la_x32_gnu_pltenter): New function prototype.
10189         (la_x32_gnu_pltexit): Likewise.
10190
10191 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
10192
10193         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
10194         exponent.
10195
10196         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10197
10198         * configure.in (libc_cv_cc_nofma): Check for option to disable
10199         generation of FMA instructions.
10200         * configure: Regenerate.
10201         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
10202         * sysdeps/ieee754/dbl-64/Makefile: New file.
10203         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
10204         Remove brandred-fma4.
10205         (CFLAGS-brandred-fma4.c): Remove.
10206         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
10207         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
10208         define.
10209         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
10210         define.
10211
10212 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
10213
10214         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
10215         LLONG_MAX != LONG_MAX.
10216         (_itoa_word): Use _ITOA_WORD_TYPE on value.
10217         (_fitoa_word): Likewise.
10218         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
10219         LLONG_MAX != LONG_MAX.
10220         * stdio-common/_itowa.h: Include <_itoa.h>.
10221         (_itowa_word): Use _ITOA_WORD_TYPE on value.
10222         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
10223         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
10224         only if not defined.
10225         (_ITOA_WORD_TYPE): Likewise.
10226         (_itoa_word): Use _ITOA_WORD_TYPE on value.
10227         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
10228
10229 2012-03-21  David S. Miller  <davem@davemloft.net>
10230
10231         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10232
10233 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
10234
10235         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
10236         of x86_64 when setting libc_cv_slibdir, libdir and
10237         libc_cv_localedir.
10238         * sysdeps/unix/sysv/linux/configure: Regenerated.
10239
10240 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
10241
10242         * manual/lang.texi (Old Varargs): Remove section.
10243         (How Variadic): Update menu.
10244         (va_start): Do not mention varargs.h.
10245
10246 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
10247             Joseph Myers  <joseph@codesourcery.com>
10248
10249         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
10250         link test.
10251         * configure: Regenerated.
10252
10253 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
10254
10255         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
10256         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
10257         conformtest.pl
10258
10259 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
10260
10261         * NOTES: Remove.
10262         * Makefile (files-for-dist): Remove NOTES.
10263         (NOTES): Remove rule.
10264         * README: Don't refer to NOTES.
10265         * manual/creature.texi: Don't include macros.texi.
10266         * manual/intro.texi (creature.texi): Remove comment referring to
10267         NOTES.
10268
10269         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
10270         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
10271         * configure: Regenerated.
10272         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
10273         LIBC_TRY_CC_OPTION.
10274         (libc_cv_as_i686): Likewise.
10275         (libc_cv_cc_avx): Likewise.
10276         (libc_cv_cc_sse2avx): Likewise.
10277         (libc_cv_cc_fma4): Likewise.
10278         (libc_cv_cc_novzeroupper): Likewise.
10279         * sysdeps/i386/configure: Regenerated.
10280
10281         [BZ #13883]
10282         * sysdeps/i386/fpu/s_cexp.S: Remove.
10283         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
10284         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
10285         * math/libm-test.inc (cexp_test): Add more tests.
10286         * sysdeps/i386/fpu/libm-test-ulps: Update.
10287         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10288
10289 2012-03-21  Allan McRae  <allan@archlinux.org>
10290
10291         * timezone/Makefile: Do not install iso3166.tab and zone.tab
10292
10293 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
10294
10295         [BZ #13871]
10296         * math/w_exp2.c: Do not include <float.h>.
10297         (o_threshold, u_threshold): Remove.
10298         (__exp2): Calculate result before checking finiteness and calling
10299         __kernel_standard.
10300         * math/w_exp2f.c: Likewise.
10301         * math/w_exp2l.c: Likewise.
10302         * math/libm-test.inc (exp2_test): Require overflow exception for
10303         1e6 input.
10304
10305         [BZ #3866]
10306         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
10307         range of signed 64-bit integers before using fistpll.  Remove
10308         checks for whether integers fit in mantissa bits.
10309         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
10310         the range of signed 32-bit integers before using fistpl.  Remove
10311         checks for whether integers fit in mantissa bits.
10312         * sysdeps/i386/fpu/e_powl.S (p64): New object.
10313         (__ieee754_powl): Test for y outside the range of signed 64-bit
10314         integers before using fistpll.  Reduce 64-bit values to 63-bit
10315         ones as needed.
10316         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
10317         divide-by-zero is raised for zero to large negative powers.
10318         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
10319         (__ieee754_powl): Test for y outside the range of signed 64-bit
10320         integers before using fistpll.  Reduce 64-bit values to 63-bit
10321         ones as needed.
10322         * math/libm-test.inc (pow_test): Add more tests.
10323
10324 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
10325
10326         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
10327         <stdio-common/_itoa.h>.
10328         * debug/segfault.c: Likewise.
10329         * elf/dl-cache.c: Likewise.
10330         * elf/dl-minimal.c: Likewise.
10331         * elf/dl-misc.c: Likewise.
10332         * elf/dl-sysdep.c: Likewise.
10333         * elf/dl-version.c: Likewise.
10334         * elf/rtld.c: Likewise.
10335         * hurd/hurdsock.c: Likewise.
10336         * hurd/lookup-retry.c: Likewise.
10337         * malloc/malloc.c: Likewise.
10338         * malloc/mtrace.c: Likewise.
10339         * nscd/nscd_getgr_r.c: Likewise.
10340         * nscd/nscd_getpw_r.c: Likewise.
10341         * nscd/nscd_getserv_r.c: Likewise.
10342         * posix/getopt_init.c: Likewise.
10343         * posix/wordexp.c: Likewise.
10344         * stdio-common/_itoa.c: Likewise.
10345         * stdio-common/printf_fphex.c: Likewise.
10346         * stdio-common/vfprintf.c: Likewise.
10347         * string/_strerror.c: Likewise.
10348         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
10349         * sysdeps/i386/i686/hp-timing.h: Likewise.
10350         * sysdeps/mach/_strerror.c: Likewise.
10351         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
10352         * sysdeps/mach/hurd/sethostid.c: Likewise.
10353         * sysdeps/mach/hurd/xmknodat.c: Likewise.
10354         * sysdeps/mach/xpg-strerror.c: Likewise.
10355         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
10356         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
10357         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
10358         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
10359         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
10360         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
10361         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
10362         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
10363         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
10364         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
10365         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
10366         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
10367         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
10368         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
10369         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
10370         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
10371         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
10372         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
10373         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
10374         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
10375         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
10376
10377         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
10378
10379         * stdio-common/_itoa.h: Moved to ...
10380         * sysdeps/generic/_itoa.h: Here.
10381
10382         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
10383
10384         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
10385         instead of "_itoa.h" and "_itowa.h".
10386         * stdio-common/vfprintf.: Likewise.
10387
10388 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
10389
10390         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
10391         <bits/wordsize.h>.
10392         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
10393         (__signbit): Likwise.
10394         (llrintf): Likwise.
10395         (llrint): Likwise.
10396
10397 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
10398
10399         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
10400         __WORDSIZE != 64.
10401
10402 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
10403
10404         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
10405         OVERFLOW_EXCEPTION_OK.
10406         * math/libm-test.inc ("Philosophy"): Update comment about
10407         exception testing.
10408         (OVERFLOW_EXCEPTION): Define.
10409         (OVERFLOW_EXCEPTION_OK): Likewise.
10410         (INVALID_EXCEPTION_OK): Renumber.
10411         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
10412         (IGNORE_ZERO_INF_SIGN): Likewise.
10413         (test_exceptions): Handle FE_OVERFLOW.
10414         (exp10_test): Expect overflow exceptions.
10415         (exp2_test): Likewise.
10416         (expm1_test): Likewise.
10417         (nextafter_test): Likewise.
10418         (pow_test): Likewise.
10419         (scalbn_test): Likewise.
10420         (scalbln_test): Likewise.
10421
10422 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10423
10424         * sysdeps/x86_64/bits/atomic.h
10425         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
10426         64bit integer.
10427         (atomic_exchange_acq): Likewise.
10428         (__arch_exchange_and_add_body): Likewise.
10429         (__arch_add_body): Likewise.
10430         (atomic_add_negative): Likewise.
10431         (atomic_add_zero): Likewise.
10432
10433 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10434
10435         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
10436         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
10437
10438 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10439
10440         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
10441         Check __x86_64__ instead of __WORDSIZE.
10442
10443 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10444
10445         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
10446
10447 2012-03-19  David S. Miller  <davem@davemloft.net>
10448
10449         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10450
10451         * sysdeps/sparc/fpu/fenv_private.h: New file.
10452         * sysdeps/sparc/fpu/math_private.h: Use it.
10453         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
10454         Remove.
10455         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
10456         (libc_feholdexcept_setroundl): Remove.
10457         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
10458         Remove.
10459         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
10460         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
10461
10462 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10463
10464         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
10465         int64_t instead of long int.
10466         (INSERT_WORDS64): Likwise.
10467
10468 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10469
10470         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
10471         _Unwind_GetCFA return to _Unwind_Ptr first.
10472
10473 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
10474
10475         [BZ #13629]
10476         * math/s_clog.c: Include <float.h>.
10477         (__clog): Scale large or subnormal inputs.
10478         * math/s_clogf.c: Likewise.
10479         * math/s_clogl.c: Likewise.
10480         * math/s_clog10.c: Include <float.h>.
10481         (M_LOG10_2): Define.
10482         (__clog10): Scale large or subnormal inputs.
10483         * math/s_clog10f.c: Likewise.
10484         * math/s_clog10l.c: Likewise.
10485         * math/libm-test.inc (clog_test): Add more tests.
10486         (clog10_test): Likewise.
10487         * sysdeps/i386/fpu/libm-test-ulps: Update.
10488         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10489
10490         [BZ #11451]
10491         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
10492         x and y.
10493         * math/libm-test.inc (atan2_test): Add another test.
10494
10495         * Makerules (common-objdir-compile): Remove.
10496         * sysdeps/unix/Makefile (config-generated): Do not add
10497         $(unix-generated) to variable.
10498         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
10499         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
10500         Remove rule.
10501         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
10502         Likewise.
10503         [generic bits/local_lim.h] (before-compile): Do not append to
10504         variable.
10505         [generic bits/local_lim.h] (common-generated): Likewise.
10506         [generic sys/param.h] (before-compile): Do not append to variable.
10507         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
10508         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
10509         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
10510         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
10511         include.
10512         [generic sys/param.h] (sys/param.h-includes): Remove variable.
10513         [generic sys/param.h] (sys/param.h-includes): Remove rule.
10514         [generic sys/param.h] ($(addprefix
10515         $(common-objpfx),$(sys/param.h-includes))): Likewise.
10516         [generic sys/param.h] (common-generated): Do not append to
10517         variable.
10518         [generic sys/param.h] (sysdep_headers): Likewise.
10519         [generic bits/errno.h] (before-compile): Do not append to
10520         variable.
10521         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
10522         rule.
10523         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
10524         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
10525         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
10526         [generic bits/errno.h] (common-generated): Do not append to
10527         variable.
10528         [generic bits/ioctls.h] (before-compile): Do not append to
10529         variable.
10530         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
10531         rule.
10532         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
10533         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
10534         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
10535         rule.
10536         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
10537         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
10538         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
10539         [generic bits/ioctls.h] (common-generated): Do not append to
10540         variable.
10541         [generic sys/syscall.h] (syscall.h): Remove variable.
10542         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
10543         rule.
10544         [generic sys/syscall.h] (before-compile): Do not append to
10545         variable.
10546         [generic sys/syscall.h] (common-generated): Likewise.
10547         * sysdeps/unix/errnos-tmpl.c: Remove file.
10548         * sysdeps/unix/errnos.awk: Likewise.
10549         * sysdeps/unix/ioctls-tmpl.c: Likewise.
10550         * sysdeps/unix/ioctls.awk: Likewise.
10551         * sysdeps/unix/mk-local_lim.c: Likewise.
10552         * sysdeps/unix/snarf-ioctls: Likewise.
10553
10554 2012-03-19  Richard Henderson  <rth@twiddle.net>
10555
10556         * sysdeps/i386/fpu/fenv_private.h: New file.
10557         * sysdeps/i386/fpu/math_private.h: Use it.
10558         (math_opt_barrier, math_force_eval): Remove.
10559         (libc_feholdexcept_setround_53bit): Remove.
10560         (libc_feupdateenv_53bit): Remove.
10561         * sysdeps/x86_64/fpu/math_private.h: Likewise.
10562         (math_opt_barrier, math_force_eval): Remove.
10563         (libc_feholdexcept): Remove.
10564         (libc_feholdexcept_setround): Remove.
10565         (libc_fetestexcept, libc_fesetenv): Remove.
10566         (libc_feupdateenv_test): Remove.
10567         (libc_feupdateenv, libc_feholdsetround): Remove.
10568         (libc_feresetround): Remove.
10569
10570         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
10571         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
10572
10573         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
10574         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
10575         (libc_feupdateenv_testl): New.
10576         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
10577         (libc_feupdateenv_testf): New.
10578         (libc_feupdateenv): Use libc_feupdateenv_test.
10579         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
10580         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
10581
10582         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
10583         (libc_feholdsetroundf, libc_feholdsetroundl): New.
10584         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
10585         (libc_feresetround_noex): New.
10586         (libc_feresetround_noexf): New.
10587         (libc_feresetround_noexl): New.
10588         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
10589         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
10590         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
10591         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
10592         SET_RESTORE_ROUND.
10593         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
10594         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
10595         (__cos): Likewise.
10596         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
10597         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
10598         SET_RESTORE_ROUND_NOEX.
10599         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
10600         SET_RESTORE_ROUND_NOEXF.
10601         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
10602         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
10603         (libc_feholdsetroundf): New.
10604         (libc_feresetround, libc_feresetroundf): New.
10605
10606         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
10607         (libc_feholdexcept_setround_53bit): Convert from macro to function.
10608         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
10609
10610         * sysdeps/generic/math_private.h: Include <fenv.h>.
10611         (default_libc_feholdexcept): New.
10612         (default_libc_feholdexcept_setround): New.
10613         (default_libc_fesetenv, default_libc_feupdateenv): New.
10614         (libc_feholdexcept): Only define if undefined.
10615         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
10616         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
10617         (libc_feholdexcept_setroundl): Likewise.
10618         (libc_feholdexcept_setround_53bit): Likewise.
10619         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
10620         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
10621         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
10622         (libc_feupdateenv_53bit): Likewise.
10623         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
10624         (libc_feholdexcept): Convert from macro to inline function.
10625         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
10626         (libc_fesetenv, libc_feupdateenv): Likewise.
10627
10628         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
10629         not previously defined.
10630         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
10631         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
10632         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
10633         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
10634         * sysdeps/ieee754/flt-32/math_private.h: New file.
10635         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
10636         math_private.h below SET_FLOAT_WORD.
10637         (__isnan, __isinf_ns, __finite): Remove.
10638         (__isnanf, __isinf_nsf, __finitef): Remove.
10639
10640 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
10641
10642         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10643
10644 2012-03-17  David S. Miller  <davem@davemloft.net>
10645
10646         [BZ #6471]
10647         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
10648         for 2.16.
10649
10650 2012-03-16  David S. Miller  <davem@davemloft.net>
10651
10652         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
10653         warnings.
10654
10655         [BZ #6471]
10656         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
10657         properly.
10658         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
10659         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
10660         sysdep_routines when subdir is sysvipc.
10661         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
10662         __getshmlba helper.
10663
10664         * sysdeps/sparc/fpu/libm-test/ulps: Update.
10665
10666 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10667
10668         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
10669         [__LP64__].
10670
10671 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10672
10673         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
10674         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
10675         (__lround): Renamed to ...
10676         (__llround): This.  Replace long int with long long int.
10677         Define lround functions as aliases of llround functions.
10678         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
10679
10680 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10681
10682         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
10683         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
10684         adresses to uintptr_t.  Replace "long int" and "unsigned long
10685         int" with "greg_t" on va_arg.
10686
10687 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10688
10689         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
10690         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
10691
10692         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
10693         Move e_machine check before EI_CLASS check.  Handle x32
10694         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
10695         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
10696         SKIP_EM_IA_64 and include
10697         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
10698
10699         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
10700         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
10701         (add_system_dir): New macro.
10702
10703         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
10704         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
10705
10706 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
10707
10708         [BZ #2551]
10709         [BZ #2552]
10710         [BZ #2553]
10711         [BZ #2554]
10712         [BZ #2562]
10713         [BZ #2563]
10714         [BZ #2565]
10715         [BZ #2566]
10716         [BZ #2576]
10717         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
10718         (y0): Likewise.
10719         * math/w_j0f.c (j0f): Likewise.
10720         (y0f): Likewise.
10721         * math/w_j0l.c (__j0l): Likewise.
10722         (__y0l): Likewise.
10723         * math/w_j1.c (j1): Likewise.
10724         (y1): Likewise.
10725         * math/w_j1f.c (j1f): Likewise.
10726         (y1f): Likewise.
10727         * math/w_j1l.c (__j1l): Likewise.
10728         (__y1l): Likewise.
10729         * math/w_jn.c (jn): Likewise.
10730         (yn): Likewise.
10731         * math/w_jnf.c (jnf): Likewise.
10732         (ynf): Likewise.
10733         * math/w_jnl.c (__jnl): Likewise.
10734         (__ynl): Likewise.
10735         * math/libm-test.inc (j0_test): Add more tests.
10736         (j1_test): Likewise.
10737         (jn_test): Likewise.  Add trailing semicolon to existing test.
10738         (y0_test): Likewise.
10739         (y1_test): Likewise.
10740         * sysdeps/i386/fpu/libm-test-ulps: Update.
10741         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10742
10743         [BZ #13851]
10744         [BZ #13854]
10745         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
10746         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
10747         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
10748         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
10749         (__tanl): Set errno for infinite argument.
10750         * sysdeps/i386/fpu/mptan.c: Remove.
10751         * sysdeps/i386/fpu/s_tan.S: Likewise.
10752         * sysdeps/i386/fpu/s_tanl.S: Likewise.
10753         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
10754         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
10755         * math/libm-test.inc (tan_test): Add more tests and enable more
10756         tests for double and long double.
10757         * sysdeps/i386/fpu/libm-test-ulps: Update.
10758         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10759
10760 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
10761
10762         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
10763         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
10764
10765 2012-03-16  Roland McGrath  <roland@hack.frob.com>
10766
10767         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
10768         * configure.in: Use it for both main tree and add-ons.
10769         * configure: Regenerated.
10770
10771 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10772
10773         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
10774
10775 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
10776
10777         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
10778         in comment.
10779
10780         [BZ #13851]
10781         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
10782         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
10783         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
10784         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
10785         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
10786         infinite argument.
10787         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
10788         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
10789         != 0 for prec == 2.
10790         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
10791         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
10792         * sysdeps/i386/fpu/s_cosl.S: Likewise.
10793         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
10794         * sysdeps/i386/fpu/s_sinl.S: Likewise.
10795         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
10796         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
10797         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
10798         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
10799         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
10800         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
10801         * math/libm-test.inc (cos_test): Add more tests and enable more
10802         tests for long double.
10803         (sin_test): Likewise.
10804         (sincos_test): Likewise.
10805         * sysdeps/i386/fpu/libm-test-ulps: Update.
10806         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10807
10808 2012-03-16  David S. Miller  <davem@davemloft.net>
10809
10810         * sysdeps/sparc/fpu/math_private.h: New file.
10811
10812 2012-03-15  David S. Miller  <davem@davemloft.net>
10813
10814         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
10815         file.
10816         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
10817         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
10818         file.
10819         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
10820         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
10821         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
10822         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
10823         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
10824         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
10825         sysdep routines.
10826         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
10827
10828         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
10829         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
10830
10831         * sysdeps/sparc/sparc-ifunc.h: New file.
10832         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
10833         sparc-ifunc.h
10834         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
10835         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
10836         Likewise.
10837         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
10838         Likewise.
10839         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
10840         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
10841         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
10842         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
10843         Likewise.
10844         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
10845         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
10846         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
10847         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
10848         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
10849         Likewise.
10850         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
10851         Likewise.
10852         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
10853         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
10854         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
10855         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
10856         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
10857         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
10858         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
10859         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
10860         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
10861         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
10862         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
10863         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
10864         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
10865         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
10866         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
10867         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
10868         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
10869         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
10870         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
10871         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
10872         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
10873         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
10874         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
10875         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
10876
10877 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
10878
10879         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
10880         scaling.
10881         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10882
10883 2012-03-15  Andreas Jaeger  <aj@suse.de>
10884
10885         [BZ #13852]
10886         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
10887         ieee754/flt-32 implementation for sin, cos and sincos.
10888         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
10889         * sysdeps/i386/fpu/s_cosf.S: Likewise.
10890         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
10891         * sysdeps/i386/fpu/s_sinf.S: Likewise.
10892         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
10893         ieee754/flt-32 implementation for tan.
10894
10895         * math/libm-test.inc (cos_test): Enable some large input tests for
10896         float as well
10897         (sin_test): Likewise.
10898         (sincos_test): Likewise.
10899         (tan_test): Add tests for large input.
10900
10901         * sysdeps/i386/fpu/libm-test-ulps: Update.
10902
10903 2012-03-15  Andreas Jaeger  <aj@suse.de>
10904
10905         [BZ #13658]
10906         * math/libm-test.inc (cos_test): Add more test cases.
10907         (sin_test): Likewise.
10908         (sincos_test): Likewise.
10909
10910 2012-03-15  Andreas Jaeger  <aj@suse.de>
10911
10912         [BZ #13837]
10913         * math/libm-test.inc (cos_test): Add a test case for large input
10914         value.
10915         (sin_test): Likewise.
10916         (sincos_test): Likewise.
10917
10918 2012-03-15  Andreas Jaeger  <aj@suse.de>,
10919         Joseph Myers  <joseph@codesourcery.com>
10920
10921         [BZ #13658]
10922         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
10923         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
10924         * sysdeps/i386/fpu/branred.c: Likewise.
10925         * sysdeps/i386/fpu/dosincos.c: Likewise.
10926         * sysdeps/i386/fpu/mpa.c: Likewise.
10927         * sysdeps/i386/fpu/s_cos.S: Likewise.
10928         * sysdeps/i386/fpu/s_sin.S: Likewise.
10929         * sysdeps/i386/fpu/s_sincos.S: Likewise.
10930         * sysdeps/i386/fpu/sincos32.c: Likewise.
10931
10932         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
10933         Define.
10934         (libc_feupdateenv_53bit): Define.
10935         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
10936         Define.
10937         (libc_feupdateenv_53bit): Define.
10938
10939         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
10940         53 bit (without extend i386 double precision).
10941
10942         * math/libm-test.inc (sincos_test): Add tests for large input.
10943         (sin): Likewise.
10944         (cos): Likewise.
10945
10946         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
10947
10948 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
10949
10950         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10951
10952 2012-03-15  David S. Miller  <davem@davemloft.net>
10953
10954         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
10955         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
10956         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
10957         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
10958         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
10959         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
10960         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
10961         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
10962         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
10963         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
10964         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
10965         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
10966         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
10967         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
10968         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
10969         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
10970         file.
10971         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
10972         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
10973         file.
10974         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
10975         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
10976         file.
10977         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
10978         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
10979         file.
10980         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
10981         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
10982         fmin/fmax sysdep routines.
10983         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
10984
10985 2012-03-14  David S. Miller  <davem@davemloft.net>
10986
10987         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
10988         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
10989         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
10990         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
10991         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
10992         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
10993         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
10994         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
10995         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
10996         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
10997         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
10998         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
10999         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
11000         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
11001         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
11002         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
11003         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
11004         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
11005         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
11006         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
11007         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
11008         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
11009         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
11010         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
11011         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
11012         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
11013         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
11014         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
11015         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
11016         routines.
11017         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
11018         file.
11019         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
11020         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
11021         file.
11022         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
11023         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
11024         file.
11025         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
11026         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
11027         file.
11028         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
11029         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
11030         file.
11031         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
11032         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
11033         file.
11034         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
11035         file.
11036         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
11037         file.
11038         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
11039         file.
11040         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
11041         New file.
11042         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
11043         file.
11044         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
11045         file.
11046         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
11047         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
11048         file.
11049         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
11050         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
11051         file.
11052         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
11053         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
11054         file.
11055         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
11056         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
11057         VIS3 routines.
11058
11059         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
11060         New file.
11061
11062         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11063
11064         * sysdeps/sparc/configure.in: New file.
11065         * sysdeps/sparc/configure: Generate.
11066         * configure.in (libc_cv_sparc_as_vis3): Substitute.
11067         * configure: Regenerate.
11068         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
11069         * config.make.in (have-as-vis3): New.
11070         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
11071         available use -Av9d instead of -Av9a.
11072         * sysdeps/sparc/sparc64/Makefile: Likewise.
11073         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
11074         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
11075         New file.
11076         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
11077         file.
11078         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
11079         New file.
11080         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
11081         file.
11082         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
11083         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
11084         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
11085         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
11086         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
11087
11088         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
11089         fzeros/fnegs to load 0x80000000 into a float register instead of
11090         using the stack.
11091         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
11092
11093 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
11094
11095         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11096         bits/syscall.h.
11097         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
11098         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
11099         ($(inst_includedir)/bits/syscall.h): Remove rule.
11100         ($(objpfx)bits/syscall.d): Include instead of
11101         $(objpfx)syscall-list.d.
11102         (generated): Change syscall-list.h and syscall-list.d to
11103         bits/syscall.h and bits/syscall.d.
11104
11105 2012-03-14  Roland McGrath  <roland@hack.frob.com>
11106
11107         [BZ #13846]
11108         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
11109
11110 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
11111
11112         [BZ #13841]
11113         * math/s_csqrt.c: Include <float.h>.
11114         (__csqrt): Scale large or subnormal inputs.
11115         * math/s_csqrtf.c: Likewise.
11116         * math/s_csqrtl.c: Likewise.
11117         * math/libm-test.inc (csqrt_test): Add more tests.
11118         * sysdeps/i386/fpu/libm-test-ulps: Update.
11119         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11120
11121         [BZ #13840]
11122         * math/libm-test.inc (hypot_test): Add more tests.
11123
11124 2012-03-13  David S. Miller  <davem@davemloft.net>
11125
11126         [BZ #13840]
11127         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
11128         double-precision for the calculation instead of scaling.
11129
11130 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
11131
11132         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
11133         manipulate bits before adding and subtracting TWO52[sx].
11134         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
11135         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
11136         Likewise.
11137         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
11138
11139 2012-03-13  David S. Miller  <davem@davemloft.net>
11140
11141         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
11142         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
11143         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
11144         rtld-global-offsets.h
11145         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
11146
11147         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
11148         large parameters.
11149
11150         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
11151
11152         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
11153         'err' in the ifdef scope in which it is actually used.
11154
11155         * nss/nss_db/db-init.c: Include string.h
11156
11157 2012-03-12  David S. Miller  <davem@davemloft.net>
11158
11159         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
11160         masking out of the most significant byte of random value used.
11161         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
11162         Fix coding style in previous change.
11163
11164         * sysdeps/unix/sysv/linux/kernel-features.h
11165         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
11166         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
11167         expression.
11168         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
11169         later.
11170
11171 2012-03-11  David S. Miller  <davem@davemloft.net>
11172
11173         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
11174         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
11175         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
11176         for 'resultvar' otherwise things get truncated on 64-bit.
11177
11178         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
11179         Fix masking out of the most significant byte of random value used.
11180
11181         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11182
11183 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
11184
11185         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11186
11187 2012-03-09  David S. Miller  <davem@davemloft.net>
11188
11189         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
11190         variables with appropriate CPP guards.
11191         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
11192         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
11193         on resulting framesize and the management of the outregs buffer for pltexit.
11194         Preserve floating point return values across _dl_call_pltexit call.
11195         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
11196         framesize and the management of the outregs buffer for pltexit.
11197         Preserve floating point return values across _dl_call_pltexit
11198         call.
11199         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
11200         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
11201         (print_exit): Fix format string for return register value.
11202
11203 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
11204
11205         * sunrpc/Makefile (others): Add rpcgen.
11206         ($(objpfx)rpcgen): Remove special build rule and dependency on
11207         libc.
11208         * sunrpc/rpcgen.c: New file.
11209
11210 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
11211
11212         [BZ #13673]
11213         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
11214         * stdio-common/bug-vfprintf-nargs.c: Likewise.
11215         * sysdeps/i386/crti.S: Likewise.
11216         * sysdeps/i386/crtn.S: Likewise.
11217         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
11218         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
11219         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
11220         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
11221         * sysdeps/sh/crti.S: Likewise.
11222         * sysdeps/sh/crtn.S: Likewise.
11223         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
11224
11225         [BZ #13673]
11226         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
11227         with URL.
11228         * locale/programs/locfile-kw.gperf: Likewise.
11229         * locale/programs/charmap-kw.h: Regenerated.
11230         * locale/programs/locfile-kw.h: Likewise.
11231
11232         [BZ #13673]
11233         * intl/plural.y: Replace FSF snail mail address with URL.
11234         * intl/plural.c: Regenerated.
11235
11236 2012-03-09  Richard Henderson  <rth@twiddle.net>
11237
11238         * include/math_private.h: Remove file.
11239         * math/math_private.h: Move file ...
11240         * sysdeps/generic/math_private.h: ... here.
11241
11242         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
11243         * sysdeps/powerpc/fpu/math_private.h: Likewise.
11244         * sysdeps/x86_64/fpu/math_private.h: Likewise.
11245
11246         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
11247         and <math_private.h>.
11248         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
11249         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
11250         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
11251         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
11252         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
11253         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
11254         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
11255         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
11256         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
11257         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
11258         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
11259         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
11260         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
11261         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
11262         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
11263         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
11264         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
11265         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
11266         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
11267         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
11268         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
11269         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
11270         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
11271         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
11272         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
11273         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
11274         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
11275         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
11276         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
11277         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
11278         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
11279         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
11280         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
11281         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
11282         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
11283         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
11284         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
11285         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
11286         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
11287         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
11288         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
11289         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
11290         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
11291         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
11292         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
11293         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
11294         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
11295         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
11296         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
11297         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
11298         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
11299         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
11300         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
11301         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
11302         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
11303         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
11304         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
11305         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
11306         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
11307         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
11308         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
11309         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
11310         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
11311         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
11312         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
11313         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
11314         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
11315         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
11316         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
11317         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
11318         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
11319         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
11320         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
11321         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
11322         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
11323         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
11324         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
11325         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
11326         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
11327         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
11328         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
11329         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
11330         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
11331         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
11332         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
11333         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
11334         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
11335         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
11336         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
11337         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
11338         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
11339         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
11340         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
11341         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
11342         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
11343         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
11344         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
11345         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
11346         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
11347         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
11348         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
11349         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
11350         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
11351         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
11352         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
11353         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
11354         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
11355         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
11356         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
11357         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
11358         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
11359         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
11360         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
11361         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
11362         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
11363         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
11364         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
11365         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
11366         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
11367         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
11368         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
11369         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
11370         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
11371         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
11372         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
11373         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
11374         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
11375         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
11376         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
11377         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
11378         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
11379         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
11380         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
11381         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
11382         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
11383         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
11384         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
11385         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
11386         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
11387         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
11388         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
11389         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
11390         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
11391         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
11392         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
11393         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
11394         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
11395         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
11396         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
11397         * sysdeps/ieee754/k_standard.c: Likewise.
11398         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
11399         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
11400         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
11401         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
11402         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
11403         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
11404         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
11405         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
11406         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
11407         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
11408         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
11409         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
11410         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
11411         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
11412         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
11413         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
11414         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
11415         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
11416         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
11417         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
11418         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
11419         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
11420         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
11421         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
11422         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
11423         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
11424         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
11425         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
11426         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
11427         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
11428         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
11429         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
11430         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
11431         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
11432         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
11433         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
11434         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
11435         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
11436         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
11437         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
11438         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
11439         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
11440         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
11441         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
11442         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
11443         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
11444         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
11445         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
11446         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
11447         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
11448         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
11449         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
11450         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
11451         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
11452         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
11453         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
11454         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
11455         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
11456         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
11457         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
11458         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
11459         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
11460         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
11461         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
11462         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
11463         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
11464         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
11465         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
11466         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
11467         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
11468         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
11469         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
11470         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
11471         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
11472         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
11473         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
11474         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
11475         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
11476         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
11477         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
11478         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
11479         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
11480         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
11481         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
11482         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
11483         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
11484         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
11485         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
11486         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
11487         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
11488         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
11489         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
11490         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
11491         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
11492         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
11493         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
11494         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
11495         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
11496         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
11497         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
11498         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
11499         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
11500         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
11501         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
11502         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
11503         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
11504         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
11505         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
11506         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
11507         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
11508         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
11509         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
11510         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
11511         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
11512         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
11513         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
11514         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
11515         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
11516         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
11517         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
11518         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
11519         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
11520         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
11521         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
11522         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
11523         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
11524         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
11525         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
11526         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
11527         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
11528         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
11529         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
11530         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
11531         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
11532         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
11533         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
11534         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
11535         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
11536         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
11537         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
11538         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
11539         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
11540         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
11541         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
11542         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
11543         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
11544         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
11545         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
11546         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
11547         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
11548         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
11549         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
11550         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
11551         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
11552         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
11553         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
11554         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
11555         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
11556         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
11557         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
11558         * sysdeps/ieee754/s_lib_version.c: Likewise.
11559         * sysdeps/ieee754/s_matherr.c: Likewise.
11560         * sysdeps/ieee754/s_signgam.c: Likewise.
11561         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
11562         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
11563         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
11564         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
11565         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
11566         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
11567         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
11568         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
11569         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
11570         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
11571         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
11572         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
11573         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
11574         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
11575         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
11576         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
11577         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
11578         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
11579         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
11580         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
11581         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
11582
11583 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
11584
11585         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
11586         * sunrpc/rpc_main.c: Likewise.
11587         * sunrpc/rpc_svcout.c: Likewise.
11588
11589 2012-03-09  David S. Miller  <davem@davemloft.net>
11590
11591         * include/math_private.h: New file.
11592
11593 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
11594
11595         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
11596         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
11597         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
11598         from <bits/socket_type.h>.
11599         (enum __socket_type): Don't define here.
11600         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
11601         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11602         bits/socket_type.h.
11603
11604         [BZ #13566]
11605         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
11606         checking __USE_GNU.
11607
11608         * Makerules ($(inst_includedir)/%.h): New rule.
11609         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
11610         (install-others): Remove variable setting.
11611         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
11612
11613 2012-03-08  Richard Henderson  <rth@twiddle.net>
11614
11615         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
11616         from macro to inline function; merge with the
11617         !__LIBC_INTERNAL_MATH_INLINES version.
11618         (__ieee754_sqrtf): Likewise.
11619
11620         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
11621         to inline function.
11622         (__rintf, __floor, __floorf): Likewise.
11623
11624         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
11625         macro to inline function.
11626         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
11627
11628         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
11629         not <math/math_private.h>.
11630
11631 2012-03-08  David S. Miller  <davem@davemloft.net>
11632
11633         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
11634         copyright year.
11635         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
11636
11637 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
11638
11639         * resolv/gai_misc.c (handle_requests): Fix struct timespec
11640         normalization.
11641         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
11642         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
11643
11644 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
11645
11646         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
11647         be defined individually, they must be defined as a block.  Define
11648         S for printing a string instead of hidint the different by using a
11649         macro for adding the 'l'.
11650         * stdio-common/tst-fphex-wide.c: Adjust.
11651
11652 2012-03-07  Marek Polacek  <polacek@redhat.com>
11653
11654         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
11655
11656 2012-03-08  Marek Polacek  <polacek@redhat.com>
11657
11658         [BZ #13806]
11659         * stdio-common/Makefile (tests): Add tst-fphex-wide.
11660         * stdio-common/tst-fphex.c: Define a few macros to make the
11661         test reusable.  Use them.
11662         * stdio-common/tst-fphex-wide.c: New file.
11663
11664 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
11665
11666         [BZ #6911]
11667         * manual/macros.texi (gnusystems): New macro.
11668         (nongnusystems): Likewise.
11669         (gnulinuxhurdsystems): Likewise.
11670         (gnuhurdsystems): Likewise..
11671         (gnulinuxsystems): Likewise.
11672         * manual/charset.texi: Use new macros or @theglibc{} to refer to
11673         variants of the GNU system, not "GNU system".
11674         * manual/conf.texi: Likewise.
11675         * manual/errno.texi: Likewise.  Update example of errno macro
11676         expansion.
11677         * manual/filesys.texi: Likewise.
11678         (getumask): Document as specific to GNU/Hurd.
11679         * manual/install.texi: Likewise.  Reword some references to
11680         GNU/Linux.
11681         * manual/intro.texi: Likewise.
11682         * manual/io.texi: Likewise.
11683         (File Name Portability): Detail which constraints are inapplicable
11684         to all GNU systems and which are only inapplicable to GNU/Hurd.
11685         * manual/job.texi: Likewise.
11686         * manual/llio.texi: Likewise.
11687         (O_NOCTTY): Document as present on GNU/Linux.
11688         * manual/maint.texi: Likewise.
11689         * manual/memory.texi: Likewise.
11690         * manual/pattern.texi: Likewise.
11691         * manual/pipe.texi: Likewise.
11692         * manual/process.texi: Likewise.
11693         * manual/resource.texi: Likewise.
11694         (RUSAGE_CHILDREN): Remove statement about specifying a particular
11695         child on GNU/Hurd.
11696         * manual/setjmp.texi: Likewise.
11697         * manual/signal.texi: Likewise.
11698         * manual/startup.texi: Likewise.
11699         * manual/stdio.texi: Likewise.
11700         * manual/terminal.texi: Likewise.
11701         (ONLCR): Document as POSIX.
11702         (OXTABS): Document availability on GNU/Linux as XTABS.
11703         (ONOEOT): Document availability separately from other bits.
11704         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
11705         * manual/time.texi: Likewise.
11706         * manual/users.texi: Likewise.
11707         * INSTALL: Regenerated.
11708         * sysdeps/gnu/errlist.c: Regenerated.
11709
11710         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
11711         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
11712         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
11713         puts.
11714         * configure: Regenerated.
11715
11716 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
11717
11718         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
11719         default includes instead of AC_HEADER_CHECK.
11720         * sysdeps/i386/configure: Regenerated.
11721
11722         [BZ #10716]
11723         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
11724         * math/s_cacoshf.c (__cacoshf): Likewise.
11725         * math/s_cacoshl.c (__cacoshl): Likewise.
11726         * math/s_casinh.c (__casinh): Set signs of result from argument.
11727         * math/s_casinhf.c (__casinhf): Likewise.
11728         * math/s_casinhl.c (__casinhl): Likewise.
11729         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
11730         (casinh_test): Add more tests.
11731         * sysdeps/i386/fpu/libm-test-ulps: Update.
11732         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11733
11734 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
11735
11736         * po/zh_TW.po: Update from translation team.
11737
11738         * login/Makefile (distribute): Remove variable.
11739         * catgets/Makefile: Likewise.
11740         * mach/Makefile: Likewise.
11741         * malloc/Makefile: Likewise.
11742         * misc/Makefile: Likewise.
11743         * iconv/Makefile: Likewise.
11744         * nscd/Makefile: Likewise.
11745         * hurd/Makefile: Likewise.
11746         * manual/Makefile: Likewise.
11747         * locale/Makefile: Likewise.
11748         * intl/Makefile: Likewise.
11749         * conform/Makefile: Likewise.
11750         * nss/Makefile: Likewise.
11751         * time/Makefile: Likewise.
11752         * soft-fp/Makefile: Likewise.
11753         * dirent/Makefile: Likewise.
11754         * gmon/Makefile: Likewise.
11755         * po/Makefile: Likewise.
11756         * rt/Makefile: Likewise.
11757         * socket/Makefile: Likewise.
11758         * math/Makefile: Likewise.
11759         * signal/Makefile: Likewise.
11760         * debug/Makefile: Likewise.
11761         * elf/Makefile: Likewise.
11762         * timezone/Makefile: Likewise.
11763         * stdlib/Makefile: Likewise.
11764         * iconvdata/Makefile: Likewise.
11765         * sunrpc/Makefile: Likewise.
11766         * io/Makefile: Likewise.
11767         * argp/Makefile: Likewise.
11768         * inet/Makefile: Likewise.
11769         * hesiod/Makefile: Likewise.
11770         * grp/Makefile: Likewise.
11771         * csu/Makefile: Likewise.
11772         * wctype/Makefile: Likewise.
11773         * crypt/Makefile: Likewise.
11774         * libio/Makefile: Likewise.
11775         * string/Makefile: Likewise.
11776         * nis/Makefile: Likewise.
11777         * resolv/Makefile: Likewise.
11778         * stdio-common/Makefile: Likewise.
11779         * wcsmbs/Makefile: Likewise.
11780         * dlfcn/Makefile: Likewise.
11781         * posix/Makefile: Likewise.
11782
11783         [BZ #6959]
11784         * timezone/Makefile: Don't install timezone files, just the programs
11785         and scripts.
11786
11787 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
11788
11789         * nss/databases.def: Add missing gshadow entry.
11790
11791         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
11792
11793 2012-03-06  Marek Polacek  <polacek@redhat.com>
11794
11795         [BZ #13726]
11796         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
11797         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
11798         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
11799         * stdio-common/tst-long-dbl-fphex.c: New file.
11800
11801 2012-03-06  David S. Miller  <davem@davemloft.net>
11802
11803         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
11804         (set_obp_int): New function.
11805         (get_obp_int): New function.
11806         (__get_clockfreq_via_dev_openprom): Likewise.
11807         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
11808         Avoid unused variable warnings on 'val' and use builtin_expect.
11809         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
11810         __builtin_expect.
11811         (INLINE_CLONE_SYSCALL): Likewise.
11812
11813 2012-03-05  David S. Miller  <davem@davemloft.net>
11814
11815         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11816
11817 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
11818
11819         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11820
11821         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
11822         only for |x| >= 40.
11823         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
11824
11825 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
11826
11827         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
11828         Replace gettimeofday with __vdso_gettimeofday.
11829
11830         * sysdeps/unix/sysv/linux/x86_64/init-first.c
11831         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
11832         __vdso_clock_gettime and __vdso_getcpu.
11833
11834         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
11835         time with __vdso_time.
11836
11837 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
11838
11839         * manual/lang.texi (size_t): Note types to which size_t may be
11840         equivalent with the GNU C Library, but do not describe when
11841         differences between them are significant.
11842
11843 2012-03-05  Andreas Jaeger  <aj@suse.de>
11844
11845         * sysdeps/i386/fpu/libm-test-ulps: Update.
11846
11847 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
11848
11849         [BZ #3976]
11850         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
11851         (__ieee754_pow): Save and restore rounding mode and use
11852         round-to-nearest for main computations.
11853         * math/libm-test.inc (pow_test_tonearest): New function.
11854         (pow_test_towardzero): Likewise.
11855         (pow_test_downward): Likewise.
11856         (pow_test_upward): Likewise.
11857         (main): Call the new functions.
11858         * sysdeps/i386/fpu/libm-test-ulps: Update.
11859         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11860
11861         [BZ #3976]
11862         * math/libm-test.inc (cosh_test_tonearest): New function.
11863         (cosh_test_towardzero): Likewise.
11864         (cosh_test_downward): Likewise.
11865         (cosh_test_upward): Likewise.
11866         (sinh_test_tonearest): Likewise.
11867         (sinh_test_towardzero): Likewise.
11868         (sinh_test_downward): Likewise.
11869         (sinh_test_upward): Likewise.
11870         (main): Call the new functions.
11871         * sysdeps/i386/fpu/libm-test-ulps: Update.
11872         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11873
11874 2012-03-05  Tom de Vries  <tom@codesourcery.com>
11875
11876         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
11877         default stack guard is set in last bytes.
11878         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
11879
11880 2012-03-05  Kees Cook  <keescook@chromium.org>
11881
11882         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
11883
11884         [BZ #13656]
11885         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
11886         possibly allocate from heap instead of stack.
11887         * stdio-common/bug-vfprintf-nargs.c: New file.
11888         * stdio-common/Makefile (tests): Add nargs overflow test.
11889
11890 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
11891
11892         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11893
11894 2012-03-03  Marek Polacek  <polacek@redhat.com>
11895
11896         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
11897         * math/math_private.h: Likewise.
11898         * stdlib/tst-strtod.c: Likewise.
11899         * sysdeps/i386/i486/bits/atomic.h: Likewise.
11900         * sysdeps/x86_64/bits/atomic.h: Likewise.
11901
11902 2012-03-02  David S. Miller  <davem@davemloft.net>
11903
11904         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
11905         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
11906         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
11907         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
11908         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
11909         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
11910         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
11911         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
11912
11913 2012-03-02  Roland McGrath  <roland@hack.frob.com>
11914
11915         [BZ #13792]
11916         * manual/examples/README: New file, says the example source files
11917         can be used under GPL>=2.
11918         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
11919         line containing just "*/".
11920         * manual/examples/add.c: Add copyright header (GPL>=2).
11921         * manual/examples/argp-ex1.c: Likewise.
11922         * manual/examples/argp-ex2.c: Likewise.
11923         * manual/examples/argp-ex3.c: Likewise.
11924         * manual/examples/argp-ex4.c: Likewise.
11925         * manual/examples/atexit.c: Likewise.
11926         * manual/examples/db.c: Likewise.
11927         * manual/examples/dir.c: Likewise.
11928         * manual/examples/dir2.c: Likewise.
11929         * manual/examples/execinfo.c: Likewise.
11930         * manual/examples/filecli.c: Likewise.
11931         * manual/examples/filesrv.c: Likewise.
11932         * manual/examples/fmtmsgexpl.c: Likewise.
11933         * manual/examples/genpass.c: Likewise.
11934         * manual/examples/inetcli.c: Likewise.
11935         * manual/examples/inetsrv.c: Likewise.
11936         * manual/examples/isockad.c: Likewise.
11937         * manual/examples/longopt.c: Likewise.
11938         * manual/examples/memopen.c: Likewise.
11939         * manual/examples/memstrm.c: Likewise.
11940         * manual/examples/mkfsock.c: Likewise.
11941         * manual/examples/mkisock.c: Likewise.
11942         * manual/examples/mygetpass.c: Likewise.
11943         * manual/examples/pipe.c: Likewise.
11944         * manual/examples/popen.c: Likewise.
11945         * manual/examples/rprintf.c: Likewise.
11946         * manual/examples/search.c: Likewise.
11947         * manual/examples/select.c: Likewise.
11948         * manual/examples/setjmp.c: Likewise.
11949         * manual/examples/sigh1.c: Likewise.
11950         * manual/examples/sigusr.c: Likewise.
11951         * manual/examples/stpcpy.c: Likewise.
11952         * manual/examples/strdupa.c: Likewise.
11953         * manual/examples/strftim.c: Likewise.
11954         * manual/examples/strncat.c: Likewise.
11955         * manual/examples/subopt.c: Likewise.
11956         * manual/examples/swapcontext.c: Likewise.
11957         * manual/examples/termios.c: Likewise.
11958         * manual/examples/testopt.c: Likewise.
11959         * manual/examples/testpass.c: Likewise.
11960         * manual/examples/timeval_subtract.c: Likewise.
11961
11962         [BZ #13792]
11963         * manual/time.texi (Elapsed Time): Move timeval_subtract example
11964         function to ...
11965         * manual/timeval_subtract.c.texi: ... here, new file.
11966
11967 2012-03-02  David S. Miller  <davem@davemloft.net>
11968
11969         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
11970
11971 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
11972
11973         [BZ #3976]
11974         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
11975         (__sin): Save and restore rounding mode and use round-to-nearest
11976         for all computations.
11977         (__cos): Save and restore rounding mode and use round-to-nearest
11978         for all computations.
11979         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
11980         <fenv.h>.
11981         (tan): Save and restore rounding mode and use round-to-nearest for
11982         all computations.
11983         * math/libm-test.inc (cos_test_tonearest): New function.
11984         (cos_test_towardzero): Likewise.
11985         (cos_test_downward): Likewise.
11986         (cos_test_upward): Likewise.
11987         (sin_test_tonearest): Likewise.
11988         (sin_test_towardzero): Likewise.
11989         (sin_test_downward): Likewise.
11990         (sin_test_upward): Likewise.
11991         (tan_test_tonearest): Likewise.
11992         (tan_test_towardzero): Likewise.
11993         (tan_test_downward): Likewise.
11994         (tan_test_upward): Likewise.
11995         (main): Call the new functions.
11996         * sysdeps/i386/fpu/libm-test-ulps: Update.
11997         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11998
11999         [BZ #10135]
12000         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
12001         small n, then large n, before computing and testing k+n.
12002         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
12003         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
12004         Likewise.
12005         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
12006         Likewise.
12007         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
12008         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
12009         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
12010         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
12011         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
12012         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
12013         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
12014         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
12015         * math/libm-test.inc (scalbn_test): Add more tests.
12016         (scalbln_test): Likewise.
12017
12018         * manual/filesys.texi (mode_t): Describe constraints on size and
12019         signedness, not exact equivalence to a particular type.
12020         (ino_t): Likewise.
12021         (ino64_t): Likewise.
12022         (dev_t): Likewise.
12023         (nlink_t): Likewise.
12024         (blkcnt_t): Likewise.
12025         (blkcnt64_t): Likewise.
12026         * manual/llio.texi (off_t): Likewise.
12027
12028         [BZ #3976]
12029         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
12030         (__ieee754_exp): Save and restore rounding mode and use
12031         round-to-nearest for all computations.
12032         * math/libm-test.inc (exp_test_tonearest): New function.
12033         (exp_test_towardzero): Likewise.
12034         (exp_test_downward): Likewise.
12035         (exp_test_upward): Likewise.
12036         (main): Call the new functions.
12037         * sysdeps/i386/fpu/libm-test-ulps: Update.
12038         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12039
12040 2012-03-01  Chris Demetriou  <cgd@google.com>
12041
12042         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
12043         have predictable order.
12044
12045 2012-03-01  David S. Miller  <davem@davemloft.net>
12046
12047         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
12048
12049         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
12050         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
12051         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
12052         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
12053
12054         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
12055         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
12056         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
12057         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
12058         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
12059         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
12060         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
12061         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
12062         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
12063
12064         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12065
12066         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
12067         * sysdeps/sparc/fpu/libm-test-ulps: to here.
12068         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
12069
12070         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
12071         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12072         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
12073         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
12074         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
12075         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
12076         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
12077         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12078         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
12079         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
12080         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
12081         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
12082         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
12083         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
12084         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
12085         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
12086         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
12087         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
12088         * sysdeps/sparc/elf/configure: Regenerated.
12089
12090 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
12091
12092         * configure.in (AS, LD): Require binutils 2.20 or later.
12093         * configure: Regenerated.
12094         * manual/install.texi (Tools for Compilation): Give binutils 2.20
12095         as required minimum version.
12096         * INSTALL: Regenerated.
12097
12098         [BZ #2541]
12099         [BZ #4108]
12100         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
12101         before squaring exponent.
12102         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
12103         bottom long double and 27 bits of top long double before squaring
12104         exponent.
12105         * math/libm-test.inc (erfc_test): Add more tests.
12106         * sysdeps/i386/fpu/libm-test-ulps: Update.
12107         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
12108         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12109
12110 2012-03-01  Kai Tietz  <ktietz@redhat.com>
12111
12112         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
12113         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
12114         containing bit-fields.
12115         * soft-fp/extended.h (_FP_UNION_E): Likewise.
12116         * soft-fp/single.h (_FP_UNION_S): Likewise.
12117         * soft-fp/double.h (_FP_UNION_D): Likewise.
12118
12119 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
12120
12121         [BZ #13786]
12122         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
12123         not include ../strcmp.S.
12124         [USE_AS_STRNCASECMP_L]: Likewise.
12125         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
12126         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
12127         * sysdeps/i386/i686/multiarch/strncase_l-c.c
12128         (__strncasecmp_l_ia32): Define as alias to
12129         __strncasecmp_l_nonascii.
12130
12131         [BZ #5794]
12132         * math/libm-test.inc (expm1_test): Add test for bug 5794.
12133         * sysdeps/i386/fpu/libm-test-ulps: Update.
12134         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12135
12136         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
12137         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12138
12139 2012-02-29  Jeff Law  <law@redhat.com>
12140
12141         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
12142         out of bounds read.
12143
12144 2012-02-29  Marek Polacek  <polacek@redhat.com>
12145
12146         [BZ #13706]
12147         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
12148         * elf/Makefile: Add rules to run tst-unused-dep.out.
12149
12150 2012-02-28  David S. Miller  <davem@davemloft.net>
12151
12152         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
12153         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
12154         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
12155         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
12156         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
12157         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
12158
12159 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
12160
12161         * math/libm-test.inc (llround_test): Move one test from
12162         lround_test.  Use TEST_f_L in moved test.
12163         (lround_test): Move misplaced test to llround_test.  Add testcase
12164         from bug 2561.
12165
12166 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
12167
12168         * sysdeps/x86_64/fpu/e_expf.S: New file.
12169         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
12170
12171 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
12172
12173         [BZ #13637]
12174         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
12175         of remain_len that may cause incomplete multi-byte character and
12176         false match.
12177         * posix/bug-regex33.c: New file.
12178         * posix/Makefile (tests): Add bug-regex33.
12179
12180 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
12181
12182         * manual/macros.texi: New file.
12183         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
12184         * manual/libc.texinfo: Include macros.texi.
12185         * manual/creatute.texi: Likewise.
12186         * manual/install.texi: Likewise.
12187         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
12188         @glibcadj{} in references to the GNU C Library.
12189         * manual/charset.texi: Likewise.
12190         * manual/conf.texi: Likewise.
12191         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
12192         when not using those macros.
12193         * manual/creature.texi: Likewise.
12194         * manual/crypt.texi: Likewise.
12195         * manual/errno.texi: Likewise.
12196         * manual/filesys.texi: Likewise.
12197         * manual/header.texi: Likewise.
12198         * manual/install.texi: Likewise.
12199         * manual/intro.texi: Likewise.
12200         * manual/io.texi: Likewise.
12201         * manual/job.texi: Likewise.
12202         * manual/lang.texi: Likewise.
12203         * manual/libc.texiinfo: Likewise.
12204         * manual/llio.texi: Likewise.
12205         * manual/locale.texi: Likewise.
12206         * manual/maint.texi: Likewise.
12207         * manual/math.texi: Likewise.
12208         * manual/memory.texi: Likewise.
12209         * manual/message.texi: Likewise.
12210         * manual/nss.texi: Likewise.
12211         * manual/pattern.texi: Likewise.
12212         * manual/process.texi: Likewise.
12213         * manual/resource.texi: Likewise.
12214         * manual/search.texi: Likewise.
12215         * manual/setjmp.texi: Likewise.
12216         * manual/signal.texi: Likewise.
12217         * manual/socket.texi: Likewise.
12218         * manual/startup.texi: Likewise.
12219         * manual/stdio.texi: Likewise.
12220         * manual/string.texi: Likewise.
12221         * manual/sysinfo.texi: Likewise.
12222         * manual/syslog.texi: Likewise.
12223         * manual/terminal.texi: Likewise.
12224         * manual/time.texi: Likewise.
12225         * manual/users.texi: Likewise.
12226         * INSTALL: Regenerated.
12227         * NOTES: Regenerated.
12228         * sysdeps/gnu/errlist.c: Regenerated.
12229
12230 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
12231
12232         * include/dirent.h: Include <dirstream.h> before
12233         <dirent/dirent.h>.
12234
12235 2012-02-28  David S. Miller  <davem@davemloft.net>
12236
12237         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
12238         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
12239         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
12240         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
12241
12242 2012-02-27  David S. Miller  <davem@davemloft.net>
12243
12244         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
12245         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
12246         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
12247         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
12248
12249         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
12250         frame pointer instead of stack pointer relative arg slot.
12251         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
12252         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
12253         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
12254
12255 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
12256
12257         [BZ #3992]
12258         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
12259
12260 2012-02-27  David S. Miller  <davem@davemloft.net>
12261
12262         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
12263         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
12264         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
12265         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
12266         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
12267         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
12268         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
12269         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
12270
12271 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
12272
12273         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
12274         later.  Allow versions 5-9.
12275         * configure: Regenerated.
12276         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
12277         required minimum version and 4.6 as recommended version.  Do not
12278         mention bugs in GCC 2.7 and 2.8.
12279         * INSTALL: Regenerated.
12280
12281 2012-02-27  David S. Miller  <davem@davemloft.net>
12282
12283         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
12284         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
12285         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
12286         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
12287         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
12288         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
12289         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
12290         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
12291
12292         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
12293         manipulate bits before adding and subtracting TWO112[sx].
12294         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
12295
12296 2012-02-27  Roland McGrath  <roland@hack.frob.com>
12297
12298         [BZ #13775]
12299         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
12300         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
12301         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
12302         being in POSIX, because they are in 1003.1-2008.
12303
12304         * rt/tst-aio.c: Include <fcntl.h>.
12305         * rt/tst-aio7.c: Likewise.
12306         * rt/tst-aio64.c: Likewise.
12307
12308         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
12309
12310 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
12311
12312         * manual/install.texi (--with-headers): Describe headers as
12313         interface headers, not private headers.
12314         (Specific advice for GNU/Linux systems): Describe use of headers
12315         from "make headers_install", not private headers from older
12316         kernels.
12317         * INSTALL: Regenerated.
12318         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
12319         Change to 2.6.19.
12320         * sysdeps/unix/sysv/linux/configure: Regenerated.
12321
12322         * manual/llio.texi (fclean): Remove documentation.
12323
12324         * manual/Makefile (libc-texi-generated): New variable.  Include
12325         version.texi.
12326         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
12327         $(libc-texi-generated), not duplicated list of files.
12328         (version.texi, stamp-version): New rules.
12329         (realclean): Remove $(libc-texi-generated), not individual files
12330         from that list.  Do not remove dir-add.texinfo.
12331         * manual/libc.texinfo: Comment out uses of edition numbers and
12332         references to printed manual.  Remove last-updated dates.
12333         (EDITION): Comment out.
12334         (ISBN): Likewise.
12335         (VERSION, UPDATED): Remove.
12336         (version.texi): Include.
12337
12338 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
12339
12340         * sysdeps/posix/spawni.c: Include <signal.h>.
12341         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
12342         * sysdeps/pthread/aio_fsync.c: Likewise.
12343
12344 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
12345
12346         * conform/Makefile (tests): Run only when not cross-compiling and
12347         when fast-check is not defined.
12348
12349         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
12350         * conform/data/limits.h-data: Fixes for POSIX2008.
12351         * conform/run-conformtest.sh: Run all tests.
12352         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
12353         headers.
12354         * include/bits/dlfcn.h: Likewise.
12355         * include/langinfo.h: Likewise.
12356         * include/monetary.h: Likewise.
12357         * include/sys/poll.h: Likewise.
12358
12359         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
12360         for __USE_GNU.
12361         * posix/spawn.h: Define __need_sigset_t.
12362         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
12363         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
12364         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
12365         to get sigevent_t only.
12366         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
12367         only for __USE_GNU.
12368         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
12369         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
12370         process_vm_writev only for __USE_GNU.
12371         * termios/termios.h: Declare tcgetsid also for POSIX2008.
12372
12373         * conform/Makefile: For now ignore errors from run-conformtest.
12374         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
12375         POSIX to avoid namespace pollution.  Don't prepend headers.
12376         * conform/data/aio.h-data: Fixes for POSIX testing.
12377         * conform/data/fcntl.h-data: Likewise.
12378         * conform/data/glob.h-data: Likewise.
12379         * conform/data/grp.h-data: Likewise.
12380         * conform/data/pthread.h-data: Likewise.
12381         * conform/data/pwd.h-data: Likewise.
12382         * conform/data/signal.h-data: Likewise.
12383         * conform/data/spawn.h-data: Likewise.
12384         * conform/data/stdio.h-data: Likewise.
12385         * conform/data/stdlib.h-data: Likewise.
12386         * conform/data/stropts.h-data: Likewise.
12387         * conform/data/sys/mman.h-data: Likewise.
12388         * conform/data/sys/stat.h-data: Likewise.
12389         * conform/data/sys/types.h-data: Likewise.
12390         * conform/data/sys/wait.h-data: Likewise.
12391         * conform/data/time.h-data: Likewise.
12392         * conform/data/unistd.h-data: Likewise.
12393         * conform/data/utime.h-data: Likewise.
12394
12395         * io/sys/stat.h: fchmod was always in POSIX.
12396         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
12397         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
12398         * rt/aio.h: Define __need_timespec before including <time.h>.
12399         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
12400         struct.  Add forward declaration of pthread_attr_t and use it in
12401         sigevent.
12402         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
12403         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
12404         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
12405         always remove CLK_TCK definition.
12406
12407 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
12408
12409         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
12410
12411 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
12412
12413         * conform/run-conformtest.sh: New file.
12414         * conform/Makefile: Run run-conformtest for tests.
12415         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
12416         support.
12417
12418         * conform/data/uchar.h-data: New file.
12419         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
12420         * conform/data/arpa/inet.h-data: Likewise.
12421         * conform/data/assert.h-data: Likewise.
12422         * conform/data/complex.h-data: Likewise.
12423         * conform/data/cpio.h-data: Likewise.
12424         * conform/data/ctype.h-data: Likewise.
12425         * conform/data/dirent.h-data: Likewise.
12426         * conform/data/dlfcn.h-data: Likewise.
12427         * conform/data/errno.h-data: Likewise.
12428         * conform/data/fcntl.h-data: Likewise.
12429         * conform/data/float.h-data: Likewise.
12430         * conform/data/fmtmsg.h-data: Likewise.
12431         * conform/data/fnmatch.h-data: Likewise.
12432         * conform/data/ftw.h-data: Likewise.
12433         * conform/data/glob.h-data: Likewise.
12434         * conform/data/grp.h-data: Likewise.
12435         * conform/data/iconv.h-data: Likewise.
12436         * conform/data/inttypes.h-data: Likewise.
12437         * conform/data/langinfo.h-data: Likewise.
12438         * conform/data/libgen.h-data: Likewise.
12439         * conform/data/limits.h-data: Likewise.
12440         * conform/data/locale.h-data: Likewise.
12441         * conform/data/math.h-data: Likewise.
12442         * conform/data/monetary.h-data: Likewise.
12443         * conform/data/mqueue.h-data: Likewise.
12444         * conform/data/ndbm.h-data: Likewise.
12445         * conform/data/net/if.h-data: Likewise.
12446         * conform/data/netdb.h-data: Likewise.
12447         * conform/data/netinet/in.h-data: Likewise.
12448         * conform/data/nl_types.h-data: Likewise.
12449         * conform/data/poll.h-data: Likewise.
12450         * conform/data/pthread.h-data: Likewise.
12451         * conform/data/pwd.h-data: Likewise.
12452         * conform/data/regex.h-data: Likewise.
12453         * conform/data/sched.h-data: Likewise.
12454         * conform/data/search.h-data: Likewise.
12455         * conform/data/semaphore.h-data: Likewise.
12456         * conform/data/setjmp.h-data: Likewise.
12457         * conform/data/signal.h-data: Likewise.
12458         * conform/data/spawn.h-data: Likewise.
12459         * conform/data/stdarg.h-data: Likewise.
12460         * conform/data/stdio.h-data: Likewise.
12461         * conform/data/stdlib.h-data: Likewise.
12462         * conform/data/string.h-data: Likewise.
12463         * conform/data/strings.h-data: Likewise.
12464         * conform/data/stropts.h-data: Likewise.
12465         * conform/data/sys/ipc.h-data: Likewise.
12466         * conform/data/sys/mman.h-data: Likewise.
12467         * conform/data/sys/msg.h-data: Likewise.
12468         * conform/data/sys/resource.h-data: Likewise.
12469         * conform/data/sys/select.h-data: Likewise.
12470         * conform/data/sys/sem.h-data: Likewise.
12471         * conform/data/sys/shm.h-data: Likewise.
12472         * conform/data/sys/socket.h-data: Likewise.
12473         * conform/data/sys/stat.h-data: Likewise.
12474         * conform/data/sys/statvfs.h-data: Likewise.
12475         * conform/data/sys/time.h-data: Likewise.
12476         * conform/data/sys/timeb.h-data: Likewise.
12477         * conform/data/sys/times.h-data: Likewise.
12478         * conform/data/sys/types.h-data: Likewise.
12479         * conform/data/sys/uio.h-data: Likewise.
12480         * conform/data/sys/un.h-data: Likewise.
12481         * conform/data/sys/utsname.h-data: Likewise.
12482         * conform/data/sys/wait.h-data: Likewise.
12483         * conform/data/syslog.h-data: Likewise.
12484         * conform/data/tar.h-data: Likewise.
12485         * conform/data/termios.h-data: Likewise.
12486         * conform/data/utime.h-data: Likewise.
12487         * conform/data/utmpx.h-data: Likewise.
12488         * conform/data/varargs.h-data: Likewise.
12489         * conform/data/wchar.h-data: Likewise.
12490         * conform/data/wctype.h-data: Likewise.
12491         * conform/data/wordexp.h-data: Likewise.
12492
12493         * include/stropts.h: New file.
12494         * include/uchar.h: New file.
12495         * include/aio.h: Changes to allow conformtest.pl to use the headers.
12496         * include/assert.h: Likewise.
12497         * include/ctype.h: Likewise.
12498         * include/dirent.h: Likewise.
12499         * include/dlfcn.h: Likewise.
12500         * include/fcntl.h: Likewise.
12501         * include/fnmatch.h: Likewise.
12502         * include/glob.h: Likewise.
12503         * include/grp.h: Likewise.
12504         * include/libio.h: Likewise.
12505         * include/locale.h: Likewise.
12506         * include/math.h: Likewise.
12507         * include/net/if.h: Likewise.
12508         * include/netdb.h: Likewise.
12509         * include/netinet/in.h: Likewise.
12510         * include/pthread.h: Likewise.
12511         * include/pwd.h: Likewise.
12512         * include/regex.h: Likewise.
12513         * include/sched.h: Likewise.
12514         * include/search.h: Likewise.
12515         * include/setjmp.h: Likewise.
12516         * include/signal.h: Likewise.
12517         * include/stdio.h: Likewise.
12518         * include/stdlib.h: Likewise.
12519         * include/string.h: Likewise.
12520         * include/sys/cdefs.h: Likewise.
12521         * include/sys/mman.h: Likewise.
12522         * include/sys/msg.h: Likewise.
12523         * include/sys/resource.h: Likewise.
12524         * include/sys/select.h: Likewise.
12525         * include/sys/socket.h: Likewise.
12526         * include/sys/stat.h: Likewise.
12527         * include/sys/statvfs.h: Likewise.
12528         * include/sys/time.h: Likewise.
12529         * include/sys/times.h: Likewise.
12530         * include/sys/uio.h: Likewise.
12531         * include/sys/utsname.h: Likewise.
12532         * include/sys/wait.h: Likewise.
12533         * include/termios.h: Likewise.
12534         * include/time.h: Likewise.
12535         * include/ulimit.h: Likewise.
12536         * include/unistd.h: Likewise.
12537         * include/utime.h: Likewise.
12538         * include/wchar.h: Likewise.
12539         * include/wctype.h: Likewise.
12540         * include/wordexp.h: Likewise.
12541
12542         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
12543
12544         * time/time.h: TIME_UTC must be a macro.
12545         Make timespec_get available for ISO C11 only as well.
12546
12547 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
12548
12549         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
12550         Reported by Peng Haitao <penght@cn.fujitsu.com>.
12551
12552 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
12553
12554         * configure.in: Use -o not -a in test for unsupported multi-arch.
12555
12556 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
12557
12558         * manual/texinfo.tex: Update to version 2012-01-19.16.
12559
12560 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
12561
12562         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
12563
12564 2012-02-24  Roland McGrath  <roland@hack.frob.com>
12565
12566         [BZ #13738]
12567         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
12568         * manual/fdl-1.3.texi: New file.
12569         * manual/fdl-1.1.texi: File removed.
12570
12571         [BZ #13738]
12572         * manual/libc.texinfo (FDL_VERSION): New @set.
12573         Use it for mention of FDL in cover text.
12574         (Documentation License): Use it in @include file name.
12575
12576 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12577             Roland McGrath  <roland@hack.frob.com>
12578
12579         [BZ #5461]
12580         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
12581         not LONG_LONG_MAX and LONG_LONG_MIN.
12582         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
12583         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
12584         name.
12585         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
12586
12587 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12588
12589         [BZ #2547]
12590         [BZ #11365]
12591         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
12592         manipulate bits before adding and subtracting TWO23[sx].
12593         * math/libm-test.inc (nearbyint_test): Add more tests.
12594
12595 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12596
12597         [BZ #2548]
12598         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
12599         bits before adding and subtracting TWO23[sx].
12600         * math/libm-test.inc (rint_test): Add more tests.
12601         (rint_test_tonearest): Likewise.
12602         (rint_test_towardzero): Likewise.
12603         (rint_test_downward): Likewise.
12604         (rint_test_upward: Likewise.
12605
12606 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12607
12608         [BZ #10110]
12609         * include/stdc-predef.h: New file.  Extracted from features.h.
12610         * include/features.h: Include stdc-predef.h.
12611         * Makefile (headers): Add stdc-predef.h.
12612         * CONFORMANCE (Compiler limitations): Update.
12613
12614 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12615
12616         * manual/libc.texinfo (VERSION, UPDATED): Revert.
12617
12618 2012-02-21  David S. Miller  <davem@davemloft.net>
12619
12620         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
12621         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
12622
12623 2012-02-20  David S. Miller  <davem@davemloft.net>
12624
12625         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
12626         using a normal save/restore sequence, rather than allocating a
12627         dummy stack frame just to store a frame pointer and restore.
12628         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
12629
12630 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
12631
12632         * manual/install.texi: Fix stray word in line-wrapped comment.
12633
12634 2012-02-20  David S. Miller  <davem@davemloft.net>
12635
12636         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
12637         both binutils and gcc support GOTDATA.
12638
12639         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
12640         "rd %pc" in the PIC register setup sequences.
12641
12642         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
12643         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
12644         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
12645         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
12646         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
12647         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
12648         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
12649         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
12650         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
12651         (SYSCALL_ERROR_HANDLER): Likewise.
12652         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
12653         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
12654         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
12655         (SYSCALL_ERROR_HANDLER): Likewise.
12656
12657         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
12658         (HAVE_GCC_GOTDATA): New.
12659         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
12660         relocation support in both binutils and gcc.
12661         * sysdeps/sparc/elf/configure: Regenerate.
12662
12663         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
12664         * sysdeps/sparc/sparc32/elf/configure: Delete.
12665         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
12666         * sysdeps/sparc/sparc64/elf/configure: Delete.
12667         * sysdeps/sparc/elf/configure.in: New file.
12668         * sysdeps/sparc/elf/configure: Generate.
12669
12670         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
12671         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
12672         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
12673         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
12674         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
12675
12676 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
12677
12678         * manual/install.texi: Do not mention specific glibc version
12679         numbers.
12680         * manual/libc.texinfo (VERSION, UPDATED): Update.
12681         (@copying): Use @copyright{} and range of years.
12682
12683 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
12684
12685         [BZ #13695]
12686         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
12687         [crti.S not in sysdirs] (generated): Do not append.
12688         [crti.S not in sysdirs] (omit-deps): Likewise.
12689         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
12690         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
12691         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
12692         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
12693         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
12694         Likewise.
12695         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
12696         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
12697         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
12698         * csu/defs.awk: Remove file.
12699         * sysdeps/generic/initfini.c: Likewise.
12700         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
12701         variable.
12702         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
12703         Likewise.
12704
12705 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
12706
12707         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
12708         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
12709         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
12710         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
12711         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
12712         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
12713         <bits/epoll.h>.
12714         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
12715         (__EPOLL_PACKED): Define to empty if not defined by
12716         <bits/epoll.h>.
12717         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
12718         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12719         bits/epoll.h.
12720
12721 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
12722
12723         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
12724         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
12725         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
12726         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
12727         <bits/timerfd.h>.
12728         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
12729         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12730         bits/timerfd.h.
12731
12732 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
12733
12734         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
12735         in C locale.
12736         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
12737         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
12738         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
12739         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12740
12741 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
12742
12743         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
12744         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
12745
12746 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
12747
12748         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
12749         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
12750         defined.
12751         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
12752         Likewise.
12753         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
12754         entry for 2.16.
12755
12756 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
12757
12758         * math/w_acos.c: Use non-signaling floating-point comparisons.
12759         * math/w_acosf.c: Likewise.
12760         * math/w_acosh.c: Likewise.
12761         * math/w_acoshf.c: Likewise.
12762         * math/w_acoshl.c: Likewise.
12763         * math/w_acosl.c: Likewise.
12764         * math/w_asin.c: Likewise.
12765         * math/w_asinf.c: Likewise.
12766         * math/w_asinl.c: Likewise.
12767         * math/w_atanh.c: Likewise.
12768         * math/w_atanhf.c: Likewise.
12769         * math/w_atanhl.c: Likewise.
12770         * math/w_exp2.c: Likewise.
12771         * math/w_exp2f.c: Likewise.
12772         * math/w_exp2l.c: Likewise.
12773         * math/w_j0.c: Likewise.
12774         * math/w_j0f.c: Likewise.
12775         * math/w_j0l.c: Likewise.
12776         * math/w_j1.c: Likewise.
12777         * math/w_j1f.c: Likewise.
12778         * math/w_j1l.c: Likewise.
12779         * math/w_jn.c: Likewise.
12780         * math/w_jnf.c: Likewise.
12781         * math/w_log.c: Likewise.
12782         * math/w_log10.c: Likewise.
12783         * math/w_log10f.c: Likewise.
12784         * math/w_log10l.c: Likewise.
12785         * math/w_log2.c: Likewise.
12786         * math/w_log2f.c: Likewise.
12787         * math/w_log2l.c: Likewise.
12788         * math/w_logf.c: Likewise.
12789         * math/w_logl.c: Likewise.
12790         * math/w_sqrt.c: Likewise.
12791         * math/w_sqrtf.c: Likewise.
12792         * math/w_sqrtl.c: Likewise.
12793         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
12794         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
12795         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
12796         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
12797         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
12798
12799 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
12800
12801         [BZ #9739]
12802         * manual/string.texi (strnlen): Use correct parameter name in
12803         equivalent expression.
12804
12805 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
12806
12807         [BZ #11174]
12808         * manual/users.texi (seteuid): Consistently use neweuid for
12809         argument name.
12810
12811 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
12812
12813         [BZ #13704]
12814         * manual/nss.texi (Services in the NSS configuration): Correct
12815         list of services in example configuration file.
12816
12817 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
12818
12819         [BZ #11322]
12820         * manual/arith.texi: Remove statements about negative zero
12821         behaving identically to zero.
12822
12823 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
12824
12825         [BZ #5993]
12826         * manual/install.texi: Do not document upgrading from libc5.
12827
12828 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
12829
12830         [BZ #4596]
12831         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
12832
12833 2012-02-18  David S. Miller  <davem@davemloft.net>
12834
12835         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
12836         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
12837         %o7 across the call.
12838         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
12839         instead.
12840         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
12841         SETUP_PIC_REG_LEAF.
12842         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
12843         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
12844         * sysdeps/sparc/crtn.S: Likewise.
12845
12846 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
12847
12848         * aout/Makefile: Remove.
12849
12850 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
12851
12852         [BZ #13058]
12853         * manual/examples/argp-ex1.c (main): Format definition in GNU
12854         style.
12855         * manual/examples/argp-ex2.c (main): Likewise.
12856         * manual/examples/argp-ex3.c (main): Likewise.
12857         * manual/examples/argp-ex4.c (main): Likewise.
12858         * manual/examples/longopt.c (main): Use new-style prototype
12859         definition.
12860         * manual/examples/strncat.c (main): Specify return type and use
12861         (void) for arguments.
12862         * manual/examples/subopt.c (main): Use char **argv argument.
12863
12864 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12865
12866         [BZ #5077]
12867         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
12868         rounding modes.
12869
12870 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
12871
12872         [BZ #6907]
12873         * manual/string.texi (strchr): Change when strchrnul is
12874         recommended.
12875
12876 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
12877
12878         [BZ #174]
12879         * manual/locale.texi (setlocale): Document LOCPATH.
12880
12881 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12882
12883         [BZ #10210]
12884         * manual/process.texi (execle): Move @dots{} before last argument.
12885
12886 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
12887
12888         [BZ #12047]
12889         * manual/charset.texi (Generic Charset Conversion): Fix typo
12890         (LC_TYPE -> LC_CTYPE).
12891
12892 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
12893
12894         [BZ #5805]
12895         * manual/arith.texi (scalbn): Use @var{} on parameter names.
12896         (scalbnf): Likewise.
12897         (scalbnl): Likewise.
12898         (scalbln): Likewise.
12899         (scalblnf): Likewise.
12900         (scalblnl): Likewise.
12901         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
12902         (vwarnx): Likewise.
12903         (verr): Likewise.
12904         (verrx): Likewise.
12905         * manual/filesys.texi (telldir): Use braces around return type.
12906         * manual/llio.texi (mmap): Add space after comma.
12907         (mmap64): Likewise.
12908         * manual/math.texi (jn): Use @var{} on parameter names.
12909         (jnf): Likewise.
12910         (jnl): Likewise.
12911         (yn): Likewise.
12912         (ynf): Likewise.
12913         (ynl): Likewise.
12914         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
12915         line.
12916         * manual/resource.texi (ulimit): Use @dots{} instead of literal
12917         "...".
12918         (sched_get_priority_min): Remove semicolon on @deftypefun line.
12919         (sched_get_priority_max): Likewise.
12920         * manual/signal.texi (sigvec): Add space after comma.
12921         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
12922         names.
12923         (if_indextoname): Likewise.
12924         (if_freenameindex): Likewise.
12925         (sendto): Use ',' instead of '.' in prototype.
12926         * manual/startup.texi (syscall): Use @dots{} instead of literal
12927         "...".
12928         * manual/stdio.texi (__fpending): Separate initial words of
12929         paragraph from @deftypefun line.
12930         * manual/syslog.texi (syslog): Use @dots{} instead of literal
12931         "...".
12932         (vsyslog): Use @var{} on parameter names.
12933         * manual/terminal.texi (stty): Use @var{} on parameter names.
12934         * manual/users.texi (getutmp): Use @var{} on parameter names.
12935         (getutmpx): Likewise.
12936
12937 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12938
12939         [BZ #6884]
12940         * manual/stdio.texi (fopen): Fix typos in description of
12941         ",ccs=STRING".
12942
12943 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
12944
12945         [BZ #4026]
12946         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
12947         get clock_id definition.
12948
12949 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
12950
12951         [BZ #4822]
12952         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
12953         (madvise): Cast every argument to void on its own.
12954
12955 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12956
12957         [BZ #9902]
12958         * manual/startup.texi (Exit Status): Fix typo.
12959
12960 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12961
12962         [BZ #10140]
12963         * manual/examples/argp-ex1.c: Include <stdlib.h>.
12964         * manual/examples/argp-ex2.c: Likewise.
12965         * manual/examples/argp-ex3.c: Likewise.
12966
12967 2012-02-16  Richard Henderson  <rth@redhat.com>
12968
12969         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
12970         * sysdeps/s390/s390-32/initfini.c: Remove.
12971         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
12972         * sysdeps/s390/s390-64/initfini.c: Remove.
12973
12974 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
12975
12976         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
12977         compiler output for sysdeps/generic/initfini.c.
12978         * sysdeps/sh/elf/initfini.c: Remove file.
12979
12980 2012-02-16  David S. Miller  <davem@davemloft.net>
12981
12982         [BZ #11494]
12983         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
12984
12985         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
12986         * sysdeps/sparc/crti.S: New file.
12987         * sysdeps/sparc/crtn.S: New file.
12988         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
12989         * sysdeps/sparc/sparc64/Makefile: Likewise.
12990
12991 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
12992
12993         [BZ #3335]
12994         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
12995
12996 2012-02-15  Roland McGrath  <roland@hack.frob.com>
12997
12998         [BZ #4822]
12999         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
13000
13001         * mach/devstream.c (cookie_io_functions_t): Macro removed.
13002         (write, read, close): Likewise.
13003         Patch by Aurelien Jarno <aurelien@aurel32.net>.
13004
13005 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
13006
13007         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
13008         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
13009         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
13010         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
13011         <bits/signalfd.h>.
13012         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
13013         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13014         bits/signalfd.h.
13015
13016 2012-02-14  Marek Polacek  <polacek@redhat.com>
13017
13018         * sysdeps/x86_64/crti.S: New file.
13019         * sysdeps/x86_64/crtn.S: New file.
13020         * sysdeps/x86_64/elf/initfini.c: Remove file.
13021
13022 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
13023
13024         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
13025         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
13026         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
13027         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
13028         <bits/inotify.h>.
13029         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
13030         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13031         bits/inotify.h.
13032
13033 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
13034
13035         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
13036         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
13037         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
13038         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
13039         <bits/eventfd.h>.
13040         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
13041         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13042         bits/eventfd.h.
13043
13044 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
13045
13046         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
13047         __feraiseexcept instead of feraiseexcept.
13048
13049         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
13050         nanosleep invocations.
13051         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
13052         strings, and add error checking for a nanosleep invocations.
13053
13054 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
13055
13056         Replace FSF snail mail address with URLs, as per GNU coding standards.
13057         Most of the snail mail addresses were wrong anyway, and omitting
13058         them makes the source code easier to maintain.  Almost all of the
13059         changes are to license notices and to locale LC_IDENTIFICATION
13060         addresses, except for this one:
13061         * manual/libc.texinfo: In "Published by", give the FSF's URL,
13062         not its snail mail address.
13063
13064 2012-02-09  Richard Henderson  <rth@twiddle.net>
13065
13066         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
13067         of kernel-features.h.
13068
13069         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
13070
13071 2012-02-08  Marek Polacek  <polacek@redhat.com>
13072
13073         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
13074         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
13075         * sysdeps/gnu/_G_config.h: Likewise.
13076         * sysdeps/generic/_G_config.h: Likewise.
13077
13078 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
13079
13080         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
13081         tests.
13082         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13083
13084         * sysdeps/powerpc/powerpc32/crti.S: New file.
13085         * sysdeps/powerpc/powerpc32/crtn.S: New file.
13086         * sysdeps/powerpc/powerpc64/crti.S: New file.
13087         * sysdeps/powerpc/powerpc64/crtn.S: New file.
13088
13089         * Makeconfig (have-initfini): Don't set.
13090         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
13091         * configure.in (nopic_initfini): Don't substitute.
13092         * config.h.in (HAVE_INITFINI): Don't #undef.
13093         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
13094         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
13095
13096 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
13097
13098         Support crti.S and crtn.S provided directly by architectures.
13099         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
13100         [crti.S in sysdirs] (omit-deps): Likewise.
13101         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
13102         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
13103         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
13104         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
13105         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
13106         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
13107         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
13108         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
13109         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
13110         compiler output for sysdeps/generic/initfini.c.
13111         * sysdeps/i386/elf/Makefile: Remove file.
13112         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
13113
13114 2012-02-07  Marek Polacek  <polacek@redhat.com>
13115
13116         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
13117         * sysdeps/gnu/_G_config.h: Likewise.
13118         * sysdeps/mach/hurd/_G_config.h: Likewise.
13119
13120 2012-02-07  Marek Polacek  <polacek@redhat.com>
13121
13122         * math/Makefile (tests): Add tst-CMPLX2.
13123         * math/tst-CMPLX2.c: New file.
13124
13125 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
13126
13127         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
13128
13129         * math/libm-test.inc (jn_test): Add missing L suffix.
13130
13131 2012-02-06  Marek Polacek  <polacek@redhat.com>
13132
13133         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
13134         * sysdeps/i386/fpu/e_powf.S: Likewise.
13135         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
13136         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
13137         * sysdeps/i386/fpu/e_acosh.S: Likewise.
13138         * sysdeps/i386/fpu/e_pow.S: Likewise.
13139         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
13140         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
13141         * sysdeps/i386/fpu/s_expm1.S: Likewise.
13142         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
13143         * sysdeps/i386/fpu/e_log2.S: Likewise.
13144         * sysdeps/i386/fpu/e_log2l.S: Likewise.
13145         * sysdeps/i386/fpu/e_scalb.S: Likewise.
13146         * sysdeps/i386/fpu/e_powl.S: Likewise.
13147         * sysdeps/i386/fpu/s_log1p.S: Likewise.
13148         * sysdeps/i386/fpu/e_log10f.S: Likewise.
13149         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
13150         * sysdeps/i386/fpu/e_logl.S: Likewise.
13151         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
13152         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
13153         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
13154         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
13155         * sysdeps/i386/fpu/e_log2f.S: Likewise.
13156         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
13157         * sysdeps/i386/fpu/e_log.S: Likewise.
13158         * sysdeps/i386/fpu/s_cexp.S: Likewise.
13159         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
13160         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
13161         * sysdeps/i386/fpu/e_logf.S: Likewise.
13162         * sysdeps/i386/fpu/e_log10l.S: Likewise.
13163         * sysdeps/i386/fpu/e_atanh.S: Likewise.
13164         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
13165         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
13166         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
13167         * sysdeps/i386/fpu/e_log10.S: Likewise.
13168         * sysdeps/i386/fpu/s_frexp.S: Likewise.
13169         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
13170         * sysdeps/i386/fpu/s_asinh.S: Likewise.
13171         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
13172         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
13173         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
13174         * sysdeps/i386/asm-syntax.h: Likewise.
13175         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
13176         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
13177         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
13178         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
13179         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
13180         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
13181         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
13182         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
13183         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
13184         * sysdeps/powerpc/sysdep.h: Likewise.
13185         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
13186         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
13187
13188 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
13189
13190         [BZ #411]
13191         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
13192
13193 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
13194
13195         * sysdeps/i386/sysdep.h: Include <features.h>.
13196         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
13197         version.
13198
13199 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
13200
13201         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
13202         Define.
13203         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
13204         LOAD_PIC_REG_STR.
13205
13206 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
13207
13208         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
13209         (SETUP_PIC_REG): Use GET_PC_THUNK.
13210         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
13211         macro.
13212
13213 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
13214
13215         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
13216         for non-PIC compilation.
13217         (SETUP_PIC_REG): Add .p2align directive.
13218         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
13219         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
13220         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
13221         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
13222         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
13223         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
13224         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
13225         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
13226         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
13227         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
13228         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
13229         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
13230         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
13231         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
13232         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
13233         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
13234         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
13235         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
13236         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
13237         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
13238         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
13239         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
13240         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
13241         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
13242         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
13243         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
13244         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
13245         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
13246         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
13247         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
13248         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
13249         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
13250         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
13251         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
13252         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
13253         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
13254         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
13255         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
13256         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
13257         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
13258         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
13259
13260 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
13261
13262         * math/tst-CMPLX.c: Include <stdio.h>.
13263
13264 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
13265
13266         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
13267         float.
13268         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
13269         * sysdeps/sparc/bits/mathdef.h: Likewise.
13270
13271 2012-01-31  Marek Polacek  <polacek@redhat.com>
13272
13273         * libio/libio.h: Don't define _PARAMS.
13274         * locale/programs/config.h: Don't define PARAMS.
13275         * stdlib/strtol_l.c: Likewise.
13276         (__strtol_l): Remove PARAMS from the prototype.
13277
13278 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
13279
13280         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
13281         names.  Just use the correct names.  Remove unnecessary wrapper
13282         functions.
13283         * malloc/arena.c: Likewise.
13284         * malloc/hooks.c: Likewise.
13285
13286         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
13287         ARENA_TEST says not to.  Simplify test for creation of a new arena.
13288         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
13289
13290 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
13291
13292         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
13293         into tail calls.
13294         (update_get_addr): New function.
13295         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
13296         GET_ADDR_MODULE parameter.
13297
13298 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
13299
13300         * crypt/cert.c: Remove __STDC__ conditionals.
13301         * crypt/crypt-entry.c: Likewise.
13302         * crypt/crypt_util.c: Likewise.
13303         * libio/filedoalloc.c: Likewise.
13304         * libio/fileops.c: Likewise.
13305         * libio/genops.c: Likewise.
13306         * libio/iofclose.c: Likewise.
13307         * libio/iofdopen.c: Likewise.
13308         * libio/iofopen.c: Likewise.
13309         * libio/iofopen64.c: Likewise.
13310         * libio/iogetdelim.c: Likewise.
13311         * libio/iopopen.c: Likewise.
13312         * libio/obprintf.c: Likewise.
13313         * libio/oldfileops.c: Likewise.
13314         * libio/oldiofclose.c: Likewise.
13315         * libio/oldiofdopen.c: Likewise.
13316         * libio/oldiofopen.c: Likewise.
13317         * libio/oldiopopen.c: Likewise.
13318         * libio/wfiledoalloc.c: Likewise.
13319         * libio/wgenops.c: Likewise.
13320         * locale/programs/xmalloc.c: Likewise.
13321         * misc/syslog.c: Likewise.
13322         * stdio-common/xbug.c: Likewise.
13323         * string/memchr.c: Likewise.
13324         * string/memcmp.c: Likewise.
13325         * string/memrchr.c: Likewise.
13326         * string/rawmemchr.c: Likewise.
13327         * sysdeps/posix/getcwd.c: Likewise.
13328         * time/strftime_l.c: Likewise.
13329
13330 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
13331
13332         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
13333         * config.make.in (config-cflags-sse2avx): Define.
13334         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
13335         Fix typo.
13336
13337 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
13338
13339         * scripts/config.guess: Update from upstream config git repository.
13340         * scripts/config.sub: Likewise.
13341
13342 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
13343
13344         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
13345         (EM_NUM): Update.
13346         (R_TILEPRO_*, R_TILEGX_*): New macros.
13347
13348         * scripts/firstversions.awk: Fix bug in version range handling.
13349
13350         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
13351
13352         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
13353
13354         * include/sys/epoll.h: New file.
13355         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
13356         libc_hidden_def.
13357
13358 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
13359
13360         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
13361         Avoid unnecessary __WORDSIZE == 64 test.
13362         (fmaxf): Use VEX format if possible.
13363         (fmax): Likewise.
13364         (fminf): Likewise.
13365         (fmin): Likewise.
13366
13367         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
13368         * math/math_private.h: Remove libc_fegetround* and
13369         libc_fesetround*.
13370         * sysdeps/i386/configure.in: Check for -msse2avx.
13371         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
13372         also if SSE2AVX is defined.
13373         Remove libc_fegetround* and libc_fesetround*.
13374         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
13375         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
13376         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
13377         of HAS_YMM_USABLE.
13378         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
13379         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
13380         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
13381         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
13382         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
13383
13384         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
13385
13386 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13387
13388         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
13389         size is not set.
13390         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
13391
13392 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
13393
13394         [BZ #13618]
13395         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
13396         relocation.
13397         * Makeconfig (libm): Define.
13398         * elf/Makefile: Add rules to build and run tst-relsort1.
13399         * elf/tst-relsort1.c: New file.
13400         * elf/tst-relsort1mod1.c: New file.
13401         * elf/tst-relsort1mod2.c: New file.
13402
13403 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
13404
13405         * math/s_ldexp.c: Remove __STDC__ conditionals.
13406         * math/s_ldexpf.c: Likewise.
13407         * math/s_ldexpl.c: Likewise.
13408         * math/s_nextafter.c: Likewise.
13409         * math/s_nexttowardf.c: Likewise.
13410         * math/s_significand.c: Likewise.
13411         * math/s_significandf.c: Likewise.
13412         * math/s_significandl.c: Likewise.
13413         * math/w_jnl.c: Likewise.
13414         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
13415         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
13416         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
13417         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
13418         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
13419         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
13420         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
13421         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
13422         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
13423         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
13424         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
13425         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
13426         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
13427         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
13428         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
13429         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
13430         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
13431         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
13432         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
13433         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
13434         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
13435         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
13436         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
13437         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
13438         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
13439         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
13440         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
13441         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
13442         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
13443         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
13444         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
13445         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
13446         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
13447         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
13448         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
13449         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
13450         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
13451         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
13452         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
13453         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
13454         * sysdeps/ieee754/k_standard.c: Likewise.
13455         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
13456         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
13457         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
13458         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
13459         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
13460         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
13461         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
13462         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
13463         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
13464         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
13465         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
13466         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
13467         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
13468         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
13469         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
13470         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
13471         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
13472         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
13473         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
13474         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
13475         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
13476         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
13477         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
13478         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
13479         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
13480         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
13481         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
13482         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
13483         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
13484         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
13485         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
13486         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
13487         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
13488         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
13489         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
13490         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
13491         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
13492         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
13493         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
13494         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
13495         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
13496         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
13497         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
13498         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
13499         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
13500         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
13501         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
13502         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
13503         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
13504         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
13505         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
13506         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
13507         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
13508         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
13509         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
13510         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
13511         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
13512         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
13513         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
13514         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
13515         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
13516         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
13517         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
13518         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
13519         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
13520         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
13521         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
13522         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
13523         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
13524         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
13525         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
13526         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
13527         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
13528         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
13529         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
13530         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
13531         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
13532         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
13533         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
13534         * sysdeps/ieee754/s_matherr.c: Likewise.
13535         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
13536         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
13537         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
13538         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
13539
13540 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
13541
13542         * crypt/md5.h: Remove __STDC__ conditionals.
13543         * libio/libioP.h: Likewise.
13544         * locale/programs/config.h: Likewise.
13545         * sysdeps/generic/sysdep.h: Likewise.
13546         * sysdeps/i386/asm-syntax.h: Likewise.
13547         * sysdeps/s390/asm-syntax.h: Likewise.
13548         * sysdeps/unix/sysdep.h: Likewise.
13549         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
13550         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
13551
13552 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
13553
13554         * libio/libio.h: Remove __STDC__ conditionals.
13555         * malloc/obstack.h: Likewise.
13556         * math/complex.h: Likewise.
13557         * math/math.h: Likewise.
13558         * sysdeps/generic/_G_config.h: Likewise.
13559         * sysdeps/gnu/_G_config.h: Likewise.
13560         * sysdeps/mach/hurd/_G_config.h: Likewise.
13561         * sysdeps/powerpc/bits/mathdef.h: Likewise.
13562         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
13563         * sysdeps/sparc/bits/mathdef.h: Likewise.
13564
13565 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
13566
13567         [BZ #13583]
13568         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
13569         Clean up HAS_* macros.
13570         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
13571         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
13572         possible.
13573         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
13574         HAS_AVX.
13575         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
13576         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
13577         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
13578         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
13579         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
13580
13581 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
13582
13583         * elf/tst-unique3.cc (gets): Remove declaration.
13584         * elf/tst-unique3lib.cc (gets): Likewise.
13585         * elf/tst-unique3lib2.cc (gets): Likewise.
13586         * elf/tst-unique4.cc (gets): Likewise.
13587
13588 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
13589
13590         * include/stdio.h: Add C++ protection.  Add gets declarations and
13591         definitions.
13592         * debug/tst-chk1.c: Don't declare gets here.
13593         * stdio-common/tst-gets.c: Likewise.
13594
13595 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
13596
13597         * posix/glob: Remove directory.
13598
13599 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
13600
13601         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
13602
13603 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
13604
13605         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
13606         of the non-standard EPFNOSUPPORT.
13607
13608 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13609
13610         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
13611         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
13612         ANYWHERE set to 1 only on KERN_NO_SPACE error.
13613
13614 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
13615
13616         * wcsmbs/uchar.h: Test __STDC_VERSION__.
13617
13618 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
13619
13620         * nscd/aicache.c (addhstaiX): Do not cache negative results of
13621         transient errors.
13622         * nscd/grpcache.c (cache_addgr): Likewise.
13623         * nscd/hstcache.c (cache_addhst): Likewise.
13624         * nscd/initgrcache.c (addinitgroupsX): Likewise.
13625         * nscd/pwdcache.c (cache_addpw): Likewise.
13626         * nscd/servicescache.c (cache_addserv): Likewise.
13627
13628 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
13629
13630         * malloc/malloc.c: Various cleanups.
13631         * malloc/hooks.c: Likewise.
13632
13633         * stdlib/Makefile (tests): Add bug-fmtmsg1.
13634         * stdlib/bug-fmtmsg1.c: New file.
13635
13636         * stdlib/fmtmsg.c (init): Add missing unlock.
13637         Patch by Peng Haitao <penght@cn.fujitsu.com>.
13638
13639 2012-01-12  Marek Polacek  <polacek@redhat.com>
13640
13641         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
13642         and _GNU_SOURCE.
13643
13644 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
13645
13646         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
13647         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
13648         macro to ensure uniqueness of label name.
13649         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
13650         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
13651
13652 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
13653
13654         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
13655
13656         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
13657         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
13658         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
13659         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
13660
13661 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
13662
13663         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
13664
13665         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
13666         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
13667         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
13668
13669         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
13670
13671         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
13672         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
13673         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
13674         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
13675
13676         * math/bits/math-finite.h: Add ldexp support.
13677
13678 2012-01-10  Marek Polacek  <polacek@redhat.com>
13679
13680         * locale/programs/localedef.h (show_archive_content): Add noreturn
13681         attribute.
13682
13683 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
13684
13685         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
13686
13687 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
13688
13689         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
13690
13691         * io/Makefile (headers): Add bits/poll2.h.
13692
13693 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
13694
13695         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
13696         typo #include statement.
13697
13698 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
13699
13700         * include/sys/cdefs.h: Define __attribute_alloc_size.
13701         * catgets/gencat.c: Add alloc_size attribute and apply consistently
13702         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
13703         * elf/pldd.c: Likewise.
13704         * iconv/iconv_charmap.c: Likewise.
13705         * iconv/iconvconfig.c: Likewise.
13706         * iconv/strtab.c: Likewise.
13707         * locale/programs/locale.c: Likewise.
13708         * locale/programs/localedef.h: Likewise.
13709         * locale/programs/simple-hash.c: Likewise.
13710         * nscd/nscd.h: Likewise.
13711         * nss/makedb.c: Likewise.
13712         * sysdeps/generic/ldconfig.h: Likewise.
13713         * locale/programs/localedef.c: Remove xmalloc prototype.
13714         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
13715
13716 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
13717
13718         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
13719         appropriate.
13720
13721 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
13722
13723         * math/Makefile (tests): Add tst-CMPLX.
13724         * math/tst-CMPLX.c: New file.
13725
13726         * math/complex.h (CMPLXL): Fix typo.
13727
13728         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
13729         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
13730         GLIBC_2.16.
13731         * debug/tst-chk1.c: Add poll and ppoll tests.
13732         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
13733         * include/sys/poll.h: Add hidden proto for ppoll.
13734         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
13735         * sysdeps/mach/hurd/ppoll.c: Likewise.
13736         * io/ppoll.c: Likewise.
13737         * debug/poll_chk.c: New file.
13738         * debug/ppoll_chk.c: New file.
13739         * include/bits/poll2.h: New file.
13740         * io/bits/poll2.h: New file.
13741
13742         [BZ #1350]
13743         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
13744
13745         * configure.in: static is always set to yes.  Remove.
13746         * config.make.in: Don't set build-static.
13747         * Makeconfig: Remove use of build-static.
13748         * dlfcn/Makefile: Likewise.
13749         * elf/Makefile: Likewise.
13750         * math/Makefile: Likewise.
13751         * misc/Makefile: Likewise.
13752         * nptl/Makefile: Likewise.
13753         * sysdeps/mach/hurd/Makefile: Likewise.
13754
13755         * configure.in: PWD_P is not used anymore.
13756         * config.make.in: Remove PWD_P entry.
13757
13758         * configure.in: Remove last remnants of RANLIB.
13759         No need to check for signed size_t anymore.
13760         Don't set libc_commonpagesize and libc_relro_required here for Alpha
13761         and IA-64.
13762         Remove __builtin_expect test because we require at least gcc 3.4.
13763         * aclocal.m4: Likewise.
13764
13765         * wcsmbs/mbrtoc16.c: Implement using towc function.
13766         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
13767         * wcsmbs/wcsmbsload.c: Likewise.
13768         * iconv/gconv_simple.c: Likewise.
13769         * iconv/gconv_int.h: Likewise.
13770         * iconv/gconv_builtin.h: Likewise.
13771         * iconv/iconv_prog.c: Remove CHAR16 handling.
13772
13773         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
13774
13775         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
13776
13777         * configure.in: Remove --with-elf and --enable-bounded options.
13778         Dont set base_machine for ia64.  More non-ELF conditions removed.
13779         Remove testing and setting of leading underscore information.
13780         * config.make.in (build-bounded): Set to no.
13781         * config.h.in: Remove NO_UNDERSCORES entry.
13782         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
13783         them.
13784         * csu/start.c: Remove !NO_UNDERSCORE code.
13785         * locale/localeinfo.h: Likewise.
13786         * sysdeps/generic/machine-gmon.h: Likewise.
13787         * sysdeps/generic/sysdep.h: Likewise.
13788         * sysdeps/i386/sysdep.h: Likewise.
13789         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
13790         * sysdeps/mach/sysdep.h: Likewise.
13791         * sysdeps/s390/s390-32/sysdep.h: Likewise.
13792         * sysdeps/s390/s390-64/sysdep.h: Likewise.
13793         * sysdeps/sh/sysdep.h: Likewise.
13794         * sysdeps/sparc/sparc32/alloca.S: Likewise.
13795         * sysdeps/unix/i386/sysdep.S: Likewise.
13796         * sysdeps/unix/sparc/start.c: Likewise.
13797         * sysdeps/unix/sparc/sysdep.S: Likewise.
13798         * sysdeps/unix/sparc/sysdep.h: Likewise.
13799         * sysdeps/unix/start.c: Likewise.
13800         * sysdeps/unix/x86_64/sysdep.S: Likewise.
13801         * sysdeps/x86_64/sysdep.h: Likewise.
13802
13803 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
13804
13805         [BZ #13553]
13806         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
13807         for non-gcc.
13808         * argp/argp-fmtstream.h: Use const instead __const.
13809         * argp/argp.h: Likewise.
13810         * assert/assert.h: Likewise.
13811         * bits/fenv.h: Likewise.
13812         * bits/sched.h: Likewise.
13813         * bits/sigset.h: Likewise.
13814         * bits/sigthread.h: Likewise.
13815         * catgets/nl_types.h: Likewise.
13816         * conform/data/pthread.h-data: Likewise.
13817         * crypt/crypt-private.h: Likewise.
13818         * crypt/crypt.h: Likewise.
13819         * crypt/crypt_util.c: Likewise.
13820         * ctype/ctype.h: Likewise.
13821         * debug/execinfo.h: Likewise.
13822         * debug/mbsnrtowcs_chk.c: Likewise.
13823         * debug/mbsrtowcs_chk.c: Likewise.
13824         * debug/wcsnrtombs_chk.c: Likewise.
13825         * debug/wcsrtombs_chk.c: Likewise.
13826         * debug/wcstombs_chk.c: Likewise.
13827         * dirent/dirent.h: Likewise.
13828         * dlfcn/dlfcn.h: Likewise.
13829         * elf/neededtest4.c: Likewise.
13830         * grp/grp.h: Likewise.
13831         * gshadow/gshadow.h: Likewise.
13832         * iconv/gconv.h: Likewise.
13833         * iconv/gconv_int.h: Likewise.
13834         * iconv/gconv_simple.c: Likewise.
13835         * iconv/iconv.h: Likewise.
13836         * iconv/loop.c: Likewise.
13837         * iconv/skeleton.c: Likewise.
13838         * include/aio.h: Likewise.
13839         * include/aliases.h: Likewise.
13840         * include/argz.h: Likewise.
13841         * include/arpa/inet.h: Likewise.
13842         * include/assert.h: Likewise.
13843         * include/dirent.h: Likewise.
13844         * include/dlfcn.h: Likewise.
13845         * include/execinfo.h: Likewise.
13846         * include/fcntl.h: Likewise.
13847         * include/fenv.h: Likewise.
13848         * include/glob.h: Likewise.
13849         * include/grp.h: Likewise.
13850         * include/libintl.h: Likewise.
13851         * include/mntent.h: Likewise.
13852         * include/netdb.h: Likewise.
13853         * include/pwd.h: Likewise.
13854         * include/rpc/netdb.h: Likewise.
13855         * include/sched.h: Likewise.
13856         * include/search.h: Likewise.
13857         * include/shadow.h: Likewise.
13858         * include/signal.h: Likewise.
13859         * include/stdio.h: Likewise.
13860         * include/stdlib.h: Likewise.
13861         * include/string.h: Likewise.
13862         * include/sys/socket.h: Likewise.
13863         * include/sys/stat.h: Likewise.
13864         * include/sys/statfs.h: Likewise.
13865         * include/sys/statvfs.h: Likewise.
13866         * include/sys/syslog.h: Likewise.
13867         * include/sys/time.h: Likewise.
13868         * include/sys/uio.h: Likewise.
13869         * include/time.h: Likewise.
13870         * include/unistd.h: Likewise.
13871         * include/utmp.h: Likewise.
13872         * include/wchar.h: Likewise.
13873         * include/wctype.h: Likewise.
13874         * inet/aliases.h: Likewise.
13875         * inet/arpa/inet.h: Likewise.
13876         * inet/netinet/ether.h: Likewise.
13877         * inet/netinet/in.h: Likewise.
13878         * intl/libintl.h: Likewise.
13879         * io/bits/fcntl2.h: Likewise.
13880         * io/fcntl.h: Likewise.
13881         * io/ftw.h: Likewise.
13882         * io/sys/poll.h: Likewise.
13883         * io/sys/stat.h: Likewise.
13884         * io/sys/statfs.h: Likewise.
13885         * io/sys/statvfs.h: Likewise.
13886         * io/utime.h: Likewise.
13887         * libio/bits/stdio.h: Likewise.
13888         * libio/bits/stdio2.h: Likewise.
13889         * libio/libio.h: Likewise.
13890         * libio/libioP.h: Likewise.
13891         * libio/stdio.h: Likewise.
13892         * locale/lc-ctype.c: Likewise.
13893         * locale/locale.h: Likewise.
13894         * login/utmp.h: Likewise.
13895         * malloc/arena.c: Likewise.
13896         * malloc/malloc.c: Likewise.
13897         * malloc/malloc.h: Likewise.
13898         * malloc/mcheck.c: Likewise.
13899         * malloc/mtrace.c: Likewise.
13900         * math/bits/mathcalls.h: Likewise.
13901         * math/fenv.h: Likewise.
13902         * math/math_private.h: Likewise.
13903         * misc/bits/error.h: Likewise.
13904         * misc/bits/syslog.h: Likewise.
13905         * misc/err.h: Likewise.
13906         * misc/error.h: Likewise.
13907         * misc/fstab.h: Likewise.
13908         * misc/mntent.h: Likewise.
13909         * misc/regexp.h: Likewise.
13910         * misc/search.h: Likewise.
13911         * misc/sgtty.h: Likewise.
13912         * misc/sys/mman.h: Likewise.
13913         * misc/sys/syslog.h: Likewise.
13914         * misc/sys/uio.h: Likewise.
13915         * misc/sys/xattr.h: Likewise.
13916         * misc/ttyent.h: Likewise.
13917         * nis/rpcsvc/ypclnt.h: Likewise.
13918         * nss/nss.h: Likewise.
13919         * posix/bits/unistd.h: Likewise.
13920         * posix/fnmatch.h: Likewise.
13921         * posix/glob.h: Likewise.
13922         * posix/sched.h: Likewise.
13923         * posix/spawn.h: Likewise.
13924         * posix/sys/wait.h: Likewise.
13925         * posix/unistd.h: Likewise.
13926         * posix/wordexp.h: Likewise.
13927         * pwd/pwd.h: Likewise.
13928         * resolv/netdb.h: Likewise.
13929         * resource/sys/resource.h: Likewise.
13930         * rt/aio.h: Likewise.
13931         * rt/bits/mqueue2.h: Likewise.
13932         * rt/mqueue.h: Likewise.
13933         * shadow/shadow.h: Likewise.
13934         * signal/signal.h: Likewise.
13935         * socket/send.c: Likewise.
13936         * socket/sendto.c: Likewise.
13937         * socket/sys/socket.h: Likewise.
13938         * stdio-common/printf.h: Likewise.
13939         * stdlib/bits/stdlib.h: Likewise.
13940         * stdlib/fmtmsg.h: Likewise.
13941         * stdlib/monetary.h: Likewise.
13942         * stdlib/stdlib.h: Likewise.
13943         * stdlib/ucontext.h: Likewise.
13944         * streams/stropts.h: Likewise.
13945         * string/argz.h: Likewise.
13946         * string/bits/string2.h: Likewise.
13947         * string/string.h: Likewise.
13948         * string/strings.h: Likewise.
13949         * sunrpc/rpc/auth.h: Likewise.
13950         * sunrpc/rpc/auth_des.h: Likewise.
13951         * sunrpc/rpc/clnt.h: Likewise.
13952         * sunrpc/rpc/netdb.h: Likewise.
13953         * sunrpc/rpc/pmap_clnt.h: Likewise.
13954         * sunrpc/rpc/xdr.h: Likewise.
13955         * sysdeps/generic/inttypes.h: Likewise.
13956         * sysdeps/generic/net/if.h: Likewise.
13957         * sysdeps/generic/sys/swap.h: Likewise.
13958         * sysdeps/gnu/net/if.h: Likewise.
13959         * sysdeps/gnu/utmpx.h: Likewise.
13960         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
13961         * sysdeps/i386/i486/bits/string.h: Likewise.
13962         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
13963         * sysdeps/s390/bits/string.h: Likewise.
13964         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
13965         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
13966         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
13967         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
13968         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
13969         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
13970         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
13971         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
13972         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
13973         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
13974         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
13975         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
13976         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
13977         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
13978         * sysdeps/unix/sysv/linux/readv.c: Likewise.
13979         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
13980         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
13981         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
13982         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
13983         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
13984         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
13985         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
13986         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
13987         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
13988         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
13989         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
13990         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
13991         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
13992         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
13993         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
13994         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
13995         * sysvipc/sys/ipc.h: Likewise.
13996         * sysvipc/sys/msg.h: Likewise.
13997         * sysvipc/sys/sem.h: Likewise.
13998         * sysvipc/sys/shm.h: Likewise.
13999         * termios/termios.h: Likewise.
14000         * time/sys/time.h: Likewise.
14001         * time/time.h: Likewise.
14002         * wcsmbs/bits/wchar2.h: Likewise.
14003         * wcsmbs/uchar.h: Likewise.
14004         * wcsmbs/wchar.h: Likewise.
14005         * wctype/wctype.h: Likewise.
14006
14007         [BZ #13551]
14008         * Makeconfig: Remove all but ELF support including AIX support.
14009         * Makerules: Likewise.
14010         * config.h.in: Likewise.
14011         * config.make.in: Likewise.
14012         * configure: Likewise.
14013         * configure.in: Likewise.
14014         * csu/Makefile: Likewise.
14015         * csu/version.c: Likewise.
14016         * debug/Makefile: Likewise.
14017         * dlfcn/Makefile: Likewise.
14018         * elf/Makefile: Likewise.
14019         * extra-lib.mk: Likewise.
14020         * iconv/Makefile: Likewise.
14021         * include/libc-symbols.h: Likewise.
14022         * include/shlib-compat.h: Likewise.
14023         * resolv/Makefile: Likewise.
14024         * resolv/res_libc.c: Likewise.
14025         * rt/Makefile: Likewise.
14026         * sysdeps/i386/asm-syntax.h: Likewise.
14027         * sysdeps/i386/sysdep.h: Likewise.
14028         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
14029         * sysdeps/mach/sysdep.h: Likewise.
14030         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
14031         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
14032         * sysdeps/s390/asm-syntax.h: Likewise.
14033         * sysdeps/s390/s390-32/sysdep.h: Likewise.
14034         * sysdeps/s390/s390-64/sysdep.h: Likewise.
14035         * sysdeps/sh/sysdep.h: Likewise.
14036         * sysdeps/unix/sparc/sysdep.h: Likewise.
14037         * sysdeps/wordsize-32/divdi3.c: Likewise.
14038         * sysdeps/x86_64/sysdep.h: Likewise.
14039
14040         * argp/Versions: Remove _argp_unlock_xxx.
14041
14042         [BZ #13559]
14043         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
14044         * abilist/libBrokenLocale.abilist: Likewise.
14045         * abilist/libanl.abilist: Likewise.
14046         * abilist/libc.abilist: Likewise.
14047         * abilist/libcrypt.abilist: Likewise.
14048         * abilist/libdl.abilist: Likewise.
14049         * abilist/libm.abilist: Likewise.
14050         * abilist/libnsl.abilist: Likewise.
14051         * abilist/libpthread.abilist: Likewise.
14052         * abilist/libresolv.abilist: Likewise.
14053         * abilist/librt.abilist: Likewise.
14054         * abilist/libthread_db.abilist: Likewise.
14055         * abilist/libutil.abilist: Likewise.
14056         * abilist/libnss_db.abilist: New file.
14057
14058         * scripts/abilist.awk: Add support for indirect functions.
14059
14060         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
14061
14062         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
14063
14064         * shlib-versions: Remove entries for ports architectures.
14065
14066         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
14067         files in ports.
14068         * elf/stackguard-macros.h: Remove support for IA-64.
14069         * elf/tst-auditmod1.c: Likewise.
14070         * sysdeps/generic/ldsodefs.h: Likewise.
14071
14072         * sysdeps/unix/sysv/linux/configure.in: Ports should define
14073         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
14074         configure files.
14075
14076         [BZ #13552]
14077         * configure.in: Remove --enable-omitfp support.
14078         * FAQ.in: Adjust.
14079         * config.make.in: Likewise.
14080         * Makeconfig: Likewise.
14081         * manual/install.texi: Likewise.
14082
14083         In case anyone cares, the IA-64 architecture could move to ports.
14084         * sysdeps/ia64/*: Removed.
14085         * sysdeps/unix/sysv/linux/ia64/*: Removed.
14086         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
14087
14088         [BZ #13555]
14089         * configure.in: Remove entries for unsupported architectures.
14090
14091         [BZ #13533]
14092         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
14093         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
14094         routines.
14095         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
14096         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
14097         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
14098         fall back to using wcrtomb.
14099         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
14100         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
14101         renaming.
14102         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
14103         * wcsmbs/tst-c16c32-1.c: New file.
14104
14105         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
14106         local variable.
14107
14108         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
14109
14110         * elf/tst-unique3.cc: Add explicit declaration of gets.
14111         * elf/tst-unique3lib.cc: Likewise.
14112         * elf/tst-unique3lib2.cc: Likewise.
14113         * elf/tst-unique4.cc: Likewise.
14114
14115         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
14116
14117 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
14118
14119         [BZ #13566]
14120         * assert/assert.h (static_assert): Don't define for C++.
14121         * libio/stdio.h (gets): Do declare for C++ <= C++11.
14122         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
14123
14124 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
14125
14126         * iconv/loop.c (single loop): Fix assertion in storing of
14127         remaining bytes.
14128
14129         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
14130
14131 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
14132
14133         * posix/getconf.c: Update copyright year.
14134         * nss/getent.c: Likewise.
14135         * nss/makedb.c: Likewise.
14136         * iconv/iconvconfig.c: Likewise.
14137         * iconv/iconv_prog.c: Likewise.
14138         * elf/ldconfig.c: Likewise.
14139         * elf/pldd.c: Likewise.
14140         * elf/sotruss.ksh: Likewise.
14141         * catgets/gencat.c: Likewise.
14142         * csu/version.c: Likewise.
14143         * elf/ldd.bash.in: Likewise.
14144         * elf/sprof.c (print_version): Likewise.
14145         * locale/programs/locale.c: Likewise.
14146         * locale/programs/localedef.c: Likewise.
14147         * login/programs/pt_chown.c: Likewise.
14148         * nscd/nscd.c (print_version): Likewise.
14149         * debug/xtrace.sh: Likewise.
14150         * malloc/memusage.sh: Likewise.
14151         * malloc/mtrace.pl: Likewise.
14152         * debug/catchsegv.sh: Likewise.
14153
14154 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
14155
14156         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
14157         pure attribute.
14158
14159 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
14160
14161         [BZ #13533]
14162         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
14163         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
14164         transformations.
14165         * iconv/gconv_int.h: Likewise.
14166         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
14167         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
14168         from libc for GLIBC_2.16.
14169         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
14170         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
14171         * wcsmbs/uchar.h: Really define mbstate_t.
14172         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
14173         * wcsmbs/c16rtomb.c: New file.
14174         * wcsmbs/mbrtoc16.c: New file.
14175         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
14176         for C/POSIX locale.
14177         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
14178         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
14179
14180         * wcsmbs/wchar.h: Add missing __restrict.
14181
14182 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
14183
14184         [BZ #13532]
14185         * time/Makefile (routines): Add timespec_get.
14186         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
14187         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
14188         timespec for ISO C11.
14189         * time/timespec_get.c: New file.
14190         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
14191         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
14192
14193         [BZ #13531]
14194         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
14195         * stdlib/stdlib.h: Declare aligned_alloc.
14196         * Versions.def: Add GLIBC_2.16 for libc.
14197         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
14198
14199         [BZ 13527]
14200         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
14201         ISO C11.
14202
14203         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
14204         code.
14205
14206         [BZ #13528]
14207         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
14208
14209         [BZ #13529]
14210         * assert/assert.h (static_assert): Define.
14211
14212         * version.h: Update for 2.16 development version.
14213
14214         [BZ #13526]
14215         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
14216         _ISOC11_SOURCE.
14217
14218         * version.h (RELEASE): Bump for 2.15 release.
14219         * include/features.h (__GLIBC_MINOR__): Bump to 15.
14220
14221         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
14222         Patch by Marek Polacek <mpolacek@redhat.com>.
14223
14224         * bits/byteswap.h: Protect long long constants with __extension__.
14225         * sysdeps/i386/bits/byteswap.h: Likewise.
14226         * sysdeps/ia64/bits/byteswap.h: Likewise.
14227         * sysdeps/s390/bits/byteswap.h: Likewise.
14228         * sysdeps/x86_64/bits/byteswap.h: Likewise.
14229
14230 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14231
14232         [BZ #13540]
14233         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
14234         destination buffer.
14235         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
14236
14237 2011-12-23  Marek Polacek  <polacek@redhat.com>
14238
14239         * elf/dl-addr.c (determine_info): Add inline keyword.
14240         * elf/tst-auditmod4b.c (check_avx): Likewise.
14241         * elf/tst-auditmod6b.c (check_avx): Likewise.
14242         * elf/tst-auditmod6c.c (check_avx): Likewise.
14243         * elf/tst-auditmod7b.c (check_avx): Likewise.
14244
14245 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
14246
14247         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
14248         !__SSE_MATH__.
14249
14250 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14251
14252         [BZ #13540]
14253         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
14254         processing for last bytes.
14255
14256 2011-08-06  Bruno Haible  <bruno@clisp.org>
14257
14258         [BZ #13061]
14259         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
14260         U+0385, not to U+1FEE.
14261
14262         [BZ #13062]
14263         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
14264         entry for U+00A5 U+0301.
14265
14266 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
14267
14268         [BZ #13166]
14269         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
14270         buffer for the output is too small.
14271
14272         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
14273         optimization.
14274
14275         [BZ #13185]
14276         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
14277         SSE flags if possible.
14278
14279 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14280
14281         [BZ #13540]
14282         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
14283         processing for last bytes.
14284
14285 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
14286
14287         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
14288         (syscall-list-default-options, syscall-list-default-condition)
14289         (syscall-list-includes): Define.
14290         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
14291         list of ABIs and options and #if conditions for each ABI.  Do not
14292         handle common syscalls between ABIs specially.
14293         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
14294         Remove.
14295         (syscall-list-variants, syscall-list-32bit-options)
14296         (syscall-list-32bit-condition, syscall-list-64bit-options)
14297         (syscall-list-64bit-condition): Define.
14298         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
14299         (syscall-list-variants, syscall-list-32bit-options)
14300         (syscall-list-32bit-condition, syscall-list-64bit-options)
14301         (syscall-list-64bit-condition): Define.
14302         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
14303         Remove.
14304         (syscall-list-variants, syscall-list-32bit-options)
14305         (syscall-list-32bit-condition, syscall-list-64bit-options)
14306         (syscall-list-64bit-condition): Define.
14307         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
14308         Remove.
14309         (syscall-list-variants, syscall-list-32bit-options)
14310         (syscall-list-32bit-condition, syscall-list-64bit-options)
14311         (syscall-list-64bit-condition): Define.
14312
14313 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
14314
14315         * locale/iso-639.def: Add brx entry.
14316
14317         [BZ #13328]
14318         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
14319         Proposed by Mariusz_Cukr <marcukr@op.pl>.
14320
14321         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
14322         __feraiseexcept_renamed.
14323
14324 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
14325
14326         [BZ #13538]
14327         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
14328         EPOLLET with unsigned values.
14329         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
14330         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
14331
14332         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
14333         to large cancellation.
14334         * math/s_cacoshf.c: Likewise.
14335         * math/s_cacoshl.c: Likewise.
14336
14337 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
14338
14339         [BZ #13305]
14340         [BZ #12786]
14341         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
14342         * math/s_cacoshf.c: Likewise.
14343         * math/s_cacoshl.c: Likewise.
14344
14345 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
14346
14347         [BZ #13439]
14348         * iconv/gconv.h: Define __GCONV_SWAP.
14349         * iconvdata/unicode.c: The swap bit must be stored in __flags.
14350         * iconvdata/utf-16.c: Likewise.
14351         * iconvdata/utf-32.c: Likewise.
14352
14353 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
14354
14355         [BZ #13524]
14356         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
14357         numerator after shifting it by one limb.
14358
14359 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
14360
14361         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
14362         under [__USE_EXTERN_INLINES].
14363
14364 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
14365
14366         [BZ #13446]
14367         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
14368
14369 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14370
14371         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
14372         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
14373         optimized code.
14374         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
14375         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
14376         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
14377         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
14378         for strncasecmp/strncasecmp_l compilation.
14379         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
14380         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
14381
14382 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
14383
14384         [BZ #13484]
14385         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
14386         of __asm__.
14387
14388 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
14389
14390         [BZ #13506]
14391         * time/tzfile.c (__tzfile_read): Check values from file header.
14392
14393 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
14394
14395         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
14396         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
14397         * powerpc/powerpc32/dl-start.S: Likewise.
14398         * powerpc/powerpc32/elf/start.S: Likewise.
14399         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
14400         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
14401         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
14402         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
14403         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
14404         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
14405         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
14406         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
14407         * powerpc/powerpc32/fpu/s_round.S: Likewise.
14408         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
14409         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
14410         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
14411         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
14412         * powerpc/powerpc32/memset.S: Likewise.
14413         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
14414         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
14415         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
14416         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
14417         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
14418         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
14419         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
14420         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
14421         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
14422         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
14423         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
14424         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
14425         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
14426
14427 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14428
14429         * math/libm-test.inc: Added more nearbyint tests.
14430         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
14431         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
14432         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
14433         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
14434
14435 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
14436
14437         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
14438         FD_CLOEXEC.
14439
14440 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14441
14442         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
14443         Add wcscpy-ssse3 wcscpy-c.
14444         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
14445         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
14446         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
14447         * sysdeps/x86_64/wcschr.S: New file.
14448         * sysdeps/x86_64/wcsrchr.S: New file.
14449         * string/test-strcmp.c: Remove checking of wcscmp function for
14450         wrong alignments.
14451         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
14452         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
14453         wcsrchr-sse2 wcsrchr-c.
14454         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
14455         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
14456         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
14457         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
14458         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
14459         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
14460         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
14461         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
14462         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
14463         * wcsmbc/wcschr.c (WCSCHR): New macro.
14464
14465 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14466
14467         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
14468         * wcsmbs/test-wcsrchr.c: New file.
14469         * string/test-strrchr.c: Add wcsrchr support.
14470         (WIDE): New macro.
14471         * wcsmbs/test-wcscpy.c: New file.
14472         * string/test-strcpy.c: Add wcscpy support.
14473         (WIDE): New macro.
14474
14475 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
14476
14477         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
14478         the inner loop.
14479
14480 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
14481
14482         [BZ #13472]
14483         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
14484
14485 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
14486
14487         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
14488         Minor optimizations.
14489
14490         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
14491         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
14492         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
14493
14494 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
14495
14496         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
14497         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
14498         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
14499         for gcc to avoid warnings.
14500         * inet/Makefile (tests): Add tst-checks.
14501         * inet/tst-checks.c: New file.
14502
14503         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
14504         warning.
14505
14506         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
14507         __wmemcmp_sse2.
14508
14509         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
14510         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
14511
14512         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
14513
14514 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
14515
14516         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
14517         problem.
14518
14519         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
14520
14521 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
14522
14523         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
14524         conditional on GCC version.
14525         (__arch_compare_and_exchange_val_8_acq)
14526         (__arch_compare_and_exchange_val_16_acq)
14527         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
14528         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
14529         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
14530
14531 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
14532
14533         * sysdeps/sh/backtrace.c: New file.
14534
14535 2011-12-02  Andreas Schwab  <schwab@redhat.com>
14536
14537         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
14538         parenthesis.
14539
14540 2011-12-01  Andreas Schwab  <schwab@redhat.com>
14541
14542         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
14543         falling back to utime.
14544
14545 2011-11-30  Andreas Schwab  <schwab@redhat.com>
14546
14547         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
14548         expectations for float.
14549
14550 2011-11-29  Andreas Schwab  <schwab@redhat.com>
14551
14552         * locale/weight.h (findidx): Add parameter len.
14553         * locale/weightwc.h (findidx): Likewise.
14554         * posix/fnmatch_loop.c (FCT): Adjust caller.
14555         * posix/regcomp.c (build_equiv_class): Likewise.
14556         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
14557         * posix/regexec.c (check_node_accept_bytes): Likewise.
14558         * string/strcoll_l.c (STRCOLL): Likewise.
14559         * string/strxfrm_l.c (STRXFRM): Likewise.
14560
14561 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
14562
14563         * Makefile.in: Remove CVSOPT handling.
14564         * configure.in: Remove use of AC_REVISION.
14565         * iconvdata/Makefile (distribute): No need to filter out CVS.
14566         * scripts/list-sources.sh: Remove CVS, subversion and monotone
14567         handling.
14568
14569 2011-11-16  Andreas Schwab  <schwab@redhat.com>
14570
14571         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
14572         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
14573         [USE_AS_STRNCASECMP_L]: Likewise.
14574         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
14575         NO_TLS_DIRECT_SEG_REFS.
14576         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
14577         Fix argument offsets for non-PIC.
14578         [USE_AS_STRNCASECMP_L]: Likewise.
14579         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
14580         NO_TLS_DIRECT_SEG_REFS.
14581
14582 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
14583
14584         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
14585         O_CLOEXEC.
14586         * locale/loadlocale.c (_nl_load_locale): Likewise.
14587
14588 2011-11-15  Andreas Schwab  <schwab@redhat.com>
14589
14590         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
14591         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
14592         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
14593         (SYSCALL_GETTIME): Set errno on error.
14594
14595         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
14596         count references to noai6ai_cached.
14597
14598 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
14599
14600         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
14601
14602         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
14603         FD_CLOEXEC for /proc/self/maps.
14604
14605         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
14606         FD_CLOEXEC for /proc/meminfo.
14607
14608         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
14609         gai.conf.
14610
14611         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
14612         FD_CLOEXEC for given file.
14613
14614         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
14615
14616         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
14617         FD_CLOEXEC for /etc/hosts.
14618         (_gethtent): Likewise.
14619
14620         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
14621
14622         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
14623         cancellation and set FD_CLOEXEC for /etc/netgroup.
14624
14625         * nss/nss_files/files-key.c (search): Don't allow cancellation when
14626         reading /etc/publickey.
14627
14628         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
14629         allow cancellation when reading /etc/group.
14630
14631         * nss/nss_files/files-alias.c (internal_setent): Don't allow
14632         cancellation.
14633         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
14634
14635         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
14636         when using data file.
14637
14638         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
14639
14640         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
14641         (write_nis_obj): Use "c" and "e" in fopen.
14642
14643         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
14644
14645         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
14646
14647         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
14648
14649         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
14650
14651         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
14652         locale.alias.
14653
14654         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
14655
14656         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
14657
14658         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
14659
14660         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
14661         file parsing and set FD_CLOEXEC.
14662
14663 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
14664
14665         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
14666
14667 2011-11-14  Andreas Schwab  <schwab@redhat.com>
14668
14669         * malloc/arena.c (arena_get2): Don't call reused_arena when
14670         _int_new_arena failed.
14671
14672 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
14673
14674         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
14675         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
14676         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
14677         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
14678         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
14679         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
14680         to compile strcasecmp and strncasecmp.
14681         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
14682         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
14683
14684         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
14685
14686 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
14687
14688         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
14689         locale-defines.sym to gen-as-const-headers.
14690         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
14691         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
14692         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
14693         to compile strcasecmp and strncasecmp.
14694         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
14695         strcasecmp_l and strncasecmp_l.
14696         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
14697         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
14698         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
14699         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
14700         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
14701         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
14702         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
14703         * sysdeps/i386/i686/multiarch/strncase.S: New file.
14704         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
14705         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
14706         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
14707
14708 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
14709
14710         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
14711         result of SYSDEP_GETTIME_CPU to retval.
14712         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
14713         parameter list to macro.  Remove trailing semicolon.  Adjust users.
14714
14715         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
14716         variable.
14717
14718         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
14719         mantissa words.
14720         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
14721
14722         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
14723         from unused variable.
14724
14725         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
14726         DWARF definitions.
14727         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
14728         for assembling.
14729
14730         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
14731         over namespaces.
14732
14733         * sunrpc/rpc_prot.c (rejected): Fix case value.
14734
14735         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
14736         unsigned long long int to avoid warnings in shift.
14737
14738         * posix/regex_internal.c (re_string_reconstruct): Actually use result
14739         of use of trans.
14740         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
14741         variable tmp.
14742
14743         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
14744         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
14745         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
14746
14747         * nis/nis_table.c (nis_list): Use variable of correct type for
14748         result of __follow_path call.
14749
14750 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14751
14752         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
14753         of math functions ceil, trunc, floor, round, and sqrt, when
14754         avaliable on the platform.
14755         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
14756         name clash.
14757         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
14758         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
14759         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
14760
14761 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
14762
14763         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
14764         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
14765
14766 2011-11-11  Roland McGrath  <roland@hack.frob.com>
14767
14768         * include/unistd.h: Fix __readlink return type.
14769         Reported by Chris Metcalf <cmetcalf@tilera.com>.
14770
14771 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
14772
14773         * stdlib/ucontext.h: Undo last change for makecontext.
14774
14775 2011-11-11  Andreas Schwab  <schwab@redhat.com>
14776
14777         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
14778
14779         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
14780         * setjmp/setjmp.h: Mark functions as non-leaf.
14781         * setjmp/bits/setjmp2.h: Likewise.
14782         * stdlib/ucontext.h: Likewise.
14783
14784 2011-11-10  Andreas Schwab  <schwab@redhat.com>
14785
14786         * malloc/arena.c (_int_new_arena): Don't increment narenas.
14787         (reused_arena): Don't check arena limit.
14788         (arena_get2): Atomically check arena limit.
14789
14790 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
14791
14792         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
14793         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
14794
14795         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
14796         instructions.
14797
14798 2011-11-07  Andreas Schwab  <schwab@redhat.com>
14799
14800         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
14801         handler when locking.
14802
14803         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
14804         Fix size of allocated buffer.
14805
14806 2011-11-04  Andreas Schwab  <schwab@redhat.com>
14807
14808         [BZ #10103]
14809         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
14810         declarations for long double functions.
14811         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
14812
14813         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
14814
14815 2011-11-03  Andreas Schwab  <schwab@redhat.com>
14816
14817         * nscd/nscd.c (main): Don't start AVC thread until credentials are
14818         installed.
14819
14820         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
14821         is disabled.
14822
14823 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14824
14825         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
14826
14827 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
14828
14829         * include/alloca.h (stackinfo_alloca_round): Define.
14830         (extend_alloca): Use it.
14831         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
14832         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
14833         here.
14834
14835         * scripts/check-local-headers.sh: Ignore libaudit.h.
14836
14837         * nscd/Makefile (extra-objs): Make recursively expanded.
14838
14839 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
14840
14841         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
14842         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
14843
14844         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
14845         * posix/tst-rfc3484-2.c: Likewise.
14846         * posix/tst-rfc3484-3.c: Likewise.
14847
14848         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
14849         process_vm_writev.
14850         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
14851         process_vm_writev.
14852         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
14853         process_vm_writev from libc using GLIBC_2.15 version.
14854
14855         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
14856
14857 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
14858
14859         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
14860         stack usage.
14861
14862 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
14863
14864         [BZ #13367]
14865         * nss/getent.c (initgroups_keys): Show error message in case no group
14866         names are given.
14867
14868         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
14869         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
14870         __bump_nl_timestamp.
14871         * nscd/connections (nscd_init): When host database is served open
14872         netlink socket and request notification about configuration changes.
14873         (main_loop_poll): Track netlink file descriptor and bump timestamp
14874         in case data becomes available.
14875         (main_loop_epoll): Likewise.
14876         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
14877         (database_pers_head): Add extra_data fileds.
14878         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
14879         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
14880         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
14881         Adjust caller.
14882         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
14883         in6ai data, call __free_in6ai.
14884         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
14885         Add -DHAVE_NETLINK.
14886         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
14887         interface information.  Reuse previous data if netlink timestamp
14888         is not changed.
14889         (__bump_nl_timestamp): New function.
14890         (__free_in6ai): New function.
14891
14892 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
14893
14894         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
14895         close_not_cancel_no_status here.
14896         (__check_pf): Reorganize code a bit to not call close twice if OOM.
14897
14898 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
14899
14900         [BZ #13276]
14901         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
14902         return value.
14903
14904         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
14905         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
14906         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
14907
14908 2011-07-03  Andreas Jaeger  <aj@suse.de>
14909
14910         [BZ #10709]
14911         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
14912         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
14913         * math/libm-test.inc (sin_test): Add test case.
14914
14915 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
14916
14917         [BZ #13337]
14918         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
14919         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
14920
14921         * elf/chroot_canon.c (chroot_canon): Cleanups.
14922
14923         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
14924
14925         [BZ #13335]
14926         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
14927         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
14928
14929         * string/test-strchr.c: Make usable for strchrnul testing.
14930         * string/test-strchrnul.c: New file.
14931         * string/Makefile (strop-tests): Add strchrnul.
14932
14933         * po/it.po: Update from translation team.
14934         * po/es.po: Likewise.
14935
14936 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
14937
14938         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
14939         the three constants needed as parameters.  Drop the others.
14940         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
14941         __m128i_strloadu_tolower.
14942         Create and initialize variable zero and use it in all the places
14943         where _mm_setzero_si128 was used.
14944
14945         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
14946         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
14947         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
14948         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
14949         anymore.
14950         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
14951         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
14952         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
14953         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
14954         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
14955         __mpranred, __mptan.
14956         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
14957         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
14958         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
14959         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
14960         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
14961         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
14962         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
14963         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
14964         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
14965
14966 2011-10-28  Andreas Schwab  <schwab@redhat.com>
14967
14968         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
14969         redefine if SHARED.
14970         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
14971
14972         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
14973         wide char related routines to wcsmbs subdir.
14974
14975 2011-10-27  Andreas Schwab  <schwab@redhat.com>
14976
14977         [BZ #13344]
14978         * misc/sys/cdefs.h (__THROWNL): Define.
14979         * posix/unistd.h: Use __THREADNL instead of __THREAD
14980         for memory synchronization functions.
14981
14982 2011-10-26  Roland McGrath  <roland@hack.frob.com>
14983
14984         [BZ #13349]
14985         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
14986         doesn't exist.
14987         * manual/stdio.texi (Obstack Streams): Node removed.
14988
14989 2011-10-26  Andreas Schwab  <schwab@redhat.com>
14990
14991         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
14992         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
14993         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
14994
14995         * math/math_private.h (math_force_eval): Allow non-addressable
14996         arguments.
14997         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
14998
14999 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
15000
15001         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
15002         file is not needed.
15003
15004         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
15005         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
15006         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
15007         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
15008         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
15009         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
15010         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
15011         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
15012         Add AVX variants.
15013         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
15014         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
15015         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
15016         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
15017         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
15018         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
15019         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
15020         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
15021         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
15022         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
15023         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
15024         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
15025         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
15026         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
15027         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
15028         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
15029         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
15030         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
15031         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
15032
15033         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
15034         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
15035
15036         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
15037         place.  Use VEX encoding when compiling for AVX.
15038
15039 2011-10-25  Andreas Schwab  <schwab@redhat.com>
15040
15041         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
15042         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
15043
15044         * string/test-strchr.c (do_test): Don't generate NUL bytes.
15045
15046 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
15047
15048         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
15049         useless if() expression.
15050         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
15051         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
15052         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
15053         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
15054         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
15055         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
15056         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
15057         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
15058         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
15059         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
15060         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
15061         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
15062         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
15063         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
15064         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
15065         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
15066         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
15067         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
15068         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
15069
15070         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
15071
15072 2011-10-25  Andreas Schwab  <schwab@redhat.com>
15073
15074         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
15075         condition.
15076         * elf/dl-fini.c (_dl_sort_fini): Likewise.
15077
15078 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
15079
15080         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
15081         .text section.  Avoid duplicate constants.
15082         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
15083         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15084         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
15085         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15086         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
15087         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15088         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15089         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15090         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
15091         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
15092         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
15093         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
15094         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
15095         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
15096         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
15097         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
15098         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
15099         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
15100         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
15101         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
15102         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
15103         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
15104         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
15105         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
15106         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
15107         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
15108         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
15109         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
15110         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
15111         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
15112         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
15113         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
15114         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
15115         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
15116         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
15117         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
15118         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
15119         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
15120         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
15121         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
15122         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
15123         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
15124         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
15125         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
15126         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
15127
15128 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
15129
15130         * sysdeps/x86_64/dla.h: Move to ...
15131         * sysdeps/x86_64/fpu/dla.h: ...here.
15132         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
15133         situations.  Use __builtin_fma only for gcc 4.6 and up.
15134
15135         * config.make.in: Add have-mfma4 entry.
15136         * configure.in: Substitute libc_cv_cc_fma4.
15137         * math/Makefile (dbl-only-routines): Add sincostab.
15138         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
15139         Use __sincostab not sincos.
15140         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
15141         name is a macro.
15142         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
15143         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15144         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15145         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
15146         using __copysign.
15147         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
15148         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
15149         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
15150         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
15151         and __inv.
15152         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
15153         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
15154         __copysign.
15155         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
15156         define aliases when function name is a macro.
15157         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
15158         sysdeps/ieee754/dbl-64/sincos.tbl.
15159         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
15160         fma4-enabled routines.
15161         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
15162         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
15163         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
15164         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
15165         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
15166         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
15167         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
15168         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
15169         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
15170         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
15171         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
15172         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
15173         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
15174         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
15175         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
15176         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
15177         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
15178         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
15179         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
15180         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
15181         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
15182         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
15183         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
15184         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
15185         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
15186         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
15187         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
15188         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
15189         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
15190         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
15191
15192         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
15193         rename.
15194         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15195         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15196         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15197         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15198         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15199         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15200         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
15201         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
15202
15203 2011-10-24  Andreas Schwab  <schwab@redhat.com>
15204
15205         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
15206
15207 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
15208
15209         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
15210
15211         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
15212         prediction.
15213         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
15214
15215         * string/strnlen.c: Don't define STRNLEN, reverse logic.
15216         Remove unused variable magic_bits.
15217         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
15218
15219         * string/strnlen.c: Define and use STRNLEN macro.
15220         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
15221         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
15222         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
15223         * wcsmbs/wcslen.c: Define and use WCSLEN.
15224         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
15225         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
15226         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
15227         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
15228         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
15229         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
15230         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
15231
15232 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15233
15234         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
15235         strnlen-sse2-no-bsf.
15236         Rename strlen-no-bsf to strlen-sse2-no-bsf.
15237         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
15238         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
15239         Add strnlen support.
15240         (USE_AS_STRNLEN): New macro.
15241         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
15242         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
15243         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
15244         * sysdeps/x86_64/wcslen.S: New file.
15245
15246 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
15247
15248         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
15249         XMM-moves are used for copying on small sizes.
15250
15251 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15252
15253         * wcsmbs/Makefile (strop-tests): Add wcschr.
15254         * wcsmbs/test-wcschr.c: New file.
15255         * string/test-strchr.c: Update.
15256         Add wcschr support.
15257         (WIDE): New macro.
15258
15259 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15260
15261         * wcsmbs/Makefile (strop-tests): Add wcslen.
15262         * wcsmbs/test-wcslen.c: New file.
15263         * string/test-strlen.c: Update.
15264         Add wcslen support.
15265         (WIDE): New macro.
15266
15267 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
15268
15269         * po/it.po: Update from translation team.
15270
15271 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15272
15273         * sysdeps/x86_64/wcscmp.S: Update.
15274         Fix wrong comparison semantics.
15275         wcscmp shall use signed comparison not unsigned.
15276         Don't use substraction to avoid overflow bug.
15277         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
15278         * wcsmbc/wcscmp.c: Likewise.
15279         * string/test-strcmp.c: Likewise.
15280         Add new tests to check cases with negative values.
15281
15282 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
15283
15284         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
15285         * sysdeps/x86_64/dla.h: ...here.  New file.
15286         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
15287         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15288         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15289         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15290         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15291         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
15292         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15293         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
15294         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
15295
15296 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
15297
15298         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
15299         __ynl_finite aliases.
15300
15301 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
15302
15303         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
15304
15305         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
15306         define DLA_FMA.
15307         [DLA_FMA] (EMULV): Use DLA_FMA.
15308         [DLA_FMA] (MUL12): Use EMULV.
15309         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
15310         that are not needed.
15311         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15312         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15313         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15314         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15315         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15316         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
15317         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
15318
15319 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
15320
15321         * math/s_nan.c: Undef __nan.
15322         * math/s_nanf.c: Undef __nanf.
15323         * math/s_nanl.c: Undef __nanl.
15324         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
15325         "math_private.h".
15326
15327 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
15328
15329         * math/s_catan.c: Add branch predictions.
15330         * math/s_catanf.c: Likewise.
15331         * math/s_catanh.c: Likewise.
15332         * math/s_catanhf.c: Likewise.
15333         * math/s_catanhl.c: Likewise.
15334         * math/s_catanl.c: Likewise.
15335         * math/s_cexp.c: Likewise.
15336         * math/s_cexpf.c: Likewise.
15337         * math/s_cexpl.c: Likewise.
15338         * math/s_clog.c: Likewise.
15339         * math/s_clog10.c: Likewise.
15340         * math/s_clog10f.c: Likewise.
15341         * math/s_clog10l.c: Likewise.
15342         * math/s_clogf.c: Likewise.
15343         * math/s_clogl.c: Likewise.
15344         * math/s_csqrt.c: Likewise.
15345         * math/s_csqrtf.c: Likewise.
15346         * math/s_csqrtl.c: Likewise.
15347         * math/s_ctanf.c: Likewise.
15348         * math/s_ctanh.c: Likewise.
15349         * math/s_ctanhf.c: Likewise.
15350         * math/s_ctanhl.c: Likewise.
15351         * math/s_ctanl.c: Likewise.
15352
15353         * math/math_private.h: Define __nan, __nanf, __nanl.
15354         * math/s_cacosh.c: Include <math_private.h>.
15355         * math/s_cacoshl.c: Likewise.
15356         * math/s_casinh.c: Likewise.
15357         * math/s_casinhf.c: Likewise.
15358         * math/s_casinhl.c: Likewise.
15359         * math/s_ccos.c: Rely entire on ccosh.
15360         * math/s_ccosf.c: Rely entire on ccoshf.
15361         * math/s_ccosl.c: Rely entirely on ccoshl.
15362         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
15363         Remove tests for FE_INVALID.
15364         * math/s_ccoshf.c: Likewise.
15365         * math/s_ccoshl.c: Likewise.
15366         * math/s_csin.c: Likewise.
15367         * math/s_csinf.c: Likewise.
15368         * math/s_csinh.c Likewise.
15369         * math/s_csinhf.c: Likewise.
15370         * math/s_csinhl.c: Likewise.
15371         * math/s_csinl.c: Likewise.
15372         * math/s_ctan.c: Likewise.
15373         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
15374         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
15375         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
15376
15377 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
15378
15379         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
15380         compilation problems.
15381
15382         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
15383         __builtin_expect.
15384
15385 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
15386
15387         * sysdeps/i386/configure.in: Test for -mfma4 option.
15388         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
15389         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
15390         COMMON_CPUID_INDEX_80000001.
15391         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
15392         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
15393         use it if FMA3 is not supported.
15394         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
15395
15396         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
15397         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
15398
15399 2011-10-20  Andreas Schwab  <schwab@redhat.com>
15400
15401         [BZ #12892]
15402         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
15403         it would create a cycle with a link time dependency.
15404
15405 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
15406
15407         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
15408         instruction.
15409         * string/Makefile (strop-tests): Add rawmemchr.
15410         * string/test-rawmemchr.c: New file.
15411
15412         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
15413         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
15414         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
15415         when compiling str{,n}casecmp and when AVX is available.  Hook up
15416         new optimized code in initializers.
15417
15418 2011-10-19  Andreas Schwab  <schwab@redhat.com>
15419
15420         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
15421         __feraiseexcept instead of feraiseexcept.
15422
15423 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
15424
15425         * math/math_private.h: Define defaults for libc_fetestexcept and
15426         libc_feupdateenv.
15427         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
15428         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
15429         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
15430         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
15431         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
15432         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
15433         libc_fetestexcept and libc_feupdateenv.
15434
15435         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
15436         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
15437         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
15438         * sysdeps/x86_64/fpu/math_private.h: Define special version of
15439         libc_feholdexcept_setround.
15440
15441         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
15442         Add s_nearbyint-c and s_nearbyintf-c.
15443         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
15444         nearbyintf inlines.
15445         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
15446         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
15447         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
15448         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
15449
15450         * math/math_private.h: Define defaults for libc_fegetround,
15451         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
15452         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
15453         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
15454         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
15455         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
15456         standard functions.
15457         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
15458         Remove comments and hacks for old compiler versions.
15459         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
15460         libc_fegetround, libc_fesetround, libc_feholdexcept, and
15461         libc_feholdexceptl.
15462
15463 2011-10-18  Andreas Schwab  <schwab@redhat.com>
15464
15465         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
15466         (__feraiseexcept_renamed): Add __NTH.
15467         (feraiseexcept): Add __NTH.  Rename local variables to fix
15468         namespace violations.
15469
15470 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
15471
15472         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
15473
15474         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
15475
15476         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
15477         recently added interfaces.
15478         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
15479
15480         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
15481         about macro parameter expansion.
15482
15483         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
15484         __NO_MATH_INLINES is defined.  Cleanups.
15485
15486         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
15487         and __floorf is target has SSE4.1.
15488         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
15489         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
15490         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
15491         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
15492
15493         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
15494         name.
15495         (floorf): Likewise.
15496
15497         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
15498
15499 2011-10-17  Andreas Schwab  <schwab@redhat.com>
15500
15501         * misc/sys/cdefs.h: Fix last change.
15502
15503         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
15504         database lookup.
15505
15506 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
15507
15508         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
15509
15510         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
15511         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
15512         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
15513         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
15514         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
15515         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
15516         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
15517         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
15518         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
15519         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
15520         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
15521         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
15522         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
15523         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
15524         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
15525         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
15526         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
15527         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
15528         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
15529         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
15530         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
15531         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
15532
15533         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
15534         ceil, ceilf, floor, floorf.
15535
15536         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
15537         Perform IRELATIVE relocations last.
15538
15539         * elf/do-rel.h: Add another parameter nrelative, replacing the
15540         local variable with the same name.  Change name of the function
15541         to end in Rel or Rela (uppercase).
15542         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
15543         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
15544         elf_dynamic_do_##reloc function.
15545
15546 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
15547
15548         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
15549         is sufficient, at least on modern CPUs.
15550
15551         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
15552
15553         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
15554         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
15555
15556         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
15557         __expl_finite.
15558         * math/bits/math-finite.h: Add entries for exp.
15559         * math/e_expl.c: Add __*_finite alias.
15560         * sysdeps/i386/fpu/e_exp.S: Likewise.
15561         * sysdeps/i386/fpu/e_expf.S: Likewise.
15562         * sysdeps/i386/fpu/e_expl.c: Likewise.
15563         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
15564         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
15565         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
15566         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
15567         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
15568         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
15569         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
15570
15571         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
15572         is sufficient, at least on modern CPUs.
15573
15574         * ctype/ctype-info.c (__ctype_init): Define.
15575         * include/ctype.h (__ctype_init): Declare.
15576         (__ctype_b_loc): The variable is always initialized.
15577         (__ctype_toupper_loc): Likewise.
15578         (__ctype_tolower_loc): Likewise.
15579         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
15580         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
15581
15582 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
15583
15584         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
15585
15586         * configure.in: Also look in $cxxmachine/include for C++ system
15587         headers.
15588
15589 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15590
15591         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
15592         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
15593         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
15594         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
15595         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
15596         (USE_AS_WMEMCMP): New macro.
15597         Fixing indents.
15598         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
15599         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
15600         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
15601         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
15602         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
15603         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
15604         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
15605         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
15606         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
15607         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
15608         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
15609         (USE_AS_WMEMCMP): New macro.
15610         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
15611         * sysdeps/string/test-memcmp.c: Update.
15612         Fix simple_wmemcmp.
15613         Add new tests.
15614         * wcsmbs/wmemcmp.c: Update.
15615         (WMEMCMP): New macro.
15616         Fix overflow bug.
15617
15618 2011-10-12  Andreas Jaeger  <aj@suse.de>
15619
15620         [BZ #13268]
15621         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
15622
15623 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
15624
15625         * libio/iofwide.c (do_length): Avoid warning.
15626
15627         * ctype/ctype.h (__isctype_f): Add missing __THROW.
15628
15629 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
15630
15631         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
15632
15633         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
15634         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
15635         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
15636         * sysdeps/i386/i686/fpu/e_log.S: New file.
15637         * sysdeps/i386/i686/fpu/e_logf.S: New file.
15638         * sysdeps/i386/i686/fpu/e_logl.S: New file.
15639
15640         * ctype/ctype.h: Add support for inlined isXXX functions when
15641         compiling C++ code.
15642
15643 2011-10-14  Andreas Schwab  <schwab@redhat.com>
15644
15645         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
15646
15647         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
15648
15649 2011-10-13  Roland McGrath  <roland@hack.frob.com>
15650
15651         [BZ #13291]
15652         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
15653
15654 2011-10-13  Andreas Schwab  <schwab@redhat.com>
15655
15656         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
15657         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
15658         feraiseexcept.
15659
15660         * sysdeps/x86_64/memrchr.S: Check for zero size.
15661
15662         * string/stratcliff.c: Add memrchr tests.
15663
15664 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15665
15666         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
15667         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
15668         rawmemchr-sse2 rawmemchr-sse2-bsf.
15669         * sysdeps/i386/i686/multiarch/memchr.S: New file.
15670         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
15671         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
15672         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
15673         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
15674         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
15675         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
15676         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
15677         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
15678         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
15679         * string/memrchr.c (MEMRCHR): New macro.
15680
15681 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
15682
15683         Add integration with gcc's -ffinite-math-only and optimize wrapper
15684         functions in libm.
15685         * Versions.def: Define GLIBC_2.15 version for libm.
15686         * math/Makefile (headers): Add bits/math-finite.h.
15687         * math/bits/math-finite.h: New file.
15688         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
15689         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
15690         * math/e_acoshl.c: Add __*_finite alias.
15691         * math/e_acosl.c: Likewise.
15692         * math/e_asinl.c: Likewise.
15693         * math/e_atan2l.c: Likewise.
15694         * math/e_atanhl.c: Likewise.
15695         * math/e_coshl.c: Likewise.
15696         * math/e_exp10.c: Likewise.
15697         * math/e_exp10f.c: Likewise.
15698         * math/e_exp10l.c: Likewise.
15699         * math/e_exp2l.c: Likewise.
15700         * math/e_fmodl.c: Likewise.
15701         * math/e_gammal_r.c: Likewise.
15702         * math/e_hypotl.c: Likewise.
15703         * math/e_j0l.c: Likewise.
15704         * math/e_j1l.c: Likewise.
15705         * math/e_jnl.c: Likewise.
15706         * math/e_lgammal_r.c: Likewise.
15707         * math/e_log10l.c: Likewise.
15708         * math/e_log2l.c: Likewise.
15709         * math/e_logl.c: Likewise.
15710         * math/e_powl.c: Likewise.
15711         * math/e_sinhl.c: Likewise.
15712         * math/e_sqrtl.c: Likewise.
15713         * math/e_scalb.c: Completely rewritten and optimized.
15714         * math/e_scalbf.c: Likewise.
15715         * math/e_scalbl.c: Likewise.
15716         * math/w_acos.c: Likewise.
15717         * math/w_acosf.c: Likewise.
15718         * math/w_acosl.c: Likewise.
15719         * math/w_acosh.c: Likewise.
15720         * math/w_acoshf.c: Likewise.
15721         * math/w_acoshl.c: Likewise.
15722         * math/w_asin.c: Likewise.
15723         * math/w_asinf.c: Likewise.
15724         * math/w_asinl.c: Likewise.
15725         * math/w_atan2.c: Likewise.
15726         * math/w_atan2f.c: Likewise.
15727         * math/w_atan2l.c: Likewise.
15728         * math/w_atanh.c: Likewise.
15729         * math/w_atanhf.c: Likewise.
15730         * math/w_atanhl.c: Likewise.
15731         * math/w_exp10.c: Likewise.
15732         * math/w_exp10f.c: Likewise.
15733         * math/w_exp10l.c: Likewise.
15734         * math/w_fmod.c: Likewise.
15735         * math/w_fmodf.c: Likewise.
15736         * math/w_fmodl.c: Likewise.
15737         * math/w_j0.c: Likewise.
15738         * math/w_j0f.c: Likewise.
15739         * math/w_j0l.c: Likewise.
15740         * math/w_j1.c: Likewise.
15741         * math/w_j1f.c: Likewise.
15742         * math/w_j1l.c: Likewise.
15743         * math/w_jn.c: Likewise.
15744         * math/w_jnf.c: Likewise.
15745         * math/w_log.c: Likewise.
15746         * math/w_logf.c: Likewise.
15747         * math/w_logl.c: Likewise.
15748         * math/w_log10.c: Likewise.
15749         * math/w_log10f.c: Likewise.
15750         * math/w_log10l.c: Likewise.
15751         * math/w_log2.c: Likewise.
15752         * math/w_log2f.c: Likewise.
15753         * math/w_log2l.c: Likewise.
15754         * math/w_pow.c: Likewise.
15755         * math/w_powf.c: Likewise.
15756         * math/w_powl.c: Likewise.
15757         * math/w_remainder.c: Likewise.
15758         * math/w_remainderf.c: Likewise.
15759         * math/w_remainderl.c: Likewise.
15760         * math/w_scalb.c: Likewise.
15761         * math/w_scalbf.c: Likewise.
15762         * math/w_scalbl.c: Likewise.
15763         * math/w_sqrt.c: Likewise.
15764         * math/w_sqrtf.c: Likewise.
15765         * math/w_sqrtl.c: Likewise.
15766         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
15767         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
15768         used.
15769         * math/math_private.h: Declare __kernel_standard_f.
15770         * math/w_cosh.c: Remove cruft and optimize a bit.
15771         * math/w_coshf.c: Likewise.
15772         * math/w_coshl.c: Likewise.
15773         * math/w_exp2.c: Likewise.
15774         * math/w_exp2f.c: Likewise.
15775         * math/w_exp2l.c: Likewise.
15776         * math/w_hypot.c: Likewise.
15777         * math/w_hypotf.c: Likewise.
15778         * math/w_hypotl.c: Likewise.
15779         * math/w_lgamma.c: Likewise.
15780         * math/w_lgamma_r.c: Likewise.
15781         * math/w_lgammaf.c: Likewise.
15782         * math/w_lgammaf_r.c: Likewise.
15783         * math/w_lgammal.c: Likewise.
15784         * math/w_lgammal_r.c: Likewise.
15785         * math/w_sinh.c: Likewise.
15786         * math/w_sinhf.c: Likewise.
15787         * math/w_sinhl.c: Likewise.
15788         * math/w_tgamma.c: Likewise.
15789         * math/w_tgammaf.c: Likewise.
15790         * math/w_tgammal.c: Likewise.
15791         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
15792         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
15793         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
15794         Minor optimizations.  Pretty printing.  Remove cruft.
15795         * sysdeps/i386/fpu/e_acosf.S: Likewise.
15796         * sysdeps/i386/fpu/e_acosh.S: Likewise.
15797         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
15798         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
15799         * sysdeps/i386/fpu/e_acosl.c: Likewise.
15800         * sysdeps/i386/fpu/e_asin.S: Likewise.
15801         * sysdeps/i386/fpu/e_asinf.S: Likewise.
15802         * sysdeps/i386/fpu/e_atan2.S: Likewise.
15803         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
15804         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
15805         * sysdeps/i386/fpu/e_atanh.S: Likewise.
15806         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
15807         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
15808         * sysdeps/i386/fpu/e_exp10.S: Likewise.
15809         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
15810         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
15811         * sysdeps/i386/fpu/e_exp2.S: Likewise.
15812         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
15813         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
15814         * sysdeps/i386/fpu/e_fmod.S: Likewise.
15815         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
15816         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
15817         * sysdeps/i386/fpu/e_hypot.S: Likewise.
15818         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
15819         * sysdeps/i386/fpu/e_log.S: Likewise.
15820         * sysdeps/i386/fpu/e_log10.S: Likewise.
15821         * sysdeps/i386/fpu/e_log10f.S: Likewise.
15822         * sysdeps/i386/fpu/e_log10l.S: Likewise.
15823         * sysdeps/i386/fpu/e_log2.S: Likewise.
15824         * sysdeps/i386/fpu/e_log2f.S: Likewise.
15825         * sysdeps/i386/fpu/e_log2l.S: Likewise.
15826         * sysdeps/i386/fpu/e_logf.S: Likewise.
15827         * sysdeps/i386/fpu/e_logl.S: Likewise.
15828         * sysdeps/i386/fpu/e_pow.S: Likewise.
15829         * sysdeps/i386/fpu/e_powf.S: Likewise.
15830         * sysdeps/i386/fpu/e_powl.S: Likewise.
15831         * sysdeps/i386/fpu/e_remainder.S: Likewise.
15832         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
15833         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
15834         * sysdeps/i386/fpu/e_scalb.S: Likewise.
15835         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
15836         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
15837         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
15838         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
15839         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
15840         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
15841         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
15842         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15843         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
15844         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
15845         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
15846         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
15847         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
15848         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
15849         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
15850         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
15851         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
15852         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15853         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
15854         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
15855         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15856         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
15857         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
15858         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
15859         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15860         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
15861         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
15862         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
15863         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
15864         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
15865         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
15866         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
15867         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
15868         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
15869         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
15870         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
15871         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
15872         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
15873         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
15874         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
15875         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
15876         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
15877         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
15878         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
15879         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
15880         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
15881         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
15882         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
15883         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
15884         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
15885         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
15886         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
15887         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
15888         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
15889         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
15890         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
15891         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
15892         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
15893         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
15894         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
15895         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
15896         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
15897         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
15898         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
15899         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
15900         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
15901         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
15902         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
15903         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
15904         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
15905         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
15906         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
15907         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
15908         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
15909         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
15910         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
15911         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
15912         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
15913         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
15914         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
15915         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
15916         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
15917         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
15918         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
15919         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
15920         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
15921         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
15922         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
15923         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
15924         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
15925         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
15926         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
15927         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
15928         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
15929         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
15930         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
15931         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
15932         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
15933         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
15934         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
15935         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
15936         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
15937         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
15938         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
15939         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
15940         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
15941         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
15942         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
15943         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
15944         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
15945         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
15946         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
15947         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
15948         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
15949         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
15950         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
15951         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
15952         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
15953         (__isnanf): Likewise.
15954         (__isinf_ns): Likewise.
15955         (__isinf_nsf): Likewise.
15956         (__finite): Likewise.
15957         (__finitef): Likewise.
15958         (__ieee754_sqrt): Define as macro.
15959         (__ieee754_sqrtf): Define as macro.
15960         (__ieee754_sqrtl): Define as macro.
15961         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
15962         inlined copy.
15963         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
15964         __FINITE_MATH_ONLY__ consistent.
15965         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
15966
15967 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
15968
15969         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
15970         of rawmemchr.
15971
15972         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
15973
15974 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
15975
15976         * po/ja.po: Update from translation team.
15977
15978 2011-10-08  Roland McGrath  <roland@hack.frob.com>
15979
15980         * locale/programs/locarchive.c (prepare_address_space): New function.
15981         (create_archive, enlarge_archive, open_archive): Use it.
15982
15983         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
15984         inside [SHARED], where it is used.
15985
15986         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
15987
15988         * nss/getent.c (netgroup_keys): Remove unused variable.
15989         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
15990
15991 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
15992
15993         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
15994         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
15995         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
15996         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
15997         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
15998         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
15999         * math/Makefile (libm-calls): Add s_isinf_ns.
16000         * math/divtc3.c: Use __isinf_nsl instead of isinf.
16001         * math/multc3.c: Likewise.
16002         * math/s_casin.c: Likewise.
16003         * math/s_casinf.c: Likewise.
16004         * math/s_casinl.c: Likewise.
16005         * math/s_ccos.c: Likewise.
16006         * math/s_ccosf.c: Likewise.
16007         * math/s_ccosl.c: Likewise.
16008         * math/s_ctan.c: Likewise.
16009         * math/s_ctanf.c: Likewise.
16010         * math/s_ctanh.c: Likewise.
16011         * math/s_ctanhf.c: Likewise.
16012         * math/s_ctanhl.c: Likewise.
16013         * math/s_ctanl.c: Likewise.
16014         * math/w_fmod.c: Likewise.
16015         * math/w_fmodf.c: Likewise.
16016         * math/w_fmodl.c: Likewise.
16017         * math/w_remainder.c: Likewise.
16018         * math/w_remainderf.c: Likewise.
16019         * math/w_remainderl.c: Likewise.
16020         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
16021         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
16022         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
16023         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
16024         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
16025         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
16026         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
16027         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
16028
16029         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
16030         of the number.
16031         * stdio-common/printf_fphex.c: Likewise.
16032         * stdio-common/printf_size.c: Likewise.
16033
16034         * math/e_exp10.c: Include math_private.h using <...> not "...".
16035         * math/e_exp10f.c: Likewise.
16036         * math/e_exp10l.c: Likewise.
16037         * math/e_exp2l.c: Likewise.
16038         * math/e_j0l.c: Likewise.
16039         * math/e_j1l.c: Likewise.
16040         * math/e_jnl.c: Likewise.
16041         * math/e_lgammal_r.c: Likewise.
16042         * math/e_rem_pio2l.c: Likewise.
16043         * math/e_scalb.c: Likewise.
16044         * math/e_scalbf.c: Likewise.
16045         * math/e_scalbl.c: Likewise.
16046         * math/k_cosl.c: Likewise.
16047         * math/k_sinl.c: Likewise.
16048         * math/k_tanl.c: Likewise.
16049         * math/s_cacoshf.c: Likewise.
16050         * math/s_catan.c: Likewise.
16051         * math/s_catanf.c: Likewise.
16052         * math/s_catanh.c: Likewise.
16053         * math/s_catanhf.c: Likewise.
16054         * math/s_catanhl.c: Likewise.
16055         * math/s_catanl.c: Likewise.
16056         * math/s_ccosh.c: Likewise.
16057         * math/s_ccoshf.c: Likewise.
16058         * math/s_ccoshl.c: Likewise.
16059         * math/s_cexp.c: Likewise.
16060         * math/s_cexpf.c: Likewise.
16061         * math/s_cexpl.c: Likewise.
16062         * math/s_clog.c: Likewise.
16063         * math/s_clog10.c: Likewise.
16064         * math/s_clog10f.c: Likewise.
16065         * math/s_clog10l.c: Likewise.
16066         * math/s_clogf.c: Likewise.
16067         * math/s_clogl.c: Likewise.
16068         * math/s_csin.c: Likewise.
16069         * math/s_csinf.c: Likewise.
16070         * math/s_csinh.c: Likewise.
16071         * math/s_csinhf.c: Likewise.
16072         * math/s_csinhl.c: Likewise.
16073         * math/s_csinl.c: Likewise.
16074         * math/s_csqrt.c: Likewise.
16075         * math/s_csqrtf.c: Likewise.
16076         * math/s_csqrtl.c: Likewise.
16077         * math/s_ctan.c: Likewise.
16078         * math/s_ctanf.c: Likewise.
16079         * math/s_ctanh.c: Likewise.
16080         * math/s_ctanhf.c: Likewise.
16081         * math/s_ctanhl.c: Likewise.
16082         * math/s_ctanl.c: Likewise.
16083         * math/s_ldexp.c: Likewise.
16084         * math/s_ldexpf.c: Likewise.
16085         * math/s_ldexpl.c: Likewise.
16086         * math/s_significand.c: Likewise.
16087         * math/s_significandf.c: Likewise.
16088         * math/s_significandl.c: Likewise.
16089         * math/w_acos.c: Likewise.
16090         * math/w_acosf.c: Likewise.
16091         * math/w_acosh.c: Likewise.
16092         * math/w_acoshf.c: Likewise.
16093         * math/w_acoshl.c: Likewise.
16094         * math/w_acosl.c: Likewise.
16095         * math/w_asin.c: Likewise.
16096         * math/w_asinf.c: Likewise.
16097         * math/w_asinl.c: Likewise.
16098         * math/w_atan2.c: Likewise.
16099         * math/w_atan2f.c: Likewise.
16100         * math/w_atan2l.c: Likewise.
16101         * math/w_atanh.c: Likewise.
16102         * math/w_atanhf.c: Likewise.
16103         * math/w_atanhl.c: Likewise.
16104         * math/w_cosh.c: Likewise.
16105         * math/w_coshf.c: Likewise.
16106         * math/w_coshl.c: Likewise.
16107         * math/w_dremf.c: Likewise.
16108         * math/w_exp10.c: Likewise.
16109         * math/w_exp10f.c: Likewise.
16110         * math/w_exp10l.c: Likewise.
16111         * math/w_exp2.c: Likewise.
16112         * math/w_exp2f.c: Likewise.
16113         * math/w_fmod.c: Likewise.
16114         * math/w_fmodf.c: Likewise.
16115         * math/w_fmodl.c: Likewise.
16116         * math/w_hypot.c: Likewise.
16117         * math/w_hypotf.c: Likewise.
16118         * math/w_hypotl.c: Likewise.
16119         * math/w_j0.c: Likewise.
16120         * math/w_j0f.c: Likewise.
16121         * math/w_j0l.c: Likewise.
16122         * math/w_j1.c: Likewise.
16123         * math/w_j1f.c: Likewise.
16124         * math/w_j1l.c: Likewise.
16125         * math/w_jn.c: Likewise.
16126         * math/w_jnf.c: Likewise.
16127         * math/w_jnl.c: Likewise.
16128         * math/w_lgamma.c: Likewise.
16129         * math/w_lgamma_r.c: Likewise.
16130         * math/w_lgammaf.c: Likewise.
16131         * math/w_lgammaf_r.c: Likewise.
16132         * math/w_lgammal.c: Likewise.
16133         * math/w_lgammal_r.c: Likewise.
16134         * math/w_log.c: Likewise.
16135         * math/w_log10.c: Likewise.
16136         * math/w_log10f.c: Likewise.
16137         * math/w_log10l.c: Likewise.
16138         * math/w_log2.c: Likewise.
16139         * math/w_log2f.c: Likewise.
16140         * math/w_log2l.c: Likewise.
16141         * math/w_logf.c: Likewise.
16142         * math/w_logl.c: Likewise.
16143         * math/w_pow.c: Likewise.
16144         * math/w_powf.c: Likewise.
16145         * math/w_powl.c: Likewise.
16146         * math/w_remainder.c: Likewise.
16147         * math/w_remainderf.c: Likewise.
16148         * math/w_remainderl.c: Likewise.
16149         * math/w_scalb.c: Likewise.
16150         * math/w_scalbf.c: Likewise.
16151         * math/w_scalbl.c: Likewise.
16152         * math/w_sinh.c: Likewise.
16153         * math/w_sinhf.c: Likewise.
16154         * math/w_sinhl.c: Likewise.
16155         * math/w_sqrt.c: Likewise.
16156         * math/w_sqrtf.c: Likewise.
16157         * math/w_sqrtl.c: Likewise.
16158         * math/w_tgamma.c: Likewise.
16159         * math/w_tgammaf.c: Likewise.
16160         * math/w_tgammal.c: Likewise.
16161
16162         * po/ja.po: Update from translation team.
16163
16164 2011-09-29  Andreas Jaeger  <aj@suse.de>
16165
16166         [BZ #13179]
16167         * sunrpc/netname.c (netname2host): Fix logic.
16168
16169         [BZ #6779]
16170         [BZ #6783]
16171         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
16172         correctly.
16173         * math/w_remainder.c (__remainder): Likewise.
16174         * math/w_remainderf.c (__remainderf): Likewise.
16175         * math/libm-test.inc (remainder_test): Add test cases.
16176
16177 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16178
16179         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
16180         sdiv_qrnnd.
16181
16182 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
16183
16184         * string/test-memcmp.c: Avoid unncessary #defines.
16185         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
16186
16187 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16188
16189         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
16190         Use new sse2 version for core i3 - i7 as it's faster
16191         than sse42 version.
16192         (bit_Prefer_PMINUB_for_stringop): New.
16193         * sysdeps/x86_64/rawmemchr.S: Update.
16194         Replace with faster SSE2 version.
16195         * sysdeps/x86_64/memrchr.S: New file.
16196         * sysdeps/x86_64/memchr.S: Update.
16197         Replace with faster SSE2 version.
16198
16199 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
16200
16201         * elf/dl-load.c (lose): Add cast to avoid warning.
16202
16203 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
16204
16205         * po/ca.po: Update from translation team.
16206
16207         * inet/getnetgrent_r.c: Hook up nscd.
16208         * nscd/Makefile (routines): Add nscd_netgroup.
16209         (nscd-modules): Add netgroupcache.
16210         (CFLAGS-netgroupcache.c): Define.
16211         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
16212         (cache_search): Add const to second parameter.
16213         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
16214         INNETGR.
16215         (dbs): Add netgrdb entry.
16216         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
16217         (verify_persistent_db): Handle netgrdb.
16218         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
16219         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
16220         GETFDNETGR.
16221         (netgroup_response_header): Define.
16222         (innetgroup_response_header): Define.
16223         (datahead): Add netgroup_response_header and innetgroup_response_header
16224         elements.
16225         * nscd/nscd.conf: Add entries for netgroup cache.
16226         * nscd/nscd.h (dbtype): Add netgrdb.
16227         (_PATH_NSCD_NETGROUP_DB): Define.
16228         (netgroup_iov_disabled): Declare.
16229         (xmalloc, xcalloc, xrealloc): Move declarations here.
16230         (cache_search): Adjust prototype.
16231         Add netgroup-related prototypes.
16232         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
16233         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
16234         (__nscd_innetgr): Declare.
16235         * nscd/selinux.c (perms): Use access_vector_t as element type and
16236         add netgroup-related initializers.
16237         * nscd/netgroupcache.c: New file.
16238         * nscd/nscd_netgroup.c: New file.
16239         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
16240         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
16241         For four parameters use innetgr.
16242         * nss/nss_files/files-init.c: Add definition and callback for netgr.
16243         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
16244         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
16245         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
16246
16247         * nscd/connections.c (register_traced_file): Don't register file
16248         for disabled databases.
16249
16250 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
16251
16252         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
16253
16254         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
16255         from tree and freeing node.
16256
16257 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
16258
16259         * nss/nsswitch.c (__nss_database_lookup): Handle
16260         nss_parse_service_list out of memory case.
16261
16262 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
16263
16264         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
16265         out of memory case.
16266
16267 2011-10-04  Andreas Schwab  <schwab@redhat.com>
16268
16269         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
16270         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
16271         pass it down.
16272         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
16273         elf_machine_rela, elf_machine_lazy_rel.
16274         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
16275         (ELF_DYNAMIC_DO_REL): Likewise.
16276         (ELF_DYNAMIC_DO_RELA): Likewise.
16277         (ELF_DYNAMIC_RELOCATE): Likewise.
16278         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
16279         to ELF_DYNAMIC_DO_REL.
16280         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
16281         (dl_main): In trace mode always set __RTLD_NOIFUNC.
16282         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
16283         elf_machine_rela.
16284         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
16285         skip_ifunc, don't call ifunc function if non-zero.
16286         (elf_machine_rela): Likewise.
16287         (elf_machine_lazy_rel): Likewise.
16288         (elf_machine_lazy_rela): Likewise.
16289         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
16290         (elf_machine_lazy_rel): Likewise.
16291         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
16292         Likewise.
16293         (elf_machine_lazy_rel): Likewise.
16294         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
16295         Likewise.
16296         (elf_machine_lazy_rel): Likewise.
16297         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
16298         (elf_machine_lazy_rel): Likewise.
16299         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
16300         (elf_machine_lazy_rel): Likewise.
16301         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
16302         (elf_machine_lazy_rel): Likewise.
16303         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
16304         (elf_machine_lazy_rel): Likewise.
16305         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
16306         (elf_machine_lazy_rel): Likewise.
16307         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
16308         (elf_machine_lazy_rel): Likewise.
16309
16310 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
16311
16312         * nss/nss_files/files-init.c (_nss_files_init): Use static
16313         initialization for all the *_traced_file variables.
16314
16315 2011-09-28  Andreas Schwab  <schwab@redhat.com>
16316
16317         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
16318
16319 2011-09-27  Roland McGrath  <roland@hack.frob.com>
16320
16321         [BZ #13226]
16322         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
16323
16324 2011-09-27  Andreas Schwab  <schwab@redhat.com>
16325
16326         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
16327         Reread the line before reparsing it.
16328
16329 2011-09-26  Andreas Schwab  <schwab@redhat.com>
16330
16331         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
16332
16333 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
16334             Maxim Kuvyrkov  <maxim@codesourcery.com>
16335             Joseph Myers  <joseph@codesourcery.com>
16336
16337         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
16338         if needed for __stack_chk_guard.
16339
16340 2011-09-19  Roland McGrath  <roland@hack.frob.com>
16341
16342         * sysdeps/posix/spawni.c (script_execute): Always define it.
16343         It will be optimized away if unused.
16344         (maybe_script_execute): New function.
16345         (__spawni): Call it.
16346
16347         * Makerules: Don't include tls.make.
16348         (config-tls): Always set to thread.
16349         * tls.make.c: File removed.
16350
16351 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
16352
16353         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
16354         * config.make.in (CPPFLAGS-config): New substituted variable.
16355
16356 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
16357
16358         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
16359
16360         [BZ #13192]
16361         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
16362         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
16363
16364 2011-09-15  Roland McGrath  <roland@hack.frob.com>
16365
16366         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
16367         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
16368         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
16369         (CALL_FAIL): Likewise.
16370         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
16371         (CALL_FAIL): Macro removed.
16372         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
16373
16374 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
16375
16376         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
16377         for __FINITE_MATH_ONLY__ == 1.
16378
16379 2011-09-15  Andreas Schwab  <schwab@redhat.com>
16380
16381         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
16382         __ieee754_sqrt instead of sqrt.
16383         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
16384         __ieee754_sqrtf instead of sqrtf.
16385         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
16386         __floorf instead of floorf.
16387         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
16388         __floorf, __truncf instead of floorf, truncf.
16389
16390 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
16391
16392         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
16393
16394         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
16395         __extern_always_inline.
16396         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
16397         32-bit.
16398
16399 2011-09-14  Andreas Schwab  <schwab@redhat.com>
16400
16401         * elf/rtld.c (dl_main): Also relocate in dependency order when
16402         doing symbol dependency testing.
16403
16404 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
16405
16406         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
16407         Always define `refsym'.
16408
16409 2011-09-13  Andreas Schwab  <schwab@redhat.com>
16410
16411         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
16412         (__FD_ELT): Renamed from __FDELT.
16413         * misc/bits/select2.h (__FD_ELT): Likewise.
16414         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
16415         __FD_MASK instead of __FDELT, __FDMASK.
16416         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
16417         Likewise.
16418         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
16419         Likewise.
16420
16421         * elf/Makefile (gen-ldd): Fix pattern.
16422
16423         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
16424         (init_tls): Likewise.
16425
16426 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
16427
16428         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
16429
16430 2011-09-12  Andreas Schwab  <schwab@redhat.com>
16431
16432         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
16433         `struct cmsghdr *' instead of `void *'.
16434         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
16435         Likewise.
16436
16437 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
16438
16439         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
16440         if non-absolute.
16441         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
16442         ldd_rewrite_script.
16443
16444 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
16445
16446         * configure.in: Remove --with-tls option.
16447         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
16448         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
16449         out in case it is missing.
16450         * sysdeps/ia64/elf/configure.in: Likewise.
16451         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
16452         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
16453         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
16454         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
16455         * sysdeps/sh/elf/configure.in: Likewise.
16456         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
16457         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
16458         * sysdeps/x86_64/elf/configure.in: Likewise.
16459         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
16460         * sysdeps/mach/hurd/tls.h: Likewise.
16461
16462         [BZ #13067]
16463         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
16464
16465         [BZ #13090]
16466         * configure.in: Fix use of AC_INIT.
16467
16468         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
16469
16470 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
16471
16472         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
16473         __set_errno.
16474         * malloc/hooks.c: Likewise.
16475
16476         [BZ #11929]
16477         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
16478         variables statically.
16479         (narenas): Initialize.
16480         (list_lock): Initialize.
16481         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
16482         initializtion of main_arena and list_lock.  Small cleanups.
16483         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
16484         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
16485         Add initializers to main_arena and mp_.
16486         (malloc_state): Remove pagesize member.  Change all users to use
16487         GLRO(dl_pagesize).
16488
16489         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
16490         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
16491         is always initialized.
16492
16493         * malloc/malloc.c: Removed unused configurations and dead code.
16494         * malloc/arena.c: Likewise.
16495         * malloc/hooks.c: Likewise.
16496         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
16497
16498         * include/tls.h: Removed.  USE___THREAD must always be defined.
16499         * bits/libc-tsd.h: Don't handle !USE___THREAD.
16500         * elf/dl-libc.c: Likewise.
16501         * elf/dl-tsd.c: Likewise.
16502         * include/errno.h: Likewise.
16503         * include/netdb.h: Likewise.
16504         * include/resolv.h: Likewise.
16505         * inet/herrno-loc.c: Likewise.
16506         * inet/herrno.c: Likewise.
16507         * malloc/arena.c: Likewise.
16508         * malloc/hooks.c: Likewise.
16509         * malloc/malloc.c: Likewise.
16510         * resolv/res-state.c: Likewise.
16511         * resolv/res_libc.c: Likewise.
16512         * sysdeps/i386/dl-machine.h: Likewise.
16513         * sysdeps/ia64/dl-machine.h: Likewise.
16514         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
16515         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
16516         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
16517         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
16518         * sysdeps/sh/dl-machine.h: Likewise.
16519         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
16520         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
16521         * sysdeps/unix/i386/sysdep.S: Likewise.
16522         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
16523         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
16524         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
16525         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
16526         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
16527         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
16528         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
16529         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
16530         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
16531         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
16532         * sysdeps/unix/x86_64/sysdep.S: Likewise.
16533         * sysdeps/x86_64/dl-machine.h: Likewise.
16534         * tls.make.c: Likewise.
16535
16536         * configure.in: Remove --with-__thread option.  Make tests for
16537         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
16538         tls_model attribute fail if no support is available.  Remove
16539         USE_IN_LIBIO.
16540         * Makeconfig: Adjust for dropped configure option.  All features are
16541         now mandatory.
16542         * Makerules: Likewise.
16543         * Versions.def: Likewise.
16544         * argp/argp-fmtstream.c: Likewise.
16545         * argp/argp-fmtstream.h: Likewise.
16546         * argp/argp-help.c: Likewise.
16547         * assert/assert.c: Likewise.
16548         * config.h.in: Likewise.
16549         * config.make.in: Likewise.
16550         * configure: Likewise.
16551         * configure.in: Likewise.
16552         * csu/Versions: Likewise.
16553         * csu/init.c: Likewise.
16554         * elf/tst-audit2.c: Likewise.
16555         * elf/tst-tls10.c: Likewise.
16556         * elf/tst-tls10.h: Likewise.
16557         * elf/tst-tls11.c: Likewise.
16558         * elf/tst-tls12.c: Likewise.
16559         * elf/tst-tls14.c: Likewise.
16560         * elf/tst-tlsmod11.c: Likewise.
16561         * elf/tst-tlsmod12.c: Likewise.
16562         * elf/tst-tlsmod13.c: Likewise.
16563         * elf/tst-tlsmod13a.c: Likewise.
16564         * elf/tst-tlsmod14a.c: Likewise.
16565         * elf/tst-tlsmod15b.c: Likewise.
16566         * elf/tst-tlsmod16a.c: Likewise.
16567         * elf/tst-tlsmod16b.c: Likewise.
16568         * elf/tst-tlsmod7.c: Likewise.
16569         * elf/tst-tlsmod8.c: Likewise.
16570         * elf/tst-tlsmod9.c: Likewise.
16571         * gmon/gmon.c: Likewise.
16572         * grp/fgetgrent_r.c: Likewise.
16573         * grp/putgrent.c: Likewise.
16574         * hurd/fopenport.c: Likewise.
16575         * include/libc-symbols.h: Likewise.
16576         * include/tls.h: Likewise.
16577         * intl/gettextP.h: Likewise.
16578         * intl/loadinfo.h: Likewise.
16579         * locale/global-locale.c: Likewise.
16580         * locale/localeinfo.h: Likewise.
16581         * mach/devstream.c: Likewise.
16582         * malloc/arena.c: Likewise.
16583         * malloc/set-freeres.c: Likewise.
16584         * misc/err.c: Likewise.
16585         * misc/getttyent.c: Likewise.
16586         * misc/mntent_r.c: Likewise.
16587         * posix/getopt.c: Likewise.
16588         * posix/wordexp.c: Likewise.
16589         * pwd/fgetpwent_r.c: Likewise.
16590         * resolv/Versions: Likewise.
16591         * resolv/res_hconf.c: Likewise.
16592         * shadow/fgetspent_r.c: Likewise.
16593         * shadow/putspent.c: Likewise.
16594         * stdio-common/printf_fphex.c: Likewise.
16595         * stdio-common/tmpfile.c: Likewise.
16596         * stdlib/abort.c: Likewise.
16597         * stdlib/fmtmsg.c: Likewise.
16598         * sunrpc/auth_unix.c: Likewise.
16599         * sunrpc/clnt_perr.c: Likewise.
16600         * sunrpc/clnt_tcp.c: Likewise.
16601         * sunrpc/clnt_udp.c: Likewise.
16602         * sunrpc/clnt_unix.c: Likewise.
16603         * sunrpc/openchild.c: Likewise.
16604         * sunrpc/svc_simple.c: Likewise.
16605         * sunrpc/svc_tcp.c: Likewise.
16606         * sunrpc/svc_udp.c: Likewise.
16607         * sunrpc/svc_unix.c: Likewise.
16608         * sunrpc/xdr.c: Likewise.
16609         * sunrpc/xdr_array.c: Likewise.
16610         * sunrpc/xdr_rec.c: Likewise.
16611         * sunrpc/xdr_ref.c: Likewise.
16612         * sunrpc/xdr_stdio.c: Likewise.
16613
16614 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
16615
16616         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
16617
16618 2011-07-03  Andreas Jaeger  <aj@suse.de>
16619
16620         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
16621         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
16622         regenerate with gen-libm-tests.pl.
16623
16624 2010-05-12  Petr Baudis  <pasky@suse.cz>
16625
16626         [BZ #11589]
16627         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
16628         around j0() zero points by switching to j1().
16629         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
16630         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
16631         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
16632         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
16633
16634 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
16635
16636         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
16637         instead of 0.
16638         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
16639         instead of 0.                              .
16640         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
16641         Patch in part by Pavel Roskin <proski@gnu.org>.
16642
16643         [BZ #13138]
16644         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
16645         realloc.
16646         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
16647         Free memory block if necessary.
16648
16649         [BZ #12847]
16650         * libio/genops.c (INTDEF): For string streams the _lock pointer can
16651         be NULL.  Don't lock in this case.
16652
16653 2011-09-09  Roland McGrath  <roland@hack.frob.com>
16654
16655         * elf/elf.h (ELFOSABI_GNU): New macro.
16656         (ELFOSABI_LINUX): Define to that.
16657
16658 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
16659
16660         * string/strncat.c (strncat): Undef the symbol in case it has been
16661         defined in bits/string.h.
16662
16663 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
16664
16665         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
16666
16667         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
16668         link map.
16669
16670 2011-08-17  Andreas Jaeger  <aj@suse.de>
16671
16672         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
16673
16674 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
16675             Ian Lance Taylor  <iant@google.com>
16676
16677         * math/libm-test.inc (lround_test): New testcase.
16678         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
16679
16680 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
16681
16682         * Makefile: Remove support for automatic cvs check-ins.
16683         * Makerules: Likewise.
16684         * config.make.in: Likewise.
16685         * configure.in: Likewise.
16686         * intl/Makefile: Likewise.
16687         * locale/Makefile: Likewise.
16688         * po/Makefile: Likewise.
16689         * posix/Makefile: Likewise.
16690         * sysdeps/gnu/Makefile: Likewise.
16691         * sysdeps/mach/hurd/Makefile: Likewise.
16692         * sysdeps/sparc/sparc32/Makefile: Likewise.
16693
16694         [BZ #13118]
16695         * posix/Makefile (bug-regex32-ENV): Define.
16696         Patch by John Stanley <jpsinthemix@verizon.net>.
16697
16698         * misc/Makefile (headers): Add bits/select2.h.
16699         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
16700         * misc/bits/select2.h: New file.
16701         * include/bits/select2.h: New file.
16702         * debug/Makefile (routines): Add fdelt_chk.
16703         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
16704         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
16705         FD_ISSET.
16706         * debug/fdelt_chk.c: New file.
16707
16708         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
16709         * wcsmbs/test-wmemcmp.c: Likewise.
16710         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
16711         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
16712
16713 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16714
16715         * string/Makefile (strop-tests): Add memcmp.
16716         * string/test-wmemcmp.c: New file.
16717         * string/test-memcmp.c: Add wmemcmp support.
16718
16719 2011-09-08  Roland McGrath  <roland@hack.frob.com>
16720
16721         [BZ #13153]
16722         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
16723         2011-07-19 change.
16724
16725         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
16726         garbage value in a __mach_port_mod_refs call in the cases of the
16727         task-self and thread-self ports.
16728
16729 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16730
16731         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
16732
16733 2011-09-08  Andreas Schwab  <schwab@redhat.com>
16734
16735         * elf/dl-load.c (lose): Check for non-null L.
16736
16737 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
16738
16739         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
16740
16741         * elf/dl-libc.c (dlerror_run): Pass back error code from
16742         dl_catch_error.
16743
16744         [BZ #13123]
16745         * elf/dl-load.c (lose): Free l_origin if it is valid.
16746
16747         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
16748         names.
16749         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
16750         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
16751         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
16752         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
16753         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
16754         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
16755
16756 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16757
16758         * sysdeps/powerpc/fpu/e_hypot.c: New file.
16759         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
16760         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
16761         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
16762         * sysdeps/powerpc/fpu/k_cosf.c: New file.
16763         * sysdeps/powerpc/fpu/k_sinf.c: New file.
16764         * sysdeps/powerpc/fpu/s_cosf.c: New file.
16765         * sysdeps/powerpc/fpu/s_sinf.c: New file.
16766         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
16767         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
16768
16769 2011-08-15  Alan Modra  <amodra@gmail.com>
16770
16771         [BZ #13092]
16772         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
16773         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
16774         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
16775         ppc_mcount to static-only-routines.
16776         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
16777         __mcount_internal.
16778         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
16779         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
16780
16781 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
16782
16783         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
16784         for finite and infinity parameters.
16785
16786 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
16787
16788         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
16789         and add nop instructions for throughput optimization.
16790         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
16791
16792 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
16793
16794         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
16795         aligned copy for power7 with vector-scalar instructions.
16796         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
16797
16798 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
16799
16800         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
16801         AVX check.
16802
16803 2011-09-07  Andreas Schwab  <schwab@redhat.com>
16804
16805         [BZ #13144]
16806         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
16807         last change.
16808
16809 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
16810
16811         * sysdeps/unix/sysv/linux/x86_64/init-first.c
16812         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
16813         syscall wrapper around clock_gettime in __vdso_clock_gettime.
16814         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
16815         clock_gettime.
16816
16817 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
16818
16819         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
16820         Forgot to demangle the pointer.
16821
16822         * sysdeps/i386/sysdep.h: Define atom_text_section.
16823         * sysdeps/x86_64/sysdep.h: Likewise.
16824         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
16825         section with atom_text_section.
16826         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
16827         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
16828         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
16829         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
16830         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
16831
16832         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
16833         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
16834         already be defined.  Change to take two parameters and don't assign
16835         result to variable.  Adjust all users.
16836         Define INTERNAL_GETTIME if not already defined.
16837         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
16838         call.
16839         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
16840         HAVE_CLOCK_GETTIME_VSYSCALL.
16841         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
16842
16843         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
16844         gettimeofday vsyscall, just use time.
16845
16846 2011-09-06  Andreas Schwab  <schwab@redhat.com>
16847
16848         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
16849         <errno.h>.
16850
16851 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
16852
16853         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
16854         syscall on x86-64.
16855         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
16856         syscall.
16857         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
16858         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
16859         syscall if possible.
16860
16861 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
16862
16863         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
16864         e_ident.  Don't pass to find_mapsXX.
16865         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
16866
16867 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16868
16869         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16870         strchr-sse2-no-bsf strrchr-sse2-no-bsf
16871         * sysdeps/x86_64/multiarch/strchr.S: Update.
16872         Check bit_slow_BSF bit.
16873         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
16874         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
16875         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
16876
16877 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
16878
16879         [BZ #13134]
16880         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
16881         before glibc 2.15.
16882         (tryshell): Define.
16883         (__spawni): Change last parameter to be flag.  Test
16884         SPAWN_XFLAGS_USE_PATH flag to use path or not.
16885         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
16886         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
16887         * posix/spawni.c: Likewise.
16888         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
16889         * posix/spawnp.c: Likewise.  Change normal version to use
16890         SPAWN_XFLAGS_USE_PATH.
16891         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
16892         SPAWN_XFLAGS_TRY_SHELL.
16893
16894         [BZ #13150]
16895         * posix/glob.h: Remove gcc 1.x support.
16896
16897         [BZ #13068]
16898         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
16899
16900 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16901
16902         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16903         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
16904         strrchr-sse2-bsf
16905         * sysdeps/i386/i686/multiarch/strchr.S: New file.
16906         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
16907         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
16908         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
16909         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
16910         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
16911
16912 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16913
16914         * sysdeps/x86_64/wcscmp.S: New file.
16915
16916         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
16917         wcscmp-c wcscmp-sse2
16918         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
16919         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
16920         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
16921         * wcsmbs/wcscmp.c: Allow renaming.
16922
16923 2011-09-05  David S. Miller  <davem@davemloft.net>
16924
16925         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
16926         stack slot, rather than the struct return pointer slot.
16927         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
16928         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
16929         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
16930         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
16931
16932 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
16933
16934         * po/ja.po: Update from translation team.
16935
16936         [BZ #13144]
16937         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
16938         kernel in 64-bit binaries.
16939
16940 2011-09-01  David S. Miller  <davem@davemloft.net>
16941
16942         * elf/elf.h (HWCAP_SPARC_*): Move to..
16943         * sysdeps/sparc/sysdep.h: this new file and add new values.
16944         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
16945         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
16946         _DL_HWCAP_COUNT to 24.
16947         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
16948         entries.
16949         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
16950         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
16951         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
16952         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
16953         instead of magic constants.
16954         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
16955
16956 2011-08-31  David S. Miller  <davem@davemloft.net>
16957
16958         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
16959         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
16960         Reimplement to do errno handling inline.
16961         (SYSCALL_ERROR_HANDLER): New macro.
16962         (__SYSCALL_STRING): Do not do errno handling in asm.
16963         (__CLONE_SYSCALL_STRING): Delete.
16964         (__INTERNAL_SYSCALL_STRING): Delete.
16965         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
16966         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
16967         (PSEUDO): Reimplement to do errno handling inline.
16968         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
16969         (SYSCALL_ERROR_HANDLER): New macro.
16970         (__SYSCALL_STRING): Do not do errno handling in asm.
16971         (__CLONE_SYSCALL_STRING): Delete.
16972         (__INTERNAL_SYSCALL_STRING): Delete.
16973         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
16974         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
16975         i386.
16976         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
16977         (inline_syscall*): Add 'err' argument.
16978         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
16979         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
16980         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
16981         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
16982
16983         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
16984         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
16985
16986 2011-08-30  Andreas Schwab  <schwab@redhat.com>
16987
16988         * elf/rtld.c (dl_main): Relocate objects in dependency order.
16989
16990 2011-08-29  Jiri Olsa <jolsa@redhat.com>
16991
16992         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
16993         directive.
16994
16995 2011-08-24  David S. Miller  <davem@davemloft.net>
16996
16997         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
16998
16999 2011-08-24  Andreas Schwab  <schwab@redhat.com>
17000
17001         * elf/Makefile: Add rules to build and run unload8 test.
17002         * elf/unload8.c: New file.
17003         * elf/unload8mod1.c: New file.
17004         * elf/unload8mod1x.c: New file.
17005         * elf/unload8mod2.c: New file.
17006         * elf/unload8mod3.c: New file.
17007
17008         * elf/dl-close.c (_dl_close_worker): Reset private search list if
17009         it wasn't used.
17010
17011 2011-08-23  David S. Miller  <davem@davemloft.net>
17012
17013         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
17014         subtract stack bias.
17015         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
17016         %sp not %fp in calculations.
17017         (_JMPBUF_UNWINDS_ADJ): Likewise.
17018
17019         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
17020         (aio_suspend): Call it to force an exception region around the
17021         AIO_MISC_WAIT() invocation.
17022
17023 2011-08-23  Andreas Schwab  <schwab@redhat.com>
17024
17025         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
17026         backslash.
17027
17028 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
17029
17030         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
17031         protection macro.
17032         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
17033         and <dl-machine.h>.
17034         (Elf64_FuncDesc): Remove.
17035
17036 2011-08-22  David S. Miller  <davem@davemloft.net>
17037
17038         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
17039         sigaltstack check, add missing cfi directives.
17040         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
17041         missing cfi directives, and sigaltstack handling.
17042
17043 2011-08-16  Andreas Schwab  <schwab@redhat.com>
17044
17045         [BZ #11724]
17046         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
17047         object is seen twice.
17048         * elf/dl-fini.c (_dl_sort_fini): Likewise.
17049
17050         * elf/Makefile (distribute): Add tst-initorder2.c.
17051         (tests): Add tst-initorder2.
17052         (modules-names): Add tst-initorder2a tst-initorder2b
17053         tst-initorder2c tst-initorder2d.  Add rules to build them.
17054         ($(objpfx)tst-initorder2.out): New rule.
17055         * elf/tst-initorder2.c: New file.
17056         * elf/tst-initorder2.exp: New file.
17057
17058 2011-08-22  Andreas Schwab  <schwab@redhat.com>
17059
17060         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
17061
17062         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
17063         dependencies back to end of function.
17064
17065         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
17066         $(elfobjdir)/ld.so.
17067
17068 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
17069
17070         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
17071         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
17072         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
17073         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
17074         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
17075         of __vdso_gettimeofday.
17076         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
17077         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
17078         attribute_hidden.
17079         (_libc_vdso_platform_setup): Remove initialization of
17080         __vdso_gettimeofday and __vdso_time.
17081
17082 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
17083
17084         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
17085         and fgetc_unlocked.
17086         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
17087         getc_unlocked.
17088
17089         * elf/dl-open.c (add_to_global): Report additions to the global scope
17090         for LD_DEBUG=scopes.
17091         (dl_open_worker): Also print scope of newly loaded dependencies.
17092         (_dl_show_scope): Indicate if there is no scope.
17093
17094         [BZ #13114]
17095         * stdio-common/Makefile (tests): Add bug24.
17096         * stdio-common/bug24.c: New file.
17097
17098 2011-08-19  Andreas Jaeger  <aj@suse.de>
17099
17100         [BZ #13114]
17101         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
17102         non-existant file when using close-on-exec mode.
17103
17104 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
17105
17106         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
17107         the very first instruction.
17108
17109         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
17110         the CFI state in the end.
17111         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
17112         inclusion of dl-trampoline.h.
17113         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
17114
17115 2011-08-19  Andreas Schwab  <schwab@redhat.com>
17116
17117         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
17118         expectations for long double.
17119
17120         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
17121         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
17122
17123 2011-08-14  David S. Miller  <davem@davemloft.net>
17124
17125         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
17126         artificual limit depends upon the system page size.
17127
17128 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
17129
17130         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
17131         * resolv/Makefile: Define CFLAGS-libresolv.
17132
17133 2011-08-17  Andreas Schwab  <schwab@redhat.com>
17134
17135         * nss/makedb.c (compute_tables): Make variables used in nested
17136         function static.
17137
17138 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
17139
17140         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
17141         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
17142         if buffer was too small.
17143
17144         * elf/pldd.c (main): Attach to all threads in the process.
17145         Rewrite /proc handling to use *at functions.
17146
17147 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
17148
17149         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
17150         specifies first scope to show.
17151         (dl_open_worker): Update callers.  Move printing scope of new
17152         object to before the relocation.
17153         * elf/rtld.c (dl_main): Update _dl_show_scope call.
17154         * sysdeps/generic/ldsodefs.h: Update declaration.
17155
17156         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
17157         string for the scope number.
17158
17159 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
17160
17161         * nscd/servicescache.c (cache_addserv): Make sure written is always
17162         initialized.
17163
17164 2011-08-14  Roland McGrath  <roland@hack.frob.com>
17165
17166         * sysdeps/i386/i486/bits/atomic.h
17167         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
17168         statement expression, so as to suppress "set but not used" warning.
17169         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
17170
17171         * string/strncat.c (STRNCAT): Use prototype definition.
17172
17173         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
17174         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
17175         -Iprograms here.
17176         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
17177         (localedef-modules): Add localedef.
17178         (locale-modules): Add locale.
17179
17180         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
17181         * elf/rtld.c (dl_main): Invert order of assignment in last change,
17182         to avoid a warning.
17183
17184 2011-08-14  David S. Miller  <davem@davemloft.net>
17185
17186         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
17187         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
17188
17189 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
17190
17191         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
17192         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
17193         * elf/rtld.c (dl_main): Set l_name of vDSO.
17194         Call _dl_show_scope when DL_DEBUG_SCOPES.
17195         (process_dl_debug): Recognize scopes flag and also set it for all.
17196         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
17197         Declare _dl_show_scope.
17198
17199         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
17200         (do_dlopen): Pass caller_dlopen to dl_open.
17201         (__libc_dlopen_mode): Initialize caller_dlopen.
17202
17203         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
17204         of libc.  Make tolower call locale-independent.  Optimize a bit by
17205         using isdigit instead of isalnum.
17206         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
17207
17208 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
17209
17210         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
17211         was a dependency or dynamically loaded.
17212
17213 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
17214
17215         * intl/l10nflist.c: Allow architecture-specific pop function.
17216         * sysdeps/x86_64/l10nflist.c: New file.
17217
17218         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
17219         classification.
17220
17221 2011-08-10  Andreas Schwab  <schwab@redhat.com>
17222
17223         * include/dirent.h: Add libc_hidden_proto for scandirat and
17224         scandirat64.  Don't declare __scandirat64.
17225         * dirent/scandirat.c: Add libc_hidden_def.
17226         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
17227         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
17228
17229 2011-08-10  David S. Miller  <davem@davemloft.net>
17230
17231         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
17232         enum.
17233         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
17234         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
17235         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
17236
17237 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
17238
17239         * Versions.def [libc]: Add GLIBC_2.15.
17240         * dirent/Makefile (routines): Add scandirat and scandirat64.
17241         * dirent/Versions [libc]: Export scandirat and scandirat64 for
17242         GLIBC_2.15.
17243         * dirent/dirent.h: Declare scandirat and scandirat64.
17244         * dirent/scandirat.c: New file.
17245         * dirent/scandirat64.c: New file.
17246         * sysdeps/wordsize-64/scandirat.c: New file.
17247         * sysdeps/wordsize-64/scandirat64.c: New file.
17248         * dirent/opendir.c: Define opendirat.
17249         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
17250         using scandirat.
17251         * dirent/scandir64.c: Adjust for scandir.c change.
17252         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
17253         __scandirat64, and __scandir_cancel_handler.
17254         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
17255         additional parameter and use openat instead of open (outside of ld.so).
17256         Add new __opendir as wrapper around __opendirat.
17257         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
17258         here without requiring old scandirat implementation.
17259
17260 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
17261
17262         * dirent/scandir.c (cancel_handler): Renamed to
17263         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
17264         defined.  Adjust users.
17265         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
17266         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
17267
17268 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
17269
17270         * string/test-string.h (IMPL): Use __STRING to expand name and then
17271         stringify it.
17272
17273         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
17274         of cleanups.
17275
17276 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17277
17278         * string/Makefile: Update.
17279         (strop-tests): Append strncat.
17280         * string/test-wcscmp.c: New file.
17281         New comprehensive test for wcscmp.
17282         * string/test-strcmp.c: Update.
17283         (WIDE): New define.
17284
17285 2011-07-22  Andreas Schwab  <schwab@redhat.com>
17286
17287         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
17288         line.
17289
17290 2011-07-26  Andreas Schwab  <schwab@redhat.com>
17291
17292         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
17293         encoding to ACE if AI_IDN.
17294
17295 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
17296
17297         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
17298         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
17299
17300 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
17301
17302         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
17303         Fix overflow bug in strncat.
17304         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
17305
17306         * string/test-strncat.c: Update.
17307         Add new tests for checking overflow bugs.
17308
17309 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
17310
17311         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
17312         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
17313         * sysdeps/i386/i686/multiarch/strcat.S: New file.
17314         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
17315         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
17316         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
17317         * sysdeps/i386/i686/multiarch/strncat.S: New file.
17318         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
17319         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
17320
17321         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
17322         (USE_AS_STRCAT): Define.
17323         Add strcat and strncat support.
17324         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
17325
17326 2011-07-25  Andreas Schwab  <schwab@redhat.com>
17327
17328         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
17329         __n bigger than INT_MAX+1.
17330         (__strncmp_g): Likewise.
17331
17332 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
17333
17334         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
17335         * libio/stido.h: Likewise.
17336
17337         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
17338         (AF_NFC): Define.
17339         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
17340         (AF_NFC): Define.
17341
17342         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
17343         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
17344         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
17345         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
17346         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
17347
17348         [BZ #13021]
17349         * scripts/test-installation.pl: Don't expect libnss_test1 to be
17350         installed.
17351
17352         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
17353         typo.
17354         (_dl_x86_64_save_sse): Likewise.
17355
17356 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
17357
17358         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
17359         OSXSAVE.
17360         (_dl_x86_64_save_sse): Likewise.
17361
17362         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
17363
17364         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
17365
17366 2011-07-21  Andreas Schwab  <schwab@redhat.com>
17367
17368         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
17369         change.
17370         (_dl_x86_64_save_sse): Use correct AVX check.
17371
17372 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17373
17374         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
17375         bug in strncpy/strncat.
17376         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
17377
17378 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
17379
17380         * string/tester.c (test_strcat): Add tests for different alignments
17381         of source and destination.
17382         (test_strncat): Likewise.
17383
17384 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
17385
17386         [BZ #12852]
17387         * posix/glob.c (glob): Check passed in values before using them in
17388         expressions to avoid some overflows.
17389         (glob_in_dir): Likewise.
17390
17391         [BZ #13007]
17392         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
17393         check for AVX enablement so that we don't crash with old kernels and
17394         new hardware.
17395         * elf/tst-audit4.c: Add same checks here.
17396         * elf/tst-audit6.c: Likewise.
17397
17398         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
17399
17400 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
17401
17402         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
17403
17404 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
17405
17406         * po/cs.po: Update from translation team.
17407         * po/bg.po: Likewise.
17408
17409 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
17410
17411         * misc/sys/cdefs.h: Add support for const attribute.
17412         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
17413         to gnu_dev_{major,minor,makedev} functions.
17414
17415 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
17416
17417         * intl/dcigettext.c (get_output_charset): Add missing bracket.
17418
17419 2011-07-20  Andreas Schwab  <schwab@redhat.com>
17420
17421         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
17422         strlen results.
17423
17424 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17425
17426         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
17427         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
17428         register in order to avoid conflicts with the soft frame pointer
17429         being held in r11 when necessary.
17430         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
17431         (INTERNAL_VSYSCALL_NCS): Likewise.
17432
17433 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
17434
17435         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
17436         * elf/dl-fini.c (_dl_fini): Adjust caller.
17437         * elf/dl-close.c (_dl_close_worker): Likewise.
17438         * sysdeps/generic/ldsodefs.h: Adjust declaration.
17439
17440 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
17441
17442         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
17443         "aux_cache->nlibs < 0".
17444
17445         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
17446         in the reload-count case.
17447
17448 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
17449
17450         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
17451         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
17452         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
17453         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
17454         * sysdeps/x86_64/multiarch/strcat.S: New file.
17455         * sysdeps/x86_64/multiarch/strncat.S: New file.
17456         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
17457         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
17458         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
17459         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
17460         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
17461         (USE_AS_STRCAT): Define.
17462         Add strcat and strncat support.
17463         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
17464         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
17465         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
17466         * string/strncat.c: Update.
17467         (USE_AS_STRNCAT): Define.
17468         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17469         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
17470         and i7.
17471         * sysdeps/x86_64/multiarch/init-arch.h
17472         (bit_Prefer_PMINUB_for_stringop): New.
17473         (index_Prefer_PMINUB_for_stringop): Likewise.
17474         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
17475         bit_Prefer_PMINUB_for_stringop.
17476
17477 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
17478
17479         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
17480         buffer64.
17481         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
17482         of casting of buffer.
17483         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
17484         buffer32 and buffer64.
17485         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
17486         writes instead of casting of buffer.
17487         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
17488         buffer32.
17489         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
17490         casting of buffer.
17491
17492 2011-07-19  Andreas Schwab  <schwab@redhat.com>
17493
17494         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
17495
17496 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
17497
17498         * nscd/nscd.c (termination_handler): Don't do anything for a database
17499         if it has not yet been initialized.
17500
17501 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
17502
17503         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
17504
17505 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
17506
17507         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
17508
17509 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
17510
17511         * po/nl.po: Update from translation team.
17512         * po/sv.po: Likewise.
17513
17514 2011-07-16  Roland McGrath  <roland@hack.frob.com>
17515
17516         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
17517         now disallowed by GCC.
17518
17519         * configure.in (use-default-link): Default to yes if a test -shared
17520         link meets our qualifications.
17521         * configure: Regenerated.
17522
17523         * config.make.in (output-format): New variable.
17524         * configure.in: Check for ld --print-output-format support.
17525         * configure: Regenerated.
17526         * Makerules ($(common-objpfx)format.lds)
17527         [$(output-format) != unknown]: Just use $(output-format),
17528         instead of the linker-script munging.
17529
17530 2011-07-14  Roland McGrath  <roland@hack.frob.com>
17531
17532         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
17533         of $(common-objpfx)shlib.lds.
17534         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
17535
17536         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
17537         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
17538
17539         * configure.in (-z relro check): Adjust test code to add a large
17540         writable data section after it.
17541         * configure: Regenerated.
17542
17543 2011-07-11  Roland McGrath  <roland@hack.frob.com>
17544
17545         * configure.in (-z relro check): Fix test code to make the variable
17546         truly const.
17547         * configure: Regenerated.
17548
17549 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
17550
17551         * nscd/nscd.h (struct traced_file): Define.
17552         (struct database_dyn): Remove inotify_descr, reset_res, and filename
17553         elements.  Add traced_files.
17554         (inotify_fd): Declare.
17555         (register_traced_file): Declare.
17556         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
17557         (inotify_fd): Export.
17558         (resolv_conf_descr): Remove.
17559         (nscd_init): Move inotify descriptor creation to main.
17560         Don't register files for notification here.
17561         (register_traced_file): New function.
17562         (invalidate_cache): Don't use reset_res to determine whether to call
17563         res_init, go through the list of registered files.
17564         (main_loop_poll): The inotify descriptors are now stored in the
17565         structures for the traced files.
17566         (main_loop_epoll): Likewise
17567         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
17568         to __nss_disable_nscd.
17569         * nscd/cache.c (prune_cache): There is no single inotify descriptor
17570         for a database anymore.  Check the records for all the registered
17571         files instead.
17572         * nss/Makefile (libnss_files-routines): Add files-init.
17573         (libnss_db-routines): Add db-init.
17574         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
17575         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
17576         * nss/nss_db/db-init.c: New file.
17577         * nss/nss_files/files-init.c: New file.
17578         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
17579         __nss_lookup_function.
17580         (__nss_lookup_function): Call nss_load_library.
17581         (nss_load_all_libraries): New function.
17582         (__nss_disable_nscd): Take parameter with callback function for files
17583         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
17584         used for the cached services.
17585         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
17586         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
17587         options for features to all the files in nscd.
17588
17589         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
17590
17591 2011-07-10  Roland McGrath  <roland@hack.frob.com>
17592
17593         * csu/elf-init.c (__libc_csu_init): Comment typo.
17594
17595 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
17596
17597         * po/pl.po: Update from translation team.
17598         * po/ja.po: Likewise.
17599         * po/ru.po: Likewise.
17600         * po/ko.po: Likewise.
17601         * po/fr.po: Likewise.
17602
17603 2011-07-09  Roland McGrath  <roland@hack.frob.com>
17604
17605         * configure.in (.ctors/.dtors header and trailer check):
17606         Use an empirical test on a built program.
17607         * configure: Regenerated.
17608
17609         * configure.in (-z relro check): Use an empirical test on a built DSO.
17610         Detect, but do not require, on ia64.
17611         * configure: Regenerated.
17612
17613         * configure.in (READELF): Find it with AC_CHECK_TOOL.
17614         Update tests that use readelf to use $READELF instead.
17615         * configure: Regenerated.
17616
17617 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
17618
17619         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
17620         if the result is not used.
17621
17622 2011-07-05  Andreas Jaeger  <aj@suse.de>
17623
17624         [BZ#9696]
17625         * stdlib/tst-strtod.c: Add testcase.
17626
17627 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
17628
17629         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
17630         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
17631         The latter has a higher limit.  Take additional parameter to pass to
17632         the new function.
17633         (__pathconf): Pass file to __statfs_link_max.
17634         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
17635         __statfs_link_max.
17636         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
17637         __statfs_link_max.
17638
17639         [BZ #12868]
17640         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
17641         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
17642         Handle Lustre.
17643         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
17644         (__statfs_filesize_max): Likewise.
17645         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
17646
17647 2011-07-05  Andreas Jaeger  <aj@suse.de>
17648
17649         * resolv/res_comp.c (dn_skipname): Remove unused variable.
17650
17651 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
17652
17653         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
17654         `status' variable.
17655         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
17656         Likewise.
17657
17658 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
17659
17660         * Makefile (strop-tests): Add strncat.
17661         * string/test-strncat.c: New file.
17662
17663 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
17664
17665         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
17666
17667 2011-06-21  Andreas Jaeger  <aj@suse.de>
17668
17669         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
17670         Copy rule from iconvdata/Makefile.
17671
17672 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
17673
17674         [BZ #12922]
17675         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
17676         but no long options are defined, just return 'W'.
17677
17678 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
17679
17680         [BZ #9696]
17681         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
17682
17683 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
17684
17685         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
17686         netgroups to read.
17687         (innetgr): Likewise.
17688
17689 2011-07-05  Roland McGrath  <roland@hack.frob.com>
17690
17691         * config.make.in (install_root): Default to $(DESTDIR).
17692
17693 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
17694
17695         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
17696
17697 2011-07-02  Roland McGrath  <roland@hack.frob.com>
17698
17699         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
17700
17701         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
17702         containing directory rather than embedding absolute directory names.
17703
17704         * scripts/check-local-headers.sh: Rewritten using awk.
17705         Match by word, not by line.  Print error messages for matches.
17706         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
17707
17708         * Makerules [shlib-lds-flags empty]:
17709         ($(common-objpfx)libc_pic.opts): New target.
17710         ($(common-objpfx)libc_pic.os.clean): New target.
17711         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
17712
17713         * config.make.in (OBJCOPY): New variable.
17714         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
17715         * configure: Regenerated.
17716
17717         * config.make.in (use-default-link): New variable.
17718         * configure.in (use_default_link): Grok --with-default-link to set it.
17719         * configure: Regenerated.
17720         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
17721         (shlib-lds, shlib-lds-flags): Define to empty.
17722
17723         * Makerules (shlib-lds): New variable.
17724         (shlib-lds-flags): New variable.
17725         (build-shlib, build-moduile, build-module-asneeded): Use it.
17726         ($(common-objpfx)libc.so): Use $(shlib-lds).
17727         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
17728         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
17729
17730         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
17731         DT_FLAGS/DT_FLAGS_1 with zero flags.
17732
17733         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
17734         linker script munging.
17735
17736 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
17737
17738         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
17739         as 128-bit value.
17740         * crypt/sha512.c (sha512_process_block): Perform total addition using
17741         128-bit if possible.
17742         (__sha512_finish_ctx): Likewise.
17743         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
17744         as 64-bit value.
17745         * crypt/sha256.c (SWAP64): Define.
17746         (sha256_process_block): Perform total addition using 64-bit if
17747         possible.
17748         (__sha256_finish_ctx): Likewise.
17749
17750 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
17751
17752         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
17753         * nscd/initgrcache.c (addinitgroupsX): Likewise.
17754         * nscd/hstcache.c (cache_addhst): Likewise.
17755         * nscd/grpcache.c (cache_addgr): Likewise.
17756         * nscd/aicache.c (addhstaiX): Likewise
17757         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
17758
17759 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
17760
17761         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
17762         * nscd/initgrcache.c (addinitgroupsX): Likewise.
17763         * nscd/hstcache.c (cache_addhst): Likewise.
17764         * nscd/grpcache.c (cache_addgr): Likewise.
17765         * nscd/aicache.c (addhstaiX): Likewise
17766
17767 2011-07-01  Andreas Schwab  <schwab@redhat.com>
17768
17769         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
17770         domain only when needed.
17771
17772 2011-06-30  Andreas Schwab  <schwab@redhat.com>
17773
17774         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
17775         is always restored.
17776
17777 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
17778
17779         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
17780         are re-adding the entry.
17781         * nscd/servicescache.c (cache_addserv): Likewise.
17782
17783 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
17784
17785         * sysdeps/generic/dl-irel.h: fix protection against multiple
17786         inclusions.
17787         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
17788
17789 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
17790
17791         [BZ #12935]
17792         * malloc/memusage.sh: Fix quoting in message.
17793         * debug/xtrace.sh: Likewise.
17794
17795         * configure.in: Remove support for --experimental-malloc option, make
17796         it the default.
17797         * config.make.in: Likewise.
17798         * malloc/Makefile: Likewise.
17799
17800 2011-06-27  Andreas Schwab  <schwab@redhat.com>
17801
17802         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
17803         two-byte characters.
17804
17805 2011-06-27  Roland McGrath  <roland@hack.frob.com>
17806
17807         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
17808         AC_CACHE_CHECK invocation.
17809         * configure: Regenerated.
17810
17811         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
17812
17813 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
17814
17815         [BZ #12350]
17816         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
17817         bit from old_res_options.
17818
17819         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
17820
17821         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
17822         value type for setfct.
17823
17824 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
17825
17826         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
17827         __gettimeofday instead of gettimeofday.
17828
17829 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
17830
17831         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
17832
17833 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
17834
17835         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
17836
17837         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
17838         info.
17839
17840 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
17841
17842         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
17843         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
17844         strcpy-sse2-unaligned strncpy-sse2-unaligned
17845         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
17846         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
17847         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
17848         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
17849         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
17850         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
17851         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
17852         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
17853         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
17854         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
17855         (STRCPY): Support SSE2 and SSSE3 versions.
17856
17857 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
17858
17859         [BZ #12874]
17860         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
17861         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
17862         kernels which artificially limit size of requests.
17863
17864 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
17865
17866         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
17867         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
17868         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
17869         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
17870         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
17871         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
17872         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
17873         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
17874         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
17875         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
17876         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
17877         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
17878         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
17879         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
17880         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
17881         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17882         Enable unaligned load optimization for Intel Core i3, i5 and i7
17883         processors.
17884         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
17885         Define.
17886         (index_Fast_Unaligned_Load): Define.
17887         (HAS_FAST_UNALIGNED_LOAD): Define.
17888
17889 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
17890
17891         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
17892
17893 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
17894
17895         [BZ #12907]
17896         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
17897         until it is clear that the information is realy needed.
17898         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
17899
17900 2011-06-22  Andreas Schwab  <schwab@redhat.com>
17901
17902         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
17903
17904 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
17905
17906         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
17907         /sys/devices/system/cpu/online if it is usable.
17908
17909         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
17910         reading the information from the /proc filesystem to once a second.
17911
17912 2011-06-21  Andreas Jaeger  <aj@suse.de>
17913
17914         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
17915         NULL after inclusion of kernel headers.
17916
17917 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
17918
17919         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
17920         calls to internal_setent.
17921
17922         [BZ #12885]
17923         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
17924         addresses using gethostbyname4_r ignore IPv4 addresses.
17925
17926         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
17927         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
17928
17929         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
17930
17931 2011-06-20  David S. Miller  <davem@davemloft.net>
17932
17933         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
17934         inclusions.
17935         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
17936
17937         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
17938         (elf_irel): Use it.
17939         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
17940         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
17941         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
17942         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
17943         * sysdeps/x86_64/dl-irel.h: Likewise.
17944
17945         * elf/dl-runtime.c: Use elf_ifunc_invoke.
17946         * elf/dl-sym.c: Likewise.
17947
17948 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
17949
17950         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
17951         need to dereference resplen2.
17952
17953 2011-06-14  Andreas Schwab  <schwab@redhat.com>
17954
17955         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
17956
17957 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
17958
17959         * Makeconfig: Define vardbdir and inst_vardbdir.
17960         * nss/Makefile: Add rules to install db-Makefile.
17961
17962         * nss/nss_db/db-XXX.c: Cleanup.
17963
17964         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
17965         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
17966         GLIBC_PRIVATE.
17967         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
17968         * nss/makedb.c: Implement -g option to specify that value strings
17969         are generated and should not be added to table iterated over for
17970         get*ent calls.
17971         * nss/nss_db/db-initgroups.c: New file.
17972
17973         * nss/getent.c: Add support for initgroups lookups through getgrouplist
17974         interface.
17975
17976         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
17977         (internal_getgrouplist): Adjust to name change.
17978         Update use_initgroups_entry if this is not the first call.
17979         * nss/databases.def: Add initgroups entry.
17980
17981         * nss/makedb.c (compute_tables): Check result of multiple hash table
17982         sizes to minimize maximum chain length.
17983
17984 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
17985
17986         * Versions.def: Add entry for libnss_db.
17987         * shlib-versions: Likewise.
17988         * nss/Makefile: Add rules to build libnss_db.
17989         * nss/Versions: Add libnss_db information.  Organize libnss_files
17990         entries better.
17991         * nss/db-Makefile: Add gshadow support.  Change rules for the new
17992         makedb progra.  Some minor improvements to generate smaller files.
17993         * nss/nss_db/nss_db.h: Move NSS database header data structures to
17994         here from...
17995         * nss/makedb.c: ...here.
17996         Improve database format to be smaller and require less memory at
17997         runtime.
17998         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
17999         db anymore.
18000         * nss/nss_db/db-netgrp.c: Likewise.
18001         * nss/nss_db/db-open.c: Likewise.
18002         * nss/nss_files/flies-XXX.x: Adjust comments.
18003         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
18004         * nss/nss_files/files-grp.c: Likewise.
18005         * nss/nss_files/files-hosts.c: Likewise.
18006         * nss/nss_files/files-network.c: Likewise.
18007         * nss/nss_files/files-proto.c: Likewise.
18008         * nss/nss_files/files-pwd.c: Likewise.
18009         * nss/nss_files/files-rpc.c: Likewise.
18010         * nss/nss_files/files-service.c: Likewise.
18011         * nss/nss_files/files-sgrp.c: Likewise.
18012         * nss/nss_files/files-spwd.c: Likewise.
18013         * nss/nss_db/db-alias.c: Removed.
18014         * nss/nss_db/dummy-db.h: Removed.
18015
18016 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
18017
18018         * nss/makedb.c: Rewritten to not use database library.
18019         * nss/Makefile: Update to build new makedb program.
18020
18021 2011-06-14  Andreas Jaeger  <aj@suse.de>
18022
18023         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
18024         memset declaration.
18025
18026 2011-06-10  Andreas Schwab  <schwab@redhat.com>
18027
18028         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
18029         tmpbuf.
18030
18031 2011-06-10  Roland McGrath  <roland@hack.frob.com>
18032
18033         * Makerules (shlib.lds): Fail if the linker script comes out empty.
18034         * elf/Makefile ($(objpfx)ld.so): Likewise.
18035
18036         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
18037         Don't list ld.so twice in dependencies.
18038
18039         * posix/bug-regex31.c: Include <stdlib.h>.
18040
18041         * nscd/hstcache.c (cache_addhst): Remove unused variable.
18042
18043         * nis/nss_compat/compat-spwd.c
18044         (getspent_next_nss_netgr): Remove unused variable.
18045         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
18046
18047         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
18048         nonmembers" output to use the right array.
18049
18050         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
18051
18052         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
18053
18054         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
18055         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
18056         * catgets/gencat.c (read_input_file): Likewise.
18057         * locale/programs/locarchive.c (enlarge_archive): Likewise.
18058
18059         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
18060         variable definition inside #if's controlling its use.
18061
18062         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
18063
18064         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
18065
18066         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
18067
18068         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
18069         unreachable code.
18070
18071         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
18072
18073         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
18074         * configure: Regenerated.
18075
18076         * Makerules: Revert last change.
18077         * elf/Makefile: Likewise.
18078
18079 2011-06-09  Roland McGrath  <roland@hack.frob.com>
18080
18081         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
18082         * elf/Makefile ($(objpfx)librtld.os): Likewise.
18083         (reloc-link): Likewise.
18084
18085 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
18086
18087         * elf/Makefile: Add rules to build pldd.
18088         * elf/pldd.c: New file.
18089         * elf/pldd-xx.c: New file.
18090
18091 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
18092
18093         * version.h: Update for 2.15 development version.
18094
18095 2011-06-07  David S. Miller  <davem@davemloft.net>
18096
18097         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
18098         ifuncs.
18099         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
18100         elf_machine_lazy_rel): Likewise.
18101         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
18102         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
18103         elf_machine_lazy_rel): Likewise.
18104         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
18105         dl_hwcap via passed in argument.
18106         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
18107         Likewise.
18108
18109 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18110
18111         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
18112
18113 2011-06-06  Roland McGrath  <roland@hack.frob.com>
18114
18115         [BZ #12849]
18116         * manual/fdl-1.1.texi: New file, verbatim from:
18117         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
18118         * manual/lgpl-2.1.texi: New file, verbatim from:
18119         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
18120         * manual/Makefile (licenses): New variable, list those new file names.
18121         (texis): Use it.
18122         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
18123
18124         * manual/fdl.texi: File removed.
18125         * manual/lesser.texi: File removed.
18126         * manual/libc.texinfo (Copying, Documentation License):
18127         Use new @include file names, put @appendix directive before @include.
18128
18129 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
18130
18131         [BZ #12841]
18132         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
18133         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
18134         (mq_open): Add __NTH.
18135
18136 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
18137
18138         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18139         Assume Intel Core i3/i5/i7 processor if AVX is available.
18140
18141 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
18142
18143         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
18144         typo.
18145
18146 2011-05-31  Andreas Schwab  <schwab@redhat.com>
18147
18148         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
18149         memory.  Use alloca_account.  Fix memory leak when retrying.
18150
18151 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
18152
18153         * version.h (RELEASE): Bump for 2.14 release.
18154         * include/features.h (__GLIBC_MINOR__): Bump to 14.
18155
18156         * config.make.in (RANLIB): Remove entry.
18157
18158 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
18159
18160         * po/Makefile (po-sed-cmd): Add ksh to extensions.
18161         (libc.pot): Work around missing support for .ksh extension in xgettext.
18162
18163         [BZ #12684]
18164         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
18165         if both request failed.
18166         (send_dg): In case of server errors clear resplen or *resplen2.
18167
18168         [BZ #12454]
18169         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
18170         when there are multiple maps.
18171         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
18172         (_dl_fini): Remove test here.
18173
18174         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
18175
18176 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
18177
18178         [BZ #12350]
18179         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
18180         bit from old_res_options.
18181         (gaih_inet): Likewise.
18182
18183         [BZ #11099]
18184         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
18185         as signed.
18186
18187         * resolv/res_init.c (res_setoptions): Make the code more compact.
18188
18189         [BZ #11558]
18190         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
18191         set RES_USEVC.
18192
18193         [BZ #11634]
18194         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
18195
18196         * malloc/malloc.h: Mark malloc hook variables as deprecated.
18197
18198         [BZ #11781]
18199         * malloc/malloc.h: Declare malloc hook variables as volatile.
18200
18201         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
18202         in last patch.
18203
18204         [BZ #11799]
18205         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
18206         raise in the comment.
18207         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
18208         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
18209         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
18210
18211 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
18212
18213         [BZ #12811]
18214         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
18215         grow the buffers more if it already has to be sufficient.
18216         (build_wcs_upper_buffer): Likewise.
18217         * posix/regexec.c (check_matching): Likewise.
18218         (clean_state_log_if_needed): Likewise.
18219         (extend_buffers): Don't enlarge buffers beyond size of the input
18220         buffer.
18221         Patches mostly by Emil Wojak <emil@wojak.eu>.
18222         * posix/bug-regex32.c: New file.
18223         * posix/Makefile (tests): Add bug-regex32.
18224
18225         * locale/findlocale.c (_nl_find_locale): Return right away if
18226         _nl_explode_name failed.
18227         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
18228
18229         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
18230
18231         * debug/xtrace.sh: Unify messages.
18232         * malloc/memusage.sh: Likewise.
18233
18234         [BZ #12813]
18235         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
18236         time symbol from vDSO.  Substitute with vsyscall if not available.
18237         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
18238         __vdso_time.
18239
18240         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
18241         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
18242         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
18243         Add sendmmsg and internal_sendmmsg.
18244         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
18245         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
18246         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
18247
18248         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
18249         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
18250         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
18251
18252 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
18253
18254         [BZ #12813]
18255         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
18256         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
18257         available.
18258         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
18259         __vdso_getcpu.
18260
18261         [BZ #12814]
18262         * iconvdata/Makefile (tests): Add bug-iconv9.
18263         * iconvdata/bug-iconv9.c: New file.
18264
18265 2011-05-27  Andreas Schwab  <schwab@redhat.com>
18266
18267         [BZ #12814]
18268         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
18269
18270 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
18271
18272         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
18273         (struct user_regs_struct): Change intcs field back to cs.
18274
18275 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
18276
18277         * po/ja.po: Update from translation team.
18278
18279 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
18280
18281         [BZ #12795]
18282         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
18283         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
18284
18285 2011-05-20  Andreas Schwab  <schwab@redhat.com>
18286
18287         * stdlib/longlong.h: Update from GCC.
18288
18289 2011-05-23  Andreas Schwab  <schwab@redhat.com>
18290
18291         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
18292         parameter name.
18293         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
18294         Add parameter name.
18295         (__sysconf): Pass it down.
18296
18297 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
18298
18299         [BZ #12671]
18300         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
18301         some situations.
18302         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
18303         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
18304         add in in __libc_use_alloca calls.  Adjust callers.
18305         (glob): Use malloc in some situations.
18306
18307         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
18308         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
18309         pltexit.
18310
18311 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
18312
18313         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
18314         and CLOCK_BOOTTIME_ALARM.
18315
18316         [BZ #12782]
18317         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
18318         is returned.
18319
18320         * string/_strerror.c (__strerror_r): Print negative errors as signed
18321         numbers.
18322
18323         [BZ #12777]
18324         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
18325         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
18326         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
18327
18328         * configure.in: Fix typo in redirection and correct removal of test
18329         files in two cases.
18330
18331         [BZ #12788]
18332         * locale/setlocale.c (new_composite_name): Fix test to check for
18333         identical name of all categories.
18334
18335         [BZ #12792]
18336         * libio/filedoalloc.c (local_isatty): New function.
18337         (_IO_file_doallocate): Use local_isatty.
18338         * stdio-common/perror.c (perror): In case a new stream is used
18339         forward the stream error.
18340         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
18341         error flag.
18342
18343 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
18344
18345         [BZ #11869]
18346         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
18347         alloca.
18348         * include/alloca.h (extend_alloca_account): Define.
18349
18350         [BZ #11857]
18351         * posix/regex.h: Fix comments with documentation of user-accessible
18352         fields after compilation and describe correct free'ing of pattern
18353         after re_compile_pattern.
18354         Patch by Reuben Thomas <rrt@sc3d.org>.
18355
18356 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
18357
18358         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
18359         and -mno-altivec to prevent the compiler from using Altivec and/or
18360         VSX instructions when the corresponding registers are not available.
18361
18362 2011-05-19  Andreas Schwab  <schwab@redhat.com>
18363
18364         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
18365
18366 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
18367
18368         * libio/freopen.c (freopen): Use __dup2, not dup2.
18369         * libio/freopen64.c (freopen64): Likewise.
18370
18371 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
18372
18373         [BZ #12775]
18374         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
18375         * math/Makefile (tests): Add test-powl.
18376         (CFLAGS-test-powl.c): Define.
18377         * math/test-powl.c: New file.
18378
18379 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
18380
18381         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
18382
18383 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
18384
18385         [BZ #11837]
18386         * iconvdata/gb18030.c: Update to GB18020-2005.
18387
18388 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
18389
18390         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
18391         RE_SYNTAX_POSIX_AWK): Update to match recent development.
18392         Patch by Aharon Robbins <arnold@skeeve.com>.
18393
18394         [BZ #11892]
18395         * stdlib/putenv.c (putenv): Don't always create copy of the variable
18396         on the stack.
18397
18398         [BZ #11895]
18399         * misc/pselect.c (__pselect): Handle timeout value errors hidden
18400         through underflows.
18401
18402         [BZ #12766]
18403         * misc/error.c (error_at_line): Ensure file_name and old_file_name
18404         point to strings before performing equality test for error_one_per_line
18405         mode.
18406
18407         [BZ #11697]
18408         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
18409
18410         [BZ #11820]
18411         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
18412         (struct user_fpregs_struct): Avoid __uint*_t types.
18413
18414         [BZ #6420]
18415         * malloc/mtrace.c (tr_where): Add additional parameter to point to
18416         symbol info.  Use it instead of calling _dl_addr locally.
18417         (lock_and_info): New function.
18418         (tr_freehook): Call lock_and_info and pass symbol info as additional
18419         parameter to tr_where.
18420         (tr_mallochook): Likewise.
18421         (tr_reallochook): Likewise.
18422         (tr_memalignhook): Likewise.
18423
18424         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
18425         used and couldn't be at all thread-safe.
18426
18427 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
18428
18429         * libio/freopen.c (freopen): Don't close old file descriptor
18430         before the new one is opened.  Instead dup the new file descriptor
18431         to the old one after the new stream is created.
18432         * libio/freopen64.c (freopen64): Likewise.
18433         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
18434         * libio/fileops.c (_IO_new_file_close_it): Handle new
18435         _IO_FLAGS2_NOCLOSE flag.
18436         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
18437         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
18438         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
18439         _IO_FLAGS2_NOCLOSE flag.
18440         * include/unistd.h: Add hidden_proto for dup3.
18441         Define __have_dup3.
18442         * io/dup3.c: Define hidden symbol.
18443         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
18444
18445         [BZ #7101]
18446         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
18447         when an incomplete long option is used.
18448         * posix/tst-getopt_long1.c: New file.
18449         * posix/Makefile (tests): Add tst-getopt_long1.
18450
18451         [BZ #10138]
18452         * scripts/config.guess: Update from autoconf-2.68.
18453         * scripts/config.sub: Likewise.
18454
18455         [BZ #10157]
18456         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
18457         tests into ...
18458         (has_cpuclock): ...this.  New function.
18459         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
18460         macro here based on has_cpuclock code.
18461
18462         [BZ #10149]
18463         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
18464         First byte (not low byte) is now always NUL.
18465         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
18466
18467         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
18468         Use non-cancelable interfaces.
18469
18470         [BZ #9809]
18471         * locale/iso-639.def: Add entry for Sorani.
18472
18473         [BZ #11901]
18474         * include/stdlib.h: Move include protection to the right place.
18475         Define abort_msg_s.  Declare __abort_msg with it.
18476         * stdlib/abort.c (__abort_msg): Adjust type.
18477         * assert/assert.c (__assert_fail_base): New function.  Majority
18478         of code from __assert_fail.  Allocate memory for __abort_msg with
18479         mmap.
18480         (__assert_fail): Now call __assert_fail_base.
18481         * assert/assert-perr.c: Remove bulk of implementation.  Use
18482         __assert_fail_base.
18483         * include/assert.hL Declare __assert_fail_base.
18484         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
18485         mmap.
18486         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
18487
18488 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
18489
18490         [BZ #11952]
18491         [BZ #12453]
18492         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
18493         until all modules are registered in the DTV.
18494         * elf/Makefile: Add rules to build and run tst-tls19.
18495         * elf/tst-tls19.c: New file.
18496         * elf/tst-tls19mod1.c: New file.
18497         * elf/tst-tls19mod2.c: New file.
18498         * elf/tst-tls19mod3.c: New file.
18499         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
18500
18501         [BZ #12083]
18502         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
18503         correctly.
18504
18505         [BZ #12601]
18506         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
18507         two-byte sequence errors.
18508         * iconvdata/Makefile (tests): Add bug-iconv8.
18509         * iconvdata/bug-iconv8.c: New file.
18510
18511         [BZ #12626]
18512         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
18513         buf2 definition.
18514
18515         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
18516
18517         [BZ #12432]
18518         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
18519         (dummy_getcfa): New function.
18520         (init): Get _Unwind_GetCFA address, use dummy if not found.
18521         (backtrace_helper): In recursion check, also check whether CFA changes.
18522         (__backtrace): Completely initialize arg.
18523
18524         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
18525         storing incomplete byte sequence in state object.  Avoid testing for
18526         guaranteed too small input if we know there is enough data available.
18527
18528 2011-05-11  Andreas Schwab  <schwab@redhat.com>
18529
18530         * Makeconfig (+link-pie): Indent.
18531         * Rules (binaries-pie): Define if $(have-fpie) and
18532         $(build-shared).
18533         (binaries-shared): Also filter out $(binaries-pie).
18534         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
18535         * nscd/Makefile (others-pie): Add nscd.
18536         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
18537         ($(objpfx)nscd): Remove command override.
18538         * login/Makefile (others-pie): Add pt_chown.
18539         ($(objpfx)pt_chown): Remove command override.
18540         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
18541         remove command overrides.
18542
18543 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
18544
18545         * libio/tst_putwc.c: Fix error messages.
18546
18547         [BZ #12724]
18548         * libio/fileops.c (_IO_new_file_close_it): Always flush when
18549         currently writing and seek to current position when not.
18550         * libio/Makefile (tests): Add bug-fclose1.
18551         * libio/bug-fclose1.c: New file.
18552
18553 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
18554
18555         [BZ #12511]
18556         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
18557         don't set DF_1_NODELETE here.
18558         (do_lookup_x): When entering new entry test for copy relocation
18559         and if necessary set DF_1_NODELETE flag.
18560         * elf/tst-unique4.cc: New file.
18561         * elf/tst-unique4.h: New file.
18562         * elf/tst-unique4lib.cc: New file.
18563         * elf/Makefile: Add rules to build and run tst-unique4.
18564         Patch by Piotr Bury <pbury@goahead.com>.
18565
18566 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
18567
18568         [BZ #12052]
18569         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
18570
18571         [BZ #12625]
18572         * misc/mntent_r.c (addmntent): Flush the stream after the output
18573
18574         [BZ #12393]
18575         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
18576         (is_trusted_path_normalize): Skip initial colon.  Append slash
18577         to empty buffer.  Duplicate is_trusted_path code but allow
18578         constructed patch to be prefix.
18579         (is_dst): Allow $ORIGIN followed by /.
18580         (_dl_dst_substitute): Correct clearing of check_for_trusted.
18581         Correct testing of result of is_trusted_path_normalize
18582         (decompose_rpath): Fix warning.
18583
18584 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
18585
18586         [BZ #11257]
18587         * grp/initgroups.c (internal_getgrouplist): When we found the service
18588         list through the initgroups entry in nsswitch.conf do not always
18589         continue on a successful lookup.  Don't always use the
18590         __nss_group_database value if it is set.
18591         * nss/nsswitch.conf (initgroups): Change action for successful db
18592         lookup to continue for compatibility.
18593
18594 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
18595
18596         [BZ #11532]
18597         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
18598         and CP774 modules.
18599         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
18600         and CP774 modules.
18601         * iconvdata/tst-tables.sh: Likewise.
18602         * iconvdata/cp770.c: New file.
18603         * iconvdata/cp771.c: New file.
18604         * iconvdata/cp772.c: New file.
18605         * iconvdata/cp773.c: New file.
18606         * iconvdata/cp774.c: New file.
18607         * iconvdata/testdata/CP770: New file.
18608         * iconvdata/testdata/CP770..UTF8: New file.
18609         * iconvdata/testdata/CP771: New file.
18610         * iconvdata/testdata/CP771..UTF8: New file.
18611         * iconvdata/testdata/CP772: New file.
18612         * iconvdata/testdata/CP772..UTF8: New file.
18613         * iconvdata/testdata/CP773: New file.
18614         * iconvdata/testdata/CP773..UTF8: New file.
18615         * iconvdata/testdata/CP774: New file.
18616         * iconvdata/testdata/CP774..UTF8: New file.
18617
18618         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
18619         END CHARMAP line.
18620         * iconvdata/gen-8bit-gap.sh: Likewise.
18621         * iconvdata/gen-8bit.sh: Likewise.
18622
18623         * locale/iso-639.def: Add ary entry.
18624
18625         [BZ #11258]
18626         * locale/C-translit.h.in: Add U20A1 transliteration.
18627
18628         [BZ #12178]
18629         * locale/iso-639.def: Add wae entry.
18630         Patch by Kevin Bortis <bortis@translate-wae.ch>.
18631
18632         [BZ #12545]
18633         * locale/programs/localedef.c (construct_output_path): Use ssize_t
18634         for n.
18635
18636         [BZ #12711]
18637         * locale/C-translit.h.in: Add entry for U20B9.
18638         Patch by pravin.d.s@gmail.com.
18639
18640 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
18641
18642         [BZ #12713]
18643         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
18644         ENAMETOOLONG use generic getcwd.
18645         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
18646         in rtld.  Use *stat64.
18647         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
18648         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
18649         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
18650         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
18651         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
18652         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
18653         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
18654         __fstatat64 macros.
18655         * include/dirent.h: Add libc_hidden_proto for rewinddir.
18656         * dirent/rewinddir.c: Add libc_hidden_def.
18657         * sysdeps/mach/hurd/rewinddir.c: Likewise.
18658         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
18659
18660         * include/dirent.h (__alloc_dir): Add flags parameter.
18661         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
18662         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
18663         __alloc_dir.
18664         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
18665         from fdopendir if O_CLOEXEC is already set.
18666
18667 2011-03-15  Alan Modra  <amodra@gmail.com>
18668
18669         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
18670         l_tls_firstbyte_offset non-zero.  Save padding offset in
18671         l_tls_firstbyte_offset for later use.
18672         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
18673         freeing static tls block.
18674
18675 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
18676
18677         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
18678         where #ifdef was intended.  The intent is to prevent ARG_MAX from
18679         being defined by the kernel headers.
18680
18681 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
18682
18683         [BZ #12734]
18684         * resolv/resolv.h: Define RES_NOTLDQUERY.
18685         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
18686         no-tld-query and set RES_NOTLDQUERY.
18687         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
18688         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
18689         modern BIND to search name as TLD unless forbidden.
18690
18691 2011-05-07  Petr Baudis  <pasky@suse.cz>
18692             Ulrich Drepper  <drepper@gmail.com>
18693
18694         [BZ #12393]
18695         * elf/dl-load.c (fillin_rpath): Move trusted path check...
18696         (is_trusted_path): ...to here.
18697         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
18698         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
18699         using is_trusted_path_normalize() in setuid scripts.
18700
18701 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
18702
18703         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
18704         __BEGIN/__END_DECLS.
18705
18706 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
18707
18708         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
18709         NSS_STATUS_NOTFOUND if no record was found.
18710
18711 2011-05-05  Andreas Schwab  <schwab@redhat.com>
18712
18713         * sunrpc/Makefile (headers): Add rpc/netdb.h.
18714         (headers-not-in-tirpc): Remove rpc/netdb.h
18715         * resolv/netdb.h: Revert last change.
18716
18717 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
18718
18719         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
18720         circular dependency between libgcc.a and libc.a.
18721
18722 2011-05-05  Andreas Schwab  <schwab@redhat.com>
18723
18724         * resolv/netdb.h: Don't include <rpc/netdb.h>.
18725         * nis/Makefile: Don't install rpcsvc/*.
18726         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
18727         instead of <rpc/types.h>.
18728         (MAXHOSTNAMELEN): Define.
18729
18730 2011-05-03  Andreas Schwab  <schwab@redhat.com>
18731
18732         * elf/ldconfig.c (add_dir): Don't crash on empty path.
18733
18734 2011-04-28  Maciej Babinski  <mbabinski@google.com>
18735
18736         [BZ #12714]
18737         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
18738         gethostbyname4_r when IPv6 results are possible.
18739
18740 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
18741
18742         [BZ #12723]
18743         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
18744         _PC_PIPE_BUF handling.
18745
18746 2011-04-30  Bruno Haible  <bruno@clisp.org>
18747
18748         [BZ #12717]
18749         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
18750         * resolv/netdb.h (getnameinfo): Change type of flags parameter
18751         to 'int'.
18752         * inet/getnameinfo.c (getnameinfo): Likewise.
18753
18754 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
18755
18756         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
18757         to groups setting in database lookup.
18758         * nss/nsswitch.conf: Add initgroups entry.
18759
18760 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
18761
18762         [BZ #12685]
18763         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
18764         mode string.
18765         Patch by Eric Blake <eblake@redhat.com>.
18766
18767 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
18768
18769         * sunrpc/Makefile (need-export-routines): Add svc_run.
18770         (routines): Remove svc_run.
18771         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
18772         * sunrpc/clnt_perr.c (clnt_perrno): Export.
18773         * sunrpc/svc_run.c (svc_run): Likewise.
18774         * sunrpc/svc_udp.c (svcudp_create): Likewise.
18775
18776 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
18777
18778         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
18779         problem in reallocation in last patch.
18780
18781 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
18782
18783         * sunrpc/Makefile: Move inclusion of Rules.
18784
18785 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
18786
18787         * nss/nss_files/files-initgroups.c: New file.
18788         * nss/Makefile (libnss_files-routines): Add files-initgroups.
18789         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
18790         _nss_files_initgroups_dyn.
18791
18792 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
18793
18794         * elf/elf.h (R_ARM_IRELATIVE): Define.
18795
18796 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
18797
18798         * po/ru.po: Update from translation team.
18799
18800 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
18801
18802         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
18803         dependencies.
18804
18805 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
18806
18807         [BZ #12653]
18808         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
18809         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
18810         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
18811         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
18812         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
18813
18814 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
18815
18816         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
18817         differing bytes.
18818         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
18819         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
18820         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
18821
18822 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
18823
18824         [BZ #12420]
18825         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
18826         storing it.
18827         * stdlib/bug-getcontext.c: New file.
18828         * stdlib/Makefile: Add rules to build and run bug-getcontext.
18829
18830 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18831
18832         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
18833         instructions into .machine "z9-109".
18834         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
18835         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
18836
18837 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18838
18839         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
18840         between environment variables and auxiliary vector.
18841
18842 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
18843
18844         * Makefile: Add rules to build linkobj/libc.so.
18845         * include/libc-symbols.h: Define libc_hidden_nolink.
18846         * include/rpc/auth.h: Mark functions which are to be hidden.
18847         * include/rpc/auth_des.h: Likewise.
18848         * include/rpc/auth_unix.h: Likewise.
18849         * include/rpc/clnt.h: Likewise.
18850         * include/rpc/des_crypt.h: Likewise.
18851         * include/rpc/key_prot.h: Likewise.
18852         * include/rpc/pmap_clnt.h: Likewise.
18853         * include/rpc/pmap_prot.h: Likewise.
18854         * include/rpc/pmap_rmt.h: Likewise.
18855         * include/rpc/rpc_msg.h: Likewise.
18856         * include/rpc/svc.h: Likewise.
18857         * include/rpc/svc_auth.h: Likewise.
18858         * include/rpc/xdr.h: Likewise.
18859         * nis/Makefile: Link all DSOs against linkobj/libc.so.
18860         * nss/Makefile: Likewise.
18861         * sunrpc/Makefile: Don't install headers.  Build library with normal
18862         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
18863         * sunrpc/auth_des.c: Hide exported symbols by default, export some
18864         for the compat linking library.  Remove use of INTDEF/INTUSE.
18865         * sunrpc/auth_none.c: Likewise.
18866         * sunrpc/auth_unix.c: Likewise.
18867         * sunrpc/authdes_prot.c: Likewise.
18868         * sunrpc/authuxprot.c: Likewise.
18869         * sunrpc/clnt_gen.c: Likewise.
18870         * sunrpc/clnt_perr.c: Likewise.
18871         * sunrpc/clnt_raw.c: Likewise.
18872         * sunrpc/clnt_simp.c: Likewise.
18873         * sunrpc/clnt_tcp.c: Likewise.
18874         * sunrpc/clnt_udp.c: Likewise.
18875         * sunrpc/clnt_unix.c: Likewise.
18876         * sunrpc/des_crypt.c: Likewise.
18877         * sunrpc/des_soft.c: Likewise.
18878         * sunrpc/get_myaddr.c: Likewise.
18879         * sunrpc/key_call.c: Likewise.
18880         * sunrpc/key_prot.c: Likewise.
18881         * sunrpc/netname.c: Likewise.
18882         * sunrpc/pm_getmaps.c: Likewise.
18883         * sunrpc/pm_getport.c: Likewise.
18884         * sunrpc/pmap_clnt.c: Likewise.
18885         * sunrpc/pmap_prot.c: Likewise.
18886         * sunrpc/pmap_prot2.c: Likewise.
18887         * sunrpc/pmap_rmt.c: Likewise.
18888         * sunrpc/publickey.c: Likewise.
18889         * sunrpc/rpc_cmsg.c: Likewise.
18890         * sunrpc/rpc_common.c: Likewise.
18891         * sunrpc/rpc_dtable.c: Likewise.
18892         * sunrpc/rpc_prot.c: Likewise.
18893         * sunrpc/rpc_thread.c: Likewise.
18894         * sunrpc/rtime.c: Likewise.
18895         * sunrpc/svc.c: Likewise.
18896         * sunrpc/svc_auth.c: Likewise.
18897         * sunrpc/svc_authux.c: Likewise.
18898         * sunrpc/svc_raw.c: Likewise.
18899         * sunrpc/svc_run.c: Likewise.
18900         * sunrpc/svc_simple.c: Likewise.
18901         * sunrpc/svc_tcp.c: Likewise.
18902         * sunrpc/svc_udp.c: Likewise.
18903         * sunrpc/svc_unix.c: Likewise.
18904         * sunrpc/svcauth_des.c: Likewise.
18905         * sunrpc/xcrypt.c: Likewise.
18906         * sunrpc/xdr.c: Likewise.
18907         * sunrpc/xdr_array.c: Likewise.
18908         * sunrpc/xdr_float.c: Likewise.
18909         * sunrpc/xdr_intXX_t.c: Likewise.
18910         * sunrpc/xdr_mem.c: Likewise.
18911         * sunrpc/xdr_rec.c: Likewise.
18912         * sunrpc/xdr_ref.c: Likewise.
18913         * sunrpc/xdr_sizeof.c: Likewise.
18914         * sunrpc/xdr_stdio.c: Likewise.
18915
18916 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
18917
18918         [BZ #12650]
18919         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
18920         * sysdeps/ia64/dl-tls.h: Likewise.
18921         * sysdeps/powerpc/dl-tls.h: Likewise.
18922         * sysdeps/s390/dl-tls.h: Likewise.
18923         * sysdeps/sh/dl-tls.h: Likewise.
18924         * sysdeps/sparc/dl-tls.h: Likewise.
18925         * sysdeps/x86_64/dl-tls.h: Likewise.
18926         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
18927
18928 2011-03-14  Andreas Schwab  <schwab@redhat.com>
18929
18930         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
18931         rpath element also skip the following colon.
18932         (expand_dynamic_string_token): Add is_path parameter and pass
18933         down to DL_DST_REQUIRED and _dl_dst_substitute.
18934         (decompose_rpath): Call expand_dynamic_string_token with
18935         non-zero is_path.  Ignore empty rpaths.
18936         (_dl_map_object_from_fd): Call expand_dynamic_string_token
18937         with zero is_path.
18938
18939 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
18940
18941         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
18942         Make cancelable.
18943
18944 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
18945
18946         [BZ #12655]
18947         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
18948         Patch by Filipe David Manana <fdmanana@apache.org>.
18949
18950 2011-04-07  Andreas Schwab  <schwab@redhat.com>
18951
18952         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
18953         Maintain aligned stack.
18954         (CHECK_RSP): Remove unused macro.
18955
18956 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
18957
18958         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
18959         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
18960
18961 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
18962
18963         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
18964
18965         * include/features.h: Mention __USE_XOPEN2K8 in comment.
18966
18967 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
18968
18969         [BZ #12518]
18970         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
18971         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
18972         * sysdeps/x86_64/memmove.c: New file.
18973         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
18974         (memcpy): Renamed to ...
18975         (__new_memcpy): This.
18976         (memcpy): Provide GLIBC_2_14 memcpy.
18977         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
18978         (memcpy): Provide GLIBC_2_2_5 memcpy.
18979
18980 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
18981
18982         [BZ #12631]
18983         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
18984
18985 2011-03-30  Andreas Schwab  <schwab@redhat.com>
18986
18987         * misc/syncfs.c: New file.
18988         * misc/Makefile (routines): Add syncfs.
18989         * posix/unistd.h: Declare syncfs.
18990         * sysdeps/unix/syscalls.list: Add syncfs.
18991
18992 2011-04-01  Andreas Schwab  <schwab@redhat.com>
18993
18994         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
18995         open_by_handle_at.
18996         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
18997         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
18998         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
18999         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
19000         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
19001         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
19002         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
19003
19004 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
19005
19006         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
19007         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
19008         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
19009         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
19010         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
19011         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
19012         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
19013
19014         * io/Makefile: Compile fallocate.c, fallocate64.c, and
19015         sync_file_range.c with -fexceptions.
19016         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
19017         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
19018         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
19019         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
19020         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
19021         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
19022         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
19023         sync_file_range as cancellation point
19024         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
19025         now a wrapper around __call_sync_file_range with cancellation handling.
19026         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
19027         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
19028         function name to __call_sync_file_range.
19029         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
19030         Add call_sync_file_range.
19031
19032 2011-04-01  Andreas Schwab  <schwab@redhat.com>
19033
19034         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
19035         bits/timex.h.
19036
19037 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
19038
19039         * iconv/iconv.h: Fix typo in comment.
19040         * io/fcntl.h: Likewise.
19041         * libio/stdio.h: Likewise.
19042         * posix/spawn.h: Likewise.
19043         * posix/unistd.h: Likewise.
19044         * stdlib/stdlib.h: Likewise.
19045         * time/time.h: Likewise.
19046         * wcsmbs/wchar.h: Likewise.
19047
19048         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
19049         open_by_handle): Add.
19050         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
19051         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
19052         Augment a few comments.
19053         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
19054         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
19055         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
19056         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
19057         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
19058         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
19059         open_by_handle.
19060
19061         * io/fcntl.h (AT_EMPTY_PATH): Define.
19062
19063 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
19064
19065         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
19066         * sysdeps/unix/sysv/linux/bits/time.h: New file.
19067         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
19068         to...
19069         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
19070         * Versions.def: Add GLIBC_2.14.
19071         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
19072         Export.
19073
19074 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
19075
19076         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
19077         round counter.
19078         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
19079
19080 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
19081
19082         [BZ #12597]
19083         * string/test-strncmp.c (do_page_test): New function.
19084         (check2): Likewise.
19085         (test_main): Call check2.
19086         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
19087
19088 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
19089
19090         [BZ #12587]
19091         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
19092         Handle cache information in CPU leaf 4.
19093         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
19094
19095 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
19096
19097         [BZ #12583]
19098         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
19099         character representation.
19100         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
19101
19102 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
19103
19104         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
19105         END(__isnan) to END(__isnanf) to match function entry point/label
19106         EALIGN(__isnanf,...).
19107
19108 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
19109
19110         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
19111
19112 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
19113
19114         [BZ #12510]
19115         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
19116         copy from the symbol referenced in the relocation to initialize the
19117         used variable.
19118         Patch by Piotr Bury <pbury@goahead.com>.
19119         * elf/Makefile: Add rules to build and tst-unique3.
19120         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
19121         * elf/tst-unique3.cc: New file.
19122         * elf/tst-unique3.h: New file.
19123         * elf/tst-unique3lib.cc: New file.
19124         * elf/tst-unique3lib2.cc: New file.
19125
19126         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
19127
19128 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
19129
19130         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
19131         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
19132         to _start.
19133
19134 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
19135
19136         * elf/dl-load.c (_dl_map_object): If we are looking for the first
19137         to-be-loaded object along a path to loader is ld.so.
19138
19139 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
19140             Ulrich Drepper  <drepper@gmail.com>
19141
19142         * sysdeps/x86_64/memset.S: After aligning destination, code
19143         branches to different locations depending on the value of
19144         misalignment, when multiarch is enabled. Fix this.
19145
19146 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
19147
19148         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
19149         Set _x86_64_preferred_memory_instruction for AMD processsors.
19150         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19151         Set bit_Prefer_SSE_for_memop for AMD processors.
19152
19153 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
19154
19155         * libio/fmemopen.c (fmemopen): Optimize a bit.
19156
19157 2011-03-03  Andreas Schwab  <schwab@redhat.com>
19158
19159         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
19160
19161 2011-03-03  Roland McGrath  <roland@redhat.com>
19162
19163         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
19164
19165 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
19166
19167         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
19168         __bzero_ultra1 instead of __memset_ultra1.
19169
19170 2011-02-23  Andreas Schwab  <schwab@redhat.com>
19171             Ulrich Drepper  <drepper@gmail.com>
19172
19173         [BZ #12509]
19174         * include/link.h (struct link_map): Add l_orig_initfini.
19175         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
19176         returning unsuccessfully.
19177         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
19178         close of a file loaded at startup, restore the original l_initfini
19179         list.
19180         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
19181         list, store the pointer.
19182         * elf/Makefile ($(objpfx)noload-mem): New rule.
19183         (noload-ENV): Define.
19184         (tests): Add $(objpfx)noload-mem.
19185         * elf/noload.c: Include <memcheck.h>.
19186         (main): Call mtrace.  Close all opened handles.
19187
19188 2011-02-17  Andreas Schwab  <schwab@redhat.com>
19189
19190         [BZ #12454]
19191         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
19192         dependencies are missing.
19193
19194 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19195
19196         Fix __if_freereq crash: Unlike the generic version which uses free,
19197         Hurd needs munmap.
19198         * sysdeps/mach/hurd/ifreq.h: New file.
19199
19200 2011-01-27  Petr Baudis  <pasky@suse.cz>
19201             Ulrich Drepper  <drepper@gmail.com>
19202
19203         [BZ 12445]#
19204         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
19205         to extend_alloca().
19206         * stdio-common/bug23.c: New file.
19207         * stdio-common/Makefile (tests): Add bug23.
19208
19209 2010-09-28  Andreas Schwab  <schwab@redhat.com>
19210             Ulrich Drepper  <drepper@gmail.com>
19211
19212         [BZ #12489]
19213         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
19214         before performing relro protection.  At old place add assertion
19215         to make sure nothing changed.
19216
19217 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
19218             Glauber de Oliveira Costa  <glommer@gmail.com>
19219
19220         * elf/elf.h: Add new ARM TLS relocs.
19221
19222 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
19223
19224         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
19225         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
19226         cast from r3.
19227         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
19228         'tests' variable.
19229         * sysdeps/wordsize-64/tst-writev.c: New file.
19230
19231 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
19232
19233         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
19234         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
19235         insns in _dl_start to prevent a TOC reference before relocs are
19236         resolved.
19237
19238 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
19239
19240         [BZ #12469]
19241         * Makeconfig: Remove RANLIB definition.
19242         * Makerules: Don't use RANLIB.
19243         * aclocal.m4: Remove ranlib test.
19244         * configure.in: No need to check for ranlib.
19245         * elf/rtld-Rules: Don't use RANLIB.
19246
19247 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19248
19249         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
19250         protection macro.
19251         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
19252         inclusion protection macro.
19253
19254         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
19255         SIGRTMIN and SIGRTMAX and print information in that case only when
19256         SIGRTMIN is defined.
19257
19258 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
19259
19260         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
19261         arginfo fn returning -1.
19262
19263         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
19264         and thousands string is zero terminated.
19265
19266 2011-02-03  Andreas Schwab  <schwab@redhat.com>
19267
19268         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
19269         sysdeps/unix/sysv/linux/bits/socket.h.
19270
19271 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19272
19273         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
19274         (__CPU_COUNT): Remove old macros.
19275         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
19276         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
19277         (__CPU_ALLOC, __CPU_FREE): Add macros.
19278         (__sched_cpualloc, __sched_cpufree): Add declarations.
19279
19280 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
19281
19282         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
19283         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
19284         * nscd/aicache.c (addhstaiX): Return timeout of added value.
19285         (readdhstai): Return value of addhstaiX call.
19286         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
19287         (addgrbyX): Return value returned by cache_addgr.
19288         (readdgrbyname): Return value returned by addgrbyX.
19289         (readdgrbygid): Likewise.
19290         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
19291         (addpwbyX): Return value returned by cache_addpw.
19292         (readdpwbyname): Return value returned by addhstbyX.
19293         (readdpwbyuid): Likewise.
19294         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
19295         (addservbyX): Return value returned by cache_addserv.
19296         (readdservbyname): Return value returned by addservbyX:
19297         (readdservbyport): Likewise.
19298         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
19299         (addhstbyX): Return value returned by cache_addhst.
19300         (readdhstbyname): Return value returned by addhstbyX.
19301         (readdhstbyaddr): Likewise.
19302         (readdhstbynamev6): Likewise.
19303         (readdhstbyaddrv6): Likewise.
19304         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
19305         (readdinitgroups): Return value returned by addinitgroupsX.
19306         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
19307         (prune_cache): Keep track of timeout value of re-added entries.
19308         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
19309         * nscd/nscd.h: Adjust prototypes of readd* functions.
19310
19311 2011-02-04  Roland McGrath  <roland@redhat.com>
19312
19313         * nis/nis_server.c (nis_servstate): Use the right name for 0.
19314         (nis_stats): Likewise.
19315         * nis/nis_modify.c (nis_modify): Likewise.
19316         * nis/nis_remove.c (nis_remove): Likewise.
19317         * nis/nis_add.c (nis_add): Likewise.
19318
19319         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
19320
19321         * posix/fnmatch_loop.c: Add some consts.
19322
19323         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
19324
19325 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
19326
19327         [BZ #12460]
19328         * config.make.in (config-cflags-novzeroupper): Define.
19329         * configure.in: Substitute libc_cv_cc_novzeroupper.
19330         * elf/Makefile (AVX-CFLAGS): Define.
19331         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
19332         (CFLAGS-tst-auditmod4a.c): Likewise.
19333         (CFLAGS-tst-auditmod4b.c): Likewise.
19334         (CFLAGS-tst-auditmod6b.c): Likewise.
19335         (CFLAGS-tst-auditmod6c.c): Likewise.
19336         (CFLAGS-tst-auditmod7b.c): Likewise.
19337         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
19338
19339 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
19340
19341         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
19342         function to the callback.
19343         Patch partly by Jiri Olsa <jolsa@redhat.com>.
19344
19345 2011-02-02  Andreas Schwab  <schwab@redhat.com>
19346
19347         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
19348         of errno.
19349
19350 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
19351
19352         [BZ #11724]
19353         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
19354         of constructors.
19355         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
19356         of destructors.
19357         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
19358
19359         [BZ #11724]
19360         * elf/Makefile: Add rules to build and run new test.
19361         * elf/tst-initorder.c: New file.
19362         * elf/tst-initorder.exp: New file.
19363         * elf/tst-initordera1.c: New file.
19364         * elf/tst-initordera2.c: New file.
19365         * elf/tst-initordera3.c: New file.
19366         * elf/tst-initordera4.c: New file.
19367         * elf/tst-initorderb1.c: New file.
19368         * elf/tst-initorderb2.c: New file.
19369         * elf/tst-order-a1.c: New file.
19370         * elf/tst-order-a2.c: New file.
19371         * elf/tst-order-a3.c: New file.
19372         * elf/tst-order-a4.c: New file.
19373         * elf/tst-order-b1.c: New file.
19374         * elf/tst-order-b2.c: New file.
19375         * elf/tst-order-main.c: New file.
19376         New test case by George Gensure <werkt0@gmail.com>.
19377
19378 2010-10-01  Andreas Schwab  <schwab@redhat.com>
19379
19380         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
19381         decoding ACE if AI_CANONIDN.
19382
19383 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
19384
19385         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
19386
19387 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
19388
19389         * version.h (RELEASE): Bump for 2.13 release.
19390         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
19391
19392         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
19393
19394         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
19395         MADV_NOHUGEPAGE.
19396         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
19397         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
19398         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
19399         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
19400         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
19401         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
19402
19403         * posix/getconf.c: Update copyright year.
19404         * catgets/gencat.c: Likewise.
19405         * csu/version.c: Likewise.
19406         * debug/catchsegv.sh: Likewise.
19407         * debug/xtrace.sh: Likewise.
19408         * elf/ldconfig.c: Likewise.
19409         * elf/ldd.bash.in: Likewise.
19410         * elf/sprof.c (print_version): Likewise.
19411         * iconv/iconv_prog.c: Likewise.
19412         * iconv/iconvconfig.c: Likewise.
19413         * locale/programs/locale.c: Likewise.
19414         * locale/programs/localedef.c: Likewise.
19415         * malloc/memusage.sh: Likewise.
19416         * malloc/mtrace.pl: Likewise.
19417         * nscd/nscd.c (print_version): Likewise.
19418         * nss/getent.c: Likewise.
19419
19420         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
19421         PF_CAIF, and PF_ALG.
19422         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
19423
19424 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
19425
19426         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
19427         (modules-names): Use them.
19428         (ifunc-test-modules, ifunc-pie-tests): Define.
19429         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
19430         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
19431         (test-extras): Likewise.
19432         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
19433         $(compile-command.c).
19434         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
19435         (all-built-dso): Define.
19436         (check-textrel.out, check-execstack.out): Depend on it.
19437
19438         * configure.in: Don't override --enable-multi-arch.
19439
19440 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
19441
19442         [BZ #6812]
19443         * nscd/hstcache.c (tryagain): Define.
19444         (cache_addhst): Return tryagain not notfound for temporary errors.
19445         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
19446         failed.
19447
19448 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
19449
19450         [BZ #10563]
19451         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
19452         to make the syscall.
19453         * sysdeps/unix/sysv/linux/setgroups.c: New file.
19454
19455         [BZ #12378]
19456         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
19457         and fall back to matching as normal character if the string ends before
19458         the matching ']' is found.  This is what POSIX requires.
19459         * posix/testfnm.c: Adjust test result.
19460         * posix/globtest.sh: Adjust test result.  Add new test.
19461         * posix/tst-fnmatch.input: Likewise.
19462         * posix/tst-fnmatch2.c: Add new test.
19463
19464 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
19465
19466         * elf/Makefile (check-execstack): Revert last change.  Depend on
19467         check-execstack.h.
19468         (check-execstack.h): New target.
19469         (generated): Add check-execstack.h.
19470         * elf/check-execstack.c: Include "check-execstack.h".
19471         (main): Revert last change.
19472         (handle_file): Return zero if GNU_STACK is absent and
19473         DEFAULT_STACK_PERMS doesn't include PF_X.
19474
19475 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
19476
19477         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
19478         in child fails because the descriptor is already closed.
19479         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
19480         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
19481         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
19482
19483         [BZ #12397]
19484         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
19485         syscall.
19486
19487         [BZ #10484]
19488         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
19489         temporary buffer used to handle multi lookups locally.
19490         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
19491
19492 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
19493
19494         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
19495         loader is ld.so.
19496
19497 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
19498
19499         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
19500         alignment for SSE2.
19501
19502 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
19503
19504         [BZ #12394]
19505         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
19506         characters.  When rounding increased number of integer digits recompute
19507         number of groups.
19508         * stdio-common/tst-grouping.c: New file.
19509         * stdio-common/Makefile: Add rules to build and run tst-grouping.
19510
19511 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
19512
19513         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
19514         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
19515
19516         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
19517         void.
19518         * bits/select.h: Likewise.
19519
19520 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
19521
19522         * po/ja.po: Update from translation team.
19523
19524 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
19525
19526         [BZ #11155]
19527         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
19528         implementation just like for lxstat, fxstatat, et al.
19529
19530 2010-12-27  Jim Meyering  <meyering@redhat.com>
19531
19532         [BZ #12348]
19533         * posix/regexec.c (build_trtable): Return failure indication upon
19534         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
19535
19536 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
19537
19538         [BZ #12201]
19539         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
19540         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
19541         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
19542         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
19543
19544         [BZ #12207]
19545         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
19546
19547         [BZ #12204]
19548         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
19549         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
19550
19551 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
19552
19553         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
19554         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
19555         script has SORT_BY_INIT_PRIORITY.
19556         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
19557         NO_CTORS_DTORS_SECTIONS is defined.
19558         * elf/soinit.c: Likewise.
19559         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
19560         NO_CTORS_DTORS_SECTIONS is defined.
19561         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
19562         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
19563         * sysdeps/sh/init-first.c: Likewise.
19564         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
19565
19566 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
19567
19568         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
19569         always use the slow path.
19570
19571 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
19572
19573         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
19574         similar rule which adds the sysdep directories to the header search in
19575         order to pick up the correct platform stackinfo.h.
19576         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
19577         perform test if it is, otherwise return successfully without testing.
19578         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
19579         DEFAULT_STACK_PERMS define in stackinfo.h.
19580         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
19581         defined in stackinfo.h.
19582         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
19583         DEFAULT_STACK_PERMS defined in stackinfo.h.
19584         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
19585         * sysdeps/ia64/stackinfo.h: Likewise.
19586         * sysdeps/s390/stackinfo.h: Likewise.
19587         * sysdeps/sh/stackinfo.h: Likewise.
19588         * sysdeps/sparc/stackinfo.h: Likewise.
19589         * sysdeps/x86_64/stackinfo.h: Likewise.
19590         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
19591         PF_X for powerpc64.  Retain PF_X for powerpc32.
19592
19593 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
19594
19595         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
19596         accurately.
19597         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
19598         GETDENTS_64BIT_ALIGNED.
19599
19600 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
19601
19602         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
19603
19604 2010-12-10  Andreas Schwab  <schwab@redhat.com>
19605
19606         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
19607         _GNU_SOURCE.
19608
19609         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
19610         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
19611         Remove __restrict.
19612         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
19613         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
19614
19615 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
19616
19617         [BZ #11655]
19618         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
19619         are initialized.
19620
19621 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
19622
19623         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
19624
19625 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
19626
19627         * po/it.po: Update from translation team.
19628
19629 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
19630
19631         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
19632         unused codes.
19633
19634 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
19635
19636         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
19637
19638 2010-11-24  Andreas Schwab  <schwab@redhat.com>
19639
19640         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
19641         specially.
19642         (gaih_getanswer_slice): Likewise.
19643
19644 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
19645
19646         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
19647
19648 2010-05-31  Petr Baudis  <pasky@suse.cz>
19649
19650         [BZ #11149]
19651         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
19652         silently even in the chroot mode.
19653
19654 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
19655
19656         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
19657         last patch a bit.  Pretty printing
19658
19659 2010-05-31  Petr Baudis <pasky@suse.cz>
19660
19661         [BZ #10085]
19662         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
19663         initialization of skip_initgroups_dyn.
19664
19665 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
19666
19667         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
19668         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
19669
19670 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
19671
19672         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
19673
19674 2010-11-11  Andreas Schwab  <schwab@redhat.com>
19675
19676         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
19677         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
19678         (tst-fnmatch-ENV): Set MALLOC_TRACE.
19679         ($(objpfx)tst-fnmatch-mem): New rule.
19680         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
19681         * posix/tst-fnmatch.c (main): Call mtrace.
19682
19683 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
19684
19685         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19686         Support Intel processor model 6 and model 0x2c.
19687
19688 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
19689
19690         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
19691           signed comparison.
19692
19693 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
19694
19695         [BZ #12205]
19696         * string/test-strncasecmp.c (check_result): New function.
19697         (do_one_test): Use it.
19698         (check1): New function.
19699         (test_main): Use it.
19700         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
19701         Support strcasecmp and strncasecmp.
19702
19703 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
19704
19705         [BZ #12194]
19706         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
19707         * sysdeps/x86_64/bits/byteswap.h: Likewise.
19708
19709 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
19710
19711         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
19712         IFUNC support.
19713         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
19714         memset-x86-64.
19715         * sysdeps/x86_64/multiarch/bzero.S: New file.
19716         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
19717         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
19718         * sysdeps/x86_64/multiarch/memset.S: New file.
19719         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
19720         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19721         Set bit_Prefer_SSE_for_memop for Intel processors.
19722         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
19723         Define.
19724         (index_Prefer_SSE_for_memop): Define.
19725         (HAS_PREFER_SSE_FOR_MEMOP): Define.
19726
19727 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
19728
19729         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
19730         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
19731
19732 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
19733
19734         [BZ #12191]
19735         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
19736         (__x86_64_raw_data_cache_size_half): Likewise.
19737         (__x86_64_raw_shared_cache_size): Likewise.
19738         (__x86_64_raw_shared_cache_size_half): Likewise.
19739
19740         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
19741         (__x86_64_raw_data_cache_size_half): Likewise.
19742         (__x86_64_raw_shared_cache_size): Likewise.
19743         (__x86_64_raw_shared_cache_size_half): Likewise.
19744         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
19745         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
19746         and __x86_64_raw_shared_cache_size_half.  Round
19747         __x86_64_data_cache_size_half, __x86_64_data_cache_size
19748         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
19749         to multiple of 256 bytes.
19750
19751 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
19752
19753         [BZ #12167]
19754         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
19755         of inacessible symlinks.  Verify result of symlink before returning it.
19756         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
19757         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
19758
19759 2010-10-28  Erich Ritz  <erichritz@gmail.com>
19760
19761         * math/math.h (isinf): Fix typo in comment.
19762
19763 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
19764
19765         * po/da.po: Update from translation team.
19766
19767 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
19768
19769         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
19770         is added to the list.
19771
19772 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19773             Ulrich Drepper  <drepper@gmail.com>
19774
19775         * elf/dl-object.c (_dl_new_object): Don't append the new object to
19776         the global list here.  Move code to...
19777         (_dl_add_to_namespace_list): ...here.  New function.
19778         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
19779         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
19780         * elf/dl-load.c (lose): Don't remove the element from the list.
19781         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
19782         (_dl_map_object): Likewise.
19783
19784 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
19785
19786         [BZ #12159]
19787         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
19788         into all bytes of SSE register.
19789         Patch by Richard Li <richardpku@gmail.com>.
19790
19791 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
19792
19793         [BZ #12140]
19794         * malloc/malloc.c (_int_free): Fill correct number of bytes when
19795         perturbing.
19796
19797 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
19798
19799         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
19800         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
19801         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
19802         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
19803         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
19804         submachine.
19805         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
19806
19807 2010-10-22  Andreas Schwab  <schwab@redhat.com>
19808
19809         * include/dlfcn.h (__RTLD_SECURE): Define.
19810         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
19811         mode & __RTLD_SECURE instead.
19812         (open_path): Rename preloaded parameter to secure.
19813         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
19814         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
19815         * elf/dl-deps.c (openaux): Likewise.
19816         * elf/rtld.c (struct map_args): Remove is_preloaded.
19817         (map_doit): Don't use it.
19818         (dl_main): Likewise.
19819         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
19820         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
19821
19822 2010-09-09  Andreas Schwab  <schwab@redhat.com>
19823
19824         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
19825         (sysd-rules-targets): Remove duplicates.
19826         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
19827         rtld-%.$o dependency.
19828
19829 2010-10-18  Andreas Schwab  <schwab@redhat.com>
19830
19831         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
19832         _dl_map_object do it.
19833
19834 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
19835
19836         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
19837         fast fma builtins, define the macros in the C99 standard.
19838         (FP_FAST_FMAF): Likewise.
19839         (FP_FAST_FMAL): Likewise.
19840         * sysdeps/x86_64/bits/mathdef.h: Likewise.
19841
19842         * bits/mathdef.h: Update copyright year.
19843         * sysdeps/powerpc/bits/mathdef.h: Likewise.
19844
19845 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
19846
19847         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
19848         builtins, define the macros in the C99 standard.
19849         (FP_FAST_FMAF): Likewise.
19850         (FP_FAST_FMAL): Likewise.
19851         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
19852         multiply/add.
19853         (FP_FAST_FMAF): Likewise.
19854
19855 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
19856
19857         [BZ #3268]
19858         * math/libm-test.inc (fma_test): Some new testcases.
19859         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
19860         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
19861         y and infinite z.  Do multiplication by C already in long double.
19862         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
19863         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
19864         y and infinite z.  Do bitwise or of inexact bit into u.d.
19865         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
19866         * sysdeps/i386/fpu/s_fmaf.S: Removed.
19867         * sysdeps/i386/fpu/s_fma.S: Removed.
19868         * sysdeps/i386/fpu/s_fmal.S: Removed.
19869
19870 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
19871
19872         [BZ #3268]
19873         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
19874         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
19875         computation is not scheduled after fetestexcept.  Fix value
19876         of minimum denormal long double.
19877
19878 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
19879
19880         [BZ #3268]
19881         * math/libm-test.inc (fma_test): Add some more tests.
19882         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
19883         correctly.
19884
19885 2010-10-15  Andreas Schwab  <schwab@redhat.com>
19886
19887         * scripts/data/localplt-s390-linux-gnu.data: New file.
19888         * scripts/data/localplt-s390x-linux-gnu.data: New file.
19889
19890 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
19891
19892         [BZ #3268]
19893         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
19894         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
19895         instead of dbl-64.
19896         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
19897         inlines.
19898         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
19899         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
19900         if one of x and y is very large and the other is subnormal.
19901         * sysdeps/s390/fpu/s_fmaf.c: New file.
19902         * sysdeps/s390/fpu/s_fma.c: New file.
19903         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
19904         * sysdeps/powerpc/fpu/s_fma.S: New file.
19905         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
19906         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
19907         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
19908
19909 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
19910
19911         [BZ #3268]
19912         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
19913         fma tests.
19914         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
19915         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
19916         * sysdeps/i386/i686/multiarch/s_fma.c: Include
19917         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
19918         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
19919         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
19920         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
19921
19922 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
19923
19924         [BZ #12078]
19925         * posix/regcomp.c (parse_branch): One more memory leak plugged.
19926         * posix/bug-regex31.input: Add test case.
19927
19928 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
19929
19930         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
19931         * posix/bug-regex31.input: New file.
19932
19933         [BZ #12078]
19934         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
19935         (parse_sub_exp): Fix last change, use postorder.
19936
19937         * posix/bug-regex31.c: New file.
19938         * posix/Makefile: Add rules to build and run bug-regex31.
19939
19940         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
19941
19942         [BZ #12078]
19943         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
19944
19945         [BZ #12108]
19946         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
19947         to have entries in sys_siglist.
19948
19949         [BZ #12093]
19950         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
19951         be NULL.
19952
19953 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
19954
19955         [BZ #3268]
19956         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
19957         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
19958         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
19959         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
19960         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
19961         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
19962         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
19963         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
19964         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
19965         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
19966         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
19967         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
19968         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
19969         * math/ftestexcept.c (fetestexcept): Likewise.
19970         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
19971         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
19972         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
19973         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
19974         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
19975         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
19976         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
19977
19978 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
19979
19980         [BZ #12107]
19981         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
19982         newline.
19983
19984 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
19985
19986         * string/bug-strstr1.c: New file.
19987         * string/Makefile: Add rules to build and run bug-strstr1.
19988
19989 2010-10-05  Eric Blake  <eblake@redhat.com>
19990
19991         [BZ #12092]
19992         * string/str-two-way.h (two_way_long_needle): Always clear memory
19993         when skipping input due to the shift table.
19994
19995 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
19996
19997         [BZ #12005]
19998         * malloc/mcheck.c: Handle large requests.
19999
20000         [BZ #12077]
20001         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
20002         for strncmp and strncasecmp.
20003         * string/stratcliff.c: Add tests for strcmp and strncmp.
20004         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
20005
20006 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
20007
20008         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
20009         __set_fpscr.
20010
20011 2010-09-30  Andreas Jaeger  <aj@suse.de>
20012
20013         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
20014         (CGROUP_SUPER_MAGIC): Define.
20015         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
20016         Handle btrfs and cgroup file systems.
20017         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
20018         Likewise.
20019
20020 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
20021
20022         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
20023         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
20024
20025 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20026
20027         [BZ #12067]
20028         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
20029         trying to locate the ELF header.
20030
20031 2010-09-27  Andreas Schwab  <schwab@redhat.com>
20032
20033         [BZ #11611]
20034         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
20035         Mask out sign-bit copies when constructing f_fsid.
20036
20037 2010-09-24  Petr Baudis <pasky@suse.cz>
20038
20039         * debug/stack_chk_fail_local.c: Add missing licence exception.
20040         * debug/warning-nop.c: Likewise.
20041
20042 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
20043
20044         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
20045         implementing getdents64 using getdents syscall, set d_type if
20046         __ASSUME_GETDENTS32_D_TYPE.
20047
20048 2010-09-16  Andreas Schwab  <schwab@redhat.com>
20049
20050         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
20051         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
20052
20053 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
20054
20055         [BZ #12037]
20056         * posix/unistd.h: Undo change of feature selection for ftruncate from
20057         2010-01-11.
20058
20059 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
20060
20061         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
20062         detection.
20063
20064 2010-09-20  Andreas Schwab  <schwab@redhat.com>
20065
20066         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
20067         fanotify_mark.
20068         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
20069
20070 2010-09-14  Andreas Schwab  <schwab@redhat.com>
20071
20072         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
20073         variables after CHECK_SP call.
20074         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
20075
20076 2010-09-13  Andreas Schwab  <schwab@redhat.com>
20077             Ulrich Drepper  <drepper@redhat.com>
20078
20079         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
20080         re-relocationg ld.so.
20081         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
20082         _dl_init_paths call.
20083         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
20084         here anymore.
20085
20086 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
20087
20088         * resolv/res_init.c (__res_vinit): Count the default server we added.
20089
20090 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
20091             Ulrich Drepper  <drepper@redhat.com>
20092
20093         [BZ #11968]
20094         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
20095         (____longjmp_chk): Use %ebx for saving value across system call.
20096         Add unwind info.
20097
20098 2010-09-06  Andreas Schwab  <schwab@redhat.com>
20099
20100         * manual/Makefile: Don't mix pattern rules with normal rules.
20101
20102 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
20103
20104         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
20105         operation.
20106         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
20107         * libio/iofopncook.c (_IO_cookie_init): Likewise.
20108         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
20109         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
20110         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
20111         Likewise.
20112
20113 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
20114
20115         [BZ #11979]
20116         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
20117         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
20118
20119 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
20120
20121         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
20122         * sysdeps/x86_64/addmul_1.S: Likewise.
20123         * sysdeps/x86_64/lshift.S: Likewise.
20124         * sysdeps/x86_64/mul_1.S: Likewise.
20125         * sysdeps/x86_64/rshift.S: Likewise.
20126         * sysdeps/x86_64/sub_n.S: Likewise.
20127         * sysdeps/x86_64/submul_1.S: Likewise.
20128
20129 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20130
20131         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
20132         Define __sched_param instead of SCHED_* and sched_param when
20133         <bits/sched.h> is included with __need_schedparam defined.
20134         * bits/sched.h [__need_schedparam]
20135         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
20136         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
20137         (__defined_schedparam): Define to 1.
20138         (__sched_param): New structure, identical to sched_param.
20139         (__need_schedparam): Undefine.
20140
20141 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
20142
20143         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
20144         (epoll_create1): Declare.
20145
20146         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
20147
20148 2010-08-31  Andreas Schwab  <schwab@redhat.com>
20149
20150         [BZ #7066]
20151         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
20152         shifting retval into place.
20153
20154 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
20155
20156         * nis/rpcsvc/nis.h: Update copyright notice.
20157         * nis/rpcsvc/nis.x: Likewise.
20158         * nis/rpcsvc/nis_callback.h: Likewise.
20159         * nis/rpcsvc/nis_callback.x: Likewise.
20160         * nis/rpcsvc/nis_object.x: Likewise.
20161         * nis/rpcsvc/nis_tags.h: Likewise.
20162         * nis/rpcsvc/yp.h: Likewise.
20163         * nis/rpcsvc/yp.x: Likewise.
20164         * nis/rpcsvc/ypupd.h: Likewise.
20165         * nis/yp_xdr.c: Likewise.
20166         * nis/ypupdate_xdr.c: Likewise.
20167
20168         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
20169         mainly the body of pmap_getport.  Add parameters to specify timeouts.
20170         (pmap_getport): Use __libc_rpc_getport.
20171         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
20172         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
20173         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
20174
20175 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
20176
20177         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
20178         fanotify_mark.
20179
20180 2010-08-27  Roland McGrath  <roland@redhat.com>
20181
20182         * sysdeps/i386/i686/multiarch/Makefile
20183         (CFLAGS-varshift.c): New variable.
20184
20185 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
20186
20187         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
20188         * sysdeps/i386/i686/multiarch/varshift.c: New file.
20189
20190         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
20191
20192         * sysdeps/x86_64/strlen.S: Minimal code improvement.
20193
20194 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
20195
20196         * sysdeps/x86_64/strlen.S: Unroll the loop.
20197         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
20198         strlen-sse2 strlen-sse2-bsf.
20199         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
20200         __strlen_no_bsf if bit_Slow_BSF is set.
20201         (__strlen_sse42): Removed.
20202         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
20203         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
20204
20205 2010-08-25  Roland McGrath  <roland@redhat.com>
20206
20207         * sysdeps/x86_64/multiarch/varshift.S: File removed.
20208         * sysdeps/x86_64/multiarch/varshift.c: New file.
20209         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
20210         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
20211         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
20212         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
20213
20214 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
20215
20216         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
20217         strlen-sse2 strlen-sse2-bsf.
20218         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
20219         __strlen_sse2_bsf if bit_Slow_BSF is unset.
20220         (__strlen_sse2): Removed.
20221         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
20222         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
20223         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
20224         bit_Slow_BSF for Atom.
20225         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
20226         (index_Slow_BSF): Define.
20227         (HAS_SLOW_BSF): Define.
20228
20229 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
20230
20231         [BZ #10851]
20232         * resolv/res_init.c (__res_vinit): When no server address at all
20233         is given default to loopback.
20234
20235 2010-08-24  Roland McGrath  <roland@redhat.com>
20236
20237         * configure.in: Remove config-name.h generation.
20238         * configure: Regenerated.
20239         * config-name.in: File removed.
20240         * scripts/config-uname.sh: New file.
20241         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
20242         ($(objdir)config-name.h): New target.
20243
20244         * sunrpc/rpc_parse.h: Avoid nested comment.
20245
20246 2010-08-24  Richard Henderson  <rth@redhat.com>
20247             Ulrich Drepper  <drepper@redhat.com>
20248             H.J. Lu  <hongjiu.lu@intel.com>
20249
20250         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
20251         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
20252         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
20253         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
20254         _mm_alignr_epi8 with _mm_loadu_si128.
20255         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
20256         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
20257         (__m128i_shift_right): Removed.
20258         * sysdeps/i386/i686/multiarch/varshift.h: New file.
20259         * sysdeps/i386/i686/multiarch/varshift.S: New file.
20260         * sysdeps/x86_64/multiarch/varshift.h: New file.
20261         * sysdeps/x86_64/multiarch/varshift.S: New file.
20262
20263 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
20264
20265         * configure.in: Move assembler checks to before sysdep dir checking.
20266
20267 2010-08-20  Petr Baudis  <pasky@suse.cz>
20268
20269         * LICENSES: Sync the sunrpc license.
20270
20271 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
20272
20273         * sunrpc/auth_des.c: Update copyright notice once again.
20274         * sunrpc/auth_none.c: Likewise.
20275         * sunrpc/auth_unix.c: Likewise.
20276         * sunrpc/authdes_prot.c: Likewise.
20277         * sunrpc/authuxprot.c: Likewise.
20278         * sunrpc/bindrsvprt.c: Likewise.
20279         * sunrpc/clnt_gen.c: Likewise.
20280         * sunrpc/clnt_perr.c: Likewise.
20281         * sunrpc/clnt_raw.c: Likewise.
20282         * sunrpc/clnt_simp.c: Likewise.
20283         * sunrpc/clnt_tcp.c: Likewise.
20284         * sunrpc/clnt_udp.c: Likewise.
20285         * sunrpc/clnt_unix.c: Likewise.
20286         * sunrpc/des_crypt.c: Likewise.
20287         * sunrpc/des_soft.c: Likewise.
20288         * sunrpc/get_myaddr.c: Likewise.
20289         * sunrpc/getrpcport.c: Likewise.
20290         * sunrpc/key_call.c: Likewise.
20291         * sunrpc/key_prot.c: Likewise.
20292         * sunrpc/openchild.c: Likewise.
20293         * sunrpc/pm_getmaps.c: Likewise.
20294         * sunrpc/pm_getport.c: Likewise.
20295         * sunrpc/pmap_clnt.c: Likewise.
20296         * sunrpc/pmap_prot.c: Likewise.
20297         * sunrpc/pmap_prot2.c: Likewise.
20298         * sunrpc/pmap_rmt.c: Likewise.
20299         * sunrpc/rpc/auth.h: Likewise.
20300         * sunrpc/rpc/auth_unix.h: Likewise.
20301         * sunrpc/rpc/clnt.h: Likewise.
20302         * sunrpc/rpc/des_crypt.h: Likewise.
20303         * sunrpc/rpc/key_prot.h: Likewise.
20304         * sunrpc/rpc/netdb.h: Likewise.
20305         * sunrpc/rpc/pmap_clnt.h: Likewise.
20306         * sunrpc/rpc/pmap_prot.h: Likewise.
20307         * sunrpc/rpc/pmap_rmt.h: Likewise.
20308         * sunrpc/rpc/rpc.h: Likewise.
20309         * sunrpc/rpc/rpc_des.h: Likewise.
20310         * sunrpc/rpc/rpc_msg.h: Likewise.
20311         * sunrpc/rpc/svc.h: Likewise.
20312         * sunrpc/rpc/svc_auth.h: Likewise.
20313         * sunrpc/rpc/types.h: Likewise.
20314         * sunrpc/rpc/xdr.h: Likewise.
20315         * sunrpc/rpc_clntout.c: Likewise.
20316         * sunrpc/rpc_cmsg.c: Likewise.
20317         * sunrpc/rpc_common.c: Likewise.
20318         * sunrpc/rpc_cout.c: Likewise.
20319         * sunrpc/rpc_dtable.c: Likewise.
20320         * sunrpc/rpc_hout.c: Likewise.
20321         * sunrpc/rpc_main.c: Likewise.
20322         * sunrpc/rpc_parse.c: Likewise.
20323         * sunrpc/rpc_parse.h: Likewise.
20324         * sunrpc/rpc_prot.c: Likewise.
20325         * sunrpc/rpc_sample.c: Likewise.
20326         * sunrpc/rpc_scan.c: Likewise.
20327         * sunrpc/rpc_scan.h: Likewise.
20328         * sunrpc/rpc_svcout.c: Likewise.
20329         * sunrpc/rpc_tblout.c: Likewise.
20330         * sunrpc/rpc_util.c: Likewise.
20331         * sunrpc/rpc_util.h: Likewise.
20332         * sunrpc/rpcinfo.c: Likewise.
20333         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
20334         * sunrpc/rpcsvc/key_prot.x: Likewise.
20335         * sunrpc/rpcsvc/klm_prot.x: Likewise.
20336         * sunrpc/rpcsvc/mount.x: Likewise.
20337         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
20338         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
20339         * sunrpc/rpcsvc/rex.x: Likewise.
20340         * sunrpc/rpcsvc/rstat.x: Likewise.
20341         * sunrpc/rpcsvc/rusers.x: Likewise.
20342         * sunrpc/rpcsvc/sm_inter.x: Likewise.
20343         * sunrpc/rpcsvc/spray.x: Likewise.
20344         * sunrpc/rpcsvc/yppasswd.x: Likewise.
20345         * sunrpc/rtime.c: Likewise.
20346         * sunrpc/svc.c: Likewise.
20347         * sunrpc/svc_auth.c: Likewise.
20348         * sunrpc/svc_authux.c: Likewise.
20349         * sunrpc/svc_raw.c: Likewise.
20350         * sunrpc/svc_run.c: Likewise.
20351         * sunrpc/svc_simple.c: Likewise.
20352         * sunrpc/svc_tcp.c: Likewise.
20353         * sunrpc/svc_udp.c: Likewise.
20354         * sunrpc/svc_unix.c: Likewise.
20355         * sunrpc/svcauth_des.c: Likewise.
20356         * sunrpc/xcrypt.c: Likewise.
20357         * sunrpc/xdr.c: Likewise.
20358         * sunrpc/xdr_array.c: Likewise.
20359         * sunrpc/xdr_float.c: Likewise.
20360         * sunrpc/xdr_mem.c: Likewise.
20361         * sunrpc/xdr_rec.c: Likewise.
20362         * sunrpc/xdr_ref.c: Likewise.
20363         * sunrpc/xdr_sizeof.c: Likewise.
20364         * sunrpc/xdr_stdio.c: Likewise.
20365
20366         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
20367         handling.
20368
20369 2010-08-19  Andreas Schwab  <schwab@redhat.com>
20370
20371         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
20372
20373 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
20374
20375         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
20376         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
20377         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
20378         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
20379         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
20380         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
20381         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
20382         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
20383         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
20384         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
20385         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
20386         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
20387         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
20388         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
20389
20390 2010-07-26  Anton Blanchard  <anton@samba.org>
20391
20392         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
20393         * malloc/arena.c (heap_trim): Likewise.
20394
20395 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
20396
20397         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
20398         here.  Not...
20399         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
20400         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
20401
20402 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
20403
20404         * sysdeps/i386/elf/Makefile: New file.
20405
20406 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
20407
20408         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
20409         from fanotify_init.
20410         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
20411         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
20412
20413 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
20414
20415         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
20416         of strncasecmp_l.
20417         * sysdeps/multiarch/strcmp.S: Likewise.
20418
20419 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
20420
20421         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
20422         strncase_l-nonascii.
20423         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
20424         Add strncase_l-ssse3.
20425         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
20426         * sysdeps/x86_64/strcmp.S: Likewise.
20427         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
20428         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
20429         * sysdeps/x86_64/strncase.S: New file.
20430         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
20431         * sysdeps/x86_64/strncase_l.S: New file.
20432         * string/Makefile (strop-tests): Add strncasecmp.
20433         * string/test-strncasecmp.c: New file.
20434
20435         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
20436         warning.
20437
20438         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
20439         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
20440
20441 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
20442
20443         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
20444
20445 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
20446
20447         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
20448         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
20449         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
20450
20451 2010-05-01  Alan Modra  <amodra@gmail.com>
20452
20453         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
20454         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
20455         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
20456         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
20457         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
20458         tidying.  Don't tail-call __sigjmp_save for static lib.
20459         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
20460         save location.
20461         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
20462         (CALL_MCOUNT): Add eh info, and nop after bl.
20463         (TAIL_CALL_SYSCALL_ERROR): New macro.
20464         (PSEUDO_RET): Use it.
20465         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
20466         Correct save location of integer regs and cr.
20467         (_dl_profile_resolve): Correct cr save location.  Delete nops
20468         after bl when SHARED.  Reduce cfi size a little by better
20469         placement of cfi directives.
20470         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
20471         make a stack frame.  Instead use parm save area as a temp.
20472         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
20473         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
20474         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
20475         Don't make a stack frame for parent, use parm save area.
20476         Increase child stack frame to 112 bytes.  Don't save unused reg,
20477         and adjust reg usage.  Set up cfi on error recovery and
20478         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
20479         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
20480         (__makecontext): Add dummy nop after jump to exit.
20481         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
20482         Use correct parm save area and cr save, reduce stack frame.
20483         Correct cfi for possible PSEUDO_RET frame setup.
20484         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
20485         Branch to local label emitted by PSEUDO_RET rather than
20486         __syscall_error.
20487
20488 2010-08-12  Andreas Schwab  <schwab@redhat.com>
20489
20490         [BZ #11904]
20491         * locale/programs/locale.c (print_assignment): New function.
20492         (show_locale_vars): Use it.
20493
20494 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
20495
20496         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
20497         field.
20498         (struct statfs64): Likewise.
20499         (_STATFS_F_FLAGS): Define.
20500         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
20501         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
20502         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
20503         (ST_VALID): Define locally.
20504         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
20505         __statvfs_getflags, use the provided value.
20506         * sysdeps/unix/sysv/linux/kernel-features.h: Define
20507         __ASSUME_STATFS_F_FLAGS.
20508
20509         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
20510
20511         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
20512         Add sys/fanotify.h.
20513         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
20514         fanotify_mask for GLIBC_2.13.
20515         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
20516         fanotify_init and fanotify_mark.
20517         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
20518         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
20519
20520         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
20521         Add prlimit.
20522         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
20523         prlimit64 for GLIBC_2.13.
20524         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
20525         prlimit64.
20526         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
20527         syscall.
20528         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
20529         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
20530         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
20531         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
20532         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
20533         add prlimit alias.
20534         * sysdeps/unix/sysv/linux/prlimit.c: New file.
20535
20536         [BZ #11903]
20537         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
20538         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
20539
20540         * nss/Makefile: Add rules to build and run tst-nss-test1.
20541         * shlib-versions: Add entry for libnss_test1.
20542         * nss/nss_test1.c: New file.
20543         * nss/tst-nss-test1.c: New file.
20544
20545         * nss/nsswitch.c (__nss_database_custom): Define new variable.
20546         (__nss_configure_lookup): Set appropriate entry in
20547         __nss_configure_lookup to true.
20548         * nss/nsswitch.h: Define enum with indeces of databases in
20549         databases and __nss_database_custom arrays.  Declare
20550         __nss_database_custom.
20551         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
20552         to avoid using nscd when custom rules are installed.
20553         * nss/getXXbyYY_r.c: Likewise.
20554         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
20555
20556         * nss/nss_files/files-parse.c: Whitespace fixes.
20557
20558 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
20559
20560         [BZ #11883]
20561         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
20562         * posix/fnmatch_loop.c: Likewise.
20563
20564 2010-07-17  Andi Kleen  <ak@linux.intel.com>
20565
20566         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
20567         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
20568         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
20569         * Versions.def [GLIBC_2.13]: Add.
20570
20571 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
20572
20573         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
20574         Also fail if tpwd after pwuid call is NULL.
20575
20576 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20577
20578         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
20579         when converting to ms.
20580
20581 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20582
20583         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
20584         EOPNOTSUPP errors with ENOTTY.
20585         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
20586         EOPNOTSUPP errors with ENOTTY.
20587
20588 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
20589
20590         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
20591         Add strcasecmp_l-ssse3.
20592         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
20593         strcasecmp.
20594         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
20595         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
20596         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
20597
20598 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
20599
20600         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
20601
20602         * string/Makefile (strop-tests): Add strcasecmp.
20603         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
20604         strcasecmp_l-nonascii.
20605         (gen-as-const-headers): Add locale-defines.sym.
20606         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
20607         * sysdeps/x86_64/strcasecmp.S: New file.
20608         * sysdeps/x86_64/strcasecmp_l.S: New file.
20609         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
20610         * sysdeps/x86_64/locale-defines.sym: New file.
20611         * string/test-strcasecmp.c: New file.
20612
20613         * string/test-strcasestr.c: Test both ends of the range of characters.
20614         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
20615
20616 2010-07-29  Roland McGrath  <roland@redhat.com>
20617
20618         [BZ #11856]
20619         * manual/locale.texi (Yes-or-No Questions): Fix example code.
20620
20621 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
20622
20623         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
20624         for ld.so.
20625
20626 2010-07-27  Andreas Schwab  <schwab@redhat.com>
20627
20628         * manual/memory.texi (Malloc Tunable Parameters): Document
20629         M_PERTURB.
20630
20631 2010-07-26  Roland McGrath  <roland@redhat.com>
20632
20633         [BZ #11840]
20634         * configure.in (-fgnu89-inline check): Set and substitute
20635         gnu89_inline, not libc_cv_gnu89_inline.
20636         * configure: Regenerated.
20637         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
20638
20639 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
20640
20641         * string/test-strnlen.c: New file.
20642         * string/Makefile (strop-tests): Add strnlen.
20643         * string/tester.c (test_strnlen): Add a few more test cases.
20644         * string/tst-strlen.c: Better error reporting.
20645
20646         * sysdeps/x86_64/strnlen.S: New file.
20647
20648 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
20649
20650         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
20651         lower-latency instructions.
20652
20653 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
20654
20655         * string/test-strcasestr.c: New file.
20656         * string/test-strstr.c: New file.
20657         * string/Makefile (strop-tests): Add strstr and strcasestr.
20658         * string/str-two-way.h: Don't undefine MAX.
20659         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
20660
20661 2010-07-21  Andreas Schwab  <schwab@redhat.com>
20662
20663         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
20664         strcasestr-nonascii.
20665         (CFLAGS-strcasestr-nonascii.c): Define.
20666         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
20667         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
20668         Remove unused attribute.
20669
20670 2010-07-20  Roland McGrath  <roland@redhat.com>
20671
20672         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
20673         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
20674         ld.so.cache was broken.  With it, there is no way to disable dsocaps
20675         like LD_HWCAP_MASK can disable hwcaps.
20676
20677 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
20678
20679         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
20680
20681 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
20682
20683         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
20684         call in strcasestr.
20685         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
20686         __strcasestr_sse42_nonascii.
20687         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
20688         strcasestr-nonascii.c.
20689         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
20690
20691 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
20692
20693         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
20694         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
20695         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
20696         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
20697
20698 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
20699
20700         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
20701         fcntl.
20702
20703 2010-07-06  Andreas Schwab  <schwab@redhat.com>
20704
20705         [BZ #11577]
20706         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
20707         dl_signal_cerror.
20708
20709 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
20710
20711         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
20712         _PC_PIPE_BUF using F_GETPIPE_SZ.
20713
20714 2010-07-05  Roland McGrath  <roland@redhat.com>
20715
20716         * manual/arith.texi (Rounding Functions): Fix rint description
20717         implicit in round description.
20718
20719 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
20720
20721         * elf/Makefile: Fix linking for a few tests to make recent linker
20722         happy.
20723
20724 2010-06-30  Andreas Schwab  <schwab@redhat.com>
20725
20726         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
20727         $(common-objpfx)libc_nonshared.a.
20728
20729 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
20730
20731         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
20732         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
20733         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
20734         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
20735         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
20736         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
20737         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
20738         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
20739         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
20740         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
20741         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
20742         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
20743         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
20744         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
20745         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
20746         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
20747         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
20748         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
20749         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
20750         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
20751         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
20752         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
20753         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
20754         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
20755         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
20756         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
20757         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
20758         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
20759         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
20760         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
20761         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
20762         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
20763         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
20764         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
20765         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
20766         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
20767         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
20768         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
20769         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
20770         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
20771         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
20772         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
20773         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
20774         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
20775         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
20776         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
20777         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
20778         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
20779
20780 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
20781
20782         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
20783         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
20784         * string/memmove.c (memmove): Renamed to ...
20785         (MEMMOVE): ...this.  Default to memmove.
20786         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
20787         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
20788         (END_CHK): Define.
20789         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
20790         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
20791         mempcpy-ssse3-back memmove-ssse3-back.
20792         * sysdeps/x86_64/multiarch/bcopy.S: New file .
20793         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
20794         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
20795         * sysdeps/x86_64/multiarch/memcpy.S: New file.
20796         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
20797         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
20798         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
20799         * sysdeps/x86_64/multiarch/memmove.c: New file.
20800         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
20801         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
20802         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
20803         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
20804         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
20805         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
20806         Define.
20807         (index_Fast_Copy_Backward): Define.
20808         (HAS_ARCH_FEATURE): Define.
20809         (HAS_FAST_REP_STRING): Define.
20810         (HAS_FAST_COPY_BACKWARD): Define.
20811
20812 2010-06-21  Andreas Schwab  <schwab@redhat.com>
20813
20814         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
20815         Restore proper fallback handling.
20816
20817 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
20818
20819         [BZ #11701]
20820         * posix/group_member.c (__group_member): Correct checking loop.
20821
20822         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
20823         OOM in getpwuid_r correctly.  Return error number when the caller
20824         should return, otherwise -1.
20825         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
20826         call returning > 0 value.
20827         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
20828
20829 2010-06-07  Andreas Schwab  <schwab@redhat.com>
20830
20831         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
20832         libc_nonshared.a from targets in modules-names.
20833
20834 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
20835
20836         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
20837         requires it.
20838
20839 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
20840
20841         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
20842         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
20843         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
20844         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
20845
20846 2010-06-02  Andreas Schwab  <schwab@redhat.com>
20847
20848         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
20849
20850 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
20851
20852         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
20853         and F_GETPIPE_SZ.
20854         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
20855         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
20856         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
20857         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
20858         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
20859         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
20860
20861 2010-06-14  Roland McGrath  <roland@redhat.com>
20862
20863         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
20864
20865 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
20866
20867         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
20868         __REDIRECT followed by __THROW.
20869         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
20870         * posix/getopt.h (getopt): Likewise.
20871
20872 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
20873
20874         * hurd/lookup-at.c (__file_name_lookup_at): Accept
20875         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
20876         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
20877         in AT_FLAGS.
20878         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
20879         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
20880
20881 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
20882
20883         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
20884
20885 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
20886
20887         [BZ #11640]
20888         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20889         Properly check family and model.
20890
20891 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
20892
20893         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
20894
20895 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
20896
20897         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
20898
20899 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
20900
20901         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
20902         symbol reference.
20903
20904 2010-05-19  Andreas Schwab  <schwab@redhat.com>
20905
20906         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
20907         symbol reference.
20908
20909 2010-05-21  Andreas Schwab  <schwab@redhat.com>
20910
20911         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
20912         and internal_recvmmsg.
20913         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
20914         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
20915         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
20916         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
20917
20918         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
20919         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
20920         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
20921
20922 2010-05-20  Andreas Schwab  <schwab@redhat.com>
20923
20924         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
20925
20926 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
20927
20928         POWER7 optimizations.
20929         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
20930         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
20931
20932 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
20933
20934         * version.h: Update for 2.13 development version.
20935
20936 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
20937
20938         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
20939         exceptions.  Return 0.
20940
20941 2010-05-07  Roland McGrath  <roland@redhat.com>
20942
20943         * elf/ldconfig.c (main): Add a const.
20944
20945 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
20946
20947         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
20948         (args_options): Add no-idn option.
20949         (ahosts_keys_int): Add idn_flags to ai_flags.
20950         (parse_option): Handle 'i' option to clear idn_flags.
20951
20952         * malloc/malloc.c (_int_free): Possible race in the most recently
20953         added check.  Only act on the data if no current modification
20954         happened.
20955
20956 See ChangeLog.17 for earlier changes.