c13fe181f1ce543a544622bff15d230e53214f70
[platform/upstream/glibc.git] / ChangeLog
1 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
2
3         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
4         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
5         && !UNIX98].  Enables tests for XOPEN2K8.
6         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
7         POSIX2008]: Likewise.
8
9         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
10         (struct rusage): Do not expect type or its members.
11
12         [BZ #3439]
13         * math/math.h (FP_NAN): Define macro to integer constant usable in
14         #if and use that to give value to enum constant.
15         (FP_INFINITE): Likewise.
16         (FP_ZERO): Likewise.
17         (FP_SUBNORMAL): Likewise.
18         (FP_NORMAL): Likewise.
19
20 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
21
22         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
23         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
24         arguments.
25
26 2012-11-02  Roland McGrath  <roland@hack.frob.com>
27
28         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
29         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
30         autoconf-time if not.
31         * configure.in: Remove AC_PREREQ.
32
33 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
34
35         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
36         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
37         of the internal implementation.
38
39 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
40
41         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
42         except include of <misc/sys/syslog.h>.
43
44 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
45
46         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
47         function returns with a NULL context exit with zero.
48
49 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
50
51         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
52
53 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
54
55         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
56         (run_program_cmd): This.
57         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
58         (tst_langinfo): New variable.  Use it.
59
60 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
61
62         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
63         floating point opcodes.
64
65 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
66
67         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
68         variable.
69
70         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
71
72         * sysdeps/mach/hurd/powerpc: Remove directory.
73         * sysdeps/mach/powerpc: Likewise.
74
75 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
76
77         * scripts/check-local-headers.sh: Ignore c++ headers.
78
79 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
80
81         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
82         __libc_cleanup_region_start argument.
83
84 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
85
86         [BZ #14784]
87         [BZ #14785]
88         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
89         x * y using scaling, not as x * y + z.
90         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
91         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
92         * math/libm-test.inc (fma_test): Add more tests.
93         (fma_test_towardzero): Likewise.
94         (fma_test_downward): Likewise.
95         (fma_test_upward): Likewise.
96
97 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
98
99         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
100
101 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
102
103         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
104         New variable.
105
106 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
107
108         * rt/tst-shm.c (worker): Correct checking for mmap failure.
109
110 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
111
112         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
113         Fix sort order.
114         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
115         Likewise.
116
117 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
118
119         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
120         Fix the order of the list for glibc 2.17.
121         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
122         Likewise.
123
124 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
125
126         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
127
128 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
129
130         [BZ #14610]
131         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
132         for low part of x being zero before using __atanl (y).
133         * math/libm-test.inc (atan2_test): Add another test.
134
135         * manual/install.texi (Configuring and compiling): Document
136         general use of test-wrapper and test-wrapper-env.
137         * INSTALL: Regenerated.
138
139         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
140         (__fma): Do not extract and scale down low bits on after-rounding
141         systems when result rounded to normal precision would have normal
142         exponent.
143         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
144         (__fmal): Do not extract and scale down low bits on after-rounding
145         systems when result rounded to normal precision would have normal
146         exponent.
147         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
148         (__fmal): Do not extract and scale down low bits on after-rounding
149         systems when result rounded to normal precision would have normal
150         exponent.
151         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
152         macro.
153         (fma_test): Add more tests.
154         (fma_test_towardzero): Likewise.
155         (fma_test_downward): Likewise.
156         (fma_test_upward): Likewise.
157
158 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
159
160         * sysdeps/i386/tininess.h: Renamed to ...
161         * sysdeps/x86/tininess.h: This.
162         * sysdeps/x86_64/tininess.h: Removed.
163
164 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
165
166         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
167         input.  Use $(build-program-cmd).
168         ($(objpfx)tst-array1-static.out): Likewise.
169         ($(objpfx)tst-array2.out): Likewise.
170         ($(objpfx)tst-array3.out): Likewise.
171         ($(objpfx)tst-array4.out): Likewise.
172         ($(objpfx)tst-array5.out): Likewise.
173         ($(objpfx)tst-array5-static.out): Likewise.
174
175 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
176
177         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
178         if defined.
179
180         * nss/nsswitch.h (nss_interface_function): Provide new
181         macro for use with NSS functions.
182         * grp/initgroups.c: Use new macro.
183         * nss/getXXbyYY.c: Likewise.
184         * nss/getXXbyYY_r.c: Likewise.
185         * nss/getXXent.c: Likewise.
186         * nss/getXXent_r.c: Likewise.
187         * sysdeps/posix/getaddrinfo.c: Likewise.
188
189 2012-10-30  Andreas Jaeger  <aj@suse.de>
190
191         * po/ru.po: Update Russion translation from translation project.
192
193 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
194
195         [BZ #14152]
196         [BZ #14783]
197         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
198         result and shift together with sticky bit instead of replicating
199         round-to-nearest rounding.
200         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
201         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
202         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
203         missing underflow exceptions.
204         (fma_test_towardzero): Add more tests.
205         (fma_test_downward): Likewise.
206         (fma_test_upward): Likewise.
207
208         [BZ #14047]
209         * sysdeps/generic/tininess.h: New file.
210         * sysdeps/i386/tininess.h: Likewise.
211         * sysdeps/sh/tininess.h: Likewise.
212         * sysdeps/x86_64/tininess.h: Likewise.
213         * stdlib/tst-strtod-underflow.c: Likewise.
214         * stdlib/tst-tininess.c: Likewise.
215         * stdlib/strtod_l.c: Include <tininess.h>.
216         (round_and_return): Do not set errno for exact underflow cases.
217         Force an underflow exception when setting errno for underflow.
218         Determine underflow based on rounding to normal precision if
219         TININESS_AFTER_ROUNDING.
220         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
221         ERANGE for exact underflow cases.
222         * stdlib/Makefile (tests): Add tst-tininess and
223         tst-strtod-underflow.
224         ($(objpfx)tst-tininess): Use $(link-libm).
225         ($(objpfx)tst-strtod-underflow): Likewise.
226
227 2012-10-30  Andreas Jaeger  <aj@suse.de>
228
229         [BZ#14767]
230         * elf/Makefile (tests): Remove conditional for have-initfini-array
231         since this is now always required and the variable does not exist
232         anymore.
233         (tests-static): Likewise.
234         (modules-names): Likewise.
235
236         * po/eo.po: Add Esperanto translation from translation project.
237
238         * elf/tst-array1.c (fini_array): Make writeable so that it can be
239         merged with constructor/destructor.
240         (init_array): Likewise.
241         * elf/tst-array2dep.c (fini_array): Likewise.
242         (init_array): Likewise.
243
244 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
245
246         * manual/message.texi: Delete @cartouche tags.
247
248 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
249
250         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
251         EOPNOTSUPP.
252         * sysdeps/mach/hurd/fsync.c: Likewise.
253
254         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
255         [_POSIX_REALTIME_SIGNALS]: Change condition to
256         [_POSIX_REALTIME_SIGNALS > 0].
257
258 2012-10-27  Andreas Jaeger  <aj@suse.de>
259
260         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
261         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
262         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
263         [__WORDSIZE != 64]: Likewise.
264
265 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
266
267         *  iconvdata/tst-table.sh: Remove ${SHELL}.
268         *  iconvdata/tst-tables.sh: Likewise.
269
270 2012-10-25  David S. Miller  <davem@davemloft.net>
271
272         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
273         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
274         of strtoull.
275
276         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
277         ifunc-impl-list.c
278         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
279         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
280         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
281         file.
282
283 2012-10-25  Roland McGrath  <roland@hack.frob.com>
284
285         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
286         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
287         __getdirentries.
288
289 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
290             Jim Blandy  <jimb@codesourcery.com>
291
292         * scripts/cross-test-ssh.sh: New file.
293         * manual/install.texi (Configuring and compiling): Document use of
294         cross-test-ssh.sh.
295         * INSTALL: Regenerated.
296
297 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
298
299         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
300         EOPNOTSUPP.
301
302 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
303
304         * Makeconfig (run-program-prefix): Fix comment.
305
306 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
307             Jim Blandy  <jimb@codesourcery.com>
308
309         * Makeconfig (test-wrapper): New variable,
310         (test-wrapper-env): Likewise.
311         [$(cross-compiling) = yes && $(test-wrapper) != ""]
312         (run-built-tests): Define to yes.
313         (run-program-prefix): Use $(test-wrapper).
314         (built-program-cmd): Likewise.
315         * Rules (make-test-out): Use $(test-wrapper-env) and
316         $(host-built-program-cmd).
317         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
318         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
319         tst-pathopt.sh.
320         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
321         $(test-wrapper-env) to tst-rtld-load-self.sh.
322         ($(objpfx)order2.out): Use $(test-wrapper).
323         ($(objpfx)tst-initorder.out): Likewise.
324         ($(objpfx)tst-initorder2.out): Likewise.
325         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
326         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
327         (test_wrapper_env): New variable.  Use it to run ld.so.
328         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
329         Use it to run ld.so.
330         (test_wrapper_env): Likewise.
331         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
332         $(test-wrapper) to run-iconv-test.sh.
333         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
334         (ICONV): Use $test_wrapper.
335         * posix/Makefile ($(objpfx)globtest.out): Pass
336         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
337         globtest.sh, not $(run-program-prefix).
338         * posix/globtest.sh (run_via_rtld_prefix): New variable.
339         (test_wrapper): Likewise.
340         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
341         set together with run_via_rtld_prefix.
342         (run_program_prefix): Define in terms of test_wrapper and
343         run_via_rtld_prefix.
344
345 2012-10-24  Roland McGrath  <roland@hack.frob.com>
346
347         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
348         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
349         Targets removed.
350
351         [BZ #14743]
352         * include/time.h: Remove librt_hidden_proto (clock_gettime).
353         Declare __clock_getres, __clock_gettime, __clock_settime,
354         __clock_nanosleep, and __clock_getcpuclockid.
355         * rt/clock_gettime.c: Define __clock_gettime as an alias.
356         Remove librt_hidden_def (clock_gettime).
357         * sysdeps/unix/clock_gettime.c: Likewise.
358         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
359         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
360         * rt/clock_getres.c: Define __clock_getres as an alias.
361         * sysdeps/posix/clock_getres.c: Likewise.
362         * rt/clock_settime.c: Define __clock_settime as an alias.
363         * sysdeps/unix/clock_settime.c: Likewise.
364         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
365         * sysdeps/unix/clock_nanosleep.c: Likewise.
366         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
367         * rt/clock-compat.c: New file.
368         * rt/Makefile (librt-routines): Add clock-compat and move
369         $(clock-routines) to ...
370         (routines): ... here, new variable.
371         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
372         Don't add get_clockfreq here.
373         * rt/Versions (libc: GLIBC_2.17): New version set.
374         Add clock_* symbols here.
375         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
376         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
377         (GLIBC_2.17): Add clock_* symbols.
378         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
379         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
380         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
381         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
382         Likewise.
383         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
384         Likewise.
385         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
386         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
387         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
388         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
389         * NEWS: Mention the move.
390
391         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
392         Use __open, __read, __close rather than their public counterparts.
393         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
394         (__get_clockfreq_via_cpuinfo): Likewise.
395         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
396         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
397
398         * config.h.in (HAVE_IFUNC): New #undef.
399         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
400         was successful.
401         * configure: Regenerated.
402
403 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
404
405         * configure.in: Move READELF check to start of file.
406         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
407         libc_cv_asm_gnu_indirect_function in the process.
408         * configure: Regenerated.
409
410 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
411
412         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
413         send the output to /dev/null.
414         (libc_cv_cc_with_libunwind): Likewise.
415         (libc_cv_as_noexecstack): Likewise.
416         * configure: Regenerate.
417
418 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
419
420         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
421
422         * posix/globtest.sh (TMPDIR): Do not set.
423         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
424         (testout): Likewise.
425
426 2012-10-24  Andreas Jaeger  <aj@suse.de>
427
428         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
429         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
430         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
431         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
432         posix_fadvise64, posix_fallocate64.
433
434         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
435         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
436         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
437         Likewise.
438         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
439         Likewise.
440         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
441
442         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
443         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
444         <bits/fcntl-linux.h>.
445         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
446
447         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
448         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
449         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
450         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
451         [__WORDSIZE != 64]: Likewise.
452
453 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
454
455         * Makeconfig (run-built-tests): New variable.
456         * Rules [$(cross-compiling) = yes]: Change condition to
457         [$(run-built-tests) = no].
458         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
459         to [$(run-built-tests) = yes].
460         * elf/Makefile [$(cross-compiling) = no]: Likewise
461         * grp/Makefile [$(cross-compiling) = no]: Likewise.
462         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
463         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
464         * intl/Makefile [$(cross-compiling) = no]: Likewise.
465         * io/Makefile [$(cross-compiling) = no]: Likewise.
466         * libio/Makefile [$(cross-compiling) = no]: Likewise.
467         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
468         * misc/Makefile [$(cross-compiling) = no]: Likewise.
469         * posix/Makefile [$(cross-compiling) = no]: Likewise.
470         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
471         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
472         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
473         * string/Makefile [$(cross-compiling) = no]: Likewise.
474
475         * posix/Makefile ($(objpfx)globtest.out): Pass
476         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
477         $(rtld-installed-name).
478         * posix/globtest.sh (elf_objpfx): Remove variable.
479         (rtld_installed_name): Likewise.
480         (library_path): Likewise.
481         (run_program_prefix): New variable.  Use for running globtest
482         binary.
483
484 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
485             Joseph Myers  <joseph@codesourcery.com>
486
487         * Makeconfig (host-built-program-cmd): New variable.
488         * elf/Makefile (tst-stackguard1-ARGS): Use
489         $(host-built-program-cmd).
490         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
491         (tst-spawn-ARGS): Likewise.
492         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
493
494 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
495             Jim Blandy  <jimb@codesourcery.com>
496
497         * Makeconfig (run-via-rtld-prefix): New variable.
498         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
499         (built-program-cmd): Likewise.
500
501 2012-10-22  Andreas Jaeger  <aj@suse.de>
502
503         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
504         __O_RSYNC if it exists, otherwise to O_SYNC.
505
506 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
507             Joseph Myers  <joseph@codesourcery.com>
508
509         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
510         /dev/null.
511         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
512         from /dev/null
513         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
514         /dev/null.
515
516 2012-10-22  Andreas Jaeger  <aj@suse.de>
517
518         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
519         Define always.
520         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
521
522         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
523         bits/fcntl-linux.h.
524
525         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
526         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
527
528         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
529         to __O_LARGEFILE.
530         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
531         to __O_LARGEFILE.
532
533 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
534             Joseph Myers  <joseph@codesourcery.com>
535
536         * config.make.in (NM): New variable.
537
538 2012-10-21  Andreas Jaeger  <aj@suse.de>
539
540         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
541         definitions and declarations that are provided by
542         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
543
544 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
545
546         [BZ #14683]
547         * elf/Makefile (tests-static): Add tst-leaks1-static.
548         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
549         ($(objpfx)tst-leaks1-static): New rule.
550         ($(objpfx)tst-leaks1-static-mem): Likewise.
551         (tst-leaks1-static-ENV): New macro.
552         * elf/dl-open.c (dl_open_worker): Check the main application
553         only if SHARED is defined.
554         * elf/tst-leaks1-static.c: New file.
555
556 2012-10-20  Andreas Jaeger  <aj@suse.de>
557
558         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
559         generic values for Linux.
560         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
561         and declarations that are provided by <bits/fcntl-linux.h> and
562         include <bits/fcntl-linux.h>.
563         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
564         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
565
566 2012-10-20  Roland McGrath  <roland@hack.frob.com>
567
568         * io/fcntl.h: Move include of <bits/types.h> to the top and
569         include it unconditionally.
570
571 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
572
573         * wcsmbs/Makefile (tests-ifunc): New variable.
574         (tests): Add $(tests-ifunc).
575         * wcsmbs/test-wcschr-ifunc.c: New file.
576         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
577         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
578         * wcsmbs/test-wcslen-ifunc.c: Likewise.
579         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
580         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
581
582         * string/Makefile (tests-ifunc): New variable.
583         (tests): Add $(tests-ifunc).
584         * string/test-memccpy.c (TEST_NAME): New macro.
585         * string/test-memchr.c (TEST_NAME): Likewise.
586         * string/test-memcmp.c (TEST_NAME): Likewise.
587         * string/test-memcpy.c (TEST_NAME): Likewise.
588         * string/test-memmem.c (TEST_NAME): Likewise.
589         * string/test-memmove.c (TEST_NAME): Likewise.
590         * string/test-memset.c (TEST_NAME): Likewise.
591         * string/test-rawmemchr.c (TEST_NAME): Likewise.
592         * string/test-stpcpy.c (TEST_NAME): Likewise.
593         * string/test-stpncpy.c (TEST_NAME): Likewise.
594         * string/test-strcasecmp.c (TEST_NAME): Likewise.
595         * string/test-strcasestr.c (TEST_NAME): Likewise.
596         * string/test-strcat.c (TEST_NAME): Likewise.
597         * string/test-strchr.c (TEST_NAME): Likewise.
598         * string/test-strcmp.c(TEST_NAME): Likewise.
599         * string/test-strcpy.c (TEST_NAME): Likewise.
600         * string/test-strcspn.c (TEST_NAME): Likewise.
601         * string/test-strlen.c (TEST_NAME): Likewise.
602         * string/test-strncasecmp.c (TEST_NAME): Likewise.
603         * string/test-strncmp.c (TEST_NAME): Likewise.
604         * string/test-strncpy.c (TEST_NAME): Likewise.
605         * string/test-strnlen.c (TEST_NAME): Likewise.
606         * string/test-strpbrk.c (TEST_NAME): Likewise.
607         * string/test-strrchr.c (TEST_NAME): Likewise.
608         * string/test-strspn.c (TEST_NAME): Likewise.
609         * string/test-strstr.c (TEST_NAME): Likewise.
610         * string/test-bcopy-ifunc.c: New file.
611         * string/test-bzero-ifunc.c: Likewise.
612         * string/test-memccpy-ifunc.c: Likewise.
613         * string/test-memchr-ifunc.c: Likewise.
614         * string/test-memcmp-ifunc.c: Likewise.
615         * string/test-memcpy-ifunc.c: Likewise.
616         * string/test-memmem-ifunc.c: Likewise.
617         * string/test-memmove-ifunc.c: Likewise.
618         * string/test-mempcpy-ifunc.c: Likewise.
619         * string/test-memset-ifunc.c: Likewise.
620         * string/test-rawmemchr-ifunc.c: Likewise.
621         * string/test-stpcpy-ifunc.c: Likewise.
622         * string/test-stpncpy-ifunc.c: Likewise.
623         * string/test-strcasecmp-ifunc.c: Likewise.
624         * string/test-strcasestr-ifunc.c: Likewise.
625         * string/test-strcat-ifunc.c: Likewise.
626         * string/test-strchr-ifunc.c: Likewise.
627         * string/test-strchrnul-ifunc.c: Likewise.
628         * string/test-strcmp-ifunc.c: Likewise.
629         * string/test-strcpy-ifunc.c: Likewise.
630         * string/test-strcspn-ifunc.c: Likewise.
631         * string/test-strlen-ifunc.c: Likewise.
632         * string/test-strncasecmp-ifunc.c: Likewise.
633         * string/test-strncat-ifunc.c: Likewise.
634         * string/test-strncmp-ifunc.c: Likewise.
635         * string/test-strncpy-ifunc.c: Likewise.
636         * string/test-strnlen-ifunc.c: Likewise.
637         * string/test-strpbrk-ifunc.c: Likewise.
638         * string/test-strrchr-ifunc.c: Likewise.
639         * string/test-strspn-ifunc.c: Likewise.
640         * string/test-strstr-ifunc.c: Likewise.
641
642         * debug/Makefile (tests-ifunc): New variable.
643         (tests): Add $(tests-ifunc).
644         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
645         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
646         * debug/test-stpcpy_chk-ifunc.c: New file.
647         * debug/test-strcpy_chk-ifunc.c: Likewise.
648
649 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
650
651         [BZ #13601]
652         * elf/dl-load.c (open_verify): Retry read if the entire ELF
653         header is not read in.
654
655 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
656
657         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
658         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
659         directly.  Pass built executable to script as
660         $(built-program-cmd).
661         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
662         $testprogram without using LD_LIBRARY_PATH and $ldso.
663
664         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
665         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
666         $(rtld-installed-name).
667         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
668         (rtld_installed_name): Likewise.
669         (library_path): Likewise.
670         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
671         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
672         $(run-program-prefix) to tst-tables.sh.
673         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
674         it to run tst-table-from and tst-table-to.
675         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
676         Pass it to tst-table.sh.
677         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
678         $(run-program-prefix) to tst-gettext.sh.
679         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
680         tst-translit.sh.
681         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
682         tst-gettext2.sh.
683         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
684         to run tst-gettext.
685         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
686         to run tst-gettext2.
687         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
688         to run tst-translit.
689         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
690         $(run-program-prefix) to tst-mtrace.sh.
691         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
692         to run tst-mtrace.
693         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
694         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
695         $(rtld-installed-name).
696         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
697         (rtld_installed_name): Likewise.
698         (run_program_prefix): New variable.  Use it to run wordexp-test.
699
700         * Makeconfig (ARCH): Remove all definitions.
701         (machine): Likewise.
702         [ARCH]: Remove conditional code.
703         [!objdir]: Give error.
704         [!objdir] (objpfx): Remove.
705         [!objdir] (common-objpfx): Likewise.
706         [!objdir] (common-objdir): Likewise.
707         * configure.in (config_makefile): Remove.  Hardcode Makefile in
708         AC_CONFIG_FILES call.
709         * configure: Regenerated.
710
711         [BZ #13888]
712         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
713         or TMPDIR.
714         (testout): Likewise.
715
716         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
717         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
718         $(rtld-installed-name).
719         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
720         (rtld_installed_name): Likwise.
721         (runit): Remove function.
722         (run_getconf): New variable,  Use it for running getconf binary.
723
724 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
725
726         [BZ #14716]
727         * string/test-memmem.c (check_result): New function.
728         (do_one_test): Use it.
729         (check1): New function.
730         (test_main): Use it.
731
732 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
733
734         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
735
736 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
737
738         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
739         (_G_LSEEK64): Likewise.
740         (_G_MMAP64): Likewise.
741         (_G_FSTAT64): Likewise.
742         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
743         (_G_LSEEK64): Likewise.
744         (_G_MMAP64): Likewise.
745         (_G_FSTAT64): Likewise.
746         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
747         unconditional.  Call __mmap64 directly.
748         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
749         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
750         __lseek64 directly.
751         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
752         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
753         __mmap64 directly.
754         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
755         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
756         __lseek64 directly.
757         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
758         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
759         __lseek64 directly.
760         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
761         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
762         __lseek64 directly.
763         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
764         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
765         __fxstat64 directly.
766         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
767         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
768         unconditional.
769         (freopen64) [!_G_OPEN64]: Remove conditional code.
770         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
771         unconditional.
772         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
773         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
774         unconditional.
775         (ftello64) [!_G_LSEEK64]: Remove conditional code.
776         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
777         unconditional.
778         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
779         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
780         unconditional.
781         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
782         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
783         unconditional.
784         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
785         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
786         unconditional.
787         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
788         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
789         unconditional.
790         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
791
792 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
793
794         [BZ #12140]
795         * manual/memory.texi (Malloc Tunable Parameters): Add note
796         about free list pointers overwriting some perturb bytes.
797         Wording suggested by Roland McGrath.
798
799 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
800
801         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
802         (lgamma_test): Likewise.
803         (tgamma_test): Likewise.
804
805 2012-10-16  Florian Weimer  <fweimer@redhat.com>
806
807         [BZ #14700]
808         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
809         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
810
811 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
812
813         * NEWS: Mention BZ #14716.
814         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
815         when removing AVAILABLE1_USES_J macro.
816
817 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
818
819         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
820         (__bswap_64): __uint64_t for unsigned 64-bit int.
821
822 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
823
824         * include/string.h (memmem): Declare libc hidden alias.
825         * string/memmem.c (memmem): Define libc hidden alias.
826         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
827         __read, __close instead of open, read, close.
828
829 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
830
831         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
832         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
833         global and hidden.
834         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
835         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
836         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
837         Likewise.
838         (__rawmemchr_sse2): Likewise.
839         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
840         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
841         (__strchr_sse2): Likewise.
842         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
843         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
844         (__strcasecmp_sse2): Likewise.
845         (__strncasecmp_sse2): Likewise.
846         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
847         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
848         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
849         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
850         (__strrchr_sse2): Likewise.
851         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
852         ifunc-impl-list.c.
853         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
854         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
855         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
856         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
857         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
858         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
859         * sysdeps/x86_64/multiarch/memset.S: Likewise.
860         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
861         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
862         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
863         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
864         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
865         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
866         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
867         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
868         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
869         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
870         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
871         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
872         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
873         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
874         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
875         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
876         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
877         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
878         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
879         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
880         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
881         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
882         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
883
884         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
885         global and hidden.
886         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
887         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
888         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
889         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
890         Likewise.
891         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
892         Likewise.
893         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
894         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
895         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
896         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
897         ifunc-impl-list.c.
898         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
899         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
900         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
901         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
902         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
903         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
904         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
905         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
906         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
907         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
908         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
909         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
910         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
911         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
912         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
913         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
914         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
915         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
916         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
917         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
918         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
919         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
920         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
921         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
922         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
923         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
924         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
925         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
926         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
927         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
928         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
929         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
930         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
931         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
932         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
933         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
934         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
935         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
936         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
937         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
938         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
939
940         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
941         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
942         * include/ifunc-impl-list.h: New file.
943         * misc/ifunc-impl-list.c: Likewise.
944         * misc/Makefile (routines): Add ifunc-impl-list.
945         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
946         * string/test-string.h: Include <ifunc-impl-list.h>.
947         [TEST_IFUNC && TEST_NAME] (func_list, func_count, impl_count,
948         impl_array): New variables.
949         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
950         are defined.
951         (test_init): Call __libc_ifunc_impl_list to initialize
952         func_list if TEST_IFUNC and TEST_NAME are defined.
953
954         * string/Makefile (strop-tests): Add bcopy and bzero.
955         * string/test-bcopy.c: New file.
956         * string/test-bzero.c: Likewise.
957         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
958         defined.
959         * string/test-memset.c: Support bzero test if TEST_BZERO is
960         defined.
961         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
962         __libc_memmove.
963         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
964         __libc_memset.
965         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
966         of memset.
967
968 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
969
970         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
971         * configure: Regenerated.
972
973         * Makeconfig (+link-static-before-libc): Don't include
974         $(link-static-libc).
975
976         * libio/libio.h (_IO_pos_t): Remove.
977
978 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
979
980         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
981         McGrath.
982
983 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
984
985         * crypt/crypt-entry.c: Include fips-private.h.
986         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
987         * crypt/md5c-test.c (main): Tolerate disabled MD5.
988         * sysdeps/unix/sysv/linux/fips-private.h: New file.
989         * sysdeps/generic/fips-private.h: New file, dummy fallback.
990
991 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
992
993         * crypt/crypt-private.h: Include stdbool.h.
994         (_ufc_setup_salt_r): Return bool.
995         * crypt/crypt-entry.c: Include errno.h.
996         (__crypt_r): Return NULL with EINVAL for bad salt.
997         * crypt/crypt_util.c (bad_for_salt): New.
998         (_ufc_setup_salt_r): Check that salt is long enough and within
999         the specified alphabet.
1000         * crypt/badsalttest.c: New file.
1001         * crypt/Makefile (tests): Add it.
1002         ($(objpfx)badsalttest): New.
1003
1004 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
1005
1006         * NEWS: Add entry for BZ #14602.
1007
1008 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
1009
1010         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
1011         type-generic.
1012         * math/libm-test.inc: Update comment listing what functions and
1013         macros are tested.
1014         (isgreater_test): New function.
1015         (isgreaterequal_test): Likewise.
1016         (isless_test): Likewise.
1017         (islessequal_test): Likewise.
1018         (islessgreater_test): Likewise.
1019         (isunordered_test): Likewise.
1020         (main): Call the new functions.
1021
1022 2012-10-09  Roland McGrath  <roland@hack.frob.com>
1023
1024         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
1025         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
1026         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
1027         * sysdeps/i386/configure: Regenerated.
1028         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
1029         * sysdeps/mach/configure: Regenerated.
1030         * sysdeps/mach/hurd/configure: Regenerated.
1031         * sysdeps/powerpc/configure: Regenerated.
1032         * sysdeps/powerpc/powerpc32/configure: Regenerated.
1033         * sysdeps/powerpc/powerpc64/configure: Regenerated.
1034         * sysdeps/s390/s390-32/configure: Regenerated.
1035         * sysdeps/s390/s390-64/configure: Regenerated.
1036         * sysdeps/sh/configure: Regenerated.
1037         * sysdeps/sparc/configure: Regenerated.
1038         * sysdeps/unix/sysv/linux/configure: Regenerated.
1039         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
1040         * sysdeps/x86_64/configure: Regenerated.
1041
1042         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
1043         defined.  Don't check if MAP is NULL.
1044
1045 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
1046
1047         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
1048         (_G_stat64): Likewise.
1049         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
1050         (_G_stat64): Likewise.
1051         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
1052         instead of struct _G_stat64.
1053         * libio/fileops.c (mmap_remap_check): Likewise.
1054         (decide_maybe_mmap): Likewise.
1055         (_IO_new_file_seekoff): Likewise.
1056         (_IO_file_stat): Likewise.
1057         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
1058         _G_off64_t.
1059         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
1060         instead of struct _G_stat64.
1061         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
1062
1063 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
1064
1065         [BZ #14602]
1066         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
1067         Replace with ...
1068         (CHECK_EOL): New macro.
1069         (two_way_short_needle): Check beginning of haystack for EOL.  Use
1070         CHECK_EOL.
1071         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
1072         Replace with CHECK_EOL.
1073         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
1074         Replace with CHECK_EOL.
1075
1076 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
1077
1078         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
1079         type-generic.
1080         * math/libm-test.inc: Update comment listing what functions and
1081         macros are tested.
1082         (finite_test): New function.
1083         (isinf_test): Likewise.
1084         (isnan_test): Likewise.
1085         (fpclassify_test): Test subnormal input.
1086         (isfinite_test): Likewise.
1087         (isnormal_test): Likewise.
1088         (main): Call the new functions.
1089
1090 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
1091
1092         [BZ #14660]
1093         * Makerules (%.dynsym): Force C locale when running
1094         $(OBJDUMP) --dynamic-syms.
1095
1096 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
1097
1098         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
1099         <stdint.h>.
1100
1101 2012-10-06  David S. Miller  <davem@davemloft.net>
1102
1103         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
1104         upper 32-bits of the length value in %o2 since we use branch-on-register
1105         tests which consider the entire 64-bit register.
1106
1107 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
1108
1109         * string/test-strstr.c (check2): Add a test for page boundary.
1110
1111 2012-10-05  David S. Miller  <davem@davemloft.net>
1112
1113         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
1114         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
1115         file.
1116         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
1117         sysdep_routines.
1118         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
1119         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
1120         and bzero when HWCAP_SPARC_CRYPTO is present.
1121
1122 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
1123
1124         [BZ #14602]
1125         * string/test-strstr.c (check2): New function.
1126         (test_main): Call check2.
1127
1128         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
1129         and bug-strchr1.
1130         * string/bug-strcasestr1.c (do_test): Moved to ...
1131         * string/test-strcasestr.c (check1): Here.  New function.
1132         (do_one_test): Break out result checking code into ...
1133         (check_result): This.  New function.
1134         (do_one_test): Call check_result.
1135         (test_main): Call check1.
1136         * string/bug-strchr1.c (do_test): Moved to ...
1137         * string/test-strchr.c (check1): Here.  New function.
1138         (do_one_test): Break out result checking code into ...
1139         (check_result): This.  New function.
1140         (do_one_test): Call check_result.
1141         (test_main): Call check1.
1142         * string/bug-strstr1.c (main): Moved to ...
1143         * string/test-strchr.c (check1): Here.  New function.
1144         (do_one_test): Break out result checking code into ...
1145         (check_result): This.  New function.
1146         (do_one_test): Call check_result.
1147         (test_main): Call check1.
1148         * string/bug-strcasestr1.c: Removed.
1149         * string/bug-strchr1.c: Likewise.
1150         * string/bug-strstr1.c: Likewise.
1151
1152         * elf/Makefile (dl-routines): Add hwcaps.
1153         * elf/dl-support.c (_dl_important_hwcaps): Removed.
1154         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
1155         (_dl_important_hwcaps): Moved to ...
1156         * elf/dl-hwcaps.c: Here.  New file.
1157         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
1158
1159         [BZ #14557]
1160         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
1161         if IS_IN_rtld isn't defined.
1162
1163         * elf/dl-support.c (_dl_sysinfo_map): New.
1164         Include "get-dynamic-info.h" and "setup-vdso.h".
1165         (_dl_non_dynamic_init): Call setup_vdso.
1166         * elf/dynamic-link.h: Don't include <assert.h>.
1167         (elf_get_dynamic_info): Moved to ...
1168         * elf/get-dynamic-info.h: Here.  New file.
1169         * elf/dynamic-link.h: Include "get-dynamic-info.h".
1170         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
1171         * elf/setup-vdso.h: Here.  New file.
1172         * elf/rtld.c: Include "setup-vdso.h".
1173         (dl_main): Call setup_vdso.
1174
1175 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
1176
1177         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
1178         creal in comment listing functions tested.  List finite, isinf,
1179         isnan, isless, islessequal, isgreater, isgreaterequal,
1180         islessgreater, isunordered, lgamma_r and pow10 as functions and
1181         macros not tested.  Mention which functions not tested are aliases
1182         for other functions.  Fix typo.  Note that signs of NaNs are not
1183         tested.
1184
1185         * scripts/config.guess: Update from config.git.
1186         * scripts/config.sub: Likewise.
1187
1188 2012-10-04  Roland McGrath  <roland@hack.frob.com>
1189
1190         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
1191         * misc/madvise.c (madvise): Renamed to __madvise.
1192         Make madvise a weak alias.
1193         * include/sys/mman.h: Declare __madvise.
1194         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
1195         * sysdeps/unix/syscalls.list
1196         (madvise): Make __madvise the strong name, and madvise a weak alias.
1197         * sysdeps/unix/sysv/linux/syscalls.list
1198         (madvise, mmap): Remove redundant entries.
1199         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
1200         * malloc/malloc.c (mtrim): Likewise.
1201         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
1202
1203 2012-10-03  Roland McGrath  <roland@hack.frob.com>
1204
1205         * sysdeps/mach/hurd/dl-cache.c: File removed.
1206         * config.h.in (USE_LDCONFIG): New #undef.
1207         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
1208         * configure: Regenerated.
1209         * elf/Makefile (dl-routines): Add dl-cache only under
1210         [$(use-ldconfig) = yes].
1211         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
1212         cache on [USE_LDCONFIG].
1213         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
1214         [USE_LDCONFIG].
1215         * elf/rtld.c (dl_main): Likewise.
1216
1217 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
1218
1219         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
1220         _SC_LEVEL4_CACHE_LINESIZE.
1221
1222 2012-10-03  Roland McGrath  <roland@hack.frob.com>
1223
1224         * sysdeps/unix/bsd/confstr.h: File removed.
1225
1226 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
1227
1228         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
1229         sys/sdt-config.h.
1230
1231 2012-10-02  Roland McGrath  <roland@hack.frob.com>
1232
1233         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
1234         Make 'mapoff' field ElfW(Off) rather than off_t.
1235
1236 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
1237
1238         * nscd/Makefile: Remove nscd-cflags and all its users.
1239         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
1240         (CFLAGS-nonlib): Add compiler flags for nscd modules.
1241
1242         [BZ #10631]
1243         * malloc.c (malloc_printerr): Clarify error message.
1244
1245 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
1246
1247         [BZ #14648]
1248         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
1249         Set bit_FMA_Usable if FMA is supported.
1250         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
1251         macro.
1252         (bit_FMA4_Usable): Updated.
1253         (index_FMA_Usable): New macro.
1254         (CPUID_FMA): Likewise
1255         (HAS_FMA): Defined with bit_FMA_Usable.
1256
1257 2012-10-01  Roland McGrath  <roland@hack.frob.com>
1258
1259         * bits/types.h (__swblk_t): Type removed.
1260         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
1261         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
1262         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
1263         (__SWBLK_T_TYPE): Likewise.
1264         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
1265         (__SWBLK_T_TYPE): Likewise.
1266         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
1267         (__SWBLK_T_TYPE): Likewise.
1268         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
1269         (__SWBLK_T_TYPE): Likewise.
1270
1271 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
1272             Honza Horak <hhorak@redhat.com>
1273
1274         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
1275         (xdr_mapname): Use YPMAXMAP as maxsize.
1276         (xdr_peername): Use YPMAXPEER as maxsize.
1277         (xdr_keydat): Use YPAXRECORD as maxsize.
1278         (xdr_valdat): Use YPMAXRECORD as maxsize.
1279
1280 2012-10-01  Roland McGrath  <roland@hack.frob.com>
1281
1282         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
1283
1284         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
1285         * csu/init-first.c: ... here.
1286         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
1287         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
1288         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
1289         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
1290         * sysdeps/i386/init-first.c: File removed.
1291         * sysdeps/sh/init-first.c: File removed.
1292
1293 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
1294
1295         [BZ #14645]
1296         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
1297         if x * y might underflow to zero and z is zero.
1298         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
1299         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
1300         * math/libm-test.inc (min_subnorm_value): New variable.
1301         (fma_test): Add more tests.
1302         (fma_test_towardzero): Likewise.
1303         (fma_test_downward): Likewise
1304         (fma_test_upward): Likewise.
1305         (initialize): Set min_subnorm_value.
1306
1307 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
1308
1309         [BZ #14638]
1310         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
1311         0 + 0.
1312         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
1313         mode for addition resulting in exact zero.
1314         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
1315         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
1316         exact 0 + 0.
1317         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
1318         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
1319         * math/libm-test.inc (fma_test): Add more tests.
1320         (fma_test_towardzero): New function.
1321         (fma_test_downward): Likewise.
1322         (fma_test_upward): Likewise.
1323         (main): Call the new functions.
1324
1325 2012-09-28  David S. Miller  <davem@davemloft.net>
1326
1327         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
1328
1329 2012-09-28  Roland McGrath  <roland@hack.frob.com>
1330
1331         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
1332         instead of SIGALRM.
1333
1334         * sysdeps/gnu/_G_config.h: Moved to ...
1335         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
1336         * sysdeps/mach/hurd/_G_config.h: Moved to ...
1337         * sysdeps/generic/_G_config.h: ... here.
1338
1339         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
1340
1341         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
1342
1343         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
1344         Conditionalize target on [libnss_test1.so-version].
1345
1346         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
1347
1348         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
1349         (elfobjdir): Move out of conditionals.
1350
1351         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
1352         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
1353         (__nss_lookup_function): Conditionalize label remove_from_tree on
1354         [!DO_STATIC_NSS || SHARED], matching its only use.
1355
1356 2012-09-28  David S. Miller  <davem@davemloft.net>
1357
1358         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
1359         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
1360         file.
1361         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
1362         sysdep_routines.
1363         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
1364         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
1365         when HWCAP_SPARC_CRYPTO is present.
1366
1367 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
1368
1369         * io/tst-mknodat.c: Create a FIFO instead of a socket.
1370
1371 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
1372
1373         [BZ #6530]
1374         * stdio-common/vfprintf.c (process_string_arg): Revert
1375         2000-07-22 change.
1376
1377 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
1378
1379         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
1380         for testcase.
1381         * stdio-common/tst-sprintf.c: Include <locale.h>
1382         (main): Test sprintf's handling of incomplete multibyte
1383         characters.
1384
1385 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
1386
1387         * elf/dl-runtime.c (VERSYMIDX): Removed.
1388         * elf/dl-version.c (VERSYMIDX): Likewise.
1389         * elf/do-rel.h (VERSYMIDX): Likewise.
1390         (VALIDX): Likewise.
1391         * elf/dynamic-link.h (VERSYMIDX): Likewise.
1392         * elf/rtld.c (VALIDX): Likewise.
1393         (ADDRIDX): Likewise.
1394         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
1395         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
1396         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
1397         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
1398         (VALIDX): Likewise.
1399         (ADDRIDX): Likewise.
1400
1401 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
1402
1403         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
1404
1405 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
1406
1407         [BZ #11438]
1408         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
1409         to global scope.
1410         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
1411         addresses are in the same scope as 192.0.2/24.
1412         * posix/gai.conf: Document new scope table defaults.
1413
1414 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
1415
1416         [BZ #5298]
1417         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
1418         for ftell.  Compute offsets from write pointers instead.
1419         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
1420
1421 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
1422
1423         [BZ #14543]
1424         * libio/Makefile (tests): New test case tst-fseek.
1425         * libio/tst-fseek.c: New test case to verify that fseek/ftell
1426         combination works in wide mode.
1427         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
1428         state when the external buffer state changes.
1429
1430 2012-09-27  David S. Miller  <davem@davemloft.net>
1431
1432         [BZ #14376]
1433         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
1434         pass reloc->r_addend in as the 'high' argument to
1435         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
1436
1437         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1438
1439 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
1440
1441         * rt/tst-aio2.c: Include <pthread.h>.
1442         * rt/tst-aio3.c: Likewise.
1443
1444 2012-09-27  Steve Ellcey  <sellcey@mips.com>
1445
1446         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
1447
1448 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
1449
1450         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
1451         contents on [SHARED].
1452
1453 2012-09-26  Marek Polacek  <polacek@redhat.com>
1454
1455         [BZ #14530]
1456         [BZ #13741]
1457         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
1458         for C++ and GCC <4.3 as well as for non GCC compilers.
1459
1460 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
1461
1462         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1463
1464 2012-09-25  Roland McGrath  <roland@hack.frob.com>
1465
1466         * Makefile.in (all, install): Declare with .PHONY.
1467         Reported by Michael Hope <michael.hope@linaro.org>.
1468
1469 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1470
1471         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
1472         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
1473         system header.
1474         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
1475         Likewise.
1476         (sydep_routines): Add the new and the internal functions.
1477         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
1478         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
1479         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
1480         (GLIBC_2.17): Add the new function.
1481         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
1482         (GLIBC_2.17): Likewise.
1483         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
1484         (GLIBC_2.17): Likewise.
1485         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
1486         (GLIBC_2.17): Likewise.
1487         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
1488
1489 2012-09-25  Alan Modra  <amodra@gmail.com>
1490
1491         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
1492         Add release barrier before setting once_control to say
1493         initialisation is done.  Add hints on lwarx.  Use macro in
1494         place of isync.
1495         (clear_once_control): Add release barrier.
1496
1497 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
1498
1499         [BZ #13629]
1500         * math/s_clog.c (__clog): Handle more values close to |z| = 1
1501         specially.
1502         * math/s_clog10.c (__clog10): Likewise.
1503         * math/s_clog10f.c (__clog10f): Likewise.
1504         * math/s_clog10l.c (__clog10l): Likewise.
1505         * math/s_clogf.c (__clogf): Likewise.
1506         * math/s_clogl.c (__clogl): Likewise.
1507         * math/Makefile (libm-calls): Add x2y2m1.
1508         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
1509         (__x2y2m1): Likewise.
1510         (__x2y2m1l): Likewise.
1511         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
1512         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
1513         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
1514         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
1515         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
1516         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
1517         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
1518         * sysdeps/i386/fpu/libm-test-ulps: Update.
1519         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1520
1521         [BZ #14621]
1522         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
1523         int as type of variable DEPTH.
1524         (glob): Use size_t instead of int as type of variables NEWCOUNT
1525         and OLD_PATHC.
1526
1527 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1528
1529         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
1530         Add s_sincosf-sse2.
1531         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
1532         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
1533         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
1534         macros for using routine as __sincosf_ia32.
1535         Use macro for function declaration and weak_alias.
1536         * sysdeps/i386/fpu/libm-test-ulps: Update.
1537
1538         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
1539         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1540
1541         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
1542         subnormal argument.
1543         * math/s_cexpf.c (__cexpf): Likewise.
1544         * math/s_csinf.c (__csinf): Likewise.
1545         * math/s_csinhf.c (__csinhf): Likewise.
1546         * math/s_ctanf.c (__ctanf): Likewise.
1547         * math/s_ctanhf.c (__ctanhf): Likewise.
1548         * math/s_ccosh.c (__ccoshf): Likewise.
1549         * math/s_cexp.c (__cexpl): Likewise.
1550         * math/s_csin.c (__csin): Likewise.
1551         * math/s_csinh.c (__csinh): Likewise.
1552         * math/s_ctan.c (__ctan): Likewise.
1553         * math/s_ctanh.c (ctanh): Likewise.
1554         * math/s_ccoshl.c (__ccoshl): Likewise.
1555         * math/s_cexpl.c (__cexpl): Likewise.
1556         * math/s_csinl.c (__csinl): Likewise.
1557         * math/s_csinhl.c (__csinhl): Likewise.
1558         * math/s_ctanl.c (__ctanl): Likewise.
1559         * math/s_ctanhl.c (__ctanhl): Likewise.
1560
1561 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
1562
1563         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
1564         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
1565         (_IO_off_t): Define to __off_t, not _G_off_t.
1566         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
1567         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
1568         (_IO_wint_t): Define to wint_t, not _G_wint_t.
1569         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
1570         type of __dummy and __dummy2 fields.
1571         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
1572         (_G_ssize_t): Likewise.
1573         (_G_off_t): Likewise.
1574         (_G_pid_t): Likewise.
1575         (_G_uid_t): Likewise.
1576         (_G_wchar_t): Likewise.
1577         (_G_wint_t): Likewise.
1578         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
1579         (_G_ssize_t): Likewise.
1580         (_G_off_t): Likewise.
1581         (_G_pid_t): Likewise.
1582         (_G_uid_t): Likewise.
1583         (_G_wchar_t): Likewise.
1584         (_G_wint_t): Likewise.
1585         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
1586         (_G_ssize_t): Likewise.
1587         (_G_off_t): Likewise.
1588         (_G_pid_t): Likewise.
1589         (_G_uid_t): Likewise.
1590         (_G_wchar_t): Likewise.
1591         (_G_wint_t): Likewise.
1592
1593 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
1594
1595         * malloc/arena.c: Include malloc-sysdep.h.
1596         (shrink_heap): Use check_may_shrink_heap to decide if madvise
1597         is sufficient to shrink the heap or an unmap is needed.
1598         * sysdeps/generic/malloc-sysdep.h: New file.  Define
1599         new function check_may_shrink_heap.
1600         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
1601         new function check_may_shrink_heap.
1602
1603 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
1604
1605         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
1606         comments.
1607
1608 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
1609
1610         * catgets/test-gencat.sh: Add "set -e".
1611         * elf/tst-pathopt.sh: Likewise.
1612         * grp/tst_fgetgrent.sh: Likewise.
1613         * iconvdata/run-iconv-test.sh: Likewise.
1614         * intl/tst-gettext.sh: Likewise.
1615         * intl/tst-gettext2.sh: Likewise.
1616         * intl/tst-gettext4.sh: Likewise.
1617         * intl/tst-gettext6.sh: Likewise.
1618         * intl/tst-translit.sh: Likewise.
1619         * io/ftwtest-sh: Likewise.
1620         * libio/test-freopen.sh: Likewise.
1621         * malloc/tst-mtrace.sh: Likewise.
1622         * posix/globtest.sh: Likewise.
1623         * posix/tst-getconf.sh: Likewise.
1624         * posix/wordexp-tst.sh: Likewise.
1625         * stdio-common/tst-printf.sh: Likewise.
1626         * stdio-common/tst-unbputc.sh: Likewise.
1627         * stdlib/tst-fmtmsg.sh: Likewise.
1628         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
1629         * catgets/Makefile: Do not specify -e option when running
1630         testsuite shell scripts.
1631         * elf/Makefile: Likewise.
1632         * grp/Makefile: Likewise.
1633         * iconvdata/Makefile: Likewise.
1634         * intl/Makefile: Likewise.
1635         * io/Makefile: Likewise.
1636         * libio/Makefile: Likewise.
1637         * malloc/Makefile: Likewise.
1638         * posix/Makefile: Likewise.
1639         * stdio-common/Makefile: Likewise.
1640         * stdlib/Makefile: Likewise.
1641         * sysdeps/x86_64/Makefile: Likewise.
1642
1643         * io/ftwtest-sh: Add copyright header.
1644         * posix/globtest.sh: Likewise.
1645         * posix/tst-getconf.sh: Likewise.
1646         * posix/wordexp-tst.sh: Likewise.
1647         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
1648
1649 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
1650
1651         [BZ #13679]
1652         * Makeconfig (+link): Defined as $(+link-static) if
1653         $(build-shared) isn't yes.
1654         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
1655         isn't yes.
1656         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
1657
1658         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
1659
1660         [BZ #14562]
1661         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
1662         new chunk size with MALLOC_ALIGN_MASK.
1663
1664 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
1665
1666         [BZ #5044]
1667         * stdio-common/printf_fphex.c: Include <stdbool.h> and
1668         <rounding-mode.h>.
1669         (__printf_fphex): Determine rounding using get_rounding_mode and
1670         round_away.
1671         * stdio-common/tst-printf-round.c (struct hex_test): New
1672         structure.
1673         (hex_tests): New variable.
1674         (test_hex_in_one_mode): New function.
1675         (do_test): Also run tests for hex float output.
1676
1677 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
1678
1679         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
1680         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
1681         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
1682         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
1683         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
1684         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
1685         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
1686         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
1687
1688 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
1689
1690         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
1691         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
1692         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
1693         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
1694
1695 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
1696
1697         [BZ #14579]
1698         * elf/rtld.c (dl_main): Limit the check for self loading to normal
1699         mode only.
1700         * elf/tst-rtld-load-self.sh: New test.
1701         * elf/Makefile: Run it.
1702
1703 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
1704
1705         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
1706         (tst-writev-ENV): Remove.
1707         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
1708
1709 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
1710
1711         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
1712
1713 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
1714
1715         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
1716         unconditional.
1717         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
1718         Likewise.
1719         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
1720         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
1721         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
1722         Likewise.
1723
1724 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
1725
1726         [BZ #14587]
1727         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
1728         * config.make.in (have-cpp-asm-debuginfo): Removed.
1729         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
1730         * configure: Regenerated.
1731
1732 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
1733
1734         [BZ #5044]
1735         * stdio-common/printf_fp.c: Include <stdbool.h> and
1736         <rounding-mode.h>.
1737         (___printf_fp): Determine rounding using get_rounding_mode and
1738         round_away.
1739         * stdio-common/tst-printf-round.c: New file.
1740         * stdio-common/Makefile (tests): Add tst-printf-round.
1741         (link-libm): New variable.
1742         ($(objpfx)tst-printf-round): Depend in $(link-libm).
1743
1744 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
1745
1746         [BZ #14576]
1747         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
1748         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
1749         Likewise.
1750         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
1751         Likewise.
1752
1753 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
1754
1755         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
1756         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
1757         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
1758         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
1759
1760 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
1761
1762         [BZ #14518]
1763         * include/rounding-mode.h: New file.
1764         * sysdeps/generic/get-rounding-mode.h: Likewise.
1765         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
1766         * stdlib/strtod_l.c: Include <rounding-mode.h>.
1767         (MAX_VALUE): New macro.
1768         (MIN_VALUE): Likewise.
1769         (overflow_value): New function.
1770         (underflow_value): Likewise.
1771         (round_and_return): Use overflow_value and underflow_value to
1772         determine return values in overflow and underflow cases.  Use
1773         round_away to determine rounding depending on rounding mode.
1774         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
1775         determine return values in overflow and underflow cases.
1776         * stdlib/tst-strtod-round.c: Include <fenv.h>.
1777         (struct test_results): New structure.
1778         (struct test): Use struct test_results to store expected results
1779         for all rounding modes.
1780         (TEST): Include expected results for all rounding modes.
1781         (test_in_one_mode): New function.
1782         (do_test): Use test_in_one_mode to compute and check results.
1783         Check results for all rounding modes.
1784         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
1785         $(link-libm).
1786
1787 2012-12-09  Allan McRae  <allan@archlinux.org>
1788
1789         * sysdeps/i386/fpu/libm-test-ulps: Update
1790
1791 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
1792
1793         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
1794         (_G_int32_t): Likewise.
1795         (_G_uint16_t): Likewise.
1796         (_G_uint32_t): Likewise.
1797         (_G_HAVE_BOOL): Likewise.
1798         (_G_HAVE_ATEXIT): Likewise.
1799         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
1800         (_G_HAVE_IO_FILE_OPEN): Likewise.
1801         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
1802         (_G_int32_t): Likewise.
1803         (_G_uint16_t): Likewise.
1804         (_G_uint32_t): Likewise.
1805         (_G_HAVE_BOOL): Likewise.
1806         (_G_HAVE_ATEXIT): Likewise.
1807         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
1808         (_G_HAVE_IO_FILE_OPEN): Likewise.
1809         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
1810         (_G_int32_t): Likewise.
1811         (_G_uint16_t): Likewise.
1812         (_G_uint32_t): Likewise.
1813         (_G_HAVE_BOOL): Likewise.
1814         (_G_HAVE_ATEXIT): Likewise.
1815         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
1816         (_G_HAVE_IO_FILE_OPEN): Likewise.
1817
1818 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
1819
1820         * csu/libc-tls.c: Update copyright years.
1821
1822 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
1823
1824         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
1825         [!_G_USING_THUNKS]: Remove conditional code.
1826         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
1827         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
1828
1829         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
1830         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
1831         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
1832         (_G_VTABLE_LABEL_PREFIX): Likewise.
1833         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
1834         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
1835         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
1836         (_G_VTABLE_LABEL_PREFIX): Likewise.
1837         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
1838         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
1839         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
1840         (_G_VTABLE_LABEL_PREFIX): Likewise.
1841         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
1842
1843 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
1844
1845         * libio/Makefile: Include ../Makeconfig before tests.
1846         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
1847         only if $(build-shared) is yes.
1848
1849         * iconv/gconv_db.c: Update copyright years.
1850
1851 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1852
1853         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
1854         unwind info if defined PIC. Fix special cases description.
1855         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
1856
1857         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
1858         DP_HI_MASK entry.
1859         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
1860
1861 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
1862
1863         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
1864
1865         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
1866         is NULL.
1867
1868         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
1869         (LDLIBS-tst-chk4): This.
1870         (LDFLAGS-tst-chk5): Renamed to ...
1871         (LDLIBS-tst-chk5): This.
1872         (LDFLAGS-tst-chk6): Renamed to ...
1873         (LDLIBS-tst-chk6): This.
1874         (LDFLAGS-tst-lfschk4): Renamed to ...
1875         (LDLIBS-tst-lfschk4): This.
1876         (LDFLAGS-tst-lfschk5): Renamed to ...
1877         (LDLIBS-tst-lfschk5): This.
1878         (LDFLAGS-tst-lfschk6): Renamed to ...
1879         (LDLIBS-tst-lfschk6): This.
1880
1881         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
1882         on $(common-objpfx)soversions.mk.
1883
1884 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
1885
1886         [BZ #10014]
1887         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
1888         example host name.
1889
1890 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
1891
1892         * malloc/arena.c (arena_get_retry): New function that gets
1893         another arena for the caller to try its request on.
1894         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
1895         current arena cannot fulfill the request.
1896         (__libc_memalign): Likewise.
1897         (__libc_memalign): Likewise.
1898         (__libc_pvalloc): Likewise.
1899         (__libc_calloc): Likewise.
1900
1901 2012-09-05  John Tobey  <john.tobey@gmail.com>
1902
1903         [BZ #13542]
1904         * manual/arith.texi (Operations on Complex): Fix description
1905         of carg branch cut.
1906
1907 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
1908
1909         [BZ #10014]
1910         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
1911         host name.
1912
1913         [BZ #10038]
1914         * manual/memory.texi (Memory): Make order of menu items match
1915         order of sections.
1916
1917 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1918
1919         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
1920         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
1921         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
1922
1923 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1924
1925         * csu/libc-tls.c (static_dtv): Renamed to ...
1926         (_dl_static_dtv): This.  Make it global.
1927         (_dl_initial_dtv): Removed.
1928         (__libc_setup_tls): Updated.
1929         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
1930         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
1931         DL_INITIAL_DTV.
1932
1933 2012-09-06  Petr Machata  <pmachata@redhat.com>
1934
1935         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
1936         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
1937         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
1938         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
1939
1940 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1941
1942         [BZ #14545]
1943         * csu/libc-tls.c (_dl_initial_dtv): New variable.
1944         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
1945         freeing dtv[-1].
1946
1947 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1948
1949         [BZ #14544]
1950         * Makeconfig (link-static-before-libc): Replace $(+prector)
1951         with $(+prectorT).
1952         (link-static-after-libc): Replace $(+postctor) with
1953         $(+postctorT).
1954         (link-bounded): Replace $(+prector)/$(+postctor) with
1955         $(+prectorT)/$(+postctorT).
1956         (+prectorT): New macro.
1957         (+postctorT): Likewise.
1958
1959 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
1960
1961         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
1962         (round_str): Handle values above the maximum for IBM long double
1963         as inexact.
1964         * stdlib/tst-strtod-round.c (tests): Regenerated.
1965
1966 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1967
1968         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
1969         assembler flag.
1970         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
1971         zarch_nohighgprs around the zarch optimized routines.
1972         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
1973         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
1974         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
1975         for zarch.
1976
1977 2012-09-05  David S. Miller  <davem@davemloft.net>
1978
1979         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1980
1981         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
1982         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
1983         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
1984         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
1985         entries.
1986
1987 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1988
1989         * malloc/arena.c: Fold copyright years.
1990         * malloc/mcheck.c, malloc/memusage.c: Likewise.
1991
1992 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1993
1994         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
1995
1996 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
1997
1998         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
1999
2000 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
2001
2002         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
2003         change internal state upon failure.
2004
2005 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
2006
2007         * malloc/mcheck.c (mcheck_check_all): Fix typo.
2008         * malloc/memusage.c (mmap): Likewise.
2009         (mmap64, mremap): Likewise.  Adjust name in comment.
2010
2011 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
2012
2013         * libio/fileops.c: Fix typos in comments.
2014         * libio/oldfileops.c: Likewise.
2015         * libio/wfileops.c: Likewise.
2016
2017 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
2018
2019         [BZ #1349]
2020         * malloc/Makefile (tests): Add tst-malloc-usable test case.
2021         (tst-malloc-usable-ENV): Set environment for test case.
2022         * malloc/hooks.c (malloc_check_get_size): New function to get
2023         requested size.
2024         * malloc/malloc.c (musable): Use malloc_check_get_size.
2025         * malloc/tst-malloc-usable.c: New test case.
2026
2027 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
2028
2029         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
2030
2031 2012-09-05  Allan McRae  <allan@archlinux.org>
2032
2033         [BZ #13966]
2034         * configure.in (CXX_SYSINCLUDES): Use compiler output to
2035         determine header location.
2036         * configure: Regenerated.
2037
2038 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
2039
2040         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
2041         float format.
2042         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
2043         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
2044         format.
2045         (test): Regenerate.
2046
2047 2012-09-04  David S. Miller  <davem@davemloft.net>
2048
2049         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
2050         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
2051         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
2052
2053 2012-09-04  Florian Weimer  <fweimer@redhat.com>
2054
2055         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
2056         failures.
2057
2058         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
2059
2060 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
2061
2062         [BZ #9914]
2063         * libio/iogetdelim.c: Include <limits.h>.
2064         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
2065         + len + 1 would overflow.
2066
2067 2012-09-03  Andreas Jaeger  <aj@suse.de>
2068
2069         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2070         * sysdeps/i386/fpu/libm-test-ulps: Update.
2071
2072 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
2073
2074         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
2075         Add s_sinf-sse2, s_conf-sse2.
2076
2077         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
2078         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
2079         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
2080         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
2081
2082         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
2083         for using routine as __sinf_ia32.
2084         Use macro for function declaration and weak_alias.
2085         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
2086         for using routine as __cosf_ia32.
2087         Use macro for function declaration and weak_alias.
2088
2089         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
2090         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
2091
2092         * sysdeps/x86_64/fpu/s_sinf.S: New file.
2093         * sysdeps/x86_64/fpu/s_cosf.S: New file.
2094         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2095
2096         * math/libm-test.inc (cos_test): Add more test cases.
2097         (sin_test): Likewise.
2098         (sincos_test): Likewise.
2099
2100 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2101
2102         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
2103         (IFUNC_RESOLVE): Make pointers to the specialized implementations
2104         hidden.
2105         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
2106
2107 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
2108
2109         [BZ #14538]
2110         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
2111         first element of the GOT.
2112         (elf_machine_load_address): Return the difference between
2113         the runtime address of _DYNAMIC and elf_machine_dynamic ().
2114
2115 2012-09-01  Allan McRae  <allan@archlinux.org>
2116
2117         [BZ #13412]
2118         * configure.in (AWK): Require gawk version 3.0 or later.
2119         * configure: Regenerated.
2120
2121 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
2122
2123         * sysdeps/unix/sysv/linux/kernel-features.h
2124         (__ASSUME_POSIX_CPU_TIMERS): Remove.
2125         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
2126         [__NR_clock_getres]: Make code unconditional.
2127         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
2128         (clock_getcpuclockid): Remove code left unreachable by removal of
2129         conditionals.
2130         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
2131         code unconditional.
2132         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
2133         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
2134         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
2135         Make code unconditional.
2136         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
2137         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
2138         * sysdeps/unix/sysv/linux/clock_settime.c
2139         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
2140         conditional code.
2141         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
2142         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
2143
2144 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
2145
2146         [BZ #14476]
2147         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
2148         scripts/test-installation.pl.
2149
2150         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
2151         and $ld_so_version if it is set.
2152
2153 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
2154
2155         [BZ #14516]
2156         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
2157         failure if reading from procfs failed.
2158         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
2159
2160 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
2161
2162         * sysdeps/unix/sysv/linux/kernel-features.h
2163         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
2164         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
2165         Remove conditional code.
2166         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2167         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
2168         Remove conditional code.
2169         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2170         * sysdeps/unix/sysv/linux/i386/fxstat.c
2171         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
2172         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2173         * sysdeps/unix/sysv/linux/i386/fxstatat.c
2174         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
2175         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2176         * sysdeps/unix/sysv/linux/i386/lxstat.c
2177         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
2178         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2179         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
2180         Remove conditional code.
2181         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2182         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
2183         Remove conditional code.
2184         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2185         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
2186         <kernel-features.h>.
2187         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
2188         Remove.
2189         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
2190         Remove conditional code.
2191         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
2192         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
2193         Remove conditional.
2194
2195 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
2196
2197         [BZ #5400]
2198         * NEWS: Add fixed bug number.
2199
2200 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
2201
2202         [BZ #14519]
2203         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
2204         underflowing exponent in case of negative sign.
2205         * stdlib/tst-strtod-round-data: Add more tests.
2206         * stdlib/tst-strtod-round.c (tests): Regenerated.
2207
2208         [BZ #3479]
2209         * stdlib/strtod_l.c (NDIG): Remove.
2210         (HEXNDIG): Likewise.
2211         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
2212         smallest representable value.
2213         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
2214         lie within an exact representation of 1/2 ulp of the result.
2215         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
2216         unconditionally.
2217         (TENS_P9_IDX): Define unconditionally.
2218         (TENS_P9_SIZE): Likewise.
2219         (TENS_P10_IDX): Likewise.
2220         (TENS_P10_SIZE): Likewise.
2221         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
2222         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
2223         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
2224         entries for 10^2^13 and 10^2^14.
2225         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
2226         (TENS_P13_IDX): Define.
2227         (TENS_P13_SIZE): Likewise.
2228         (TENS_P14_IDX): Likewise.
2229         (TENS_P14_SIZE): Likewise.
2230         (_fpioconst_pow10): Change array size to
2231         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
2232         unconditional.
2233         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
2234         1024]: Add entries for 10^2^13 and 10^2^14.
2235         [LAST_POW10 > _LAST_POW10]: Remove #error.
2236         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
2237         (_fpioconst_pow10): Change array size to
2238         FPIOCONST_POW10_ARRAY_SIZE.
2239         * stdlib/gen-fpioconst.c: New file.
2240         * stdlib/gen-tst-strtod-round.c: Likewise.
2241         * stdlib/tst-strtod-round-data: Likewise.
2242         * stdlib/tst-strtod-round.c: Likewise.
2243         * stdlib/Makefile (tests): Add tst-strtod-round.
2244
2245         [BZ #14459]
2246         * stdlib/strtod_l.c: Include <stdint.h>.
2247         (NDEBUG): Do not define.
2248         (round_and_return): Change EXPONENT parameter to type intmax_t.
2249         Rearrange calculations to avoid internal overflow possibilities.
2250         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
2251         Rearrange calculations to avoid internal overflow possibilities.
2252         Assert that number fits inside MPNSIZE limbs.
2253         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
2254         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
2255         calculations and add assertions to avoid internal overflow
2256         possibilities.  Add casts to avoid signed/unsigned operations.
2257         * stdlib/tst-strtod-overflow.c: New file.
2258         * stdlib/Makefile (tests): Add tst-strtod-overflow.
2259
2260 2012-08-25  Marek Polacek  <polacek@redhat.com>
2261
2262         * time/time.h: Fix some typos in comments.
2263
2264 2012-08-23  Roland McGrath  <roland@hack.frob.com>
2265
2266         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
2267         * posix/tst-rfc3484-2.c: Likewise.
2268         * posix/tst-rfc3484-3.c: Likewise.
2269
2270 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
2271
2272         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
2273         (EF_ARM_ABI_FLOAT_HARD): Likewise.
2274
2275 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
2276
2277         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
2278         #include of fxstatat64.c.
2279
2280 2012-08-22  Roland McGrath  <roland@hack.frob.com>
2281
2282         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
2283         * shadow/getspent_r.c: Likewise.
2284         * shadow/getspnam.c: Likewise.
2285         * shadow/getspnam_r.c: Likewise.
2286         * gshadow/getsgent.c: Likewise.
2287         * gshadow/getsgent_r.c: Likewise.
2288         * gshadow/getsgnam.c: Likewise.
2289         * gshadow/getsgnam_r.c: Likewise.
2290         * inet/getnetbyad.c: Likewise.
2291         * inet/getnetbyad_r.c: Likewise.
2292         * inet/getnetbynm.c: Likewise.
2293         * inet/getnetbynm_r.c: Likewise.
2294         * inet/getnetent.c: Likewise.
2295         * inet/getnetent_r.c: Likewise.
2296         * inet/getproto.c: Likewise.
2297         * inet/getproto_r.c: Likewise.
2298         * inet/getprtent.c: Likewise.
2299         * inet/getprtent_r.c: Likewise.
2300         * inet/getprtname.c: Likewise.
2301         * inet/getprtname_r.c: Likewise.
2302         * inet/getrpcbyname.c: Likewise.
2303         * inet/getrpcbyname_r.c: Likewise.
2304         * inet/getrpcbynumber.c: Likewise.
2305         * inet/getrpcbynumber_r.c: Likewise.
2306         * inet/getrpcent.c: Likewise.
2307         * inet/getrpcent_r.c: Likewise.
2308         * inet/getaliasent.c: Likewise.
2309         * inet/getaliasent_r.c: Likewise.
2310         * inet/getaliasname.c: Likewise.
2311         * inet/getaliasname_r.c: Likewise.
2312         * nscd/getgrgid_r.c: Likewise.
2313         * nscd/getgrnam_r.c: Likewise.
2314         * nscd/gethstbyad_r.c: Likewise.
2315         * nscd/gethstbynm3_r.c: Likewise.
2316         * nscd/getpwnam_r.c: Likewise.
2317         * nscd/getpwuid_r.c: Likewise.
2318         * nscd/getsrvbynm_r.c: Likewise.
2319         * nscd/getsrvbypt_r.c: Likewise.
2320         * nscd/gai.c: Likewise.
2321
2322         * configure.in (build_nscd): New substituted variable, set
2323         by --disable-build-nscd and defaults to $use_nscd.
2324         * configure: Regenerated.
2325         * config.make.in (build-nscd): New substituted variable.
2326         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
2327         Change conditional to require [$(build-nscd) = yes] as well.
2328         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
2329
2330         [BZ# 13696]
2331         * configure.in (use_nscd): New substituted variable, set by
2332         --disable-nscd.  If enabled, define USE_NSCD.
2333         * configure: Regenerated.
2334         * config.h.in: Add USE_NSCD.
2335         * config.make.in (use-nscd): New substituted variable.
2336         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
2337         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
2338         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
2339         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
2340         (CFLAGS-getgrnam_r.c): Likewise.
2341         (CFLAGS-initgroups.c): Likewise.
2342         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
2343         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
2344         Variables removed.
2345         * inet/getnetgrent_r.c
2346         (nscd_setnetgrent): New function, broken out of ...
2347         (setnetgrent): ... here.  Call it.
2348         (innetgr): Conditionalize nscd bits on [USE_NSCD].
2349         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
2350         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
2351         * nscd/Makefile (routines, aux): Move definitions after include of
2352         Makeconfig.  Conditionalize on [$(use-nscd) != no].
2353         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
2354         Conditionalize on [USE_NSCD].
2355         (is_nscd, nscd_init_cb): Likewise.
2356         (nss_load_library): Conditionalize init callback on [USE_NSCD].
2357         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
2358         * nss/nss_db/db-init.c: Likewise.
2359         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
2360         [USE_NSCD].
2361         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
2362         (make_request): Use it.
2363         (cache_valid_p): New function.
2364         (__check_pf): Use it.
2365         * NEWS: Add item for --disable-nscd.
2366
2367 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
2368
2369         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
2370         to support sed >= 4.2.1-20-ga9bf076.
2371         * configure: Regenerated.
2372
2373 2012-08-22  Roland McGrath  <roland@hack.frob.com>
2374
2375         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
2376         Conditionalize whole body on [IREL].
2377
2378 2012-08-22  Jeff Law <law@redhat.com>
2379
2380         [BZ #14505]
2381         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
2382         if the family is PF_UNSPEC.
2383
2384 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
2385
2386         * Makerules (lib-version): Rename from V.
2387         (install-lib-nosubdir): Change V to lib-version.
2388
2389 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
2390
2391         [BZ #14252]
2392         * powerpc32/power6/wcschr.c: New file.
2393         * powerpc32/power6/wcscpy.c: New file.
2394         * powerpc32/power6/wcsrchr.c: New file.
2395         * powerpc64/power6/wcschr.c: New file.
2396         * powerpc64/power6/wcscpy.c: New file.
2397         * powerpc64/power6/wcsrchr.c: New file.
2398
2399 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
2400
2401         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
2402         (two_way_short_needle): Use it.
2403         * string/strstr.c (AVAILABLE1_USES_J): Define.
2404         * string/strcasestr.c: Likewise.
2405
2406         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
2407         array references.
2408         * string/strcasestr.c (TOLOWER): Make side-effect safe.
2409
2410         [BZ #11607]
2411         * NEWS: Add an entry.
2412         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
2413         define their defaults.
2414         (two_way_short_needle): Detect end-of-string on-the-fly.
2415         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
2416         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
2417         * string/bug-strcasestr1.c: New test.
2418         * string/Makefile: Run it.
2419
2420 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
2421
2422         [BZ #11607]
2423         * string/str-two-way.h (two_way_short_needle): Optimize matching of
2424         the first character.
2425
2426 2012-08-21  Roland McGrath  <roland@hack.frob.com>
2427
2428         * csu/elf-init.c (__libc_csu_irel): Function removed.
2429         * csu/libc-start.c (apply_irel): New function.
2430         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
2431
2432 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
2433
2434         * sysdeps/unix/sysv/linux/kernel-features.h
2435         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
2436         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
2437         <kernel-features.h>.
2438         [__NR_fadvise64_64]: Make code unconditional.
2439         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
2440         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
2441         !__NR_fadvise64_64)]: Likewise.
2442         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
2443         !__NR_fadvise64_64))]: Likewise.
2444         [__NR_fadvise64]: Make code unconditional.
2445         [!__NR_fadvise64]: Remove conditional code.
2446         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
2447         <kernel-features.h>.
2448         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
2449         unconditional.
2450         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
2451         conditional code.
2452         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
2453         not include <kernel-features.h>.
2454         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
2455         unconditional.
2456         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
2457         conditional code.
2458         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
2459         include <kernel-features.h>.
2460         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
2461         unconditional.
2462         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
2463         conditional code.
2464
2465 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
2466
2467         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
2468         slight instruction rearrangements per scrollpipe analysis.
2469         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
2470
2471 2012-08-20  Roland McGrath  <roland@hack.frob.com>
2472
2473         * manual/syslog.texi (syslog; vsyslog, closelog):
2474         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
2475         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
2476
2477         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
2478         DSOCAPS to match condition on defining it.
2479
2480 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
2481
2482         * sysdeps/unix/sysv/linux/kernel-features.h
2483         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
2484         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
2485         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
2486         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
2487         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
2488         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
2489         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
2490         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
2491         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
2492         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
2493
2494         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
2495         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
2496
2497         * sysdeps/unix/sysv/linux/kernel-features.h
2498         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
2499         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
2500         unconditional.
2501         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
2502         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
2503         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
2504         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
2505         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
2506         Make code unconditional.
2507         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
2508         (__mmap64) [!__NR_mmap2]: Likewise.
2509         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
2510         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
2511         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
2512         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
2513         [__NR_mmap2]: Make code unconditional.
2514         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
2515         (__mmap64) [!__NR_mmap2]: Likewise.
2516
2517 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2518
2519         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
2520
2521 2012-08-18  Andreas Jaeger  <aj@suse.de>
2522
2523         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
2524
2525 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
2526
2527         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
2528         * include/unistd.h (__have_sock_cloexec): Likewise.
2529         (__have_pipe2): Likewise.
2530         (__have_dup3): Likewise.
2531
2532 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
2533
2534         [BZ #9685]
2535         * include/unistd.h (__have_pipe2): Change define into an extern int.
2536         (__have_dup3): Likewise.
2537         * socket/have_sock_cloexec.c: Include fcntl.h.
2538         (__have_pipe2): New variable.
2539         (__have_dup3): Likewise.
2540
2541 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
2542
2543         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
2544
2545 2012-08-17  Marek Polacek  <polacek@redhat.com>
2546
2547         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
2548         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
2549
2550 2012-08-17  Roland McGrath  <roland@hack.frob.com>
2551
2552         * configure.in: Add AC_SUBST for sysheaders.
2553         * configure: Regenerated.
2554         * config.make.in (sysheaders): New substituted variable.
2555
2556         * sysdeps/unix/mkfifo.c: Moved ...
2557         * sysdeps/posix/mkfifo.c: ... here.
2558         * sysdeps/unix/mkfifoat.c: Moved ...
2559         * sysdeps/posix/mkfifoat.c: ... here.
2560
2561         * sysdeps/unix/utime.c: Moved ...
2562         * sysdeps/posix/utime.c: ... here.
2563
2564         * sysdeps/unix/time.c: Moved ...
2565         * sysdeps/posix/time.c: ... here.
2566         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
2567         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
2568
2569         * sysdeps/unix/nice.c: Moved ...
2570         * sysdeps/posix/nice.c: ... here.
2571
2572         * sysdeps/unix/alarm.c: Moved ...
2573         * sysdeps/posix/alarm.c: ... here.
2574
2575         * intl/Makefile ($(codeset_mo)): Depend on the input file.
2576
2577 2012-08-17  Jeff Law <law@redhat.com>
2578
2579         * intl/Makefile (codeset_mo): New variable.
2580         ($(codeset_mo)): New target.
2581         (tst-codeset.out): Depend on that.  Remove explicit rule.
2582         (tst-gettext3.out, tst-gettext5.out): Likewise.
2583         (LOCPATH-ENV, tst-codeset-ENV): New variables.
2584         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
2585         * intl/tst-codeset.sh: Remove.
2586         * intl/tst-gettext3.sh: Likewise.
2587         * intl/tst-gettext5.sh: Likewise.
2588
2589 2012-08-17  Roland McGrath  <roland@hack.frob.com>
2590
2591         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
2592         * sysdeps/unix/syscalls.list: ... here.
2593
2594         * sysdeps/posix/getaddrinfo.c
2595         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
2596         (gaiconf_init, gaiconf_reload): Use them.
2597         [!_STATBUF_ST_NSEC]
2598         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
2599         Define using time_t rather than struct timespec.
2600
2601         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
2602         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
2603         Macros removed.
2604         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
2605         [!NO_THREADS].
2606         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
2607         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
2608         Likewise.
2609
2610         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
2611         __libc_cleanup_push argument.
2612
2613         * bits/param.h: New file.
2614         * misc/sys/param.h: New file.
2615         * include/sys/param.h: New file.
2616         * misc/Makefile (headers): Add bits/param.h.
2617         * sysdeps/generic/sys/param.h: File removed.
2618         * sysdeps/unix/sysv/linux/bits/param.h: New file.
2619         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
2620         * sysdeps/mach/hurd/bits/param.h: New file.
2621         * sysdeps/mach/hurd/sys/param.h: File removed.
2622
2623         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
2624         last change.
2625
2626         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
2627         [_IO_MTSAFE_IO].
2628         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
2629         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
2630         New macros.
2631
2632         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
2633         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
2634         rather than -D_IO_MTSAFE_IO conditionally.
2635         * stdio-common/Makefile (CPPFLAGS): Likewise.
2636         * wcsmbs/Makefile (CPPFLAGS): Likewise.
2637         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
2638         Use $(libio-mtsafe).
2639         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
2640         of -D_IO_MTSAFE_IO.
2641         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
2642         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
2643         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
2644         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
2645         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
2646         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
2647         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
2648         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
2649         (CFLAGS-fread_u_chk.c): Likewise.
2650         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
2651         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
2652         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
2653         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
2654         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
2655         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
2656         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
2657         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
2658         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
2659
2660         * libio/Makefile: Test [$(libc-reentrant) = yes]
2661         instead of [$(filter %REENTRANT, $(defines)) nonempty].
2662
2663         * Makeconfig
2664         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
2665         * sysdeps/pthread/configure: File removed.
2666         * sysdeps/pthread/Makeconfig: New file.
2667         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
2668         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
2669
2670 2012-08-16  Gary Benson  <gbenson@redhat.com>
2671
2672         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
2673         unmapping the first object in a namespace.
2674
2675 2012-08-16  Roland McGrath  <roland@hack.frob.com>
2676
2677         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
2678         (__internal_setnetgrent): ... this.  Add internal_function to
2679         definition.  Add libc_hidden_def.
2680         (setnetgrent): Update caller.
2681         (internal_endnetgrent): Renamed to ...
2682         (__internal_endnetgrent): ... this.  Add internal_function to
2683         definition.  Add libc_hidden_def.
2684         (endnetgrent): Update caller.
2685         (internal_getnetgrent_r): Renamed to ...
2686         (__internal_getnetgrent_r): ... this.  Add internal_function to
2687         definition.  Add libc_hidden_def.
2688         (__getnetgrent_r): Update caller.
2689         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
2690
2691 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
2692
2693         * stdlib/longlong.h: Update from GCC.
2694
2695 2012-08-16  Roland McGrath  <roland@hack.frob.com>
2696
2697         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
2698         on _QL, which is set by umul_ppmm but never used.
2699         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
2700         variables, which are set by GMP macros but never used.
2701         * stdio-common/_itowa.c (_itowa): Likewise.
2702         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
2703         * stdlib/mod_1.c (mpn_mod_1): Likewise.
2704
2705 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
2706
2707         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
2708         struct La_sh_regs is not constant.
2709         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
2710         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
2711         and struct La_sparc64_regs are not constant.
2712
2713 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
2714
2715         * sysdeps/unix/sysv/linux/kernel-features.h
2716         (__ASSUME_POSIX_TIMERS): Remove.
2717         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
2718         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2719         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
2720         Make code unconditional.
2721         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2722         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
2723         Make code unconditional.
2724         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2725         * sysdeps/unix/sysv/linux/clock_nanosleep.c
2726         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
2727         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2728         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
2729         Make code unconditional.
2730         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
2731         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
2732         (__libc_missing_posix_timers): Remove.
2733
2734 2012-08-15  Roland McGrath  <roland@hack.frob.com>
2735
2736         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
2737         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
2738
2739         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
2740
2741         * elf/dl-sym.c: Include <stdlib.h>.
2742
2743         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
2744         constants, which avoids warnings in 32-bit builds.
2745
2746         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
2747         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
2748
2749         * misc/lseek.c: File moved to ...
2750         * io/lseek.c: ... here.
2751
2752         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
2753
2754         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
2755         shifting LEN more than 31 bits at once.
2756
2757 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
2758
2759         [BZ #14195]
2760         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
2761         segmentation fault for a case of two empty input strings.
2762         * string/test-strncasecmp.c (check1): Renamed to...
2763         (bz12205): ...this.
2764         (bz14195): Add new testcase for two empty input strings and N > 0.
2765         (test_main): Call new testcase, adapt for renamed function.
2766
2767 2012-08-15  Andreas Jaeger  <aj@suse.de>
2768
2769         [BZ #14090]
2770         * crypt/md5test2.c: New test, based on test supplied by Serge
2771         Belyshev <belyshev@depni.sinp.msu.ru>.
2772         * crypt/Makefile (xtests): Add md5test-giant..
2773         * crypt/Makefile ($(objpfx)md5test-giant): Add.
2774
2775 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
2776
2777         [BZ #14090]
2778         * crypt/md5.c (md5_process_block): Don't assume the buffer
2779         length is less than 2**32.
2780         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
2781         length is less than 2**64.
2782
2783 2012-08-15  Roland McGrath  <roland@hack.frob.com>
2784
2785         * string/str-two-way.h: Include <sys/param.h>.
2786         (MAX): Macro removed.
2787
2788         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
2789         Move #define and #undef of memmove to just before and after
2790         including <string.h>.
2791
2792         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
2793         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
2794         and after including <string.h>.  Move declarations of
2795         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
2796         to before #include "string/memmove.c".
2797
2798         * include/dirent.h: Declare __getdirentries.
2799
2800         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
2801         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
2802
2803 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
2804
2805         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
2806         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
2807         * sysdeps/i386/configure: Regenerated.
2808         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
2809         STABS_CURRENT_FILE, and STABS_FUN.
2810         (END): Remove call to STABS_FUN_END.
2811         (STABS_CURRENT_FILE1): Delete.
2812         (STABS_CURRENT_FILE): Likewise.
2813         (STABS_FUN): Likewise.
2814         (STABS_FUN_END): Likewise.
2815         (STABS_FUN2): Likewise.
2816         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
2817         * sysdeps/x86_64/configure: Regenerated.
2818
2819 2012-08-14  Roland McGrath  <roland@hack.frob.com>
2820
2821         * elf/dl-open.c: Include <atomic.h>.
2822         * elf/dl-lookup.c: Likewise.
2823
2824 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
2825
2826         * sysdeps/unix/sysv/linux/kernel-features.h
2827         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
2828         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
2829         unconditionally.
2830         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
2831         unconditionally.
2832         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
2833         condition on __ASSUME_CLONE_THREAD_FLAGS.
2834
2835 2012-08-14  Andreas Jaeger  <aj@suse.de>
2836
2837         * sysdeps/i386/fpu/libm-test-ulps: Update.
2838
2839 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
2840
2841         * include/atomic.h (atomic_exchange_and_add): Split into ...
2842         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
2843         New atomic macros.
2844
2845 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
2846
2847         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2848
2849 2012-08-13  Jeff Law <law@redhat.com>
2850
2851         * manual/stdio.texi (snprintf): Clarify handling of the trailing
2852         null byte in the output string.
2853
2854 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
2855
2856         * sysdeps/unix/sysv/linux/kernel-features.h
2857         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
2858         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
2859         (__ASSUME_ARG_MAX_STACK_BASED): Define.
2860         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
2861         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
2862         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
2863         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
2864
2865 2012-08-09  Jeff Law <law@redhat.com>
2866
2867         [BZ #13939]
2868         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
2869         When avoid_arena is set, don't retry in the that arena.  Pick the
2870         next one, whatever it might be.
2871         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
2872         (arena_lock): Pass in new parameter to arena_get2.
2873         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
2874         arena_get2.
2875         (__libc_malloc): Unify retrying after main arena failure with
2876         __libc_memalign version.
2877         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
2878
2879 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
2880
2881         [BZ #14166]
2882         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
2883         to __redirect_strstr.
2884         (__strstr_sse42): Use typeof __redirect_strstr.
2885         (__strstr_ia32): Likewise.
2886         (__libc_strstr): New prototype.
2887         (strstr): Renamed to ...
2888         (__libc_strstr): This.
2889         (strstr): New strong alias of __libc_strstr.
2890         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
2891         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
2892         __redirect_time.
2893         Include <time.h>.
2894         (__libc_time): New prototype.
2895         (time_ifunc): Replace time with __libc_time.
2896         (time): New strong alias and hidden definition of __libc_time.
2897         (__GI_time): Remove strong alias.
2898         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
2899         Include <stddef.h>.
2900         (memmove): Redefined to __redirect_memmove.
2901         (__memmove_sse2): Use typeof __redirect_memmove.
2902         (__memmove_ssse3): Likewise.
2903         (__memmove_ssse3_back): Likewise.
2904         (__libc_memmove): New prototype.
2905         (memmove): Renamed to ...
2906         (__libc_memmove): This.
2907         (memmove): New strong alias of __libc_memmove.
2908
2909 2012-08-08  Mark Salter  <msalter@redhat.com>
2910
2911         * elf/elf.h
2912         (R_MN10300_TLS_GD): Define.
2913         (R_MN10300_TLS_LD): Likewise.
2914         (R_MN10300_TLS_LDO): Likewise.
2915         (R_MN10300_TLS_GOTIE): Likewise.
2916         (R_MN10300_TLS_IE): Likewise.
2917         (R_MN10300_TLS_LE): Likewise.
2918         (R_MN10300_TLS_DTPMOD): Likewise.
2919         (R_MN10300_TLS_DTPOFF): Likewise.
2920         (R_MN10300_TLS_TPOFF): Likewise.
2921         (R_MN10300_SYM_DIFF): Likewise.
2922         (R_MN10300_ALIGN): Likewise.
2923         (R_MN10300_NUM): Update.
2924
2925 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
2926
2927         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
2928         Remove.
2929
2930 2012-08-08  Roland McGrath  <roland@hack.frob.com>
2931
2932         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
2933
2934         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
2935         sysdeps/unix -> sysdeps/posix move.
2936         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
2937
2938 2012-08-07      Allan McRae     <allan@archlinux.org>
2939
2940         [BZ #14303]
2941         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
2942         (SUNOS_CPP): Likewise.
2943         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
2944         not found.
2945         (open_input): Call CPP using execvp.
2946
2947 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
2948
2949         * sysdeps/unix/sysv/linux/kernel-features.h
2950         (__ASSUME_PROT_GROWSUPDOWN): Remove.
2951         (__ASSUME_NO_CLONE_DETACHED): Likewise.
2952         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
2953         (__ASSUME_WAITID_SYSCALL): Likewise.
2954         * sysdeps/unix/sysv/linux/dl-execstack.c
2955         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
2956         code unconditional.
2957         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
2958         conditional code.
2959         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
2960         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
2961         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
2962         code.
2963         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
2964         unconditional.
2965         [__ASSUME_WAITID_SYSCALL]: Likewise.
2966         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
2967
2968 2012-08-07  Roland McGrath  <roland@hack.frob.com>
2969
2970         * sysdeps/unix/closedir.c: Renamed to ...
2971         * sysdeps/posix/closedir.c: ... here.
2972         * sysdeps/unix/dirfd.c: Renamed to ...
2973         * sysdeps/posix/dirfd.c: ... here.
2974         * sysdeps/unix/dirstream.h: Renamed to ...
2975         * sysdeps/posix/dirstream.h: ... here.
2976         * sysdeps/unix/fdopendir.c: Renamed to ...
2977         * sysdeps/posix/fdopendir.c: ... here.
2978         * sysdeps/unix/opendir.c: Renamed to ...
2979         * sysdeps/posix/opendir.c: ... here.
2980         * sysdeps/unix/readdir.c: Renamed to ...
2981         * sysdeps/posix/readdir.c: ... here.
2982         * sysdeps/unix/readdir_r.c: Renamed to ...
2983         * sysdeps/posix/readdir_r.c: ... here.
2984         * sysdeps/unix/rewinddir.c: Renamed to ...
2985         * sysdeps/posix/rewinddir.c: ... here.
2986         * sysdeps/unix/seekdir.c: Renamed to ...
2987         * sysdeps/posix/seekdir.c: ... here.
2988         * sysdeps/unix/telldir.c: Renamed to ...
2989         * sysdeps/posix/telldir.c: ... here.
2990         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
2991         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
2992         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
2993         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
2994
2995         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
2996         * bits/fcntl.h: ... here.
2997
2998         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
2999         not 0.
3000         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
3001         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
3002         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
3003         (struct flock): Move l_start, l_len to the beginning.
3004         Use __pid_t for l_pid.
3005         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
3006         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
3007         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
3008         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
3009         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
3010         [__USE_LARGEFILE64] (struct flock64): New type.
3011         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
3012
3013         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
3014         * bits/dirent.h: ... here.
3015
3016         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
3017         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
3018
3019 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
3020
3021         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
3022         Change from 2.6.0 to 2.6.16.
3023         * sysdeps/unix/sysv/linux/configure: Regenerated.
3024         * sysdeps/unix/sysv/linux/kernel-features.h
3025         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
3026         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
3027         version.
3028         (__ASSUME_UTIMES): Likewise.
3029         (__ASSUME_CLONE_STOPPED): Remove.
3030         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
3031         architectures, not kernel version.
3032         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
3033         (__ASSUME_NO_CLONE_DETACHED): Likewise.
3034         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
3035         (__ASSUME_WAITID_SYSCALL): Likewise.
3036         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
3037         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
3038         * README: State 2.6.16 as minimum Linux kernel version.  Do not
3039         refer to older versions.
3040
3041 2012-08-06  Roland McGrath  <roland@hack.frob.com>
3042
3043         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
3044         Define alphasort64 as an alias.
3045         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
3046         Define versionsort64 as an alias.
3047         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
3048         Define scandir64 as an alias.
3049         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
3050         Define scandirat64 as an alias.
3051         * dirent/alphasort64.c (alphasort64):
3052         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
3053         * dirent/versionsort64.c: Likewise.
3054         * dirent/scandir64.c: Likewise.
3055         * dirent/scandirat64.c: Likewise.
3056         * sysdeps/wordsize-64/alphasort.c: File removed.
3057         * sysdeps/wordsize-64/alphasort64.c: File removed.
3058         * sysdeps/wordsize-64/scandir.c: File removed.
3059         * sysdeps/wordsize-64/scandir64.c: File removed.
3060         * sysdeps/wordsize-64/scandirat.c: File removed.
3061         * sysdeps/wordsize-64/scandirat64.c: File removed.
3062         * sysdeps/wordsize-64/versionsort.c: File removed.
3063         * sysdeps/wordsize-64/versionsort64.c: File removed.
3064         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
3065         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
3066         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
3067         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
3068         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
3069         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
3070         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
3071         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
3072
3073         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
3074         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
3075         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
3076         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
3077         [defined __arch64__ || defined __sparcv9]
3078         (__INO_T_MATCHES_INO64_T): New macro.
3079         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
3080         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
3081         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
3082         * sysdeps/unix/sysv/linux/bits/dirent.h
3083         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
3084         (_DIRENT_MATCHES_DIRENT64): New macro.
3085
3086         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
3087         Define lockf64 as an alias.
3088         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
3089         Define fseeko64 as an alias.
3090         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
3091         Define ftello64 as an alias.
3092         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
3093         Define _IO_fgetpos64 and fgetpos64 as aliases.
3094         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
3095         Define _IO_fsetpos64 and fsetpos64 as aliases.
3096         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
3097         Conditionalize body on this.
3098         * libio/fseeko64.c: Likewise.
3099         * libio/ftello64.c: Likewise.
3100         * libio/iofgetpos64.c: Likewise.
3101         * libio/iofsetpos64.c: Likewise.
3102         * sysdeps/wordsize-64/lockf.c: File removed.
3103         * sysdeps/wordsize-64/lockf64.c: File removed.
3104         * sysdeps/wordsize-64/fseeko.c: File removed.
3105         * sysdeps/wordsize-64/fseeko64.c: File removed.
3106         * sysdeps/wordsize-64/ftello.c: File removed.
3107         * sysdeps/wordsize-64/ftello64.c: File removed.
3108         * sysdeps/wordsize-64/iofgetpos.c: File removed.
3109         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
3110         * sysdeps/wordsize-64/iofsetpos.c: File removed.
3111         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
3112         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
3113         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
3114         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
3115         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
3116         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
3117         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
3118         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
3119         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
3120         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
3121         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
3122
3123         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
3124         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
3125         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
3126         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
3127         [defined __arch64__ || defined __sparcv9]
3128         (__OFF_T_MATCHES_OFF64_T): New macro.
3129         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
3130         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
3131         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
3132         (__OFF_T_MATCHES_OFF64_T): New macro.
3133
3134 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
3135
3136         * stdlib/secure-getenv.c (__secure_getenv): Replace
3137         GLIBC_2_16 with GLIBC_2_17.
3138
3139 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
3140
3141         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
3142         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
3143
3144 2012-08-03  David S. Miller  <davem@davemloft.net>
3145
3146         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3147
3148 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
3149
3150         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
3151         Remove.
3152         (__ASSUME_CORRECT_SI_PID): Likewise.
3153         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
3154         (__ASSUME_TMPFS_NAME): Likewise.
3155         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
3156         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
3157         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
3158         (HAVE_AUX_SECURE): Make definition unconditional.
3159         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
3160         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
3161
3162 2012-08-03  Roland McGrath  <roland@hack.frob.com>
3163
3164         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
3165         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
3166         * sysdeps/mach/hurd/eloop-threshold.h: New file.
3167         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
3168         __eloop_threshold instead of SYMLOOP_MAX.
3169
3170         * sysdeps/generic/eloop-threshold.h: New file.
3171         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
3172         of MAXSYMLINKS.
3173         * elf/chroot_canon.c (chroot_canon): Likewise.
3174
3175 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
3176
3177         [BZ #13717]
3178         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
3179         Change to 2.6.0 everywhere.
3180         * sysdeps/unix/sysv/linux/configure: Regenerated.
3181         * sysdeps/unix/sysv/linux/kernel-features.h
3182         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
3183         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
3184         kernel versions.
3185         (__ASSUME_POSIX_TIMERS): Define unconditionally.
3186         (__ASSUME_FUTEX_REQUEUE): Remove.
3187         (__ASSUME_STATFS64): Define unconditionally.
3188         (__ASSUME_AT_SECURE): Likewise.
3189         (__ASSUME_CORRECT_SI_PID): Likewise.
3190         (__ASSUME_TGKILL): Define without depending on kernel version for
3191         i386.
3192         (__ASSUME_UTIMES): Likewise.
3193         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
3194         kernel version.
3195         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
3196         (__ASSUME_TMPFS_NAME): Likewise.
3197         * README: Update reference to Linux kernel versions.
3198
3199 2012-08-02  Marek Polacek  <polacek@redhat.com>
3200
3201         [BZ# 14150]
3202         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
3203         libc_cv_asm_type_prefix with %.
3204         * configure: Regenerated.
3205         * include/libc-symbols.h: Remove comment about
3206         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
3207         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
3208         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
3209         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
3210         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
3211         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
3212         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
3213         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
3214         * elf/tst-unique2mod1.c: Likewise.
3215         * elf/tst-unique1mod2.c: Likewise.
3216         * elf/tst-unique1mod1.c: Likewise.
3217         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
3218         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
3219         Replace ASM_TYPE_DIRECTIVE with .type.
3220         * sysdeps/s390/s390-64/sysdep.h: Likewise.
3221         * sysdeps/i386/sysdep.h: Likewise.
3222         * sysdeps/x86_64/sysdep.h: Likewise.
3223         * sysdeps/sh/sysdep.h: Likewise.
3224         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
3225         Do not define ASM_TYPE_DIRECTIVE.
3226         * sysdeps/powerpc/sysdep.h: Likewise.
3227         * sysdeps/powerpc/powerpc32/sysdep.h:
3228         Replace ASM_TYPE_DIRECTIVE with .type.
3229         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
3230         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
3231         * sysdeps/i386/fpu/e_powf.S: Likewise.
3232         * sysdeps/i386/fpu/e_expl.S: Likewise.
3233         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
3234         * sysdeps/i386/fpu/e_acosh.S: Likewise.
3235         * sysdeps/i386/fpu/e_pow.S: Likewise.
3236         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
3237         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
3238         * sysdeps/i386/fpu/s_expm1.S: Likewise.
3239         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
3240         * sysdeps/i386/fpu/e_log2.S: Likewise.
3241         * sysdeps/i386/fpu/e_log2l.S: Likewise.
3242         * sysdeps/i386/fpu/e_scalb.S: Likewise.
3243         * sysdeps/i386/fpu/e_powl.S: Likewise.
3244         * sysdeps/i386/fpu/e_log10f.S: Likewise.
3245         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
3246         * sysdeps/i386/fpu/e_logl.S: Likewise.
3247         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
3248         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
3249         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
3250         * sysdeps/i386/fpu/e_log2f.S: Likewise.
3251         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
3252         * sysdeps/i386/fpu/e_log.S: Likewise.
3253         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
3254         * sysdeps/i386/fpu/e_logf.S: Likewise.
3255         * sysdeps/i386/fpu/e_log10l.S: Likewise.
3256         * sysdeps/i386/fpu/e_atanh.S: Likewise.
3257         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
3258         * sysdeps/i386/fpu/e_log10.S: Likewise.
3259         * sysdeps/i386/fpu/s_frexp.S: Likewise.
3260         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
3261         * sysdeps/i386/fpu/s_asinh.S: Likewise.
3262         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
3263         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
3264         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
3265         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
3266         * sysdeps/i386/i686/strtok.S: Likewise.
3267         * sysdeps/i386/i386-mcount.S: Likewise.
3268         * sysdeps/i386/strtok.S: Likewise.
3269         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
3270         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
3271         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
3272         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
3273         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
3274         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
3275         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
3276         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
3277         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
3278         * sysdeps/x86_64/_mcount.S: Likewise.
3279         * sysdeps/x86_64/strtok.S: Likewise.
3280         * sysdeps/sh/_mcount.S: Likewise.
3281
3282 2012-08-01  Roland McGrath  <roland@hack.frob.com>
3283
3284         * libio/iofopen.c: Include <fcntl.h>.
3285         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
3286         (_IO_fopen64, fopen64): Define as aliases.
3287         * libio/iofopen64.c: Include <fcntl.h>.
3288         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
3289         Conditionalize body on this.
3290         * sysdeps/wordsize-64/iofopen.c: File removed.
3291         * sysdeps/wordsize-64/iofopen64.c: File removed.
3292
3293 2012-08-01  Marek Polacek  <polacek@redhat.com>
3294
3295         * libc/Makeconfig: Use elf in place of binfmt-subdir.
3296         Use dlfcn directly instead of a variable.
3297         (binfmt-subdir): Do not define.
3298         (dlfcn): Likewise.
3299
3300 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
3301
3302         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
3303         Remove all definitions.
3304         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
3305         <kernel-features.h>.
3306         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
3307         (miss_F_GETOWN_EX): Remove all definitions.
3308         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
3309         macro definition.
3310         [!__ASSUME_FCNTL64]: Remove conditional code.
3311         [__ASSUME_FCNTL64]: Make code unconditional.
3312         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
3313         <kernel-features.h>.
3314         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
3315         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
3316         (lockf64) [__NR_fcntl64]: Make code unconditional.
3317         (lockf64) [__ASSUME_FCNTL64]: Likewise.
3318
3319         * sysdeps/unix/sysv/linux/kernel-features.h
3320         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
3321         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
3322         Make code unconditional.
3323         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
3324         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
3325         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
3326         [__NR_vfork]: Make code unconditional.
3327         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
3328         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
3329         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
3330         [__NR_vfork]: Make code unconditional.
3331         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
3332         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
3333
3334 2012-08-01  Roland McGrath  <roland@hack.frob.com>
3335
3336         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
3337         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
3338
3339         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
3340         Define mkstemp64 as an alias.
3341         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
3342         Define mkstemps64 as an alias.
3343         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
3344         Define mkostemp64 as an alias.
3345         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
3346         Define mkostemps64 as an alias.
3347         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
3348         Conditionalize body on this.
3349         * misc/mkostemp64.c: Likewise.
3350         * misc/mkostemps64.c: Likewise.
3351         * misc/mkstemps64.c: Likewise.
3352         * sysdeps/wordsize-64/mkstemp64.c: File removed.
3353         * sysdeps/wordsize-64/mkostemp64.c: File removed.
3354         * sysdeps/wordsize-64/mkostemp.c: File removed.
3355         * sysdeps/wordsize-64/mkstemp.c: File removed.
3356         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
3357         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
3358         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
3359         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
3360
3361         [BZ #14138]
3362         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
3363         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
3364         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
3365         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
3366
3367         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
3368         compat_symbol macros from <shlib-compat.h> rather than the underlying
3369         default_symbol_version and symbol_version macros, so that DEFAULT
3370         lines in shlib-versions are respected.
3371         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
3372
3373 2012-08-01  Florian Weimer  <fweimer@redhat.com>
3374
3375         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
3376         Declare with warn_unused_result.
3377         (setgid, setregid, setegid, setresgid): Likewise.
3378         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
3379         Likewise.
3380         * WUR-REPORT: Remove set*id functions.
3381
3382 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
3383
3384         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
3385
3386 2012-07-31  Roland McGrath  <roland@hack.frob.com>
3387
3388         * include/sys/socket.h (__libc_accept, __libc_accept4):
3389         Add attribute_hidden.
3390         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
3391
3392         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
3393         use of PTR_MANGLE.
3394         * inet/getnetgrent_r.c (setup): Likewise.
3395
3396         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
3397
3398 2012-07-31  David S. Miller  <davem@davemloft.net>
3399
3400         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3401
3402 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
3403
3404         [BZ #13629]
3405         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
3406         value between 1.0 and 2.0 and smaller part has absolute value less
3407         than 1.0.
3408         * math/s_clog10.c (__clog10): Likewise.
3409         * math/s_clog10f.c (__clog10f): Likewise.
3410         * math/s_clog10l.c (__clog10l): Likewise.
3411         * math/s_clogf.c (__clogf): Likewise.
3412         * math/s_clogl.c (__clogl): Likewise.
3413         * math/libm-test.inc (clog_test): Add more tests.
3414         (clog10_test): Likewise.
3415         * sysdeps/i386/fpu/libm-test-ulps: Update.
3416         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3417
3418 2012-07-31  Florian Weimer  <fweimer@redhat.com>
3419
3420         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
3421         Exit with zero in case no suitable GID is found, and write a
3422         message to standard error.
3423
3424 2012-07-30  Roland McGrath  <roland@hack.frob.com>
3425
3426         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
3427         rather than to 1.
3428         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
3429         (MAXPATHLEN): Removed.
3430         (NOGROUP, NODEV): New macros.
3431         (setbit, clrbit, isset, isclr): New macros.
3432         (howmany, roundup, powerof2): New macros.
3433         (DEV_BSIZE): New macro.
3434
3435         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
3436         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
3437
3438         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
3439         definition on [!__NO_LONG_DOUBLE_MATH].
3440
3441         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
3442         PTR_MANGLE and PTR_DEMANGLE.
3443
3444         * socket/accept4.c (accept4): Rename to __libc_accept4.
3445         Define accept4 as a weak alias.
3446
3447         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
3448         on [_DIRENT_HAVE_D_TYPE].
3449         * io/ftw.c (ftw_dir): Likewise.
3450
3451         * io/xmknod.c (__xmknod): Don't check PATH for being null.
3452
3453         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
3454
3455         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
3456         Use the BSD numbers rather than the arbitrary ones we had.
3457         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
3458         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
3459         (SIGXCPU, SIGXFSZ): New macros.
3460         (_NSIG): Now 32.
3461
3462         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
3463         initializer on [_LIBC_REENTRANT].
3464
3465         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
3466         definitions inside [_POSIX_MAPPED_FILES].
3467
3468         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
3469
3470         * dirent/opendir.c: Include <fcntl.h>.
3471
3472         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
3473         (__libc_getspecific): Likewise.
3474         (__libc_key_create): Likewise.
3475
3476         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
3477         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
3478         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
3479         (tmpfile64): Define as alias.
3480         * sysdeps/wordsize-64/tmpfile.c: File removed.
3481         * sysdeps/wordsize-64/tmpfile64.c: File removed.
3482         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
3483         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
3484
3485         * stdio-common/vfscanf.c: Include <stdbool.h>.
3486         * nss/makedb.c: Likewise.
3487         * stdio-common/_i18n_number.h: Likewise.
3488         * argp/argp-help.c: Likewise.
3489         * posix/wordexp.c: Likewise.
3490         * sysdeps/posix/spawni.c: Likewise.
3491         * nss/nss_files/files-initgroups.c: Likewise.
3492         * stdio-common/reg-modifier.c: Include <stdlib.h>.
3493         * nss/nss_files/files-initgroups.c: Likewise.
3494         * nss/nss_db/db-netgrp.c: Likewise.
3495         * nss/nss_db/db-initgroups.c: Likewise.
3496         * io/fchmodat.c: Include <sys/stat.h>.
3497
3498         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
3499         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
3500
3501         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
3502         [HAVE_MMAP].
3503
3504         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
3505         Add multiple inclusion protection.
3506
3507 2012-07-27  David S. Miller  <davem@davemloft.net>
3508
3509         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3510
3511 2012-07-27  Gary Benson  <gbenson@redhat.com>
3512
3513         [BZ #14298]
3514         * elf/rtld.c: Include <stap-probe.h>.
3515         (dl_main): Added static probes "init_start" and "init_complete".
3516         * elf/dl-load.c: Include <stap-probe.h>.
3517         (lose): Take new parameter "nsid".
3518         Added static probe "map_failed".
3519         (_dl_map_object_from_fd): Pass namespace id to lose.
3520         Added static probe "map_start".
3521         (open_verify): Pass namespace id to lose.
3522         * elf/dl-open.c: Include <stap-probe.h>.
3523         (dl_open_worker) Added static probes "map_complete", "reloc_start"
3524         and "reloc_complete".
3525         * elf/dl-close.c: Include <stap-probe.h>.
3526         (_dl_close_worker): Added static probes "unmap_start" and
3527         "unmap_complete".
3528         * elf/rtld-debugger-interface.txt: New file documenting the above.
3529
3530 2012-07-26  Roland McGrath  <roland@hack.frob.com>
3531
3532         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
3533         rather than a string variable.
3534         * sunrpc/rpc_main.c (h_output): Likewise.
3535         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
3536
3537 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
3538
3539         * inet/check_native.c: New file.
3540
3541 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
3542
3543         [BZ #13629]
3544         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
3545         if larger part has absolute value 1.0.
3546         * math/s_clog10.c (__clog10): Likewise.
3547         * math/s_clog10f.c (__clog10f): Likewise.
3548         * math/s_clog10l.c (__clog10l): Likewise.
3549         * math/s_clogf.c (__clogf): Likewise.
3550         * math/s_clogl.c (__clogl): Likewise.
3551         * math/libm-test.inc (clog_test): Add more tests.
3552         (clog10_test): Likewise.
3553         * sysdeps/i386/fpu/libm-test-ulps: Update.
3554         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3555
3556         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
3557         (pltexit): Likewise.
3558         (La_regs): Likewise.
3559         (La_retval): Likewise.
3560         (int_retval): Likewise.
3561         Update #error for removed macros to refer only to definitions in
3562         tst-audit.h.
3563         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
3564         macro.
3565         (pltexit): Likewise.
3566         (La_regs): Likewise.
3567         (La_retval): Likewise.
3568         (int_retval): Likewise.
3569         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
3570         macro.
3571         (pltexit): Likewise.
3572         (La_regs): Likewise.
3573         (La_retval): Likewise.
3574         (int_retval): Likewise.
3575         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
3576         macro.
3577         (pltexit): Likewise.
3578         (La_regs): Likewise.
3579         (La_retval): Likewise.
3580         (int_retval): Likewise.
3581         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
3582         macro.
3583         (pltexit): Likewise.
3584         (La_regs): Likewise.
3585         (La_retval): Likewise.
3586         (int_retval): Likewise.
3587         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
3588         macro.
3589         (pltexit): Likewise.
3590         (La_regs): Likewise.
3591         (La_retval): Likewise.
3592         (int_retval): Likewise.
3593         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
3594         macro.
3595         (pltexit): Likewise.
3596         (La_regs): Likewise.
3597         (La_retval): Likewise.
3598         (int_retval): Likewise.
3599         * sysdeps/generic/tst-audit.h: Update comment to refer only to
3600         macro definitions in tst-audit.h.
3601         * sysdeps/i386/tst-audit.h: New file.
3602         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
3603         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
3604         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
3605         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
3606         * sysdeps/sh/tst-audit.h: Likewise.
3607         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
3608         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
3609         * sysdeps/x86_64/tst-audit.h: Likewise.
3610
3611 2012-07-26  Andreas Jaeger  <aj@suse.de>
3612
3613         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
3614         ptrace.
3615
3616         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
3617         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
3618         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
3619         PTRACE_O_MASK.
3620         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
3621         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
3622         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
3623
3624         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
3625         value.
3626
3627         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
3628         _sigsys.
3629         (si_call_addr, si_syscall, si_arch): Define new macro.
3630         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
3631         _sigsys.
3632         (si_call_addr, si_syscall, si_arch): Define new marcro.
3633         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
3634         _sigsys.
3635         (si_call_addr, si_syscall, si_arch): Define new macro.
3636         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
3637         _sigsys.
3638         (si_call_addr, si_syscall, si_arch): Define new macro.
3639
3640 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
3641
3642         [BZ #13717]
3643         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
3644         Change to 2.4.21 where previously 2.4.1.
3645         * sysdeps/unix/sysv/linux/configure: Regenerated.
3646         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
3647         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
3648         Linux kernel version.
3649         (__ASSUME_STD_AUXV): Remove.
3650         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
3651         kernel version.
3652         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
3653         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
3654         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
3655         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
3656         (__ASSUME_NETLINK_SUPPORT): Likewise.
3657         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
3658         (__no_netlink_support): Remove conditional definition.
3659         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
3660         Remove.
3661         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
3662         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
3663         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
3664         (if_nameindex_ioctl): Remove.
3665         (if_nameindex_netlink): Do not handle __no_netlink_support.
3666         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
3667         code.
3668         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
3669         Remove conditional code.
3670         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
3671         code.
3672         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
3673         unconditional.
3674         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
3675         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
3676         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
3677         Remove.
3678         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
3679         [!__ASSUME_STD_AUXV]: Remove conditional code.
3680         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
3681         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
3682         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
3683         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
3684         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
3685         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
3686         code.
3687         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
3688         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
3689         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
3690         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
3691         conditional code.
3692         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
3693         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
3694         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
3695         code.
3696         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
3697         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
3698         conditional code.
3699         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
3700         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
3701         code unconditional.
3702         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3703         conditional code.
3704         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
3705         unconditional.
3706         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3707         conditional code.
3708         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
3709         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
3710         unconditional.
3711         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3712         conditional code.
3713         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
3714         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
3715         code unconditional.
3716         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3717         conditional code.
3718         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
3719         unconditional.
3720         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3721         conditional code.
3722         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
3723         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
3724         code unconditional.
3725         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3726         conditional code.
3727         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
3728         unconditional.
3729         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
3730         conditional code.
3731
3732 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
3733
3734         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
3735         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
3736         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
3737         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
3738         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
3739         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
3740         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
3741         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
3742         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
3743         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
3744         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
3745         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
3746         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
3747         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
3748         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
3749         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
3750         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
3751         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
3752         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
3753         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
3754         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
3755         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
3756         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
3757
3758 2012-07-25  Florian Weimer  <fweimer@redhat.com>
3759
3760         * Versions.def: Add GLIBC_2.17.
3761         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
3762         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
3763         Introduce __libc_secure_getenv.
3764         * stdlib/Versions (2.17): Add secure_getenv
3765         (GLIBC_PRIVATE): Add __libc_secure_getenv.
3766         * stdlib/secure-getenv.c: Rename __secure_getenv to
3767         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
3768         symbol __secure_getenv for GLIBC_2.0.
3769         * stdlib/tst-secure-getenv.c: New.
3770         * stdlib/Makefile (tests): Add testcase.
3771         * manual/startup.texi (Environment Access): Document
3772         secure_getenv.
3773         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
3774         __libc_secure_getenv.
3775         * inet/ruserpass.c (ruserpass): Likewise.
3776         * malloc/mtrace.c (mtrace): Likewise.
3777         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
3778         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
3779         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
3780         * sysdeps/posix/tempname.c: Likewise.  Evaluate
3781         HAVE_SECURE_GETENV.
3782         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
3783         __secure_getenv to __libc_secure_getenv.
3784         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
3785         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
3786         Likewise.
3787         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
3788         Likewise.
3789         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
3790         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
3791         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
3792         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
3793         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
3794         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
3795         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
3796
3797 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
3798
3799         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
3800         (struct La_i86_retval): Likewise.
3801         (struct La_x86_64_regs): Likewise.
3802         (struct La_x86_64_retval): Likewise.
3803         (struct La_x32_regs): Likewise.
3804         (struct La_x32_retval): Likewise.
3805         (struct La_ppc32_regs): Likewise.
3806         (struct La_ppc32_retval): Likewise.
3807         (struct La_ppc64_regs): Likewise.
3808         (struct La_ppc64_retval): Likewise.
3809         (struct La_sh_regs): Likewise.
3810         (struct La_sh_retval): Likewise.
3811         (struct La_s390_32_regs): Likewise.
3812         (struct La_s390_32_retval): Likewise.
3813         (struct La_s390_64_regs): Likewise.
3814         (struct La_s390_64_retval): Likewise.
3815         (struct La_sparc32_regs): Likewise.
3816         (struct La_sparc32_retval): Likewise.
3817         (struct La_sparc64_regs): Likewise.
3818         (struct La_sparc64_retval): Likewise.
3819         (struct audit_ifaces): Remove architecture-specific pltenter and
3820         pltexit members.
3821         * sysdeps/i386/ldsodefs.h: New file.
3822         * sysdeps/powerpc/ldsodefs.h: Likewise.
3823         * sysdeps/s390/ldsodefs.h: Likewise.
3824         * sysdeps/sh/ldsodefs.h: Likewise.
3825         * sysdeps/sparc/ldsodefs.h: Likewise.
3826         * sysdeps/x86_64/ldsodefs.h: Likewise.
3827
3828 2012-07-25  Marek Polacek  <polacek@redhat.com>
3829
3830         [BZ #6808]
3831         * math/libm-test.inc (yn_test): Add another test.
3832         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
3833         to ERANGE when the result is +-Inf.
3834         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
3835         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
3836         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
3837         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
3838
3839 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
3840
3841         * conform/data/time.h-data (NULL): Use macro-constant.  Require
3842         equal to 0.
3843         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
3844         clock_t.
3845         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
3846
3847 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
3848
3849         * configure.in <sysdeps resolving>: Correct printing
3850         Implies_before.
3851         * configure: Regenerate.
3852
3853 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
3854
3855         * math/w_ilogb.c: Include <limits.h>.
3856         * math/w_ilogbl.c: Likewise.
3857
3858 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
3859
3860         * manual/lang.texi (__va_copy): Document primarily as ISO C99
3861         va_copy.  Document allowing for unavailable va_copy only as
3862         pre-C99 compatibility.
3863         * manual/string.texi (Copying and Concatenation): Use va_copy
3864         instead of __va_copy in concat example.
3865
3866 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
3867
3868         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
3869         (__sendto): Use create_address_port.  Initialize APORT and deallocate
3870         it if not null.
3871
3872         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
3873         with O_NOLINK passed to __file_name_lookup.
3874
3875         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
3876         with O_NOLINK passed to __file_name_lookup.
3877
3878         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
3879         negative N or less than NGIDS.
3880
3881         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
3882         type to string_t.  Set ERANGE as errno and return it if NAME is not big
3883         enough.  Use memcpy instead of strncpy.
3884
3885 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
3886
3887         * elf/Makefile (check-data): Remove.
3888         (localplt.data): New vpath directive.
3889         ($(objpfx)check-localplt.out): Use localplt.data from vpath
3890         instead of $(check-data).
3891         * scripts/data/localplt-generic.data: Move to ...
3892         * sysdeps/generic/localplt.data: ... here.
3893         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
3894         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
3895         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
3896         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
3897         ... here.
3898         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
3899         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
3900         ... here.
3901         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
3902         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
3903         ... here.
3904         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
3905         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
3906         ... here.
3907         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
3908         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
3909         ... here.
3910         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
3911         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
3912         ... here.
3913
3914 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3915
3916         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
3917         PPC32 and PPC64 files.
3918         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
3919         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
3920
3921 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3922
3923         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
3924         __makecontext_ret to ...
3925         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
3926         ... here and call exit if uc_link is NULL.  New file.
3927         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
3928         __makecontext_ret.S.
3929         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
3930         __makecontext_ret to ...
3931         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
3932         ... here and call exit if uc_link is NULL.  New file.
3933         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
3934         __makecontext_ret.S.
3935
3936 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3937
3938         * elf/elf.h (R_390_IRELATIVE): New definition.
3939         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
3940         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
3941         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
3942         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
3943         (elf_machine_lazy_rel): Likewise.
3944         * sysdeps/s390/dl-irel.h: New file.
3945         * sysdeps/s390/s390-64/memcpy.S: New asm code.
3946         * sysdeps/s390/s390-64/memset.S: New asm code.
3947         * sysdeps/s390/s390-64/memcmp.S: New asm code.
3948         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
3949         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
3950         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
3951         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
3952         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
3953         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
3954         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
3955         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
3956         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
3957         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
3958         * sysdeps/s390/s390-32/memcpy.S: New asm code.
3959         * sysdeps/s390/s390-32/memset.S: New asm code.
3960         * sysdeps/s390/s390-32/memcmp.S: New asm code.
3961
3962 2012-07-17  Marek Polacek  <polacek@redhat.com>
3963
3964         [BZ #14349]
3965         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
3966         * sysdeps/s390/s390-64/configure.in: Likewise.
3967         * sysdeps/sparc/configure.in: Likewise.
3968         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
3969         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
3970         * sysdeps/i386/configure.in: Likewise.
3971         * sysdeps/x86_64/configure.in: Likewise.
3972         * sysdeps/sh/configure.in: Likewise.
3973         * sysdeps/s390/s390-32/configure: Regenerated.
3974         * sysdeps/s390/s390-64/configure: Likewise.
3975         * sysdeps/x86_64/configure: Likewise.
3976         * sysdeps/sh/configure: Likewise.
3977         * sysdeps/powerpc/powerpc64/configure: Likewise.
3978         * sysdeps/powerpc/powerpc32/configure: Likewise.
3979         * sysdeps/sparc/configure: Likwise.
3980         * sysdeps/i386/configure: Likewise.
3981
3982         * elf/dl-open.c: Comment fixes.
3983
3984 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
3985
3986         * Makefile [CXX] (check-data): Remove.
3987         [CXX] (c++-types.data): New vpath directive.
3988         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
3989         vpath.  Do not allow for C++ type data being missing.
3990         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
3991         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
3992         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
3993         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
3994         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
3995         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
3996         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
3997         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
3998         ... here.
3999         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
4000         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
4001         ... here.
4002         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
4003         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
4004         ... here.
4005         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
4006         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
4007         ... here.
4008         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
4009         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
4010         ... here.
4011         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
4012         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
4013         ... here.
4014         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
4015         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
4016         ... here.
4017         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
4018         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
4019
4020         * elf/tls-macros.h (TLS_LE): Move architecture-specific
4021         definitions to architecture-specific files.
4022         (TLS_IE): Likewise.
4023         (TLS_LD): Likewise.
4024         (TLS_GD): Likewise.
4025         * sysdeps/i386/tls-macros.h: New file.
4026         * sysdeps/powerpc/tls-macros.h: Likewise.
4027         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
4028         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
4029         * sysdeps/sh/tls-macros.h: Likewise.
4030         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
4031         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
4032         * sysdeps/x86_64/tls-macros.h: Likewise.
4033
4034 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
4035
4036         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
4037         zero value for regular exit case.
4038
4039         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
4040         (__start_context): Preserve zero value for regular exit case.
4041
4042 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
4043             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4044
4045         * manual/setjmp.texi (setcontext): Clarify normal process
4046         termination when uc_link is the null pointer.
4047         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
4048         exit call.
4049
4050 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
4051
4052         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
4053         preprocessor.  Test for each exception mask separately.
4054
4055 2012-07-16  Andreas Jaeger  <aj@suse.de>
4056
4057         * po/ru.po: Update from translation team.
4058
4059 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
4060
4061         * conform/data/string.h-data (NULL): Use macro-constant.  Require
4062         equal to 0.
4063         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
4064         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
4065         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
4066         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
4067         [ISO || ISO99 || ISO11] (*_t): Do not allow.
4068
4069 2012-07-13  Andreas Jaeger  <aj@suse.de>
4070
4071         * po/fr.po: Update from translation team.
4072
4073 2012-07-12  Marek Polacek  <polacek@redhat.com>
4074
4075         [BZ #14173]
4076         * math/libm-test.inc (yn_test): Add test for BZ #14173.
4077         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
4078         loop condition.
4079
4080 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
4081
4082         [BZ #13717]
4083         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
4084         Change to 2.4.1 where previously 2.4.0.
4085         * sysdeps/unix/sysv/linux/configure: Regenerated.
4086         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
4087         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
4088         version.
4089         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
4090         (__ASSUME_AT_CLKTCK): Remove.
4091         (__ASSUME_AT_PAGESIZE): Likewise.
4092         (__ASSUME_AT_XID): Likewise.
4093         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
4094         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
4095         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
4096         unconditionally.
4097         (HAVE_AUX_PAGESIZE): Likewise.
4098         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
4099         [__ASSUME_AT_CLKTCK]: Make code unconditional.
4100         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
4101
4102 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
4103
4104         [BZ #14307]
4105         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
4106         the temporary buffer used to invoke __gethostbyname2_r,
4107         __gethostbyaddr_r and gethostbyname4_r to make room for struct
4108         host_data / struct gaih_addrtuple.
4109         * resolv/nss_dns/dns-host.c (global scope): Move definition of
4110         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
4111         header file nss/nsswitch.h.
4112         * nss/nsswitch.h (global scope): Add definition of implementation
4113         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
4114         resolv/nss_dns/dns-host.c).
4115
4116 2012-07-11  Andreas Jaeger  <aj@suse.de>
4117
4118         * po/fr.po: Update from translation team.
4119
4120         * po/sv.po: Update from translation team
4121         * po/fr.po: Another update from translation team.
4122
4123 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4124
4125         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
4126         for subnormals or multiply small sinh result by itself.
4127         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
4128         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4129
4130 2012-07-11  David S. Miller  <davem@davemloft.net>
4131
4132         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4133
4134 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
4135
4136         [BZ #14347]
4137         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
4138         (INTERNAL_MARK): Shift it here.
4139
4140 2012-07-10  Marek Polacek  <polacek@redhat.com>
4141
4142         [BZ #14151]
4143         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
4144         libc_cv_asm_global_directive with .globl.
4145         * configure: Regenerated.
4146         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
4147         with .globl.
4148         * sysdeps/i386/configure: Regenerated.
4149         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
4150         with .globl.
4151         * sysdeps/x86_64/configure: Regenerated.
4152         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
4153         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
4154         * elf/tst-unique2mod2.c: Likewise.
4155         * elf/tst-unique2mod1.c: Likewise.
4156         * elf/tst-unique1mod2.c: Likewise.
4157         * elf/tst-unique1mod1.c: Likewise.
4158         * sysdeps/s390/s390-32/sysdep.h: Likewise.
4159         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
4160         * sysdeps/s390/s390-64/sysdep.h: Likewise.
4161         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
4162         * sysdeps/mach/sysdep.h: Likewise.
4163         * sysdeps/i386/sysdep.h: Likewise.
4164         * sysdeps/i386/i386-mcount.S: Likewise.
4165         * sysdeps/x86_64/_mcount.S: Likewise.
4166         * sysdeps/x86_64/sysdep.h: Likewise.
4167         * sysdeps/sh/_mcount.S: Likewise.
4168         * sysdeps/sh/sysdep.h: Likewise.
4169         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
4170         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
4171         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
4172         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
4173         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
4174         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
4175         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
4176         * locale/localeinfo.h: Likewise.
4177         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
4178         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
4179
4180 2012-07-09  Roland McGrath  <roland@hack.frob.com>
4181
4182         [BZ #14336]
4183         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
4184         system".
4185         * manual/message.texi (The Uniforum approach): Likewise.
4186         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
4187         (glibc iconv Implementation): Likewise.
4188
4189 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
4190
4191         [BZ #14337]
4192         * math/s_clog.c (__clog): Avoid scaling a value down where that
4193         could result in underflow.
4194         * math/s_clog10.c (__clog10): Likewise.
4195         * math/s_clog10f.c (__clog10f): Likewise.
4196         * math/s_clog10l.c (__clog10l): Likewise.
4197         * math/s_clogf.c (__clogf): Likewise.
4198         * math/s_clogl.c (__clogl): Likewise.
4199         * math/libm-test.inc (clog_test): Add more tests.
4200         (clog10_test): Likewise.
4201         * sysdeps/i386/fpu/libm-test-ulps: Update.
4202         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4203
4204 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
4205
4206         [BZ #14283]
4207         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
4208         by 7 not 8 to examine high bit of fractional part.
4209
4210         [BZ #14042]
4211         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
4212         for call to __mcount_internal.
4213         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
4214         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
4215         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
4216
4217 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
4218
4219         [BZ #14154]
4220         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
4221         approximation for values within 0x1p-13f of an odd multiple of
4222         pi/4.
4223         * math/libm-test.inc (tan_test): Do not allow spurious underflow
4224         exception.  Add more tests.
4225         * sysdeps/i386/fpu/libm-test-ulps: Update.
4226
4227         [BZ #6778]
4228         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
4229         inputs and return -1 for them.  Do not check for +Inf in case not
4230         reachable for +Inf.
4231         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
4232         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
4233         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
4234         and return -1 for them.  Do not check for +Inf in case not
4235         reachable for +Inf.
4236         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
4237         define.
4238         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
4239         and return -1 for them.  Do not check for +Inf in case not
4240         reachable for +Inf.
4241         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
4242         spurious underflow.
4243         * sysdeps/i386/fpu/libm-test-ulps: Update.
4244         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4245
4246 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
4247
4248         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
4249
4250 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
4251
4252         [BZ #14157]
4253         [BZ #14331]
4254         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
4255         could result in spurious underflow.  Scale down values above
4256         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
4257         * math/s_csqrtf.c (__csqrtf): Likewise.
4258         * math/s_csqrtl.c (__csqrtl): Likewise.
4259         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
4260         spurious underflow.
4261         * sysdeps/i386/fpu/libm-test-ulps: Update.
4262         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4263
4264 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
4265
4266         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
4267         xopen-msg.sed.
4268         * catgets/xopen-msg.awk: New file.
4269         * catgets/xopen-msg.sed: Removed.
4270
4271         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
4272         po2text.sed.
4273         * intl/po2test.awk: New file.
4274         * intl/po2test.sed: Removed.
4275
4276 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
4277
4278         [BZ #14328]
4279         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
4280         or multiply small sinh result by itself.
4281         * math/s_ctanf.c (__ctanf): Likewise.
4282         * math/s_ctanh.c (__ctanh): Likewise.
4283         * math/s_ctanhf.c (__ctanhf): Likewise.
4284         * math/s_ctanhl.c (__ctanhl): Likewise.
4285         * math/s_ctanl.c (__ctanl): Likewise.
4286         * math/libm-test.inc (ctan_test_tonearest): New function.
4287         (ctan_test_towardzero): Likewise.
4288         (ctan_test_downward): Likewise.
4289         (ctan_test_upward): Likewise.
4290         (ctanh_test_tonearest): Likewise.
4291         (ctanh_test_towardzero): Likewise.
4292         (ctanh_test_downward): Likewise.
4293         (ctanh_test_upward): Likewise.
4294         (main): Call these new functions.
4295         * sysdeps/i386/fpu/libm-test-ulps: Update.
4296         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4297
4298 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
4299
4300         * .gitignore: Delete /ports entry.
4301
4302 2012-07-03  Andreas Jaeger  <aj@suse.de>
4303
4304         * po/bg.po: Update from translation team.
4305         * po/cs.po: Likewise.
4306         * po/de.po: Likewise.
4307         * po/hr.po: Likewise.
4308         * po/nl.pl: Likewise.
4309         * po/pl.po: Likewise.
4310         * po/vi.po: Likewise.
4311
4312 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
4313
4314         * Makeconfig [!+link] (+link-before-libc): New variable.
4315         [!+link] (+link-after-libc): Likewise.
4316         [!+link] (+link-tests): Likewise.
4317         [!+link] (+link): Define in terms of $(+link-before-libc) and
4318         $(+link-after-libc).
4319         [!+link-static] (+link-static-before-libc): New variable.
4320         [!+link-static] (+link-static-after-libc): Likewise.
4321         [!+link-static] (+link-static-tests): Likewise.
4322         [!+link-static] (+link-static): Define in terms of
4323         $(+link-static-before-libc) and $(+link-static-after-libc).
4324         [build-shared] (link-libc-before-gnulib): New variable.
4325         [build-shared] (link-libc-tests): Likewise.
4326         [build-shared] (link-libc): Define in terms of
4327         $(link-libc-before-gnulib).
4328         [!build-shared] (link-libc-tests): New variable.
4329         (link-libc-static-tests): New variable.
4330         [!gnulib] (gnulib-arch): New variable.
4331         [!gnulib] (gnulib-tests): Likewise.
4332         [!gnulib] (static-gnulib-arch): Likewise.
4333         [!gnulib] (static-gnulib-tests): Likewise.
4334         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
4335         Define with "=" instead of ":=".
4336         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
4337         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
4338         * Rules (binaries-all-notests): New variable.
4339         (binaries-all-tests): Likewise.
4340         (binaries-static-notests): Likewise.
4341         (binaries-static-tests): Likewise.
4342         (binaries-all): Define using $(binaries-all-notests) and
4343         $(binaries-all-tests).
4344         (binaries-static): Define using $(binaries-static-notests) and
4345         $(binaries-static-tests).
4346         (binaries-shared-tests): New variable.
4347         (binaries-shared-notests): Likewise.
4348         (binaries-shared): Remove variable.
4349         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
4350         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
4351         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
4352         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
4353         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
4354         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
4355         * elf/Makefile (sln-modules): New variable.
4356         (extra-objs): Add $(sln-modules:=.o).
4357         (ldconfig-modules): Add static-stubs.
4358         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
4359         * elf/static-stubs.c: New file.
4360
4361         [BZ #14283]
4362         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
4363         by 7 not 8 to examine high bit of fractional part.  Use volatile
4364         variables when splitting into final array of floats if
4365         __FLT_EVAL_METHOD__ != 0.
4366         * math/libm-test.inc (cos_test): Add another test.
4367         (sin_test): Likewise.
4368         * sysdeps/i386/fpu/libm-test-ulps: Update.
4369
4370         [BZ #14273]
4371         * math/libm-test.inc (cosh_test): Add more tests.
4372
4373         * version.h (RELEASE): Set to "development".
4374         (VERSION): Set to "2.16.90".
4375
4376 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
4377
4378         * NEWS: Update copyright. Remove last-updated date.
4379         Mention math library bug fixes and timezone data changes.
4380         * README: Mention GNU/Hurd, x32, and HPPA support status.
4381
4382 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
4383
4384         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
4385
4386 2012-06-27  Andreas Jaeger  <aj@suse.de>
4387
4388         * manual/contrib.texi (Contributors): Add Samuel Thibault.
4389
4390 2012-06-25  Andreas Jaeger  <aj@suse.de>
4391
4392         * sysdeps/s390/fpu/libm-test-ulps: Update.
4393
4394 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
4395             Thomas Schwinge  <thomas@codesourcery.com>
4396
4397         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
4398         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
4399         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
4400         fanotify_mark.
4401
4402 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
4403
4404         * sysdeps/mach/start.c: Remove file.
4405         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
4406         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
4407         * sysdeps/sh/init-first.c: Likewise.
4408
4409         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
4410         registers for frame unwinding purposes, add CFI directives.
4411         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
4412         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
4413         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
4414         Likewise.
4415
4416         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
4417         __fortify_fail returning.
4418         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
4419
4420         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
4421         sysdeps/sh/____longjmp_chk.S.
4422         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
4423         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
4424         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
4425         (gen-as-const-headers): Append sigaltstack-offsets.sym.
4426
4427         * sysdeps/sh/abort-instr.h: New file.
4428         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
4429         process in case exit returns.
4430
4431         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
4432         initialize the GOT register before use.
4433
4434         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
4435         calculation of ARGC > 4.
4436
4437         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
4438         meaningful names to some local labels.
4439
4440 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
4441             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4442
4443         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
4444         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
4445         (__arch_compare_and_exchange_val_16_acq): Likewise.
4446         (__arch_compare_and_exchange_val_32_acq): Likewise.
4447         (atomic_exchange_and_add): Fix gUSA sequence.
4448         (atomic_add): Likewise.
4449         (atomic_add_negative): Likewise.
4450         (atomic_add_zero): Likewise.
4451         (atomic_bit_test_set): Likewise.
4452
4453 2012-06-22  Andreas Schwab  <schwab@redhat.com>
4454
4455         [BZ #13579]
4456         * include/link.h (struct link_map): Add l_free_initfini.
4457         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
4458         l_initfini.
4459         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
4460         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
4461         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
4462         set.
4463
4464 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
4465
4466         * configure.in: Use AC_LANG_SOURCE.
4467         * configure: Regenerate.
4468
4469 2012-06-22  Roland McGrath  <roland@hack.frob.com>
4470
4471         * configure.in (libc_cv_localstatedir): New substituted variable.
4472         * configure: Regenerated.
4473         * config.make.in (localstatedir): New variable, substituted from
4474         libc_cv_localstatedir.
4475         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
4476         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
4477         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
4478         * sysdeps/gnu/configure: Regenerated.
4479
4480 2012-06-21  Jeff Law  <law@redhat.com>
4481
4482         [BZ #14277]
4483         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
4484         free.  Simplify list management for _LIBC case.
4485
4486 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
4487
4488         [BZ #14273]
4489         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
4490         Clear sign bit of 64-bit integer value before comparing against
4491         overflow value.
4492
4493         * sysdeps/mach/configure: Regenerated.
4494
4495 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
4496
4497         [BZ #14278]
4498         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
4499
4500 2012-06-21  Jeff Law  <law@redhat.com>
4501
4502         [BZ #13882]
4503         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
4504         uint16_t for elements in the "seen" array to avoid char overflows.
4505         * elf/dl-fini.c (_dl_sort_fini): Likewise.
4506         * elf/dl-open.c (dl_open_worker): Likewise.
4507
4508 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
4509
4510         * scripts/list-sources.sh: Scan PORTS for translations.
4511         * po/libc.pot: Regenerated.
4512
4513 2012-06-21  Andreas Jaeger  <aj@suse.de>
4514
4515         [BZ #12194]
4516         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
4517         warning.
4518         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
4519         * bits/byteswap-16.h (__bswap_16): Likewise.
4520         * bits/byteswap.h (__bswap_constant_16): Likewise.
4521
4522 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
4523
4524         [BZ #14117]
4525         * sysdeps/i386/fpu_control.h: Removed.
4526         * sysdeps/x86_64/fpu_control.h: Moved to ...
4527         * sysdeps/x86/fpu_control.h: Here.
4528
4529         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
4530         (_FPU_SETCW): Likewise.
4531
4532 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
4533
4534         [BZ #14117]
4535         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
4536         * sysdeps/x86/fpu/bits/mathinline.h: This.
4537         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
4538
4539         [BZ #14050]
4540         [BZ #14117]
4541         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
4542         functions if __x86_64__ is defined.
4543
4544 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
4545
4546         * string/endian.h: Add !__ASSEMBLER__ condition for including
4547         conversion interfaces.
4548
4549 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
4550
4551         [BZ #14241]
4552         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
4553         of ABS(x) in calculating zero to negative powers other than odd
4554         integers.
4555         * math/libm-test.inc (pow_test): Add more tests.
4556
4557 2012-06-15  Andreas Jaeger  <aj@suse.de>
4558
4559         * manual/contrib.texi (Contributors): Update entry of Liubov
4560         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
4561         Machado Filho.
4562
4563 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
4564
4565         * string/string.h: Add __wur to GNU version of strerror_r.
4566
4567 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
4568
4569         [BZ #14229]
4570         * string/Makefile (tests): Add tst-strtok_r.
4571         * string/tst-strtok_r.c: New file.
4572         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
4573         RAX_LP/RDX_LP on SAVE_PTR.
4574
4575 2012-06-14  Roland McGrath  <roland@hack.frob.com>
4576
4577         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
4578
4579 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
4580
4581         * libm_test.inc (csqrt_test): Allow more spurious underflow
4582         exceptions.
4583         (j0_test): Likewise.
4584         (j1_test): Likewise.
4585         (y0_test): Likewise.
4586         (y1_test): Likewise.
4587
4588 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
4589
4590         * po/Makefile (libc.pot): Use UTF-8 charset.
4591
4592 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
4593
4594         [BZ #14210]
4595         Suppress sign-conversion warning from FD_SET.
4596         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
4597         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
4598         not unsigned long int.
4599         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
4600
4601 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
4602
4603         [BZ #14050]
4604         [BZ #14117]
4605         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
4606         __extern_always_inline instead of __extern_inline.
4607         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
4608         (__signbit): Likewise.
4609         (__signbitl): Support C++ namespace.
4610         (lrintf): New inline function.
4611         (lrint): Likewise.
4612         (llrintf): Likewise.
4613         (llrint): Likewise.
4614         (fmaxf): Likewise.
4615         (fmax): Likewise.
4616         (fminf): Likewise.
4617         (fmin): Likewise.
4618         (rint): Likewise.
4619         (rintf): Likewise.
4620         (ceil): Likewise.
4621         (ceilf): Likewise.
4622         (floor): Likewise.
4623         (floorf): Likewise.
4624         (nearbyint): Likewise.
4625         (nearbyintf): Likewise.
4626
4627 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
4628
4629         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
4630         non-default versions.
4631
4632 2012-06-11  Roland McGrath  <roland@hack.frob.com>
4633
4634         [BZ #14218]
4635         * manual/argp.texi (Argp): Reword argp_parse description slightly.
4636
4637 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
4638
4639         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
4640         (FE_UPWARD, FE_DOWNWARD): Don't define.
4641         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
4642         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
4643
4644         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
4645         reading it.
4646         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
4647         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
4648
4649 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4650
4651         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
4652         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
4653         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
4654         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
4655
4656 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
4657
4658         [BZ #14117]
4659         * sysdeps/i386/fpu/bits/fenv.h: Removed.
4660         * sysdeps/i386/fpu/Implies: New file.
4661         * sysdeps/x86_64/fpu/Implies: Likewise.
4662         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
4663         * sysdeps/x86/fpu/bits/fenv.h: This.
4664
4665         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
4666         __SSE_MATH__.
4667
4668 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
4669
4670         [BZ #14134]
4671         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
4672         character 0xffff that matches the last element of the
4673         conversion table.
4674
4675 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4676
4677         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
4678         fmodl commit.
4679
4680 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4681
4682         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
4683         values higher than 25.6283.
4684
4685 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4686
4687         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
4688         subnormal exponent extraction and add some __builtin_expect.
4689         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
4690         Fix for subnormal mantissa calculation.
4691
4692 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
4693
4694         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
4695         cpu2 is -1 and errno is not ENOSYS.
4696
4697 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
4698
4699         [BZ #14117]
4700         * sysdeps/i386/i486/bits/string.h: Renamed to ...
4701         * sysdeps/x86/bits/string.h: This.
4702         * sysdeps/x86_64/bits/string.h: Removed.
4703
4704         * sysdeps/i386/i486/bits/string.h: Define inline functions only
4705         if not compiling for x86-64, but compiling for >= i486.
4706
4707         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
4708         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
4709
4710         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
4711         New macro from Linux kernel 3.4.0.
4712         (FP_XSTATE_MAGIC2): Likewise.
4713         (FP_XSTATE_MAGIC2_SIZE): Likewise.
4714         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
4715         (struct _fpx_sw_bytes): New struct.
4716         (struct _xsave_hdr): Likewise.
4717         (struct _ymmh_state): Likewise.
4718         (struct _xstate): Likewise.
4719
4720         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
4721         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
4722         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
4723         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
4724         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
4725         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
4726
4727         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
4728         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
4729         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
4730         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
4731         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
4732         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
4733
4734 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
4735
4736         [BZ #13743]
4737         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
4738         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
4739         (sysdep_headers): Include sys/platform/ppc.h.
4740         * sysdeps/powerpc/test-gettimebase.c: Test for
4741         __ppc_get_timebase() to catch future ISA opcode/insn changes.
4742         * manual/Makefile (appendices): Include platform.texi.
4743         * manual/contrib.texi (Contributors): Update @node pointers.
4744         * manual/maint.texi (Maintenance): Likewise.
4745         (Platform): New node.
4746         * manual/platform.texi: New file.  Document the new features.
4747
4748 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
4749             Jakub Jelinek  <jakub@redhat.com>
4750
4751         [BZ #14188]
4752         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
4753         where __builtin_expect is unavailable.
4754
4755 2012-06-03  David S. Miller  <davem@davemloft.net>
4756
4757         * stdlib/longlong.h: Updated from GCC.
4758
4759 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
4760
4761         [BZ #14042]
4762         * sysdeps/powerpc/powerpc32/mcount.c: New file.
4763         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
4764         __mcount_internal.
4765         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
4766         (GLIBC_2.16): Likewise.
4767
4768 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
4769
4770         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
4771
4772 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
4773
4774         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
4775         (default-abi): New variable.
4776         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
4777         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
4778         variable.
4779         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
4780         Likewise.
4781         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
4782         Likewise.
4783         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
4784         Likewise.
4785
4786         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
4787         definition.  Document in comment.
4788
4789 2012-06-01  David S. Miller  <davem@davemloft.net>
4790
4791         * stdlib/longlong.h: Updated from GCC.
4792
4793 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
4794
4795         [BZ #14117]
4796         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
4797         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
4798         sys/debugreg.h sys/io.h here.
4799         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
4800         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
4801         sys/io.h.
4802         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
4803         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
4804         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
4805         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
4806         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
4807         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
4808
4809         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
4810         Define only if __x86_64__ is defined.
4811
4812 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
4813
4814         [BZ #14048]
4815         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
4816         Use int64_t for variable i.
4817         * math/libm-test.inc (fmod_test): Add more tests.
4818
4819         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
4820         z computation is not scheduled after fetestexcept.
4821         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
4822         Use math_force_eval instead of asm to ensure calculation scheduled
4823         before exception test.
4824         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
4825         Ensure a1 + u.d computation is not scheduled after fetestexcept.
4826
4827 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
4828
4829         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
4830         computation is not scheduled after fetestexcept.
4831
4832 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
4833
4834         [BZ #14117]
4835         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
4836         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
4837
4838 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4839
4840         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
4841         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
4842
4843 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
4844
4845         [BZ #14117]
4846         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
4847         <bits/wordsize.h>.
4848         (__WCHAR_MIN): Support __WORDSIZE == 64.
4849         (__WCHAR_MAX): Likewise.
4850
4851         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
4852         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
4853
4854         [BZ #14183]
4855         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
4856         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
4857
4858         [BZ #14117]
4859         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
4860         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
4861
4862         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
4863         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
4864
4865         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
4866         Defined to 1 if __x86_64__ isn't defined.
4867         (_STAT_VER_LINUX_OLD): New.
4868         (st_atime): Remove duplicate.
4869         (st_mtime): Likewise.
4870         (st_ctime): Likewise.
4871
4872 2012-05-31  David S. Miller  <davem@davemloft.net>
4873
4874         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
4875         entries.
4876
4877 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
4878
4879         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
4880         gen-libm-test.pl.
4881
4882         [BZ #14132]
4883         * elf/dl-reloc.c: Include <_itoa.h>.
4884         (_dl_reloc_bad_type): Remove use of INTUSE.
4885         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
4886         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
4887         * stdio-common/psiginfo.c (psiginfo): Likewise.
4888         * stdio-common/psignal.c (psignal): Likewise.
4889         * string/strsignal.c (strsignal): Likewise.
4890         * include/signal.h (_sys_siglist): Declare hidden proto.
4891         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
4892         INTVARDEF with libc_hidden_data_def.
4893         * stdio-common/itoa-udigits.c: Likewise.
4894         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
4895         (_itoa_lower_digits_internal): Remove declaration.
4896         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
4897         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
4898         (_sys_sigabbrev_internal): Remove aliases.
4899         (_sys_siglist): Define hidden alias.
4900
4901 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
4902
4903         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4904         bits/sysctl.h.
4905
4906 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
4907
4908         [BZ #14117]
4909         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
4910         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
4911
4912         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
4913         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
4914         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
4915         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
4916         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
4917         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
4918
4919         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
4920         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
4921         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
4922
4923         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
4924         with __addr.
4925         (insw): Likewise.
4926         (insl): Likewise.
4927         (outsb): Likewise.
4928         (outsw): Likewise.
4929         (outsl): Likewise.
4930
4931         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
4932         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
4933         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
4934
4935         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
4936         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
4937         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
4938         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
4939         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
4940         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
4941
4942         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
4943         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
4944
4945         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
4946         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
4947
4948         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
4949         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
4950         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
4951
4952         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
4953         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
4954         to ...
4955         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
4956
4957         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
4958         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
4959         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
4960
4961         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
4962         for x86-64.
4963         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
4964
4965 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
4966
4967         * math/math.h (M_El): Use two more decimal places.
4968         (M_LOG2El): Likewise.
4969         (M_LOG10El): Likewise.
4970         (M_LN2l): Likewise.
4971         (M_LN10l): Likewise.
4972         (M_PIl): Likewise.
4973         (M_PI_2l): Likewise.
4974         (M_PI_4l): Likewise.
4975         (M_1_PIl): Likewise.
4976         (M_2_PIl): Likewise.
4977         (M_2_SQRTPIl): Likewise.
4978         (M_SQRT2l): Likewise.
4979         (M_SQRT1_2l): Likewise.
4980
4981 2012-05-31  David S. Miller  <davem@davemloft.net>
4982
4983         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
4984         values between float registers.
4985         * sysdeps/sparc/sparc64/memset.S: Likewise.
4986         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
4987
4988 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
4989
4990         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
4991         -D_FORTIFY_SOURCE=1.
4992         (CPPFLAGS-tst-longjmp_chk.c): Define.
4993         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
4994         (CPPFLAGS-tst-longjmp_chk2.c): Define.
4995         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
4996         CFLAGS-tst-wchar-h.c.
4997
4998 2012-05-31  Marek Polacek  <polacek@redhat.com>
4999
5000         [BZ #14132]
5001         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
5002         __endmntent_internal): Remove declaration.
5003         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
5004         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
5005         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
5006
5007 2012-05-30  David S. Miller  <davem@davemloft.net>
5008
5009         * sysdeps/sparc/sparc32/soft-fp/q_util.c
5010         (___Q_simulate_exceptions): Use real FP ops rather than writing
5011         into the %fsr.
5012         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
5013         Likewise.
5014
5015 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
5016
5017         [BZ #14117]
5018         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
5019         * sysdeps/x86/bits/xtitypes.h: This.
5020
5021         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
5022         * sysdeps/x86/bits/wordsize.h: This.
5023
5024         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
5025         * sysdeps/x86/bits/huge_vall.h: This.
5026
5027         * sysdeps/i386/bits/select.h: Removed.
5028         * sysdeps/x86_64/bits/select.h: Renamed to ...
5029         * sysdeps/x86/bits/select.h: This.
5030
5031         * sysdeps/i386/bits/setjmp.h: Removed.
5032         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
5033         * sysdeps/x86/bits/setjmp.h: This.
5034
5035         * sysdeps/i386/bits/mathdef.h: Removed.
5036         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
5037         * sysdeps/x86/bits/mathdef.h: This.
5038
5039 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
5040
5041         [BZ #14132]
5042         * include/sys/socket.h (__connect_internal)
5043         (__libc_sa_len_internal): Remove declaration.
5044         (__connect, __libc_sa_len): Declare hidden_proto.
5045         (SA_LEN): Remove use of INTUSE.
5046         * socket/connect.c: Add libc_hidden_def.
5047         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
5048         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
5049         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
5050         alias.
5051         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
5052         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
5053         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
5054         of adding _internal alias.
5055
5056 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
5057
5058         [BZ #14117]
5059         * sysdeps/i386/bits/link.h: Removed.
5060         * sysdeps/i386/bits/linkmap.h: Likewise.
5061         * sysdeps/x86_64/bits/link.h: Renamed to ...
5062         * sysdeps/x86/bits/link.h: This.
5063         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
5064         * sysdeps/x86/bits/linkmap.h: This.
5065
5066         * sysdeps/i386/bits/endian.h: Removed.
5067         * sysdeps/x86_64/bits/endian.h: Renamed to ...
5068         * sysdeps/x86/bits/endian.h: This.
5069
5070         * sysdeps/i386/bits/byteswap.h: Removed.
5071         * sysdeps/i386/bits/byteswap-16.h: Likewise.
5072         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
5073         * sysdeps/x86/bits/byteswap.h: This.
5074         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
5075         * sysdeps/x86/bits/byteswap-16.h: This.
5076         * sysdeps/i386/Implies: Add x86.
5077         * sysdeps/x86_64/Implies: Likewise.
5078
5079 2012-05-30  David S. Miller  <davem@davemloft.net>
5080
5081         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
5082         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
5083         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
5084         (FP_TRAPPING_EXCEPTIONS): Define.
5085         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
5086         (FP_TRAPPING_EXCEPTIONS): Define.
5087         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
5088         subnormals only when inexact has been signalled or underflow
5089         exceptions are enabled.
5090         (_FP_PACK_CANONICAL): Likewise.
5091
5092 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
5093
5094         [BZ #14183]
5095         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
5096         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
5097
5098 2012-05-30  Richard Henderson  <rth@twiddle.net>
5099
5100         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
5101         with #ifndef NOT_IN_libc.
5102
5103         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
5104         marked to avoid plt entry.
5105
5106 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
5107
5108         [BZ #14112]
5109         * Makeconfig (default-abi): New macro.
5110         (abi-includes): Likewise.
5111         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
5112         $(abi-$(default-abi)-lib-soname) for soname if defined.
5113         ($(common-objpfx)gnu/lib-names.stmp): Generate from
5114         abi-variants.
5115         * Makefile (installed-stubs): Likewise.
5116         * include/stubs-biarch.h: Removed.
5117         * scripts/lib-names.awk: Only handle one library at a time.
5118         * scripts/soversions.awk: Remove WORDSIZE support.
5119         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
5120         entries.
5121         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
5122         Removed.
5123         (syscall-list-default-condition): Likewise.
5124         (syscall-list-default-condition): Likewise.
5125         (syscall-list-includes): Likewise.
5126         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
5127         syscall-list-* with abi-*.  Handle undefined abi-variants.
5128         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
5129         * sysdeps/unix/sysv/linux/i386/Implies: New file.
5130         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
5131         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
5132         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
5133         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
5134         Removed.
5135         (syscall-list-32-options): Likewise.
5136         (syscall-list-32-condition): Likewise.
5137         (syscall-list-64-options): Likewise.
5138         (syscall-list-64-condition): Likewise.
5139         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
5140         macro.
5141         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
5142         Renamed to ...
5143         (abi-*): This.
5144         (abi-64-ld-soname): New macro.
5145         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
5146         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
5147         Renamed to ...
5148         (abi-*): This.
5149         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
5150         * sysdeps/x86_64/x32/shlib-versions: Likewise.
5151
5152 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
5153
5154         * sysdeps/unix/sysv/linux/kernel-features.h
5155         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
5156         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
5157         include <kernel-features.h>.
5158         [!__NR_ftruncate64]: Remove conditional code.
5159         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5160         [__NR_ftruncate64]: Make code unconditional.
5161         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5162         * sysdeps/unix/sysv/linux/truncate64.c: Do not
5163         include <kernel-features.h>.
5164         [!__NR_ftruncate64]: Remove conditional code.
5165         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5166         [__NR_ftruncate64]: Make code unconditional.
5167         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5168         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
5169         include <kernel-features.h>.
5170         [!__NR_ftruncate64]: Remove conditional code.
5171         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5172         [__NR_ftruncate64]: Make code unconditional.
5173         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5174         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
5175         include <kernel-features.h>.
5176         [!__NR_ftruncate64]: Remove conditional code.
5177         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5178         [__NR_ftruncate64]: Make code unconditional.
5179         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
5180
5181         * configure.in (libc_cv_fpie): Weaken to a compile test using
5182         LIBC_TRY_CC_OPTION.
5183         * configure: Regenerated.
5184
5185 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5186
5187         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
5188         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
5189         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
5190         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
5191         Refreshed.
5192         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
5193         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
5194         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
5195         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
5196         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
5197         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
5198         Refreshed.
5199
5200 2012-05-27  David S. Miller  <davem@davemloft.net>
5201
5202         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
5203         (___Q_zero): New.
5204         (__Q_simulate_exceptions): Return void.  Change to simulate
5205         exceptions by writing into the %fsr.
5206         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
5207         (__Qp_handle_exceptions): Likewise.
5208         (numbers): Delete.
5209         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
5210         __Qp_handle_exceptions.
5211         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
5212         __Qp_handle_exceptions.
5213         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
5214         as unused and give dummy FP_RND_NEAREST initializer.
5215         (FP_INHIBIT_RESULTS): Define.
5216         (___Q_simulate_exceptions): Update declaration.
5217         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
5218         formatting.
5219         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
5220         as unused and give dummy FP_RND_NEAREST initializer.
5221         (__Qp_handle_exceptions): Update declaration.
5222         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
5223         formatting.
5224
5225 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
5226
5227         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
5228         the temporary FPU control word.
5229         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
5230         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
5231         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
5232         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
5233         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
5234         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
5235         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
5236         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
5237         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
5238         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
5239         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
5240
5241 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5242
5243         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
5244         fields.
5245
5246 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
5247
5248         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
5249         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
5250         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
5251         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
5252         Likewise.
5253         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
5254         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
5255         Likewise.
5256
5257 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
5258
5259         * po/h.po: Update from translation team.
5260
5261 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
5262
5263         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
5264
5265         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
5266         handling of denormals.
5267         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
5268         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
5269         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
5270         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
5271         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
5272         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
5273         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
5274         Likewise.
5275
5276 2012-05-26  Marek Polacek  <polacek@redhat.com>
5277
5278         [BZ #14152]
5279         * math/libm-test.inc (fma_test): Don't always expect underflow
5280         exception.
5281
5282 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
5283
5284         [BZ #12416]
5285         * elf/tst-execstack.c: Include stackinfo.h.
5286         (do_test): Adjust test case to ensure that pthread_getattr_np
5287         behaviour remains the same after marking stack executable.
5288
5289 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
5290
5291         * sysdeps/unix/sysv/linux/kernel-features.h
5292         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
5293         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
5294         kernel-features.h.
5295         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
5296         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
5297         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
5298         kernel-features.h.
5299         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
5300         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
5301
5302 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
5303
5304         * configure.in: Define the default includes to being none.
5305         * configure: Regenerated.
5306
5307 2012-05-25  Roland McGrath  <roland@hack.frob.com>
5308
5309         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
5310         * sysdeps/x86_64/setjmp.S: Likewise.
5311         * sysdeps/i386/bsd-setjmp.S: Likewise.
5312         * sysdeps/i386/bsd-_setjmp.S: Likewise.
5313         * sysdeps/i386/setjmp.S: Likewise.
5314         * sysdeps/i386/__longjmp.S: Likewise.
5315         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
5316         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
5317
5318         * include/stap-probe.h: New file.
5319         * configure.in: Handle --enable-systemtap.
5320         * configure: Regenerated.
5321         * config.h.in (USE_STAP_PROBE): New #undef.
5322         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
5323         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
5324         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
5325
5326 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
5327
5328         [BZ #13717]
5329         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
5330         to 2.4.0 where earlier.
5331         * sysdeps/unix/sysv/linux/configure: Regenerated.
5332         * sysdeps/unix/sysv/linux/i386/chown.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/i386/fchown.c: Do not include
5337         <kernel-features.h>.
5338         [__ASSUME_32BITUIDS]: Make code unconditional.
5339         [!__ASSUME_32BITUIDS]: Remove conditional code.
5340         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
5341         [__ASSUME_32BITUIDS]: Make code unconditional.
5342         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
5343         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
5344         <kernel-features.h>.
5345         [__ASSUME_32BITUIDS]: Make code unconditional.
5346         [!__ASSUME_32BITUIDS]: Remove conditional code.
5347         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
5348         <kernel-features.h>.
5349         [__ASSUME_32BITUIDS]: Make code unconditional.
5350         [!__ASSUME_32BITUIDS]: Remove conditional code.
5351         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
5352         <kernel-features.h>.
5353         [__ASSUME_32BITUIDS]: Make code unconditional.
5354         [!__ASSUME_32BITUIDS]: Remove conditional code.
5355         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
5356         <kernel-features.h>.
5357         [__ASSUME_32BITUIDS]: Make code unconditional.
5358         [!__ASSUME_32BITUIDS]: Remove conditional code.
5359         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
5360         <kernel-features.h>.
5361         [__ASSUME_32BITUIDS]: Make code unconditional.
5362         [!__ASSUME_32BITUIDS]: Remove conditional code.
5363         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
5364         <kernel-features.h>.
5365         [__ASSUME_32BITUIDS]: Make code unconditional.
5366         [!__ASSUME_32BITUIDS]: Remove conditional code.
5367         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
5368         <kernel-features.h>.
5369         [__ASSUME_32BITUIDS]: Make code unconditional.
5370         [!__ASSUME_32BITUIDS]: Remove conditional code.
5371         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
5372         <kernel-features.h>.
5373         [__ASSUME_32BITUIDS]: Make code unconditional.
5374         [!__ASSUME_32BITUIDS]: Remove conditional code.
5375         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
5376         <kernel-features.h>.
5377         [__ASSUME_32BITUIDS]: Make code unconditional.
5378         [!__ASSUME_32BITUIDS]: Remove conditional code.
5379         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
5380         <kernel-features.h>.
5381         [__ASSUME_32BITUIDS]: Make code unconditional.
5382         [!__ASSUME_32BITUIDS]: Remove conditional code.
5383         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
5384         <kernel-features.h>.
5385         [__NR_setresgid] (__setresgid): Do not declare.
5386         [__ASSUME_32BITUIDS]: Make code unconditional.
5387         [!__ASSUME_32BITUIDS]: Remove conditional code.
5388         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
5389         <kernel-features.h>.
5390         [__NR_setresuid] (__setresuid): Do not declare.
5391         [__ASSUME_32BITUIDS]: Make code unconditional.
5392         [!__ASSUME_32BITUIDS]: Remove conditional code.
5393         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
5394         <kernel-features.h>.
5395         [__ASSUME_32BITUIDS]: Make code unconditional.
5396         [!__ASSUME_32BITUIDS]: Remove conditional code.
5397         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
5398         <kernel-features.h>.
5399         [__ASSUME_32BITUIDS]: Make code unconditional.
5400         [!__ASSUME_32BITUIDS]: Remove conditional code.
5401         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
5402         <kernel-features.h>.
5403         [__ASSUME_32BITUIDS]: Make code unconditional.
5404         [!__ASSUME_32BITUIDS]: Remove conditional code.
5405         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
5406         <kernel-features.h>.
5407         [__ASSUME_32BITUIDS]: Make code unconditional.
5408         [!__ASSUME_32BITUIDS]: Remove conditional code.
5409         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
5410         <kernel-features.h>.
5411         [__ASSUME_32BITUIDS]: Make code unconditional.
5412         [!__ASSUME_32BITUIDS]: Remove conditional code.
5413         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
5414         <kernel-features.h>.
5415         [__ASSUME_32BITUIDS]: Make code unconditional.
5416         [!__ASSUME_32BITUIDS]: Remove conditional code.
5417         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
5418         <kernel-features.h>.
5419         [__ASSUME_32BITUIDS]: Make code unconditional.
5420         [!__ASSUME_32BITUIDS]: Remove conditional code.
5421         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
5422         <kernel-features.h>.
5423         [__ASSUME_32BITUIDS]: Make code unconditional.
5424         [!__ASSUME_32BITUIDS]: Remove conditional code.
5425         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
5426         <kernel-features.h>.
5427         [__ASSUME_32BITUIDS]: Make code unconditional.
5428         [!__ASSUME_32BITUIDS]: Remove conditional code.
5429         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
5430         <kernel-features.h>.
5431         [__ASSUME_32BITUIDS]: Make code unconditional.
5432         [!__ASSUME_32BITUIDS]: Remove conditional code.
5433         * sysdeps/unix/sysv/linux/kernel-features.h
5434         (__ASSUME_SETRESUID_SYSCALL): Remove.
5435         (__ASSUME_SETRESGID_SYSCALL): Likewise.
5436         (__ASSUME_32BITUIDS): Likewise.
5437         (__ASSUME_LDT_WORKS): Likewise.
5438         (__ASSUME_O_DIRECTORY): Likewise.
5439         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
5440         architecture but not kernel version.
5441         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
5442         (__ASSUME_MMAP2_SYSCALL): Likewise.
5443         (__ASSUME_STAT64_SYSCALL): Likewise.
5444         (__ASSUME_IPC64): Likewise.
5445         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
5446         <kernel-features.h>.
5447         [__ASSUME_32BITUIDS]: Make code unconditional.
5448         [!__ASSUME_32BITUIDS]: Remove conditional code.
5449         * sysdeps/unix/sysv/linux/opendir.c: Do not include
5450         <kernel-features.h>.
5451         [__ASSUME_O_DIRECTORY]: Make code unconditional.
5452         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
5453         132096]: Remove conditional code.
5454         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
5455         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
5456         <kernel-features.h>.
5457         [__ASSUME_32BITUIDS]: Make code unconditional.
5458         [!__ASSUME_32BITUIDS]: Remove conditional code.
5459         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
5460         <kernel-features.h>.
5461         [__ASSUME_32BITUIDS]: Make code unconditional.
5462         [!__ASSUME_32BITUIDS]: Remove conditional code.
5463         * sysdeps/unix/sysv/linux/setegid.c: Do not include
5464         <kernel-features.h>.
5465         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
5466         unconditional.
5467         (__setresgid): Do not declare.
5468         [__ASSUME_32BITUIDS]: Make code unconditional.
5469         [!__ASSUME_32BITUIDS]: Remove conditional code.
5470         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
5471         <kernel-features.h>.
5472         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
5473         unconditional.
5474         (__setresuid): Do not declare.
5475         [__ASSUME_32BITUIDS]: Make code unconditional.
5476         [!__ASSUME_32BITUIDS]: Remove conditional code.
5477         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
5478         <kernel-features.h>.
5479         [__ASSUME_32BITUIDS]: Make code unconditional.
5480         [!__ASSUME_32BITUIDS]: Remove conditional code.
5481         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
5482         <kernel-features.h>.
5483         [__ASSUME_32BITUIDS]: Make code unconditional.
5484         [!__ASSUME_32BITUIDS]: Remove conditional code.
5485
5486 2012-05-25  Richard Henderson  <rth@twiddle.net>
5487
5488         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
5489         dl_hwcap to ifunc resolver.
5490         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
5491         elf_ifunc_invoke.
5492         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
5493         dl_hwcap to ifunc resolver.
5494         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
5495
5496 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
5497
5498         [BZ #14153]
5499         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
5500         for |x| <= 2**-26, not 2**-57.
5501         * math/libm-test.inc (acos_test): Do not allow spurious underflow
5502         exception.
5503
5504 2012-05-24  Jeff Law  <law@redhat.com>
5505
5506         * stdio-common/Makefile (tests): Add bug25.
5507         * stdio-common/bug25.c: New test.
5508
5509 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
5510
5511         [BZ #13576]
5512         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
5513         multiple of MALLOC_ALIGNMENT in size.
5514         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
5515
5516 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
5517
5518         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
5519         Require >= 256.
5520         (FILENAME_MAX): Use macro-int-constant.
5521         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
5522         (_IOFBF): Use macro-int-constant.
5523         (_IOLBF): Likewise.
5524         (_IONBF): Likewise.
5525         (SEEK_CUR): Likewise.
5526         (SEEK_END): Likewise.
5527         (SEEK_SET): Likewise.
5528         (TMP_MAX): Likewise.
5529         (EOF): Use macro-int-constant.  Require < 0.
5530         (NULL): Use macro-constant.  Require == 0.
5531         (stdin): Require type to be FILE *.
5532         (stdout): Likewise.
5533         (stderr): Likewise.
5534         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
5535         macro-int-constant.
5536         (EXIT_SUCCESS): Likewise.
5537         (NULL): Use macro-constant.  Require == 0.
5538         (RAND_MAX): Use macro-int-constant.
5539         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
5540         [C99-based standards] (strtof): Require function.
5541         [C99-based standards] (strtold): Likewise.
5542         [C99-based standards] (strtoll): Likewise.
5543         [C99-based standards] (strtoull): Likewise.
5544         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
5545         [ISO || ISO99 || ISO11] (limits.h): Likewise.
5546         [ISO || ISO99 || ISO11] (math.h): Likewise.
5547         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
5548         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
5549         [ISO || ISO99 || ISO11] (*_t): Do not allow.
5550
5551 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
5552
5553         [BZ #14132]
5554         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
5555         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
5556         * intl/dgettext.c (DCGETTEXT): Likewise.
5557         * intl/gettext.c (DCGETTEXT): Likewise.
5558         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
5559         * posix/regex_internal.h (gettext): Likewise.
5560         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
5561         Remove declaration.
5562         * include/argz.h (__argz_count_internal)
5563         (__argz_stringify_internal): Remove declaration.
5564         (__argz_count, __argz_stringify): Declare hidden proto.
5565         * intl/dcgettext.c: Remove use of INTDEF.
5566         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
5567         * string/argz-stringify.c: Likewise.
5568         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
5569         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
5570         Declare hidden proto.
5571         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
5572         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
5573         Declare hidden proto.
5574         * include/stdio.h (__asprintf_internal): Don't declare.
5575         (__asprintf): Don't define as macro.  Declare hidden proto.
5576         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
5577         (__fsetlocking): Declare hidden proto.
5578         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
5579         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
5580         hidden proto.
5581         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
5582         (_IO_setlinebuf): Remove use of INTUSE.
5583         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
5584         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
5585         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
5586         Remove declaration.
5587         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
5588         (_IO_do_flush): Remove use of INTUSE.
5589         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
5590         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
5591         (_IO_adjust_column, _IO_least_wmarker)
5592         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
5593         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
5594         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
5595         (_IO_default_doallocate, _IO_wdefault_doallocate)
5596         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
5597         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
5598         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
5599         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
5600         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
5601         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
5602         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
5603         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
5604         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
5605         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
5606         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
5607         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
5608         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
5609         proto.
5610         (_IO_flush_all_internal, _IO_adjust_column_internal)
5611         (_IO_default_uflow_internal, _IO_default_finish_internal)
5612         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
5613         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
5614         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
5615         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
5616         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
5617         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
5618         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
5619         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
5620         (_IO_file_close_internal, _IO_file_close_it_internal)
5621         (_IO_file_underflow_internal, _IO_file_overflow_internal)
5622         (_IO_file_init_internal, _IO_file_attach_internal)
5623         (_IO_file_fopen_internal, _IO_file_read_internal)
5624         (_IO_file_sync_internal, _IO_file_seek_internal)
5625         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
5626         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
5627         (_IO_str_underflow_internal, _IO_str_overflow_internal)
5628         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
5629         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
5630         (_IO_list_all_internal, _IO_link_in_internal)
5631         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
5632         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
5633         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
5634         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
5635         (_IO_do_write_internal, _IO_padn_internal)
5636         (_IO_getline_info_internal, _IO_getline_internal)
5637         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
5638         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
5639         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
5640         (_IO_vfscanf_internal, _IO_vfprintf_internal)
5641         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
5642         (_IO_init_internal, _IO_un_link_internal): Don't declare.
5643         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
5644         with libc_hidden_ver, remove use of INTUSE.
5645         * libio/genops.c: Likewise.
5646         * libio/freopen.c: Likewise.
5647         * libio/freopen64.c: Likewise.
5648         * libio/iofclose.c: Likewise.
5649         * libio/iofdopen.c: Likewise.
5650         * libio/iofflush.c: Likewise.
5651         * libio/iofflush_u.c: Likewise.
5652         * libio/iofgets.c: Likewise.
5653         * libio/iofgets_u.c: Likewise.
5654         * libio/iofopen.c: Likewise.
5655         * libio/iofopncook.c: Likewise.
5656         * libio/iofread.c: Likewise.
5657         * libio/iofread_u.c: Likewise.
5658         * libio/ioftell.c: Likewise.
5659         * libio/iofwrite.c: Likewise.
5660         * libio/iogetline.c: Likewise.
5661         * libio/iogets.c: Likewise.
5662         * libio/iogetwline.c: Likewise.
5663         * libio/iopadn.c: Likewise.
5664         * libio/iopopen.c: Likewise.
5665         * libio/ioseekoff.c: Likewise.
5666         * libio/ioseekpos.c: Likewise.
5667         * libio/iosetbuffer.c: Likewise.
5668         * libio/iosetvbuf.c: Likewise.
5669         * libio/ioungetc.c: Likewise.
5670         * libio/ioungetwc.c: Likewise.
5671         * libio/iovdprintf.c: Likewise.
5672         * libio/iovsprintf.c: Likewise.
5673         * libio/iovsscanf.c: Likewise.
5674         * libio/memstream.c: Likewise.
5675         * libio/obprintf.c: Likewise.
5676         * libio/oldfileops.c: Likewise.
5677         * libio/oldiofclose.c: Likewise.
5678         * libio/oldiofdopen.c: Likewise.
5679         * libio/oldiofopen.c: Likewise.
5680         * libio/oldiopopen.c: Likewise.
5681         * libio/oldstdfiles.c: Likewise.
5682         * libio/putc.c: Likewise.
5683         * libio/setbuf.c: Likewise.
5684         * libio/setlinebuf.c: Likewise.
5685         * libio/stdfiles.c: Likewise.
5686         * libio/strops.c: Likewise.
5687         * libio/vasprintf.c: Likewise.
5688         * libio/vscanf.c: Likewise.
5689         * libio/vsnprintf.c: Likewise.
5690         * libio/vswprintf.c: Likewise.
5691         * libio/wfiledoalloc.c: Likewise.
5692         * libio/wfileops.c: Likewise.
5693         * libio/wgenops.c: Likewise.
5694         * libio/wmemstream.c: Likewise.
5695         * libio/wstrops.c: Likewise.
5696         * libio/__fpurge.c: Likewise.
5697         * libio/__fsetlocking.c: Likewise.
5698         * assert/assert.c: Likewise.
5699         * debug/fgets_chk.c: Likewise.
5700         * debug/fgets_u_chk.c: Likewise.
5701         * debug/fread_chk.c: Likewise.
5702         * debug/fread_u_chk.c: Likewise.
5703         * debug/gets_chk.c: Likewise.
5704         * debug/obprintf_chk.c: Likewise.
5705         * debug/vasprintf_chk.c: Likewise.
5706         * debug/vdprintf_chk.c: Likewise.
5707         * debug/vsnprintf_chk.c: Likewise.
5708         * debug/vsprintf_chk.c: Likewise.
5709         * malloc/mtrace.c: Likewise.
5710         * misc/error.c: Likewise.
5711         * misc/syslog.c: Likewise.
5712         * stdio-common/asprintf.c: Likewise.
5713         * stdio-common/fxprintf.c: Likewise.
5714         * stdio-common/getw.c: Likewise.
5715         * stdio-common/isoc99_fscanf.c: Likewise.
5716         * stdio-common/isoc99_scanf.c: Likewise.
5717         * stdio-common/isoc99_vfscanf.c: Likewise.
5718         * stdio-common/isoc99_vscanf.c: Likewise.
5719         * stdio-common/isoc99_vsscanf.c: Likewise.
5720         * stdio-common/printf-prs.c: Likewise.
5721         * stdio-common/printf_fp.c: Likewise.
5722         * stdio-common/printf_fphex.c: Likewise.
5723         * stdio-common/printf_size.c: Likewise.
5724         * stdio-common/putw.c: Likewise.
5725         * stdio-common/scanf.c: Likewise.
5726         * stdio-common/sprintf.c: Likewise.
5727         * stdio-common/tmpfile.c: Likewise.
5728         * stdio-common/vfprintf.c: Likewise.
5729         * stdio-common/vfscanf.c: Likewise.
5730         * stdlib/strfmon_l.c: Likewise.
5731         * sunrpc/openchild.c: Likewise.
5732         * sunrpc/xdr_stdio.c: Likewise.
5733         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
5734         * sysdeps/mach/hurd/tmpfile.c: Likewise.
5735
5736 2012-05-24  Roland McGrath  <roland@hack.frob.com>
5737
5738         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
5739
5740         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
5741         in the third column, to generate for the shared library an IFUNC
5742         that uses _dl_vdso_vsym.
5743         * Makerules (COMPILE.c, compile-stdin.c): New variables.
5744         * Makeconfig (object-suffixes-noshared): New variable.
5745
5746         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
5747         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
5748         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
5749         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
5750
5751         [BZ #14132]
5752         * include/sys/time.h (__gettimeofday): Remove macro.
5753         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
5754         * time/gettimeofday.c (__gettimeofday): Remove #undef.
5755         Remove INTDEF.
5756         (__gettimeofday): Add libc_hidden_def.
5757         (gettimeofday): Add libc_hidden_weak.
5758         * sysdeps/mach/gettimeofday.c: Likewise.
5759         * sysdeps/posix/gettimeofday.c: Likewise.
5760         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
5761         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
5762         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
5763         (__gettimeofday_internal): Remove strong_alias.
5764         (__gettimeofday): Add libc_hidden_def.
5765         (gettimeofday): Add libc_hidden_weak.
5766         * sysdeps/unix/syscalls.list (gettimeofday):
5767         Remove __gettimeofday_internal alias.
5768
5769 2012-05-24  Daniel Jacobowitz  <drow@false.org>
5770             H.J. Lu  <hongjiu.lu@intel.com>
5771
5772         [BZ #12495]
5773         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
5774         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
5775         (largebin_index_32_big): New.
5776         (largebin_index): Use it for 16-byte alignment.
5777         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
5778         correction with front_misalign.
5779
5780 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
5781
5782         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
5783         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
5784         Likewise.
5785         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
5786         Likewise.
5787         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
5788         Likewise.
5789         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
5790         Likewise.
5791         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
5792         Likewise.
5793         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
5794         Likewise.
5795         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
5796         Likewise.
5797         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
5798         Likewise.
5799         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
5800         Likewise.
5801         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
5802         Likewise.
5803         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
5804         Likewise.
5805         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
5806         Likewise.
5807
5808         * scripts/data/c++-types-x32-linux-gnu.data: New file.
5809         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
5810
5811 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
5812
5813         [BZ #10846]
5814         [BZ #14036]
5815         * math/libm-test.inc (exp_test): Add test from bug 14036.
5816         (pow_test): Add test from bug 10846.
5817
5818         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
5819         and other flags.
5820         (special_function): Do not include flags in test name.
5821         (parse_args): Likewise.
5822         * sysdeps/i386/fpu/libm-test-ulps: Update.
5823         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
5824         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
5825         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
5826         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5827
5828         * math/gen-libm-test.pl (%beautify): Add entries for underflow
5829         exceptions.
5830         * math/libm-test.inc ("Philosophy"): Update comment about
5831         exception testing.
5832         (UNDERFLOW_EXCEPTION): New macro.
5833         (UNDERFLOW_EXCEPTION_OK): Likewise.
5834         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
5835         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
5836         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
5837         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
5838         (INVALID_EXCEPTION_OK): Update value.
5839         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
5840         (OVERFLOW_EXCEPTION_OK): Likewise.
5841         (IGNORE_ZERO_INF_SIGN): Likewise.
5842         (test_exceptions): Handle underflow exceptions.
5843         (acos_test): Update for underflow exception expectations.
5844         (cexp_test): Likewise.
5845         (clog_test): Likewise.
5846         (clog10_test): Likewise.
5847         (csqrt_test): Likewise.
5848         (ctan_test): Likewise.
5849         (ctanh_test): Likewise.
5850         (exp_test): Likewise.
5851         (exp10_test): Likewise.
5852         (exp2_test): Likewise.
5853         (expm1_test): Likewise.
5854         (fma_test): Likewise.
5855         (j0_test): Likewise.
5856         (jn_test): Likewise.
5857         (nexttoward_test): Likewise.
5858         (pow_test): Likewise.
5859         (scalbn_test): Likewise.
5860         (scalbln_test): Likewise.
5861         (tan_test): Likewise.
5862         (y1_test): Likewise.
5863         * sysdeps/i386/fpu/libm-test-ulps: Update.
5864         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5865
5866 2012-05-23  David S. Miller  <davem@davemloft.net>
5867
5868         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
5869         (__libc_sigaction): Remove unused local variables.
5870
5871 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
5872
5873         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
5874
5875 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
5876
5877         mktime: avoid signed integer overflow
5878         * time/mktime.c (__mktime_internal): Do not mishandle the case
5879         where diff == INT_MIN.
5880
5881         mktime: simplify computation of average
5882         * time/mktime.c (ranged_convert): Use new time_t_avg function
5883         instead of rolling our own (probably-slower) code.
5884
5885         mktime: do not assume signed right shift propagates sign bit
5886         * time/mktime.c (isdst_differ): New static function.
5887         (__mktime_internal): No need to normalize tm_isdst now.
5888         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
5889         tm_isdst values.
5890
5891         mktime: merge another wrapv change from gnulib
5892         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
5893         from some compilers.
5894
5895         mktime: remove incorrect attempt at unusual arithmetics
5896         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
5897         The code didn't really work on such machines anyway.
5898         (TYPE_MINIMUM): Assume two's complement.
5899         (twos_complement_arithmetic): Verify that long_int and time_t
5900         are two's complement (or unsigned, in the latter case).
5901
5902         mktime: check signed shifts on long_int and time_t, too
5903         * time/mktime.c (SHR): Check that shifts work as desired
5904         on the types long_int and time_t too, as SHR is used on
5905         such types.
5906
5907         mktime: do not assume 'long' is wide enough
5908         * time/mktime.c (verify): Move decl up.
5909         (long_int): New type.
5910         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
5911         to remove assumption in the code that 'long' is wide enough to
5912         store year values.  This assumption is not true on x32 and on
5913         some non-glibc platforms.
5914
5915         mktime: merge wrapv change from gnulib
5916         * time/mktime.c (WRAPV): New macro.
5917         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
5918         (guess_time_tm, __mktime_internal): Do not assume that signed
5919         integer overflow wraps around; modern compilers generate code
5920         where this assumption is no longer valid.
5921
5922 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
5923
5924         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
5925         Replace "jmp L(pseudo_end)" with "ret".
5926         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
5927         Likewise.
5928
5929 2012-05-23  Andreas Jaeger  <aj@suse.de>
5930
5931         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
5932         * sysdeps/unix/sysv/linux/poll.c: Remove file.
5933
5934 2012-05-23  Andreas Jaeger  <aj@suse.de>
5935             Maximilian Attems  <max@stro.at>
5936
5937         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
5938         New macros.
5939
5940 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
5941
5942         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
5943         code so that pseudo_end is just ret and the stack pointer is
5944         correct also for static library in error case.
5945
5946 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
5947
5948         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
5949         move to syscalls.list.
5950         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
5951         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
5952         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
5953         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
5954
5955         * manual/install.texi (Running make install): Do not mention Linux
5956         kernel version for which pt_chown is not needed.
5957         (Linux): Do not mention problems with nscd with 2.0 kernels.
5958         * INSTALL: Regenerated.
5959
5960 2012-05-23  Andreas Jaeger  <aj@suse.de>
5961
5962         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
5963         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
5964         macro.
5965         * sysdeps/unix/sysv/linux/s390/bits/mman.h
5966         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5967         * sysdeps/unix/sysv/linux/sh/bits/mman.h
5968         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5969         * sysdeps/unix/sysv/linux/i386/bits/mman.h
5970         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5971         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
5972         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5973         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
5974         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
5975         * sysdeps/unix/sysv/linux/bits/in.h
5976         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
5977
5978 2012-05-22  Roland McGrath  <roland@hack.frob.com>
5979
5980         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
5981         (PREPARE_VERSION): Just use assert instead, it will be elided
5982         under [NDEBUG] anyway.
5983
5984 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
5985
5986         * sysdeps/unix/sysv/linux/Makefile: Include
5987         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
5988         (sysdep_routines): Remove sysctl.
5989         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
5990         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
5991         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
5992         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
5993         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
5994
5995 2012-05-22  Andreas Jaeger  <aj@suse.de>
5996
5997         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
5998         that pseudo_end is just ret and the stack pointer is correct also
5999         for static library in error case.
6000
6001 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
6002
6003         [BZ #14122]
6004         * nss/nsswitch.c (defconfig_entries): New variable.
6005         (__nss_database_lookup): Don't leak defconfig entries.
6006         (nss_parse_service_list): Don't leak on error paths.
6007         (free_database_entries): New function.
6008         (free_defconfig): New function.
6009         (free_mem): Move common code to free_database_entries.
6010
6011 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
6012
6013         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
6014         Add arch_prctl.
6015         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
6016
6017         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
6018         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
6019         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
6020         New macro.
6021         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
6022         (INTERNAL_SYSCALL_TYPES): Likewise.
6023         (LOAD_ARGS_TYPES_[1-6]): Likewise.
6024         (LOAD_REGS_TYPES_[1-6]): Likewise.
6025         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
6026         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
6027
6028 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6029
6030         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
6031         copysignl for GLIBC_2_0.
6032         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
6033         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
6034         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
6035         logbl for GLIBC_2_0.
6036         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
6037         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
6038
6039 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
6040
6041         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
6042         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
6043
6044         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
6045         Use "neg %eax".
6046
6047         * time/mktime.c: Update copyright years.
6048
6049 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
6050
6051         mktime: merge comment-quoting-style change from gnulib
6052         * time/mktime.c: Quote 'like this' in comments.
6053         The GNU coding standards suggest that we no longer quote `like this',
6054         as "`" and "'" are typically rendered asymmetrically nowadays.
6055         The typical gnulib style is to quote 'like this' when quoting
6056         code, and "like this" when quoting English.
6057
6058         * time/mktime.c (compile-command): Add "-I.".
6059
6060         mktime: merge mktime-internal.h change from gnulib
6061         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
6062
6063         mktime: merge time_r change from gnulib
6064         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
6065
6066         mktime: merge DEBUG change from gnulib
6067         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
6068         case system <time.h> has a #define.
6069
6070         mktime: merge <sys/types.h> change from gnulib
6071         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
6072         since <time.t> is now guaranteed to define time_t.
6073
6074         mktime: merge HAVE_CONFIG_H change from gnulib
6075         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
6076
6077 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
6078
6079         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
6080         Use "neg %eax".
6081
6082         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
6083         __rlim_t cast.
6084         (struct rusage): Use anonymous union to pad each field to
6085         __syscall_slong_t.
6086
6087 2012-05-21  David S. Miller  <davem@davemloft.net>
6088
6089         * Makefules (o-iterator): Remove .s cases.
6090         (compile-command.s): Delete.
6091         (COMPILE.s): Delete.
6092         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
6093
6094 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
6095
6096         * configure.in (libc_cv_predef_stack_protector): Only consider
6097         "foobar" and "__stack_chk_fail" lines in libc_undefs.
6098         * configure: Regenerated.
6099
6100 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6101
6102         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
6103         New macro.  Use R*LP on int and pointer.
6104         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
6105         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
6106         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
6107         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
6108
6109         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
6110         [__WORDSIZE_TIME64_COMPAT32] instead of
6111         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
6112         (struct utmp): Likewise.
6113         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
6114         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
6115         Renamed to ...
6116         (__WORDSIZE_TIME64_COMPAT32): This.
6117         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
6118         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
6119         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
6120         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
6121         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
6122         (__WORDSIZE_TIME64_COMPAT32): New macro.
6123
6124 2012-05-21  Andreas Jaeger  <aj@suse.de>
6125
6126         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
6127         only if [SHARED]. Add prototype for __wcschr_ia32.
6128
6129 2012-05-21  Roland McGrath  <roland@hack.frob.com>
6130
6131         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
6132         of %rbp unmolested in the jmp_buf while mangling the low bits.
6133         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
6134         unmolested high bits of %rbp while demangling the low bits.
6135         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
6136
6137 2012-05-21  Andreas Jaeger  <aj@suse.de>
6138
6139         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
6140         * sunrpc/svc_simple.c: Use it for registerrpc.
6141         * sunrpc/xcrypt.c: Use it for passwd2des.
6142
6143         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
6144
6145 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6146
6147         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
6148         Don't define if [__SYSCALL_WORDSIZE != 32].
6149         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
6150         New macro.
6151
6152 2012-05-21  Bruno Haible  <bruno@clisp.org>
6153             Andreas Jaeger  <aj@suse.de>
6154
6155         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
6156         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
6157         inptr and inend for must_buffer_ch.
6158         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
6159         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
6160         * stdio-common/Makefile (tests): Remove bug15.
6161         (bug15-ENV): Remove macro.
6162         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
6163         anymore.
6164
6165 2012-05-19  Andreas Jaeger  <aj@suse.de>
6166             Roland McGrath  <roland@hack.frob.com>
6167
6168         * manual/contrib.texi: Completely rewritten. It contains now an
6169         alphabetical list of contributors and their contributions.
6170
6171 2012-05-21  Richard Henderson  <rth@twiddle.net>
6172
6173         * misc/getauxval.c (__getauxval): Use unsigned long int.
6174         * misc/sys/auxv.h: Include <sys/cdefs.h>.
6175         (getauxval): Use unsigned long int.
6176
6177 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6178
6179         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
6180
6181 2012-05-21  Roland McGrath  <roland@hack.frob.com>
6182
6183         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
6184         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
6185         __alignof__ (long double).
6186
6187 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6188
6189         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6190
6191 2012-05-20  Richard Henderson  <rth@twiddle.net>
6192
6193         * misc/getauxval.c: New file.
6194         * misc/sys/auxv.h: New file.
6195         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
6196         (routines): Add getauxval.
6197         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
6198         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
6199         * elf/dl-sysdep.c (_dl_auxv): Remove.
6200         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
6201         * elf/dl-support.c (_dl_auxv): New variable.
6202         (_dl_aux_init): Initialize it.
6203         * manual/startup.texi (Auxiliary Vector): New node.
6204         * sysdeps/generic/bits/hwcap.h: New file.
6205         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
6206         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
6207         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
6208         * sysdeps/sparc/sysdep.h: ... here.  Include it.
6209         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
6210         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
6211         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
6212         Update.
6213         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
6214         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
6215         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
6216         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
6217         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
6218         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
6219         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
6220         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
6221
6222 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6223
6224         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6225
6226 2012-05-19  David S. Miller  <davem@davemloft.net>
6227
6228         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6229
6230 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
6231
6232         [BZ #14123]
6233         * math/s_ccosh.c: Include <float.h>
6234         (__ccosh): Avoid internal overflow calculating sinh and cosh
6235         values before multiplying by sin and cos values.
6236         * math/s_ccoshf.c: Likewise.
6237         * math/s_ccoshl.c: Likewise.
6238         * math/s_csin.c: Likewise.
6239         * math/s_csinf.c: Likewise.
6240         * math/s_csinl.c: Likewise.
6241         * math/s_csinh.c: Likewise.
6242         * math/s_csinhf.c: Likewise.
6243         * math/s_csinhl.c: Likewise.
6244         * math/libm-test.inc (ccos_test): Add more tests.
6245         (ccosh_test): Likewise.
6246         (csin_test): Likewise.
6247         (csinh_test): Likewise.
6248         * sysdeps/i386/fpu/libm-test-ulps: Update.
6249         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6250
6251 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
6252
6253         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
6254         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
6255
6256         * sysdeps/x86_64/x32/_itoa.h: Add comment.
6257
6258 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
6259
6260         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
6261         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
6262         * sysdeps/powerpc/soft-fp/Versions: Likewise.
6263         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
6264         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
6265         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
6266         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
6267         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
6268         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
6269         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
6270         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
6271         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
6272         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
6273         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
6274         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
6275         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
6276         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
6277         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
6278         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
6279         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
6280         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
6281         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
6282         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
6283         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
6284         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
6285         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
6286         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
6287         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
6288         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
6289         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
6290         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
6291
6292 2012-05-18  Andreas Jaeger  <aj@suse.de>
6293
6294         * csu/.gitignore: Delete.
6295
6296 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
6297
6298         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
6299         (timex): Use __syscall_slong_t.
6300
6301 2012-05-18  Andreas Jaeger  <aj@suse.de>
6302             Carlos O'Donell  <carlos_odonell@mentor.com>
6303
6304         * manual/install.texi (Configuring and compiling): Update
6305         description about files modified in the source directory.
6306         * INSTALL: Regenerated.
6307
6308 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
6309
6310         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
6311         value.  Use "or" to set return value to -1.
6312         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
6313         negate return value.
6314
6315 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
6316
6317         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
6318         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
6319         failure if the compiler has Graphite support disabled.
6320         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
6321         Likewise.
6322         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
6323         CFLAGS-memmove.c): Likewise.
6324         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
6325         Likewise.
6326
6327 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
6328
6329         * sysdeps/x86_64/x32/_itoa.h: New file.
6330
6331         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
6332         getdents system call only if kernel and user dirents have the
6333         same d_ino and d_off.
6334
6335         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
6336         LLONG_MAX != LONG_MAX.
6337         (_itoa_word): Use _ITOA_WORD_TYPE on value.
6338         (_fitoa_word): Likewise.
6339
6340         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
6341         years.
6342         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
6343         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
6344         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
6345
6346         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
6347         include <bits/wordsize.h>.  Check __x86_64__ instead of
6348         __WORDSIZE.
6349         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
6350         if __x86_64__ is defined.  Use anonymous union on fpstate.
6351
6352         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
6353         anonymous union.
6354
6355 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
6356
6357         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
6358         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
6359         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
6360         Refer to _rtld_local_ro instead of _rtld_global_ro.
6361         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
6362         Likewise.
6363         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
6364         Likewise.
6365         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
6366         Likewise.
6367         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
6368         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
6369         of _rtld_global, and rtld_progname instead of _dl_argv[0].
6370
6371         * sysdeps/powerpc/powerpc32/dl-machine.c
6372         (__elf_machine_runtime_setup) [PROF]: Don't reference
6373         _dl_prof_resolve.
6374
6375 2012-05-18  Andreas Jaeger  <aj@suse.de>
6376
6377         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
6378         function only available for GCCs before 3.4 since GCC 3.4
6379         introduced a builtin.
6380         (lrint): Likewise.
6381         (llrintf): Likewise.
6382         (llrint): Likewise.
6383         (fmaxf): Likewise.
6384         (fmax): Likewise.
6385         (fminf): Likewise.
6386         (fmin): Likewise.
6387         (rint): Likewise.
6388         (rintf): Likewise.
6389         (nearbyint): Likewise.
6390         (nearbyintf): Likewise.
6391         (ceil): Likewise.
6392         (ceilf): Likewise.
6393         (floor): Likewise.
6394         (floorf): Likewise.
6395
6396 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
6397
6398         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
6399         on both fields and cast pointer to __syscall_ulong_t.
6400
6401         * bits/types.h (__fsword_t): New type.
6402         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
6403         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
6404         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
6405         (__FSWORD_T_TYPE): Likewise.
6406         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
6407         (__FSWORD_T_TYPE): Likewise.
6408         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
6409         (__FSWORD_T_TYPE): Likewise.
6410         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
6411         (__FSWORD_T_TYPE): Likewise.
6412         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
6413         __SWORD_TYPE with __fsword_t.
6414         (statfs64): Likewise.
6415
6416 2012-05-17  David S. Miller  <davem@davemloft.net>
6417
6418         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
6419
6420 2012-05-17  Andreas Jaeger  <aj@suse.de>
6421
6422         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
6423         warning.
6424
6425 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
6426
6427         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
6428
6429 2012-05-17  Andreas Jaeger  <aj@suse.de>
6430
6431         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
6432         when it is used.
6433
6434 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
6435
6436         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
6437
6438 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
6439
6440         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
6441         * sysdeps/x86_64/tst-mallocalign1.c: New file.
6442
6443 2012-05-17  Andreas Jaeger  <aj@suse.de>
6444             Carlos O'Donell  <carlos_odonell@mentor.com>
6445
6446         [BZ #14059]
6447         * sysdeps/x86_64/multiarch/init-arch.h
6448         (bit_YMM_Usable): Rename to...
6449         (bit_AVX_Usable): ... this.
6450         (bit_FMA4_Usable): New macro.
6451         (bit_XMM_state): New macro.
6452         (bit_YMM_state): New macro.
6453         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
6454         [__ASSEMBLER__] (index_AVX_Usable): ... this.
6455         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
6456         (CPUID_OSXSAVE): New macro.
6457         (CPUID_AVX): New macro.
6458         (CPUID_FMA4): New macro.
6459         (index_YMM_Usable): Rename to...
6460         (index_AVX_Usable): ... this.
6461         (HAS_AVX): Use HAS_ARCH_FEATURE.
6462         (HAS_FMA4): Likewise.
6463         (HAS_YMM_USABLE): Remove.
6464         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
6465         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
6466         are present.
6467         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
6468         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
6469         * sysdeps/x86_64/multiarch/Makefile: Likewise.
6470         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
6471         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
6472
6473 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
6474
6475         * math/libm-test.c: Support platforms without multiple rounding modes.
6476         * math/bug-nextafter.c: Support platforms without FP exceptions.
6477         * math/bug-nexttoward.c: Likewise.
6478         * math/test-fenv.c: Likewise.
6479         * math/test-misc.c: Likewise.
6480         * stdlib/bug-getcontext.c: Likewise.
6481
6482 2012-05-17  Andreas Jaeger  <aj@suse.de>
6483
6484         * manual/examples/search.c (critter_cmp): Change signature to
6485         avoid warnings.
6486         * manual/string.texi (Collation Functions): Likewise.
6487
6488 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6489
6490         * bits/types.h: Fold copyright years.
6491         * bits/typesizes.h: Likewise.
6492         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
6493         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
6494         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
6495         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
6496         * time/time.h: Likewise.
6497
6498 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
6499
6500         [BZ #208]
6501         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
6502         in instead of returning them.  Return void.
6503         (__libc_mallinfo): Accumulate over all arenas.
6504         (__malloc_stats): Adjust for change in int_mallinfo interface.
6505
6506 2012-05-16  Roland McGrath  <roland@hack.frob.com>
6507
6508         [BZ #10375]
6509         * configure.in (NM): Add AC_CHECK_TOOL for it.
6510         (libc_extra_cflags): New substituted variable.
6511         Check for -fstack-protector being used implicitly.
6512         * configure: Regenerated.
6513         * config.make.in (config-extra-cflags): New variable,
6514         gets @libc_extra_cflags@.
6515         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
6516
6517         [BZ #10375]
6518         * configure.in: Check for _FORTIFY_SOURCE being predefined.
6519         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
6520         * configure: Regenerated.
6521         * config.make.in (CPPUNDEFS): New substituted variable.
6522         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
6523         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
6524         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
6525
6526 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6527
6528         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
6529         (mq_attr): Use __syscall_slong_t.
6530
6531 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6532
6533         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
6534         Check __x86_64__ instead of __WORDSIZE.
6535         (_STAT_VER_LINUX): Likewise.
6536         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
6537         __syscall_ulong_t and __syscall_slong_t.
6538         (stat64): Likewise.
6539
6540 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6541
6542         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
6543
6544 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6545
6546         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
6547
6548 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6549
6550         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
6551         __syscall_ulong_t.
6552
6553         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
6554         include <bits/wordsize.h>.  Check __x86_64__ instead of
6555         __WORDSIZE.
6556         (greg_t): Use "__extension__ long long int" if __x86_64__ is
6557         defined.
6558         (mcontext_t): Replace "unsigned long" with "unsigned long long".
6559
6560         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
6561         include <bits/wordsize.h>.  Check __x86_64__ instead of
6562         __WORDSIZE.
6563         (user_regs_struct): Use "__extension__ unsigned long long"
6564         instead of "unsigned long" if __x86_64__ is defined.
6565         (user): Likewise.  Pad after pointer field if __ILP32__ is
6566         defined.
6567
6568 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
6569
6570         * configure.in (makeinfo): Require version 4.5 or later.  Allow
6571         versions 5 to 9.
6572         * configure: Regenerated.
6573         * manual/install.texi (texinfo): Increase version requirement to
6574         4.5 or later.
6575         * INSTALL: Regenerated.
6576
6577         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
6578
6579 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
6580
6581         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
6582
6583         * sysdeps/x86_64/x32/ffs.c: New file.
6584
6585         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
6586         __syscall_ulong_t.
6587         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
6588         defined.  Use __syscall_ulong_t.
6589         (shminfo): Use __syscall_ulong_t.
6590         (shm_info): Likewise.
6591
6592         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
6593         __syscall_ulong_t.
6594
6595         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
6596         <bits/wordsize.h>.
6597         (msgqnum_t): Use __syscall_ulong_t.
6598         (msglen_t): Likewise.
6599         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
6600         __syscall_ulong_t.
6601
6602         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
6603         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
6604
6605         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
6606
6607         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
6608         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
6609
6610         * sysvipc/sys/msg.h (msgbuf): Replace long int with
6611         __syscall_slong_t.
6612
6613         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
6614         include <bits/wordsize.h>.  Check __x86_64__ instead of
6615         __WORDSIZE.
6616
6617         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
6618         "unsigned long long int" if __x86_64__ is defined.
6619         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
6620
6621         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
6622         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
6623         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
6624
6625         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
6626         <stdint.h>.
6627         (GET_PC): Cast to uintptr_t first.
6628         (GET_FRAME): Likewise.
6629         (GET_STACK): Likewise.
6630
6631         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
6632         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
6633         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
6634         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
6635         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
6636         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
6637         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
6638         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
6639         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
6640         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
6641         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
6642         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
6643         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
6644         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
6645         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
6646         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
6647         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
6648         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
6649         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
6650         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
6651         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
6652         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
6653         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
6654         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
6655         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
6656         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
6657         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
6658         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
6659         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
6660
6661 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
6662
6663         * Makerules (+depfiles): Also collect depfiles from .oS in
6664         $(extra-objs).
6665         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
6666         .oS, $(libnldbl-routines)).
6667
6668         * Makerules (native-compile-mkdep-flags): Define.
6669         * sunrpc/Makefile (extra-objs): Add $(addprefix
6670         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
6671         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
6672         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
6673         calling $(make-target-directory).
6674
6675 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6676
6677         * bits/types.h (__snseconds_t): Removed.
6678         * time/time.h (struct timespec): Replace __snseconds_t with
6679         __syscall_slong_t.
6680         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
6681         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
6682         Likewise.
6683         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
6684         (__SNSECONDS_T_TYPE): Likewise.
6685         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
6686         (__SNSECONDS_T_TYPE): Likewise.
6687         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
6688         (__SNSECONDS_T_TYPE): Likewise.
6689
6690 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6691
6692         * sysdeps/mach/hurd/bits/typesizes.h
6693         (__SYSCALL_SLONG_TYPE): New macro.
6694         (__SYSCALL_ULONG_TYPE): Likewise.
6695
6696 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6697
6698         * bits/types.h (__syscall_slong_t): New type.
6699         (__syscall_ulong_t): Likewise.
6700
6701         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
6702         (__SYSCALL_ULONG_TYPE): Likewise.
6703         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
6704         (__SYSCALL_SLONG_TYPE): Likewise.
6705         (__SYSCALL_ULONG_TYPE): Likewise.
6706         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
6707         (__SYSCALL_SLONG_TYPE): Likewise.
6708         (__SYSCALL_ULONG_TYPE): Likewise.
6709         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
6710         (__SYSCALL_SLONG_TYPE): Likewise.
6711         (__SYSCALL_ULONG_TYPE): Likewise.
6712
6713 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6714
6715         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
6716         Add sigaltstack-offsets.sym.
6717         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
6718         <sigaltstack-offsets.h>.
6719         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
6720         longjmp_msg pointer.
6721         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
6722         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
6723         signal stack.
6724         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
6725
6726 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
6727
6728         * elf/stackguard-macros.h: Remove file.
6729         * sysdeps/generic/stackguard-macros.h: New file.
6730         * sysdeps/i386/stackguard-macros.h: Likewise.
6731         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
6732         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
6733         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
6734         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
6735         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
6736         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
6737         * sysdeps/x86_64/stackguard-macros.h: Likewise.
6738         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
6739         <elf/stackguard-macros.h>.
6740
6741         [BZ #14109]
6742         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
6743         __aligned__ in attribute.
6744         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
6745         (gregset_t): Likewise.
6746
6747 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6748
6749         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
6750         * sysdeps/x86_64/64/Implies-after: Here.  New file.
6751         * sysdeps/x86_64/x32/Implies-after: New file.
6752
6753 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6754
6755         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
6756         and access return value for _dl_profile_fixup.  Use R10_LP to
6757         load frame size.
6758
6759 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6760
6761         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
6762
6763 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6764
6765         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
6766         * sysdeps/x86_64/x32/sysdep.h: New file.
6767
6768 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6769
6770         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
6771         * sysdeps/x86_64/setjmp.S: Likewise.
6772
6773 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6774
6775         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
6776         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
6777         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
6778         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
6779         remove unused global constant.
6780
6781 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
6782
6783         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
6784         include of <not-cancel.h>.
6785
6786 2012-05-15  Roland McGrath  <roland@hack.frob.com>
6787
6788         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
6789
6790 2012-05-15  Jeff Law  <law@redhat.com>
6791             Andreas Jaeger  <aj@suse.de>
6792
6793         [BZ #13594]
6794         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
6795         out from...
6796         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
6797         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
6798         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
6799         code changing __hst_map_handle.map.
6800
6801 2012-05-15  Roland McGrath  <roland@hack.frob.com>
6802
6803         * configure.in (sysnames): Look for Implies-before and Implies-after
6804         files.
6805         * configure: Regenerated.
6806
6807 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6808
6809         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
6810         8-byte data alignment with LP_SIZE alignment.
6811
6812 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6813
6814         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
6815         into R10_LP.
6816
6817 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6818
6819         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
6820
6821 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6822
6823         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
6824         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
6825         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
6826         Likewise.
6827         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
6828
6829 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6830
6831         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
6832         (stackinfo_sub_sp): Likewise.
6833
6834 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6835
6836         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
6837         RAX_LP.
6838
6839 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6840
6841         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
6842         into R*_LP.
6843
6844 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6845
6846         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
6847         sizes into R*_LP.
6848
6849 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6850
6851         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
6852
6853 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6854
6855         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
6856         into R11_LP and load __x86_64_shared_cache_size_half into
6857         R8_LP.
6858
6859 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
6860
6861         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
6862         R8_LP.
6863
6864 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6865
6866         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
6867         logb for POWER7.
6868         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
6869         logbf for POWER7.
6870         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
6871         logbl for POWER7.
6872         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
6873         powerpc32/power7/fpu/s_logb.c via #include.
6874         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
6875         powerpc32/power7/fpu/s_logbf.c via #include.
6876         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
6877         powerpc32/power7/fpu/s_logbl.c via #include.
6878
6879 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
6880
6881         * README.libm: Remove file.
6882
6883 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6884
6885         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
6886         count for x32.  Use R*_LP and omit operand-size suffix.
6887
6888 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6889
6890         * shlib-versions: Move x86_64-.*-linux.* entries to ...
6891         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
6892         * sysdeps/x86_64/x32/shlib-versions: New file.
6893
6894 2012-05-14  Roland McGrath  <roland@hack.frob.com>
6895
6896         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
6897         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
6898         Use _dl_fatal_printf instead.
6899
6900 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
6901
6902         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
6903         set if not set by the user.  Do not allow for being unset.
6904         * sysdeps/unix/sysv/linux/configure: Regenerated.
6905
6906 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6907
6908         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
6909         the `q' suffix from lea and replace .quad with ASM_ADDR.
6910
6911 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6912
6913         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
6914         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
6915         instead of $17.
6916         (PTR_DEMANGLE): Likewise.
6917
6918 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6919
6920         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
6921         (LP_OP): Likewise.
6922         (ASM_ADDR): Likewise.
6923         (RAX_LP): Likewise.
6924         (RBP_LP): Likewise.
6925         (RBX_LP): Likewise.
6926         (RCX_LP): Likewise.
6927         (RDI_LP): Likewise.
6928         (RSI_LP): Likewise.
6929         (RSP_LP): Likewise.
6930         (R8_LP): Likewise.
6931         (R9_LP): Likewise.
6932         (R10_LP): Likewise.
6933         (R10_LP): Likewise.
6934         (R11_LP): Likewise.
6935         (R12_LP): Likewise.
6936         (R13_LP): Likewise.
6937         (R14_LP): Likewise.
6938         (R15_LP): Likewise.
6939
6940 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
6941
6942         * sysdeps/x86_64/x32/dl-machine.h: New file.
6943
6944 2012-05-14  Andreas Jaeger  <aj@suse.de>
6945
6946         * manual/Makefile (subdir): Remove export of subdir.
6947         (all): Remove target.
6948         (.PHONY): Remove all from list.
6949         (mkinstalldirs): Remove.
6950         (.PHONY): Remove installdirs from list.
6951         ($(inst_infodir)/libc.info): Use make-target-directory.
6952         (installdirs): Remove.
6953         (subdir_%): Remove.
6954         (glibc-targets): Remove.
6955         (lib): Remove.
6956         (stubs): Remove.
6957         ($(objpfx)stubs ../po/manual.pot): Remove.
6958         ($(objpfx)stamp%): Remove.
6959         (make-target-directory): Remove.
6960         (subdir_install): Remove.
6961         (routines): Remove.
6962         (aux): Remove.
6963         (sources): Remove.
6964         (objects): Remove.
6965         (headers): Remove.
6966
6967         [BZ #13750]
6968         * manual/.gitignore: Remove, it's not needed anymore.
6969         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
6970         all files in it.
6971         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
6972         directory.
6973         (texis): Renamed to $(objpfx)texis.
6974         (texis-path): New, contains path to generated files.
6975         (chapters.%): Use texis-path for complete path, add extra argument
6976         libc-texinfo.sh.
6977         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
6978         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
6979         (summary,texi, stamp-summary): Use complete path of
6980         files. Generate files in build dir.
6981         (dir-add.texi): Build in build dir.
6982         (libm-err.texi,stamp-libm-err): Likewise.
6983         (version.texi, stamp-version): Likewise.
6984         (.%c.texi): Likewise.
6985         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
6986         (mostlyclean): Remove target.
6987         (realclean): Remove target.
6988         (generated): Add new variable with contents from mostlyclean and
6989         realclean, remove entries duplicated in common-mostlyclean, add
6990         stamp-libm-err and stamp-version.
6991         (generated-dirs): Add libc directory.
6992         ($(inst_infodir)/libc.info): Install files from build dir.
6993
6994         * manual/install.texi (Configuring and compiling): Adjust since
6995         the info files are not part of the tar ball anymore.
6996
6997 2012-05-14  Andreas Jaeger  <aj@suse.de>
6998
6999         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
7000         variable.
7001
7002 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
7003
7004         [BZ #13717]
7005         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
7006         to 2.2.0 where earlier.
7007         * sysdeps/unix/sysv/linux/configure: Regenerated.
7008         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
7009         Remove conditional code.
7010         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
7011         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
7012         Remove conditional code.
7013         [!__NR_lchown]: Likewise.
7014         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
7015         [__NR_lchown]: Likewise.
7016         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
7017         comment referencing __ASSUME_LCHOWN_SYSCALL.
7018         * sysdeps/unix/sysv/linux/i386/sigaction.c
7019         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
7020         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
7021         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
7022         Remove conditional code.
7023         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
7024         (__protocol_available): Remove #if 0 code.
7025         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
7026         conditional code.
7027         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
7028         * sysdeps/unix/sysv/linux/kernel-features.h
7029         (__ASSUME_GETCWD_SYSCALL): Don't define.
7030         (__ASSUME_REALTIME_SIGNALS): Likewise.
7031         (__ASSUME_PREAD_SYSCALL): Likewise.
7032         (__ASSUME_PWRITE_SYSCALL): Likewise.
7033         (__ASSUME_POLL_SYSCALL): Likewise.
7034         (__ASSUME_LCHOWN_SYSCALL): Likewise.
7035         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
7036         non-SPARC.
7037         (__ASSUME_SIOCGIFNAME): Don't define.
7038         (__ASSUME_MSG_NOSIGNAL): Likewise.
7039         (__ASSUME_SENDFILE): Define unconditionally.
7040         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
7041         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
7042         conditional code.
7043         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
7044         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
7045         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
7046         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
7047         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
7048         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
7049         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
7050         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
7051         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
7052         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7053         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
7054         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
7055         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7056         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
7057         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
7058         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7059         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
7060         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
7061         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7062         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
7063         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
7064         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7065         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
7066         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
7067         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7068         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
7069         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
7070         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7071         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
7072         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
7073         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7074         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
7075         Remove conditional code.
7076         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7077         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
7078         Remove conditional code.
7079         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7080         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
7081         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
7082         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
7083         Remove conditional code.
7084         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7085         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
7086         Remove conditional code.
7087         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7088         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
7089         Remove conditional code.
7090         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7091         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
7092         Remove conditional code.
7093         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
7094         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
7095         Remove conditional code.
7096         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7097         * sysdeps/unix/sysv/linux/sh/pwrite64.c
7098         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
7099         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
7100         * sysdeps/unix/sysv/linux/sigaction.c
7101         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
7102         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
7103         * sysdeps/unix/sysv/linux/sigpending.c
7104         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
7105         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
7106         * sysdeps/unix/sysv/linux/sigprocmask.c
7107         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
7108         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
7109         * sysdeps/unix/sysv/linux/sigsuspend.c
7110         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
7111         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
7112         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
7113         (__libc_missing_rt_sigs): Remove.
7114         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
7115         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
7116         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
7117         Remove conditional code.
7118         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
7119         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
7120         return 1.
7121         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
7122         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
7123         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
7124         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
7125
7126 2012-05-14  Andreas Jaeger  <aj@suse.de>
7127
7128         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
7129         it's not used in glibc.
7130         (__coshm1): Likewise.
7131         (__acosh1p): Likewise.
7132         (__sgn): Likewise.
7133
7134         * manual/string.texi (Copying and Concatenation): Add missing
7135         variable in concat example.
7136         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
7137
7138 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7139
7140         [BZ #14103]
7141         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
7142         __builtin_clzl with __builtin_clzll.
7143
7144 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7145
7146         [BZ #14104]
7147         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
7148         libc_freeres_ptr.
7149
7150 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7151
7152         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
7153         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
7154         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
7155         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
7156
7157 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
7158
7159         * NEWS: Update ia64 info.
7160
7161 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
7162
7163         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
7164         used as bcopy.
7165
7166 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
7167
7168         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
7169         * sysdeps/unix/syscalls.list (dup3): Likewise.
7170         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
7171         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
7172
7173 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
7174
7175         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
7176         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
7177
7178 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
7179
7180         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
7181         thread pointer.
7182         (TLS_IE): Use mov/add instead of movq/addq to load thread
7183         pointer.
7184         (TLS_GD_PREFIX): New.
7185         (TLS_GD): Use it.
7186
7187 2012-05-11  David S. Miller  <davem@davemloft.net>
7188
7189         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
7190         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
7191         (_FPU_SETCW): Likewise.
7192
7193 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
7194
7195         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
7196         is 32-byte aligned.
7197
7198 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
7199
7200         [BZ #11837]
7201         * iconvdata/gb18030.c: Update tables.
7202         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
7203         characters specially.
7204         (BODY for TO_LOOP): Add encoding of missing ranges.
7205
7206 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
7207
7208         [BZ #13673]
7209         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
7210         * sysdeps/mach/hurd/dup3.c: Likewise.
7211         * sysdeps/mach/hurd/readlinkat.c: Likewise.
7212         * sysdeps/powerpc/memmove.c:: Likewise.
7213
7214 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
7215
7216         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
7217         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
7218
7219 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
7220
7221         * elf/elf.h (R_X86_64_RELATIVE64): New.
7222         (R_X86_64_NUM): Updated.
7223         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
7224         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
7225         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
7226         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
7227         tst-quad1pie tst-quad2pie
7228         (modules-names): Add tst-quadmod1 tst-quadmod2.
7229         ($(objpfx)tst-quad1): New dependency.
7230         ($(objpfx)tst-quad2): Likewise.
7231         ($(objpfx)tst-quad1pie): Likewise.
7232         ($(objpfx)tst-quad2pie): Likewise.
7233         * sysdeps/x86_64/tst-quad1.c: New file.
7234         * sysdeps/x86_64/tst-quad1pie.c: New file.
7235         * sysdeps/x86_64/tst-quad2.c: Likewise.
7236         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
7237         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
7238         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
7239         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
7240         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
7241
7242 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7243
7244         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
7245         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
7246         * streams/stropts.h (t_scalar_t): Define type.
7247
7248         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
7249         (_PATH_PRESERVE): Set to "/var/lib".
7250         (_PATH_RWHODIR): Set to "/var/spool/rwho".
7251
7252         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
7253         instead of int.
7254
7255         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
7256         if __dir_mkfile succeeded.
7257
7258         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
7259         checking for _hurd_dtablesize.  Unlock it right after having
7260         finished _hurd_dtable allocation.
7261
7262 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7263
7264         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
7265         * sysdeps/mach/hurd/configure: Regenerated.
7266         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
7267         special-casing to...
7268         * sysdeps/gnu/configure.in: ... this new file.
7269         * sysdeps/unix/sysv/linux/configure: Regenerated.
7270         * sysdeps/gnu/configure: New generated file.
7271
7272         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
7273         for Linux: use nsec instead of usec, as well as:
7274         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
7275         members of type struct timespec.
7276         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
7277         New macros.
7278         (struct stat64): Likewise.
7279         (_STATBUF_ST_NSEC): New macro.
7280         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
7281
7282         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
7283         __strtoul_internal rather than strtoul.
7284
7285 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
7286
7287         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
7288         and reject them.
7289
7290 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7291
7292         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
7293         which preserves existing values.
7294         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
7295
7296 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
7297
7298         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
7299         TIMEOUT values.  Return EINVAL for NFDS values either negative or
7300         greater than FD_SETSIZE.
7301
7302 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7303
7304         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
7305         allocated, call __vm_protect to finish enabling the existing space, and
7306         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
7307         allocate the remainder.
7308
7309 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
7310
7311         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
7312         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
7313
7314 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7315
7316         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
7317         sysdeps/mach/hurd/readlink.c.
7318
7319         * posix/tst-sysconf.c (posix_options): Only use
7320         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
7321         _POSIX_SYNCHRONIZED_IO when they are defined
7322         * sysdeps/mach/hurd/bits/posix_opt.h:
7323         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
7324         (_XOPEN_REALTIME): Undefine macro.
7325         (_XOPEN_REALTIME_THREADS): Undefine macro.
7326         (_XOPEN_SHM): Undefine macro.
7327         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
7328         macro to -1.
7329         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
7330         macro to -1.
7331         (_POSIX_ASYNC_IO): Undefine macro.
7332         (_POSIX_PRIORITIZED_IO): Undefine macro.
7333         (_POSIX_SPIN_LOCKS): Define macro to -1.
7334
7335         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
7336         SA_NODEFER, SA_RESETHAND.
7337         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
7338         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
7339         F_DUPFD_CLOEXEC.
7340
7341 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7342
7343         * elf/Makefile (pldd-modules): Define unconditionally.
7344
7345 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7346
7347         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
7348
7349 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7350
7351         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
7352         Return ENOENT when name is empty.
7353         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
7354
7355 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7356
7357         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
7358
7359         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
7360
7361 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7362
7363         Fix mlock in all cases except non-readable pages.
7364         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
7365         instead of VM_PROT_ALL as parameter to __vm_wire function.
7366
7367         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
7368         (__mkdir): When path is `/', just fail with EEXIST.
7369         * sysdeps/mach/hurd/mkdirat.c: Likewise.
7370
7371 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7372
7373         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
7374         <sys/uio.h> (for writev).
7375         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
7376         and <sys/param.h> (for MIN).
7377
7378 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
7379
7380         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
7381         REQUESTED_TIME.  Properly set the remaining time and return EINTR
7382         if interrupted.
7383
7384 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7385
7386         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
7387         Depend on against $(link-rpcuserlibs).
7388
7389 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7390
7391         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
7392         (__libc_stack_end): Do not use attribute_relro.
7393         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
7394         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
7395         to libthread-provided value.
7396         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
7397         attribute_relro.
7398
7399 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7400
7401         [BZ #3748]
7402         * bits/libc-lock.h (__libc_once_get): New macro.
7403         * sysdeps/mach/bits/libc-lock.h: Likewise.
7404         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
7405         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
7406         instead of using implementation details.
7407
7408         * libio/fileops.c: Unconditionally include <kernel-features.h>.
7409         * libio/freopen.c: Likewise.
7410         * libio/freopen64.c: Likewise.
7411         * misc/syslog.c: Likewise.
7412         * nscd/connections.c: Likewise.
7413         * nscd/netgroupcache.c: Likewise.
7414         * sysdeps/posix/getcwd.c: Likewise.
7415
7416 2012-05-10  Roland McGrath  <roland@hack.frob.com>
7417
7418         * math/w_ilogbf.c: Add #include <limits.h>.
7419
7420 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7421
7422         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
7423         path instead of returning without unlocking.
7424
7425         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
7426         immediate-write ioctls.
7427         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
7428
7429 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7430
7431         * sysdeps/mach/hurd/i386/init-first.c (init): Use
7432         __builtin_frame_address instead of making assumptions about the
7433         location of the return address relative to DATA.  Force early load of
7434         the return address.
7435         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
7436         __builtin_frame_address.
7437
7438         dup3 for GNU Hurd.
7439         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
7440         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
7441         implement dup3 and do some further code clean-ups.
7442         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
7443         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
7444
7445 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7446
7447         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
7448
7449         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
7450         HURD_CRITICAL_END around holding _hurd_dtable_lock.
7451         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
7452         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
7453         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
7454         d->port.lock.
7455
7456         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
7457         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
7458         when handler == SIG_ERR, not when handler != SIG_ERR.
7459
7460 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7461
7462         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
7463         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
7464         definitions.
7465
7466         accept4 for GNU Hurd.
7467         * include/sys/socket.h (__libc_accept4): New prototype.
7468         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
7469         to implement __libc_accept4.
7470         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
7471         __libc_accept4.
7472         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
7473
7474         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
7475         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
7476         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
7477         signal-defines.sym.
7478
7479 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7480
7481         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
7482
7483 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
7484
7485         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
7486         assertion on O_CLOEXEC flag.
7487         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
7488         * hurd/intern-fd.c: Likewise.
7489         * hurd/port2fd.c: Likewise.
7490
7491 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7492
7493         [BZ #3906]
7494         * bits/in.h (IPV6_PKTINFO): Define new macro.
7495         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
7496
7497 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7498
7499         [BZ #13954]
7500         [BZ #13955]
7501         [BZ #13956]
7502         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
7503         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
7504         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
7505         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
7506         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
7507         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
7508         * math/libm-test.inc (logb_test) : Additional logb tests.
7509
7510 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
7511             Andreas Jaeger  <aj@suse.de>
7512
7513         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
7514         * configure: Regenerated.
7515         * config.h.in (LINK_OBSOLETE_RPC): New macro.
7516         * config.make.in (link-obsolete-rpc): New substituted variable.
7517         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
7518         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
7519         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
7520         (shared-only-routines): Don't set it under [link-obsolete-rpc],
7521         so that libc.a contains the symbols.
7522         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
7523         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
7524         * sunrpc/auth_none.c: Likewise.
7525         * sunrpc/auth_unix.c: Likewise.
7526         * sunrpc/authdes_prot.c: Likewise.
7527         * sunrpc/authuxprot.c: Likewise.
7528         * sunrpc/clnt_gen.c: Likewise.
7529         * sunrpc/clnt_perr.c: Likewise.
7530         * sunrpc/clnt_raw.c: Likewise.
7531         * sunrpc/clnt_simp.c: Likewise.
7532         * sunrpc/clnt_tcp.c: Likewise.
7533         * sunrpc/clnt_udp.c: Likewise.
7534         * sunrpc/clnt_unix.c: Likewise.
7535         * sunrpc/des_crypt.c: Likewise.
7536         * sunrpc/des_soft.c: Likewise.
7537         * sunrpc/get_myaddr.c: Likewise.
7538         * sunrpc/key_call.c: Likewise.
7539         * sunrpc/key_prot.c: Likewise.
7540         * sunrpc/netname.c: Likewise.
7541         * sunrpc/pm_getmaps.c: Likewise.
7542         * sunrpc/pm_getport.c: Likewise.
7543         * sunrpc/pmap_clnt.c: Likewise.
7544         * sunrpc/pmap_prot.c: Likewise.
7545         * sunrpc/pmap_prot2.c: Likewise.
7546         * sunrpc/pmap_rmt.c: Likewise.
7547         * sunrpc/publickey.c: Likewise.
7548         * sunrpc/rpc_cmsg.c: Likewise.
7549         * sunrpc/rpc_common.c: Likewise.
7550         * sunrpc/rpc_dtable.c: Likewise.
7551         * sunrpc/rpc_prot.c: Likewise.
7552         * sunrpc/rpc_thread.c: Likewise.
7553         * sunrpc/rtime.c: Likewise.
7554         * sunrpc/svc.c: Likewise.
7555         * sunrpc/svc_auth.c: Likewise.
7556         * sunrpc/svc_raw.c: Likewise.
7557         * sunrpc/svc_run.c: Likewise.
7558         * sunrpc/svc_tcp.c: Likewise.
7559         * sunrpc/svc_udp.c: Likewise.
7560         * sunrpc/svc_unix.c: Likewise.
7561         * sunrpc/svcauth_des.c: Likewise.
7562         * sunrpc/xcrypt.c: Likewise.
7563         * sunrpc/xdr.c: Likewise.
7564         * sunrpc/xdr_array.c: Likewise.
7565         * sunrpc/xdr_float.c: Likewise.
7566         * sunrpc/xdr_intXX_t.c: Likewise.
7567         * sunrpc/xdr_mem.c: Likewise.
7568         * sunrpc/xdr_rec.c: Likewise.
7569         * sunrpc/xdr_ref.c: Likewise.
7570         * sunrpc/xdr_sizeof.c: Likewise.
7571         * sunrpc/xdr_stdio.c: Likewise.
7572
7573 2012-05-10  Roland McGrath  <roland@hack.frob.com>
7574
7575         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
7576         change.  Update copyright years.
7577
7578 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
7579
7580         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
7581
7582 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
7583             Joseph Myers  <joseph@codesourcery.com>
7584             Paul Pluzhnikov  <ppluzhnikov@google.com>
7585
7586         [BZ #14012]
7587         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
7588         requiring rpcgen.
7589         [cross-compiling] (extra-libs): Likewise.
7590         [cross-compiling] (extra-libs-others): Likewise.
7591         [cross-compiling] (librpcsvc-routines): Likewise.
7592         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
7593         [cross-compiling] (omit-deps): Likewise.
7594         (sunrpc-CPPFLAGS): New variable.
7595         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
7596         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
7597         (cross-rpcgen-objs): New variable.
7598         (extra-objs): Append $(cross-rpcgen-objs).
7599         ($(cross-rpcgen-objs)): New rule.
7600         ($(objpfx)cross-rpcgen): Likewise.
7601         (rpcgen-cmd): Define to use $(built-program-file).  Expand
7602         comment.
7603         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
7604         ($(objpfx)x%.stmp): Likewise.
7605         * sunrpc/proto.h [IS_IN_build] (_): Define.
7606         [IS_IN_build] (_libc_intl_domainname): Likewise.
7607
7608 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
7609
7610         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
7611         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
7612         and R_X86_64_TPOFF64.
7613
7614 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
7615
7616         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
7617         sysdeps/unix/sysv/syscalls.list.
7618         (stime): Likewise.
7619         (utime): Likewise.
7620         * sysdeps/unix/sysv/syscalls.list: Remove file.
7621
7622 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
7623
7624         [BZ #3440]
7625         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
7626         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
7627         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
7628         (__LC_IDENTIFICATION): Make these macros useful in #if
7629         expressions, as required by C99.
7630
7631 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
7632
7633         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
7634         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
7635         after this.
7636
7637 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
7638
7639         * stdlib/longlong.h: Updated from GCC.
7640
7641 2012-05-09  Andreas Jaeger  <aj@suse.de>
7642
7643         * nscd/nscd.c (run_modes): Make named enum, reorder so that
7644         default is first entry.
7645         (run_mode): Set type.
7646         (main): Remove informal message about syslog.
7647         (options): Fix typo.
7648
7649         [BZ #14053]
7650         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
7651         to asm.
7652         (lrint): Likewise.
7653         (llrintf): Likewise.
7654         (llrint): Likewise.
7655         (rint): Likewise.
7656         (rintf): Likewise.
7657         (nearbyint): Likewise.
7658         (nearbyintf): Likewise.
7659
7660 2012-05-09  Andreas Jaeger  <aj@suse.de>
7661             Pedro Alves  <palves@redhat.com>
7662
7663         * nscd/nscd.c (run_mode): Use enum.
7664         (main): Cleanup coding style issue.
7665
7666 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
7667             Andreas Jaeger  <aj@suse.de>
7668
7669         * nscd/nscd.c (go_background): Replaced with...
7670         (run_mode): ... this.
7671         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
7672         (options): Add -F --foreground.
7673         (main): Implement it.
7674         (parse_opt): Parse it.
7675
7676 2012-05-09  Andreas Jaeger  <aj@suse.de>
7677
7678         [BZ #14083]
7679         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
7680         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
7681         -Wconversion warning.
7682         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
7683         Likewise.
7684
7685 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
7686
7687         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
7688         == 0.
7689         (LC_ALL): Use macro-int-constant.
7690         (LC_COLLATE): Likewise.
7691         (LC_CTYPE): Likewise.
7692         (LC_MESSAGES): Likewise.
7693         (LC_MONETARY): Likewise.
7694         (LC_NUMERIC): Likewise.
7695         (LC_TIME): Likewise.
7696         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
7697         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
7698         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7699         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
7700         Specify type.
7701         [C99-based standards] (float_t): Expect type.
7702         [C99-based standards] (double_t): Expect type.
7703         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
7704         type.
7705         [C99-based standards] (HUGE_VALL): Likewise.
7706         [C99-based standards] (INFINITY): Likewise.
7707         [C99-based standards] (NAN): Likewise.
7708         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
7709         [C99-based standards] (FP_NAN): Likewise.
7710         [C99-based standards] (FP_NORMAL): Likewise.
7711         [C99-based standards] (FP_SUBNORMAL): Likewise.
7712         [C99-based standards] (FP_ZERO): Likewise.
7713         [C99-based standards] (FP_FAST_FMA): Use
7714         optional-macro-int-constant.  Specify type.  Require == 1.
7715         [C99-based standards] (FP_FAST_FMAF): Likewise.
7716         [C99-based standards] (FP_FAST_FMAL): Likewise.
7717         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
7718         [C99-based standards] (FP_ILOGBNAN): Likewise.
7719         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
7720         Specify type.
7721         [C99-based standards] (MATH_ERREXCEPT): Likewise.
7722         [C99-based standards] (math_errhandling): Specify type.
7723         [ISO99 || ISO11] (signgam): Do not allow.
7724         [non-C99-based standards] (copysignf): Do not allow.
7725         [non-C99-based standards] (exp2f): Likewise.
7726         [non-C99-based standards] (log2f): Likewise.
7727         [non-C99-based standards] (modff): Allow.
7728         [non-C99-based standards] (erff): Do not allow.
7729         [non-C99-based standards] (erfcf): Likewise.
7730         [non-C99-based standards] (gammaf): Likewise.
7731         [non-C99-based standards] (hypotf): Likewise.
7732         [non-C99-based standards] (j0f): Likewise.
7733         [non-C99-based standards] (j1f): Likewise.
7734         [non-C99-based standards] (jnf): Likewise.
7735         [non-C99-based standards] (lgammaf): Likewise.
7736         [non-C99-based standards] (tgammaf): Likewise.
7737         [non-C99-based standards] (y0f): Likewise.
7738         [non-C99-based standards] (y1f): Likewise.
7739         [non-C99-based standards] (ynf): Likewise.
7740         [non-C99-based standards] (isnanf): Likewise.
7741         [non-C99-based standards] (acoshf): Likewise.
7742         [non-C99-based standards] (asinhf): Likewise.
7743         [non-C99-based standards] (atanhf): Likewise.
7744         [non-C99-based standards] (cbrtf): Likewise.
7745         [non-C99-based standards] (expm1f): Likewise.
7746         [non-C99-based standards] (ilogbf): Likewise.
7747         [non-C99-based standards] (log1pf): Likewise.
7748         [non-C99-based standards] (logbf): Likewise.
7749         [non-C99-based standards] (nextafterf): Likewise.
7750         [non-C99-based standards] (remainderf): Likewise.
7751         [non-C99-based standards] (rintf): Likewise.
7752         [non-C99-based standards] (scalbf): Likewise.
7753         [non-C99-based standards] (copysignl): Likewise.
7754         [non-C99-based standards] (exp2l): Likewise.
7755         [non-C99-based standards] (log2l): Likewise.
7756         [non-C99-based standards] (modfl): Allow.
7757         [non-C99-based standards] (erfl): Do not allow.
7758         [non-C99-based standards] (erfcl): Likewise.
7759         [non-C99-based standards] (gammal): Likewise.
7760         [non-C99-based standards] (hypotl): Likewise.
7761         [non-C99-based standards] (j0l): Likewise.
7762         [non-C99-based standards] (j1l): Likewise.
7763         [non-C99-based standards] (jnl): Likewise.
7764         [non-C99-based standards] (lgammal): Likewise.
7765         [non-C99-based standards] (tgammal): Likewise.
7766         [non-C99-based standards] (y0l): Likewise.
7767         [non-C99-based standards] (y1l): Likewise.
7768         [non-C99-based standards] (ynl): Likewise.
7769         [non-C99-based standards] (isnanl): Likewise.
7770         [non-C99-based standards] (acoshl): Likewise.
7771         [non-C99-based standards] (asinhl): Likewise.
7772         [non-C99-based standards] (atanhl): Likewise.
7773         [non-C99-based standards] (cbrtl): Likewise.
7774         [non-C99-based standards] (expm1l): Likewise.
7775         [non-C99-based standards] (ilogbl): Likewise.
7776         [non-C99-based standards] (log1pl): Likewise.
7777         [non-C99-based standards] (logbl): Likewise.
7778         [non-C99-based standards] (nextafterl): Likewise.
7779         [non-C99-based standards] (remainderl): Likewise.
7780         [non-C99-based standards] (rintl): Likewise.
7781         [non-C99-based standards] (scalbl): Likewise.
7782         [ISO || ISO99 || ISO11] (*_t): Do not allow.
7783         [non-C99-based standards] (FP_*): Do not allow.
7784         [C99-based standards] (FP_*): Change to
7785         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
7786         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
7787         allow.
7788         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
7789         (SIG_ERR): Likewise.
7790         [X/Open-based standards] (SIG_HOLD): Likewise.
7791         (SIG_IGN): Likewise.
7792         (SIGABRT): Use macro-int-constant.  Specify type.  Require
7793         positive value.
7794         (SIGFPE): Likewise.
7795         (SIGILL): Likewise.
7796         (SIGINT): Likewise.
7797         (SIGSEGV): Likewise.
7798         (SIGTER): Likewise.
7799         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
7800         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
7801         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
7802         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
7803         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
7804         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
7805         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
7806         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
7807         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
7808         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
7809         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
7810         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
7811         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
7812         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
7813         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
7814         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
7815         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
7816         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
7817         [X/Open-based standards] (SIGTRAP): Likewise.
7818         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
7819         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
7820         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
7821         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
7822         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
7823         allow.
7824
7825 2012-05-08  Ian Wienand  <ianw@vmware.com>
7826
7827         [BZ #14080]
7828         * time/tzset.c (__tzset_parse_tz): Update default rules for
7829         daylight time changes in the Energy Policy Act of 2005.
7830
7831 2012-05-09  Andreas Jaeger  <aj@suse.de>
7832
7833         [BZ #13983]
7834         * elf/ldconfig.c (parse_conf): Change string to make clear that
7835         ldconfig only issued a warning if ld.so.conf does not exist.
7836
7837 2012-05-08  David S. Miller  <davem@davemloft.net>
7838
7839         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
7840         movxtod instead of popping the value on the stack.
7841
7842         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7843
7844 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
7845
7846         * config.h.in: Add HAVE_ARM_PCS_VFP.
7847
7848 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
7849
7850         [BZ #13979]
7851         * include/features.h: Warn if user requests __FORTIFY_SOURCE
7852         checking but the checks are disabled for any reason.
7853
7854 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
7855
7856         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
7857         and ELF64_R_TYPE with ELFW(R_TYPE).
7858
7859 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
7860
7861         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
7862         (ulimit): Likewise.
7863
7864         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
7865         (settimeofday): Likewise.
7866
7867 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
7868
7869         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
7870         a struct th_u2 inside the union, and move tu_block/tu_code into
7871         a new th_u3 union of tu_block/tu_code inside of that.  Move
7872         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
7873         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
7874         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
7875         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
7876         (th_stuff): Change to th_u1.tu_stuff.
7877         (th_data): Define.
7878         (th_msg): Change to th_u1.th_u2.tu_data.
7879
7880 2012-05-07  David S. Miller  <davem@davemloft.net>
7881
7882         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7883
7884         [BZ #14074]
7885         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
7886         (SETUP_PIC_REG): Use it.
7887         (SETUP_PIC_REG_LEAF): Use it.
7888
7889 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
7890
7891         [BZ #13885]
7892         [BZ #13923]
7893         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7894         USE_AS_EXPM1L.
7895         (EXPL_FINITE): Likewise.
7896         (FLDLOG): Likewise.
7897         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
7898         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
7899         e_expl.S.
7900         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7901         USE_AS_EXPM1L.
7902         (EXPL_FINITE): Likewise.
7903         (FLDLOG): Likewise.
7904         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
7905         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
7906         e_expl.S.
7907         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
7908         test of -max_value argument for long double.
7909         * sysdeps/i386/fpu/libm-test-ulps: Update.
7910         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7911
7912 2012-05-06  David S. Miller  <davem@davemloft.net>
7913
7914         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
7915         quad soft-float symbols whose references which are compiler
7916         generated.
7917         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
7918
7919 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
7920
7921         [BZ #13884]
7922         [BZ #13914]
7923         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7924         USE_AS_EXP10L.
7925         (EXPL_FINITE): Likewise.
7926         (FLDLOG): Likewise.
7927         (c0): Likewise.
7928         (c1): Likewise.
7929         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
7930         Adjust comments for base varying.
7931         (__expl_finite): Change alias to EXPL_FINITE.
7932         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
7933         e_expl.S.
7934         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
7935         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
7936         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
7937         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
7938         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
7939         USE_AS_EXP10L.
7940         (EXPL_FINITE): Likewise.
7941         (FLDLOG): Likewise.
7942         (c0): Likewise.
7943         (c1): Likewise.
7944         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
7945         Adjust comments for base varying.
7946         (__expl_finite): Change alias to EXPL_FINITE.
7947         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
7948         tests for bugs.
7949         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7950
7951         [BZ #14064]
7952         * math/libm-test.inc (check_float_internal): Correct ulp
7953         calculation for subnormal expected results.
7954
7955 2012-05-06  Andreas Jaeger  <aj@suse.de>
7956
7957         * Makeconfig (+math-flags): New, set to -frounding-math.
7958         (+cflags): Add +math-flags so that all of glibc gets compiled with
7959         it.
7960
7961         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
7962
7963 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
7964
7965         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
7966         Disable one test.
7967
7968         [BZ #13787]
7969         [BZ #13922]
7970         [BZ #14036]
7971         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
7972         (__ieee754_expl): Allow for and saturate large arguments.
7973         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
7974         (u_threshold): Likewise.
7975         (__exp): Call __ieee754_exp before checking for overflow and
7976         underflow.
7977         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
7978         (u_threshold): Likewise.
7979         (__expf): Call __ieee754_expf before checking for overflow and
7980         underflow.
7981         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
7982         (u_threshold): Likewise.
7983         (__expl): Call __ieee754_expl before checking for overflow and
7984         underflow.
7985         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
7986         (__ieee754_expl): Allow for and saturate large arguments.
7987         * math/libm-test.inc (exp_test): Add another test.  Do not allow
7988         missing overflow exception on overflow.
7989         (expm1_test): Do not allow missing overflow exception on overflow.
7990
7991         * sysdeps/i386/fpu/e_expl.c: Move to ...
7992         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
7993         rather than using inline asm.
7994         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
7995         * sysdeps/x86_64/fpu/e_expl.S: Copy from
7996         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
7997
7998         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
7999         (nice): Likewise.
8000         (poll): Likewise.
8001         (signal): Likewise.
8002         (time): Likewise.
8003         (times): Likewise.
8004
8005 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
8006
8007         * sysdeps/unix/syscalls.list (adjtime): Add entry from
8008         sysdeps/unix/common/syscalls.list.
8009         (fchmod): Likewise.
8010         (fchown): Likewise.
8011         (ftruncate): Likewise.
8012         (getrusage): Likewise.
8013         (gettimeofday): Likewise.
8014         (setpgid): Likewise.
8015         (setregid): Likewise.
8016         (setreuid): Likewise.
8017         (sigaction): Likewise.
8018         (truncate): Likewise.
8019         (vhangup): Likewise.
8020         * sysdeps/unix/common/syscalls.list: Remove file.
8021         * sysdeps/unix/bsd/Implies: Don't include unix/common.
8022         * sysdeps/unix/sysv/linux/Implies: Likewise.
8023
8024 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
8025
8026         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
8027         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
8028         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
8029         Moved to ...
8030         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
8031         Here.
8032         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
8033         to ...
8034         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
8035         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
8036         to ...
8037         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
8038         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
8039         to ...
8040         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
8041         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
8042         to ...
8043         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
8044         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
8045         to ...
8046         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
8047         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
8048         to ...
8049         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
8050         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
8051         to ...
8052         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
8053         Here.
8054         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
8055         to ...
8056         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
8057         Here.
8058         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
8059         to ...
8060         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
8061         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
8062         Moved to ...
8063         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
8064         Here.
8065         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
8066         to ...
8067         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
8068
8069 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
8070
8071         * sysdeps/unix/common/bits/dirent.h: Remove file.
8072         * sysdeps/unix/common/bits/fcntl.h: Likewise.
8073
8074         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
8075         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
8076         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
8077         * sysdeps/unix/bsd/isatty.c: Likewise.
8078         * sysdeps/unix/bsd/tcdrain.c: Likewise.
8079         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
8080         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
8081
8082 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8083
8084         [BZ #13563]
8085         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
8086         long double comparison inaccuracies.
8087         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
8088         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8089
8090 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
8091
8092         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
8093         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
8094
8095 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
8096
8097         [BZ #14049]
8098         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
8099         nonzero digits before rounding a hex value.
8100         * stdlib/tst-strtod.c (tests): Add another test.
8101
8102 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8103
8104         * sysdeps/s390/fpu/libm-test-ulps: Update.
8105
8106 2012-05-03  Andreas Jaeger  <aj@suse.de>
8107
8108         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
8109         does not get optimized out.
8110         (malloc_opt_barrier): New.
8111
8112 2012-05-03  Andreas Jaeger  <aj@suse.de>
8113             Roland McGrath  <roland@hack.frob.com>
8114
8115         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
8116         intermediate file deletion.
8117         (generated): Add .symlist files.
8118
8119 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
8120
8121         [BZ #13775]
8122         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
8123         Redirect under this condition.
8124         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
8125         [__USE_GNU] (__dprintf_chk): Not under this condition.
8126         [__USE_GNU] (__vdprintf_chk): Likewise.
8127         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
8128         under this condition.
8129         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
8130         [__USE_XOPEN2K8] (dprintf): Define under this condition.
8131         [__USE_XOPEN2K8] (vdprintf): Likewise.
8132         [__USE_GNU] (__dprintf_chk): Not under this condition.
8133         [__USE_GNU] (__vdprintf_chk): Likewise.
8134         [__USE_GNU] (dprintf): Likewise.
8135         [__USE_GNU] (vdprintf): Likewise.
8136
8137 2012-05-03  Roland McGrath  <roland@hack.frob.com>
8138
8139         * elf/Makefile (common-generated): Set this instead of generated for
8140         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
8141         $(all-built-dso)-derived lists.
8142
8143 2012-05-03  Andreas Jaeger  <aj@suse.de>
8144
8145         * sysdeps/i386/fpu/libm-test-ulps: Update.
8146
8147         * FAQ: Removed.
8148         * FAQ.in: Likewise.
8149         * scripts/gen-FAQ.pl: Likewise.
8150         * manual/install.texi (Installation): Point to online location of
8151         FAQ.
8152         * Makefile (files-for-dist): Remove FAQ.
8153         (FAQ): Remove.
8154
8155 2012-05-02  Allan McRae  <allan@archlinux.org>
8156
8157         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
8158         (LDFLAGS-reldepmod5.so): Likewise.
8159         (LDFLAGS-reldep6mod1.so): Likewise.
8160         (LDFLAGS-reldep6mod4.so): Likewise.
8161         (LDFLAGS-reldep8mod3.so): Likewise.
8162         (LDFLAGS-unload4mod1.so): Likewise.
8163         (LDFLAGS-unload4mod2.so): Likewise.
8164         (LDFLAGS-tst-initorder): Likewise.
8165         (LDFLAGS-tst-initordera2.so): Likewise.
8166         (LDFLAGS-tst-initordera3.so): Likewise.
8167         (LDFLAGS-tst-initordera4.so): Likewise.
8168         (LDFLAGS-tst-initorderb2.so): Likewise.
8169         (LDFLAGS-noload): Likewise.
8170         (LDFLAGS-next): Likewise.
8171         (LDFLAGS-order2mod1.so): Likewise.
8172         (LDFLAGS-order2mod2.so): Likewise.
8173         (LDFLAGS-tst-initorder2): Likewise.
8174         (LDFLAGS-tst-initorder2a.so): Likewise.
8175         (LDFLAGS-tst-initorder2b.so): Likewise.
8176         (LDFLAGS-tst-initorder2c.so): Likewise.
8177         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
8178
8179 2012-05-02  David S. Miller  <davem@davemloft.net>
8180
8181         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8182
8183 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
8184
8185         [BZ #14055]
8186         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
8187
8188 2012-05-02  Andreas Jaeger  <aj@suse.de>
8189
8190         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
8191         since we manipulate rounding mode.
8192         (CPPFLAGS-test-idouble.c): Likewise.
8193         (CPPFLAGS-test-ifloat.c): Likewise.
8194         (CFLAGS-test-ldouble.c): Likewise.
8195         (CFLAGS-test-double.c): Likewise.
8196         (CFLAGS-test-float.c): Likewise.
8197         (CFLAGS-test-misc.c): Likewise.
8198         (CFLAGS-test-test-fenv.c): Likewise.
8199
8200 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8201
8202         [BZ #2550]
8203         [BZ #2570]
8204         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
8205         comparisons to determine direction to adjust input.
8206
8207 2012-05-01  Roland McGrath  <roland@hack.frob.com>
8208
8209         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
8210         output to the target.
8211
8212         * scripts/localplt.awk: New file.
8213         * elf/Makefile ($(objpfx)check-localplt): Target removed.
8214         (check-localplt-CFLAGS): Variable removed.
8215         ($(all-built-dso:=.jmprel)): New static pattern rule.
8216         (generated): Add those targets.
8217         (localplt-built-dso): New variable.
8218         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
8219
8220         * elf/check-localplt.c: File removed.
8221
8222         * scripts/check-execstack.awk: New file.
8223         * elf/Makefile ($(objpfx)check-execstack): Target removed.
8224         (check-execstack-CFLAGS): Variable removed.
8225         ($(objpfx)check-execstack.h): Target removed.
8226         ($(objpfx)execstack-default): New target.
8227         (generated): Add that instead of check-execstack.h.
8228         ($(all-built-dso:=.phdr)): New static pattern rule.
8229         (generated): Add those targets.
8230         * elf/check-execstack.c: File removed.
8231
8232         * scripts/check-textrel.awk: New file.
8233         * elf/Makefile ($(objpfx)check-textrel): Target removed.
8234         (check-textrel-CFLAGS): Variable removed.
8235         (all-built-dso): Use := to define.o
8236         ($(all-built-dso:=.dyn)): New static pattern rule.
8237         (generated): Add those targets.
8238         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
8239         * config.make.in (READELF): New substituted variable.
8240         * elf/check-textrel.c: File removed.
8241
8242 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
8243
8244         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
8245         allow.
8246         * conform/data/ctype.h-data [C99-based standards] (isblank):
8247         Expect function.
8248         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
8249         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
8250         [ISO || ISO99 || ISO11] (*_t): Do not allow.
8251         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
8252         Specify type.  Require positive value.
8253         (EILSEQ): Likewise.
8254         (ERANGE): Likewise.
8255         [ISO || POSIX] (EILSEQ): Do not expect.
8256         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
8257         Specify type.  Require positive value.
8258         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
8259         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
8260         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
8261         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
8262         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
8263         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
8264         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
8265         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
8266         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
8267         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
8268         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
8269         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
8270         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
8271         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
8272         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
8273         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
8274         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
8275         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
8276         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
8277         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
8278         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
8279         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
8280         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
8281         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
8282         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
8283         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
8284         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
8285         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
8286         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
8287         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
8288         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
8289         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
8290         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
8291         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
8292         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
8293         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
8294         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
8295         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
8296         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
8297         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
8298         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
8299         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
8300         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
8301         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
8302         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
8303         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
8304         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
8305         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
8306         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
8307         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
8308         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
8309         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
8310         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
8311         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
8312         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
8313         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
8314         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
8315         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
8316         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
8317         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
8318         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
8319         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
8320         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
8321         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
8322         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
8323         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
8324         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
8325         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
8326         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
8327         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
8328         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
8329         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
8330         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
8331         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
8332         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
8333         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
8334         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
8335         Require >= 2.
8336         (FLT_ROUNDS): Expect as macro, not constant.
8337         (FLT_MANT_DIG): Use macro-int-constant.
8338         (DBL_MANT_DIG): Likewise.
8339         (LDBL_MANT_DIG): Likewise.
8340         (FLT_DIG): Likewise.
8341         (DBL_DIG): Likewise.
8342         (LDBL_DIG): Likewise.
8343         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
8344         (DBL_MIN_EXP): Likewise.
8345         (LDBL_MIN_EXP): Likewise.
8346         (FLT_MAX_EXP): Use macro-int-constant.
8347         (DBL_MAX_EXP): Likewise.
8348         (LDBL_MAX_EXP): Likewise.
8349         (FLT_MAX_10_EXP): Likewise.
8350         (DBL_MAX_10_EXP): Likewise.
8351         (LDBL_MAX_10_EXP): Likewise.
8352         (FLT_MAX): Use macro-constant.
8353         (DBL_MAX): Likewise.
8354         (LDBL_MAX): Likewise.
8355         (FLT_EPSILON): Use macro-constant.  Give upper bound.
8356         (DBL_EPSILON): Likewise.
8357         (LDBL_EPSILON): Likewise.
8358         (FLT_MIN): Likewise.
8359         (DBL_MIN): Likewise.
8360         (LDBL_MIN): Likewise.
8361         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
8362         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
8363         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
8364         [ISO11] (FLT_HAS_SUBNORM): Likewise.
8365         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
8366         [ISO11] (DBL_DECIMAL_DIG): Likewise.
8367         [ISO11] (FLT_DECIMAL_DIG): Likewise.
8368         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
8369         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
8370         [ISO11] (FLT_TRUE_MIN): Likewise.
8371         [ISO11] (LDBL_TRUE_MIN): Likewise.
8372         [ISO || ISO99 || ISO11] (*_t): Do not allow.
8373         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
8374         (SCHAR_MIN): Use macro-int-constant.  Specify type.
8375         (SCHAR_MAX): Likewise.
8376         (UCHAR_MAX): Likewise.
8377         (CHAR_MIN): Likewise.
8378         (CHAR_MAX): Likewise.
8379         (MB_LEN_MAX): Use macro-int-constant.
8380         (SHRT_MIN): Use macro-int-constant.  Specify type.
8381         (SHRT_MAX): Likewise.
8382         (USHRT_MAX): Likewise.
8383         (INT_MAX): Likewise.
8384         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
8385         bound negative.
8386         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
8387         bound with "U".
8388         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
8389         bound with "L".
8390         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
8391         bound negative.  Suffix upper bound with "L".
8392         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
8393         bound with "UL".
8394         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
8395         Specify type.
8396         [C99-based standards] (LLONG_MAX): Likewise.
8397         [C99-based standards] (ULLONG_MAX): Likewise.
8398         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
8399         == 0.
8400         [ISO11] (max_align_t): Require type.
8401         [ISO || ISO99 || ISO11] (*_t): Do not allow.
8402
8403         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
8404         from $CFLAGS, without defining away __attribute__ calls.
8405         (checknamespace): Use $CFLAGS_namespace.
8406
8407         * conform/conformtest.pl (@keywords): Only include C99 keywords
8408         for standards based on C99 or C11.
8409
8410         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
8411         Disable tests.
8412         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
8413         UNIX98]: Likewise.
8414
8415         * conform/conformtest.pl: Handle "macro-int-constant" and test for
8416         usability of symbols in #if.
8417
8418         * conform/conformtest.pl: If macro or constant types start
8419         "promoted:", expect the symbol to be of the following type
8420         promoted by the integer promotions.
8421
8422         * conform/conformtest.pl: Parse all "constant" and "macro" lines
8423         in one place.  Also handle "macro-constant".
8424
8425         * conform/conformtest.pl: Only accept expected macro values with
8426         "==".  Parse all "macro" lines in one place.
8427         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
8428
8429         * conform/conformtest.pl: Handle braced types on "constant" lines
8430         instead of handling "typed-constant".
8431         * conform/data/signal.h-data: Use "constant" instead of
8432         "typed-constant".
8433
8434         * conform/conformtest.pl: Handle "optional-" at start of lines in
8435         one place rather than duplicating several cases.  Handle each
8436         format of "macro" line with initial "optional-".
8437
8438         * conform/conformtest.pl: Only accept expected constant or
8439         optional-constant values with "==".  Parse all "constant" lines in
8440         one place.  Parse all "optional-constant" lines in one place.
8441         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
8442         * conform/data/fmtmsg.h-data: Likewise.
8443         * conform/data/netinet/in.h-data: Likewise.
8444         * conform/data/tar.h-data: Likewise.
8445         * conform/data/limits.h-data: Use "==" form on "constant" and
8446         "optional-constant" lines.
8447
8448         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
8449         Use -std=c99 for XOPEN2K.
8450         (@knownproblems): Remove.
8451         (newtoken): Don't check %isknown.
8452
8453         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
8454         Do not expect macro.
8455         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
8456         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
8457         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
8458         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
8459         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
8460         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
8461         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
8462         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
8463         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
8464         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
8465         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
8466         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
8467         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
8468         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
8469         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
8470         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
8471         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
8472         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
8473         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
8474         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
8475         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
8476         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
8477         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
8478         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
8479         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
8480         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
8481         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
8482         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
8483         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
8484         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
8485         [XPG3] (acosh): Likewise.
8486         [XPG3] (asinh): Likewise.
8487         [XPG3] (atanh): Likewise.
8488         [XPG3] (cbrt): Likewise.
8489         [XPG3] (expm1): Likewise.
8490         [XPG3] (ilogb): Likewise.
8491         [XPG3] (log1p): Likewise.
8492         [XPG3] (logb): Likewise.
8493         [XPG3] (nextafter): Likewise.
8494         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
8495         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
8496         [XPG3] (remainder): Likewise.
8497         [XPG3] (rint): Likewise.
8498         [XPG3 || XPG4 || UNIX98] (round): Likewise.
8499         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
8500         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
8501         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
8502         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
8503         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
8504         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
8505         [UNIX98 || XOPEN2K] (scalb): Expect.
8506         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
8507         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
8508         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
8509         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
8510         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
8511         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
8512         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
8513         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
8514         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
8515         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
8516         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
8517         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
8518         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
8519         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
8520         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
8521         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
8522         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
8523         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
8524         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
8525         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
8526         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
8527         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
8528         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
8529         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
8530         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
8531         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
8532         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
8533         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
8534         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
8535         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
8536         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
8537         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
8538         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
8539         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
8540         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
8541         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
8542         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
8543         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
8544         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
8545         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
8546         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
8547         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
8548         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
8549         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
8550         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
8551         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
8552         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
8553         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
8554         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
8555         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
8556         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
8557         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
8558         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
8559         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
8560         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
8561         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
8562         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
8563         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
8564         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
8565         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
8566         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
8567         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
8568         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
8569         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
8570         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
8571         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
8572         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
8573         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
8574         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
8575         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
8576         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
8577         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
8578         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
8579         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
8580         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
8581         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
8582         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
8583         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
8584         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
8585         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
8586         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
8587         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
8588         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
8589         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
8590         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
8591         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
8592         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
8593         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
8594         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
8595         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
8596         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
8597         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
8598         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
8599         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
8600         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
8601         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
8602         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
8603         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
8604         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
8605         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
8606         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
8607         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
8608         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
8609         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
8610         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
8611         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
8612         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
8613         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
8614         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
8615         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
8616         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
8617         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
8618         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
8619         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
8620         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
8621         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
8622         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
8623         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
8624         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
8625         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
8626         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
8627         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
8628         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
8629         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
8630         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
8631         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
8632         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
8633         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
8634         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
8635         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
8636         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
8637         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
8638         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
8639         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
8640         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
8641         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
8642         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
8643
8644         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
8645         _XOPEN_SOURCE_EXTENDED for XPG4.
8646
8647         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
8648
8649         * Makeconfig (localtime): Remove variable.
8650         (inst_localtime-file): Likewise.
8651
8652 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
8653
8654         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
8655         Update.
8656         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
8657         Update.
8658         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
8659         Update.
8660         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
8661         Update.
8662         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
8663         Update.
8664         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
8665         Update.
8666         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
8667         Update.
8668         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
8669         Update.
8670         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
8671         Update.
8672
8673 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
8674
8675         [BZ #2550]
8676         [BZ #2570]
8677         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
8678         comparisons to determine direction to adjust input.
8679         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
8680         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
8681         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
8682         Likewise.
8683         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
8684         Likewise.
8685         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
8686         Likewise.
8687         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
8688         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
8689         Likewise.
8690         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
8691         Likewise.
8692         * math/libm-test.inc (nexttoward_test): Add more tests.
8693
8694 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
8695
8696         [BZ #14040]
8697         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
8698         in version GLIBC_2.1, not GLIBC_2.0.
8699         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
8700         Likewise.
8701
8702 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
8703
8704         [BZ #13942]
8705         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
8706         (1 - x) * (1 + x).
8707         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
8708         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
8709         * math/libm-test.inc (acos_test): Add more tests.
8710         (asin_test): Likewise.
8711         * sysdeps/i386/fpu/libm-test-ulps: Update.
8712         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8713
8714         [BZ #14034]
8715         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
8716         of square root.
8717         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
8718         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
8719         * math/libm-test.inc (acos_test_tonearest): New function.
8720         (acos_test_towardzero): Likewise.
8721         (acos_test_downward): Likewise.
8722         (acos_test_upward): Likewise.
8723         (asin_test_tonearest): Likewise.
8724         (asin_test_towardzero): Likewise.
8725         (asin_test_downward): Likewise.
8726         (asin_test_upward): Likewise.
8727         (main): Call the new functions.
8728         * sysdeps/i386/fpu/libm-test-ulps: Update.
8729         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8730
8731         [BZ #13884]
8732         [BZ #13924]
8733         * math/e_exp10.c: Include <float.h>.
8734         (__ieee754_exp10): Handle underflow here rather than multiplying
8735         large negative argument by M_LN10.
8736         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
8737         of __ieee754_expf.
8738         * math/e_exp10l.c: Include <float.h>.
8739         (__ieee754_exp10l): Handle underflow here rather than multiplying
8740         large negative argument by M_LN10l.
8741         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
8742         spurious overflow exception on underflow.
8743
8744 2012-04-29  Marek Polacek  <polacek@redhat.com>
8745
8746         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
8747         (__fortify_function): New macro.
8748         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
8749         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
8750         __extern_always_inline.
8751         * libio/bits/stdio2.h: Likewise.
8752         * libio/bits/stdio.h: Likewise.
8753         * string/string.h: Likewise.
8754         * string/bits/string3.h: Likewise.
8755         * include/stdio.h: Likewise.
8756         * stdlib/bits/stdlib.h: Likewise.
8757         * stdlib/stdlib.h: Likewise.
8758         * rt/bits/mqueue2.h: Likewise.
8759         * rt/mqueue.h: Likewise.
8760         * posix/bits/unistd.h: Likewise.
8761         * posix/unistd.h: Likewise.
8762         * io/bits/poll2.h: Likewise.
8763         * io/bits/fcntl2.h: Likewise.
8764         * io/fcntl.h: Likewise.
8765         * io/sys/poll.h: Likewise.
8766         * misc/bits/syslog.h: Likewise.
8767         * misc/bits/syslog-ldbl.h: Likewise.
8768         * misc/sys/syslog.h: Likewise.
8769         * socket/bits/socket2.h: Likewise.
8770         * socket/sys/socket.h: Likewise.
8771         * debug/tst-chk1.c: Likewise.
8772         * wcsmbs/bits/wchar2.h: Likewise.
8773         * wcsmbs/bits/wchar-ldbl.h: Likewise.
8774         * wcsmbs/wchar.h: Likewise.
8775
8776 2012-04-29  Andreas Jaeger  <aj@suse.de>
8777
8778         * Makerules (tests): Remove enable-check-abi protection.
8779         (check-abi-warn): Remove.
8780         (check-abi-%): Remove check-abi-warn usage.
8781
8782         * configure.in: Remove check-abi configure option.
8783         * configure: Regenerated.
8784         * config.make.in (enable-check-abi): Remove.
8785
8786 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
8787
8788         [BZ #14033]
8789         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
8790         double functions to double *_finite functions.
8791
8792         [BZ #13941]
8793         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
8794         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
8795         LDBL_MIN_EXP.
8796         * stdio-common/Makefile (tests): Add tst-sprintf3.
8797         * stdio-common/tst-sprintf3.c: New file.
8798
8799         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
8800         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
8801
8802 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
8803
8804         * conform/conformtest.pl: Remove duplicate typed-constant
8805         handling.
8806
8807 2012-04-28  David S. Miller  <davem@davemloft.net>
8808
8809         * Makerules (%.abilist): Add vpath on sysdep_dirs.
8810         (check-abi-%): Remove AWK script prerequisite and explicit
8811         abilist directory.
8812         (check-abi): Rewrite to just diff the symlist with the abilist.
8813         (config-tls, config-abi-config): Delete, no longer used.
8814         (update-abi-%): Remove AWK script and explicit abilist directory.
8815         (update-abi): Rewrite to simply compare and conditionally copy the
8816         symlist and the sysdep abilist file.  Remove update-abi-config
8817         checks.
8818         * abilist/ld.abilist: Remove.
8819         * abilist/libBrokenLocale.abilist: Remove.
8820         * abilist/libanl.abilist: Remove.
8821         * abilist/libcrypt.abilist: Remove.
8822         * abilist/libdl.abilist: Remove.
8823         * abilist/librt.abilist: Remove.
8824         * abilist/libthread_db.abilist: Remove.
8825         * abilist/libutil.abilist: Remove.
8826         * scripts/extract-abilist.awk: Remove.
8827         * scripts/merge-abilist.awk: Remove.
8828         * sysdeps/generic/libcidn.abilist: New file.
8829         * sysdeps/generic/libnss_compat.abilist: New file.
8830         * sysdeps/generic/libnss_db.abilist: New file.
8831         * sysdeps/generic/libnss_dns.abilist: New file.
8832         * sysdeps/generic/libnss_files.abilist: New file.
8833         * sysdeps/generic/libnss_hesiod.abilist: New file.
8834         * sysdeps/generic/libnss_nis.abilist: New file.
8835         * sysdeps/generic/libnss_nisplus.abilist: New file.
8836         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
8837         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
8838         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
8839         file.
8840         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
8841         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
8842         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
8843         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
8844         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
8845         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
8846         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
8847         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
8848         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
8849         file.
8850         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
8851         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
8852         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
8853         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
8854         file.
8855         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
8856         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
8857         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
8858         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
8859         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
8860         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
8861         file.
8862         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
8863         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
8864         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
8865         file.
8866         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
8867         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
8868         New file.
8869         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
8870         New file.
8871         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
8872         New file.
8873         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
8874         New file.
8875         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
8876         New file.
8877         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
8878         New file.
8879         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
8880         New file.
8881         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
8882         New file.
8883         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
8884         New file.
8885         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
8886         New file.
8887         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
8888         New file.
8889         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
8890         New file.
8891         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
8892         New file.
8893         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
8894         file.
8895         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
8896         New file.
8897         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
8898         New file.
8899         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
8900         file.
8901         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
8902         New file.
8903         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
8904         New file.
8905         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
8906         file.
8907         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
8908         New file.
8909         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
8910         New file.
8911         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
8912         New file.
8913         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
8914         New file.
8915         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
8916         New file.
8917         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
8918         New file.
8919         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
8920         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
8921         file.
8922         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
8923         New file.
8924         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
8925         file.
8926         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
8927         file.
8928         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
8929         file.
8930         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
8931         file.
8932         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
8933         file.
8934         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
8935         New file.
8936         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
8937         file.
8938         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
8939         file.
8940         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
8941         New file.
8942         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
8943         file.
8944         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
8945         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
8946         file.
8947         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
8948         New file.
8949         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
8950         file.
8951         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
8952         file.
8953         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
8954         file.
8955         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
8956         file.
8957         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
8958         file.
8959         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
8960         New file.
8961         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
8962         file.
8963         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
8964         file.
8965         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
8966         New file.
8967         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
8968         file.
8969         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
8970         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
8971         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
8972         file.
8973         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
8974         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
8975         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
8976         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
8977         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
8978         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
8979         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
8980         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
8981         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
8982         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
8983         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
8984         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
8985         file.
8986         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
8987         New file.
8988         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
8989         file.
8990         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
8991         file.
8992         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
8993         file.
8994         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
8995         file.
8996         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
8997         file.
8998         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
8999         New file.
9000         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
9001         New file.
9002         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
9003         file.
9004         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
9005         New file.
9006         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
9007         file.
9008         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
9009         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
9010         file.
9011         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
9012         New file.
9013         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
9014         file.
9015         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
9016         file.
9017         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
9018         file.
9019         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
9020         file.
9021         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
9022         file.
9023         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
9024         New file.
9025         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
9026         New file.
9027         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
9028         file.
9029         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
9030         New file.
9031         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
9032         file.
9033
9034 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
9035
9036         * conform/conformtest.pl: Fix typo in handling typed-constant from
9037         allow-header.
9038
9039 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
9040
9041         * README: Cut down references to pre-2.6 Linux kernels and
9042         Linuxthreads.  Update lists of configurations in libc and ports
9043         and sort alphabetically.  Say "or newer" with Linux kernel version
9044         requirements.
9045
9046         * config.h.in [IS_IN_build]: Allow compiling without optimization.
9047
9048 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
9049
9050         [BZ #887]
9051         * math/libm-test.inc (logb_test_downward): New test to expose
9052         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
9053         rounding mode.
9054
9055 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
9056
9057         [BZ #14027]
9058         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
9059         to be done.
9060         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
9061         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
9062
9063 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
9064
9065         * sysdeps/unix/i386/brk.S: Remove file.
9066         * sysdeps/unix/i386/dl-brk.S: Likewise.
9067         * sysdeps/unix/i386/pipe.S: Likewise.
9068         * sysdeps/unix/i386/sigreturn.S: Likewise.
9069         * sysdeps/unix/i386/syscall.S: Likewise.
9070         * sysdeps/unix/i386/vfork.S: Likewise.
9071         * sysdeps/unix/i386/wait.S: Likewise.
9072
9073         * sysdeps/unix/common/tcsendbrk.c: Move to ...
9074         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
9075
9076         * configure.in (arm*-none*): Do not allow without
9077         --enable-hacker-mode.
9078         (netbsd*): Remove case setting base_os.
9079         (386bsd*): Likewise.
9080         (freebsd*): Likewise.
9081         (bsdi*): Likewise.
9082         (osf*): Likewise.
9083         (sunos*): Likewise.
9084         (ultrix*): Likewise.
9085         (newsos*): Likewise.
9086         (dynix*): Likewise.
9087         (*bsd*): Likewise.
9088         (sysv*): Likewise.
9089         (isc*): Likewise.
9090         (esix*): Likewise.
9091         (sco*): Likewise.
9092         (minix*): Likewise.
9093         (irix4*): Likewise.
9094         (irix6*): Likewise.
9095         (solaris[2-9]*): Likewise.
9096         (none): Likewise.
9097         * configure: Regenerated.
9098
9099 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9100
9101         [BZ #11521]
9102         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
9103         overflow or cancellation in calculating denominator.
9104         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
9105         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
9106         down expression to avoid unexpected rounding in newer GCCs.
9107         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
9108
9109 2012-04-26  David S. Miller  <davem@davemloft.net>
9110
9111         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
9112         long-double compat symbols.
9113         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
9114         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
9115         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
9116         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
9117         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
9118         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
9119         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
9120         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
9121         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
9122         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
9123         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
9124         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
9125         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
9126
9127 2012-04-25  David S. Miller  <davem@davemloft.net>
9128
9129         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
9130         HWCAP_* values only after the memory barriers have been defined.
9131         (atomic_full_barrier): Define.
9132         (atomic_read_barrier): Define.
9133         (atomic_write_barrier): Define.
9134
9135 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
9136
9137         * shlib-versions: Add libgcc_s version information.
9138         * sysdeps/generic/libgcc_s.h: Remove.
9139         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
9140         libgcc_s.h.
9141         * sysdeps/gnu/unwind-resume.c: Likewise.
9142         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
9143
9144 2012-04-25  David S. Miller  <davem@davemloft.net>
9145
9146         * sysdeps/unix/sparc/brk.S: Delete.
9147         * sysdeps/unix/sparc/dl-brk.S: Delete.
9148         * sysdeps/unix/sparc/pipe.S: Delete.
9149         * sysdeps/unix/sparc/sysdep.S: Delete.
9150         * sysdeps/unix/sparc/sysdep.h: Delete.
9151         * sysdeps/unix/sparc/vfork.S: Delete.
9152         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
9153         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
9154         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
9155         ret_ERRVAL, r0, r1, MOVE): Define.
9156         (JUMPTARGET): Remove.
9157         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
9158         sysdeps/unix/sparc/sysdep.h
9159         (ENTRY, END): Remove.
9160         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
9161
9162 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
9163
9164         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
9165         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
9166         -DIS_IN_build.
9167
9168         * timezone/README: Update upstream location and email address for
9169         tzcode and tzdata.
9170         * timezone/zdump.c: Update from tzcode 2012b.
9171         * timezone/zic.c: Likewise.
9172
9173         * configure.in (libc_cv_as_needed): Remove test.
9174         * configure: Regenerated.
9175         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
9176         conditional definition.
9177         [$(have-as-needed) != yes] (no-as-needed): Likewise.
9178         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
9179         * config.make.in (have-as-needed): Remove variable.
9180
9181 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
9182             Paul Pluzhnikov  <ppluzhnikov@google.com>
9183
9184         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
9185         strings correctly.
9186
9187 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
9188
9189         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
9190         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
9191         * sysdeps/sh/strlen.S: Likewise.
9192
9193 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
9194
9195         * sysdeps/unix/fork.S: Remove file.
9196         * sysdeps/unix/i386/fork.S: Likewise.
9197         * sysdeps/unix/sparc/fork.S: Likewise.
9198
9199         * sysdeps/unix/system.c: Remove file.
9200         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
9201
9202         * sysdeps/unix/getegid.S: Remove file.
9203         * sysdeps/unix/geteuid.S: Likewise.
9204
9205 2012-04-24  Roland McGrath  <roland@hack.frob.com>
9206
9207         * scripts/check-localplt.awk: New file.
9208         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
9209         of diff.
9210         * scripts/data/localplt-generic.data: Add a comment.
9211
9212         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
9213         NODE when __dir_mkfile failed.
9214         * sysdeps/mach/hurd/symlinkat.c: Likewise.
9215         Reported by Ludovic Courtès <ludo@gnu.org>.
9216
9217 2012-04-24  Andreas Jaeger  <aj@suse.de>
9218
9219         * Makerules (common-clean): Also remove gen-as-const-headers
9220         files.
9221
9222 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
9223
9224         * Makerules (native-compile): Do not change working directory for
9225         build.  Use $(OUTPUT_OPTION) in command.
9226         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
9227
9228 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9229
9230         [BZ #13886]
9231         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
9232         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
9233         * math/libm-test.inc (floor_test): Add more tests.
9234         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
9235
9236 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
9237
9238         * sysdeps/unix/getdents.c: Remove file.
9239         * sysdeps/unix/sysv/getdents.c: Likewise.
9240         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
9241
9242         * sysdeps/unix/syscalls.list (madvise): Add syscall from
9243         sysdeps/unix/mman/syscalls.list.
9244         (mmap): Likewise.
9245         (mprotect): Likewise.
9246         (msync): Likewise.
9247         (munmap): Likewise.
9248         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
9249         * sysdeps/unix/mman/syscalls.list: Remove.
9250         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
9251
9252         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
9253         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
9254         * configure: Regenerated.
9255         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
9256         $(libgcc_s_suffix).
9257         * config.make.in (libgcc_s_suffix): Remove variable.
9258
9259 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
9260
9261         * sysdeps/unix/sysv/gethostname.c: Move to ...
9262         * sysdeps/posix/gethostname.c: ... here.
9263
9264         * sysdeps/unix/execve.S: Remove file.
9265
9266         * sysdeps/unix/_exit.S: Remove file.
9267
9268 2012-04-23  Andreas Jaeger  <aj@suse.de>
9269
9270         [BZ #13739]
9271         * manual/Makefile: Remove make dist support, there's no
9272         need for a stand-alone documentation tar ball.
9273         (TEXI2DVI): Define always, it's not in Makeconfig.
9274         (dist): Removed.
9275         (tar-it): Removed.
9276         (edition): Removed.
9277         (glibc-doc-$(edition).tar): Removed
9278         (%.Z): Removed.
9279         (%.gz): Removed.
9280         (%.uu): Removed.
9281         (ETAGS): Remove, it's in Makeconfig.
9282         (move-if-change): Remove, it's in Makeconfig.
9283
9284 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
9285
9286         [BZ #13970]
9287         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
9288         (strtod, strtof, strtold, strtol, strtoul, strtoq)
9289         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
9290         (strtod_l, strtof_l, strtold_l): Remove __wur.
9291         It is not necessarily an error to ignore strtol's return value.
9292         One can reliably look at the stored endptr to decide whether
9293         the number had valid syntax.
9294
9295 2012-04-21  Andreas Jaeger  <aj@suse.de>
9296
9297         [BZ #13739]
9298         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
9299
9300 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
9301
9302         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
9303         * sysdeps/unix/sysv/Versions: Remove file.
9304
9305 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
9306
9307         [BZ #13927]
9308         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9309
9310 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
9311
9312         [BZ #7064]
9313         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
9314         version from __vm86.
9315
9316 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
9317
9318         * sysdeps/unix/common/lxstat.c: Remove file.
9319         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
9320
9321         * sysdeps/unix/sysv/Makefile: Remove file.
9322
9323         * sysdeps/unix/sysv/direct.h: Remove file.
9324
9325         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
9326         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
9327         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
9328         * sysdeps/unix/sysv/bits/signum.h: Likewise.
9329         * sysdeps/unix/sysv/bits/stat.h: Likewise.
9330         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
9331         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
9332
9333         * sysdeps/unix/sysv/setrlimit.c: Remove file.
9334
9335         * sysdeps/unix/xmknod.c: Remove file.
9336         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
9337
9338         * sysdeps/unix/sysv/settimeofday.c: Remove file.
9339
9340         * sysdeps/unix/sysv/i386/time.S: Remove file.
9341
9342         * sysdeps/unix/fxstat.c: Remove file.
9343         * sysdeps/unix/xstat.c: Likewise.
9344         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
9345
9346         * sysdeps/unix/sysv/sigaction.c: Remove file.
9347
9348         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
9349         (sysdep_headers): Remove variable.
9350         [termio.h not in sysdep_headers] (generated): Likewise.
9351         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
9352         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
9353         * sysdeps/unix/sysv/tcdrain.c: Likewise.
9354         * sysdeps/unix/sysv/tcflow.c: Likewise.
9355         * sysdeps/unix/sysv/tcflush.c: Likewise.
9356         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
9357         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
9358         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
9359         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
9360         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
9361
9362         * sysdeps/unix/siglist.c: Remove file.
9363
9364         * sysdeps/unix/getppid.S: Remove file.
9365
9366         * sysdeps/unix/mkdir.c: Remove file.
9367         * sysdeps/unix/rmdir.c: Likewise.
9368
9369 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
9370
9371         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
9372         ERR_MAX value.
9373         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
9374         errlist-compat value.
9375
9376 2012-04-18  David S. Miller  <davem@davemloft.net>
9377
9378         * sysdeps/generic/memcopy.h (reg_char): Delete.
9379         * debug/strcat_chk.c: Use char, not reg_char.
9380         * debug/strcpy_chk.c: Likewise.
9381         * debug/strncat_chk.c: Likewise.
9382         * debug/strncpy_chk.c: Likewise.
9383         * string/memchr.c: Likewise.
9384         * string/memrchr.c: Likewise.
9385         * string/rawmemchr.c: Likewise.
9386         * string/strcat.c: Likewise.
9387         * string/strchr.c: Likewise.
9388         * string/strchrnul.c: Likewise.
9389         * string/strcmp.c: Likewise.
9390         * string/strcpy.c: Likewise.
9391         * string/strncat.c: Likewise.
9392         * string/strncmp.c: Likewise.
9393         * string/strncpy.c: Likewise.
9394
9395 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
9396
9397         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
9398         __builtin_memcopy is called when src and dest ranges are known to not
9399         overlap.
9400
9401 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
9402
9403         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
9404         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
9405         fwd_align_merge macro call.
9406         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
9407         bwd_align_merge macro call.
9408         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
9409
9410 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
9411
9412         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
9413         bwd_align_merge macros.
9414         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
9415         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
9416         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
9417
9418 2012-04-18  David S. Miller  <davem@davemloft.net>
9419
9420         * sysdeps/sparc/sparc64/memcopy.h: Delete.
9421
9422 2012-04-18  Andreas Jaeger  <aj@suse.de>
9423
9424         [BZ# 6794]
9425         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
9426         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
9427         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
9428
9429         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
9430         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
9431         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
9432
9433         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
9434         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
9435         Adjust for changed ldbl-128 files.
9436
9437         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
9438         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
9439         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
9440
9441 2012-04-17  David S. Miller  <davem@davemloft.net>
9442
9443         * sysdeps/sparc/sparc32/memcopy.h: Delete.
9444
9445 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
9446
9447         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
9448         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
9449         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
9450         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
9451         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
9452         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
9453
9454 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9455
9456         [BZ #6794]
9457         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
9458         * math/libm-test.inc: Add ilogb errno and exception tests.
9459         * math/w_ilogb.c: New file: ilogb wrapper.
9460         * math/w_ilogbf.c: New file: ilogbf wrapper.
9461         * math/w_ilogbl.c: New file: ilogbl wrapper.
9462         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
9463         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
9464         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
9465         exception being thrown with 0.0 as argument.
9466         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
9467         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
9468         exception being thrown with 0.0 as argument.
9469         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
9470         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
9471         exception being thrown with 0.0 as argument.
9472         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
9473         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
9474         exception being thrown with 0.0 as argument.
9475         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
9476         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
9477         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
9478         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
9479         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
9480         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
9481         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
9482         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
9483         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
9484
9485 2012-04-17  Petr Baudis  <pasky@ucw.cz>
9486
9487         * include/sys/uio.h: Change __vector to __iovec to avoid clash
9488         with altivec.
9489
9490 2012-04-16  Marek Polacek  <polacek@redhat.com>
9491
9492         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
9493
9494 2012-04-16  Marek Polacek  <polacek@redhat.com>
9495
9496         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
9497         operands of fdivp instruction.
9498
9499 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
9500
9501         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
9502         * elf/tst-auditmod3b.c: Likewise.
9503         * elf/tst-auditmod4b.c: Likewise.
9504         * elf/tst-auditmod5b.c: Likewise.
9505         * elf/tst-auditmod6b.c: Likewise.
9506         * elf/tst-auditmod6c.c: Likewise.
9507         * elf/tst-auditmod7b.c: Likewise.
9508         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
9509         * sysdeps/x86_64/preconfigure.in: Likewise.
9510         * sysdeps/x86_64/preconfigure: Regenerated.
9511
9512 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
9513
9514         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
9515         __ILP32__.
9516
9517 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
9518
9519         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
9520         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
9521
9522 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
9523
9524         [BZ #13973]
9525         * locale/iso-639.def: Fix gl language name. Spotted by
9526         Yaron Shahrabani.
9527
9528 2012-04-12  Roland McGrath  <roland@hack.frob.com>
9529
9530         [BZ #2074]
9531         * libio/libio.h (__io_write_fn): Update comment.
9532
9533 2012-04-12  Petr Baudis  <pasky@ucw.cz>
9534
9535         [BZ #2074]
9536         * stdio.texi (Hook Functions): The user provided writer function
9537         is not allowed to return -1.
9538
9539 2012-04-11  David S. Miller  <davem@davemloft.net>
9540
9541         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9542
9543 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
9544
9545         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
9546         Add a leading slash to rtkaio.
9547
9548 2012-04-11  Jim Meyering  <meyering@redhat.com>
9549
9550         [BZ #11959]
9551         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
9552         It is not necessarily an error to ignore fwrite's return
9553         value.  One can reliably use ferror to test for errors after
9554         the fact.
9555
9556 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
9557
9558         * bits/types.h (__snseconds_t): New type.
9559         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
9560
9561         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
9562         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
9563         (__SNSECONDS_T_TYPE): Likewise.
9564         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
9565         (__SNSECONDS_T_TYPE): Likewise.
9566         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
9567         (__SNSECONDS_T_TYPE): Likewise.
9568
9569 2012-04-10  Andreas Jaeger  <aj@suse.de>
9570
9571         [BZ #2636]
9572         * manual/time.texi (Processor Time): Return type of times is
9573         elapsed real time since an arbitrary point in the past.
9574         (CPU Time): Move CLK_TCK from here...
9575         (Processor Time): ...to here.  Correct description.
9576         * manual/conf.texi (Constants for Sysconf): Correct description of
9577         _SC_CLK_TCK.
9578
9579 2012-04-10  David S. Miller  <davem@davemloft.net>
9580
9581         [BZ #13967]
9582         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
9583         where the is a gap between DT_REL(A) and DT_JMPREL.
9584
9585 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
9586
9587         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
9588         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
9589         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
9590
9591 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
9592
9593         * elf/dl-support.c (_dl_inhibit_cache): New variable.
9594         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
9595         (dl_main): Handle --inhibit-cache.
9596         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
9597         _dl_inhibit_cache.
9598         * elf/dl-load.c (_dl_map_object): Use it.
9599         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
9600
9601 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
9602
9603         [BZ #13872]
9604         * sysdeps/i386/fpu/e_powl.S (p78): New object.
9605         (__ieee754_powl): Saturate large exponents rather than testing for
9606         overflow of y*log2(x).
9607         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
9608         * math/libm-test.inc (pow_test): Do not permit spurious overflow
9609         exceptions.
9610
9611         [BZ #11521]
9612         * math/s_ctan.c: Include <float.h>.
9613         (__ctan): Avoid internal overflow or cancellation in calculating
9614         denominator.
9615         * math/s_ctanf.c: Likewise.
9616         * math/s_ctanl.c: Likewise.
9617         * math/s_ctanh.c: Likewise.
9618         * math/s_ctanhf.c: Likewise.
9619         * math/s_ctanhl.c: Likewise.
9620         * math/libm-test.inc (ctan_test): Add more tests.
9621         (ctanh_test): Likewise.
9622         * sysdeps/i386/fpu/libm-test-ulps: Update.
9623         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9624
9625 2012-04-09  Andreas Jaeger  <aj@suse.de>
9626
9627         [BZ #6894]
9628         * manual/filesys.texi (Directory Entries): Mention that d_namlen
9629         is an optional BSD extension.
9630
9631         [BZ #10254]
9632         * manual/stdio.texi (Opening Streams): Document additional fopen
9633         parameters.
9634
9635 2012-04-09  Roland McGrath  <roland@hack.frob.com>
9636
9637         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
9638         %eax without telling the compiler.
9639
9640 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
9641
9642         [BZ # 13963]
9643         * manual/install.texi: Use sourceware.org.
9644
9645 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
9646
9647         [BZ #13873]
9648         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
9649         (__ieee754_pow): Generate overflow and underflow using huge*huge
9650         and tiny*tiny rather than just returning constant infinity or zero
9651         for large exponents.
9652         * math/libm-test.inc (pow_test): Require overflow exceptions for
9653         applicable cases of large exponents.
9654
9655         [BZ #706]
9656         * sysdeps/i386/fpu/e_pow.S (p10): New object.
9657         (__ieee754_pow): Use iterative multiplication algorithm only for
9658         integer exponents with absolute value below 1024.  Check for odd
9659         integer exponents when using algorithm for real exponents.
9660         * math/libm-test.inc (pow_test): Add more tests.
9661         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9662
9663 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
9664
9665         [BZ #13705]
9666         * math/libm-test.inc (exp_test): Do not allow overflow exception
9667         on underflow test.
9668
9669 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
9670
9671         [BZ #13705]
9672         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
9673         instead of __kernel_standard_f.
9674
9675 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
9676
9677         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
9678         * sysdeps/x86_64/memset_chk.S: Likewise.
9679
9680 2012-04-08  Andreas Jaeger  <aj@suse.de>
9681
9682         [BZ #10153]
9683         * manual/startup.texi (Environment Access): Describe return value
9684         for putenv and setenv.
9685
9686         [BZ #6895]
9687         * manual/filesys.texi (Directory Entries): Add description for
9688         DT_LNK.
9689
9690         [BZ #6890]
9691         * manual/filesys.texi (Directory Entries): Clarify that it's file
9692         system not operating system in the description of DT_UNKNOWN.
9693
9694         [BZ #6578]
9695         * manual/syslog.texi (closelog): Fix reference, it's openlog.
9696
9697 2012-04-08  Stephen Compall  <s11@member.fsf.org>
9698
9699         [BZ #6649]
9700         * manual/llio.texi (Opening and Closing Files): Add cross
9701         reference to explain mode argument.
9702
9703 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
9704
9705         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
9706         * sysdeps/x86_64/memset_chk.S: Likewise.
9707
9708 2012-04-07  David S. Miller  <davem@davemloft.net>
9709
9710         * elf/elf.h (R_SPARC_WDISP10): Define.
9711         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
9712         R_SPARC_SIZE32.
9713         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
9714         R_SPARC_SIZE64 and R_SPARC_H34.
9715
9716 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
9717
9718         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
9719         conditions and remove no longer applicable assertion.
9720
9721 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
9722
9723         * bits/byteswap.h: Include <features.h>.
9724         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
9725         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
9726
9727 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
9728
9729         * bits/byteswap.h (__bswap_16): Removed.
9730         Include <bits/byteswap-16.h> to get __bswap_16.
9731         * sysdeps/i386/bits/byteswap.h: Likewise.
9732         * sysdeps/s390/bits/byteswap.h: Likewise.
9733         * sysdeps/x86_64/bits/byteswap.h: Likewise.
9734         * bits/byteswap-16.h: New file.
9735         * sysdeps/i386/bits/byteswap-16.h: Likewise.
9736         * sysdeps/s390/bits/byteswap-16.h: Likewise.
9737         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
9738         * string/Makefile (headers): Add bits/byteswap-16.h.
9739
9740 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
9741
9742         [BZ #13895]
9743         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
9744         extra indirection.
9745         * nss/Makefile (tests-static, tests): Add tst-nss-static.
9746         * nss/tst-nss-static.c: New.
9747
9748 2012-04-06  Robert Millan  <rmh@gnu.org>
9749
9750         [BZ #6486]
9751         * manual/llio.texi (File Position Primitive): lseek
9752         refers to WHENCE when it really means OFFSET.
9753
9754 2012-04-06  Andreas Jaeger  <aj@suse.de>
9755
9756         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
9757         strncmp declarations.
9758
9759         * abilist/libc.abilist: Add __poll and __ppoll.
9760
9761 2012-04-05  David S. Miller  <davem@davemloft.net>
9762
9763         * scripts/check-local-headers.sh: Accept a host triplet in the
9764         path matched by the exclude regexp.
9765
9766         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
9767         definition.
9768         * sysdeps/powerpc/powerpc32/dl-machine.h
9769         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
9770         * sysdeps/s390/s390-32/dl-machine.h
9771         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
9772         * sysdeps/sparc/sparc32/dl-machine.h
9773         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
9774         * sysdeps/sparc/sparc64/dl-machine.h
9775         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
9776
9777         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
9778         lazy binding.
9779         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
9780         undefined symbol errors.
9781
9782         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
9783         DT_NEEDED entries.
9784
9785 2012-04-05  Michael Matz  <matz@suse.de>
9786
9787         [BZ #13592]
9788         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
9789
9790 2012-04-05  Andreas Jaeger  <aj@suse.de>
9791
9792         [BZ #13908]
9793         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
9794         comment.
9795
9796 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9797
9798         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
9799         which ROUND is no valid rounding mode.
9800
9801 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9802
9803         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
9804         read again.
9805         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
9806
9807 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9808
9809         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
9810         an exception using FPU order intentionally.
9811
9812 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
9813
9814         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
9815         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
9816         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
9817         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
9818
9819 2012-04-05  Simon Josefsson  <simon@josefsson.org>
9820
9821         [BZ #12340]
9822         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
9823         EINVAL when BUFLEN is too smal.
9824
9825 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
9826
9827         [BZ #13553]
9828         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
9829         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
9830
9831 2012-04-03  Andreas Jaeger  <aj@suse.de>
9832
9833         [BZ #13938]
9834         * manual/setjmp.texi (System V contexts): Fix sentence.
9835
9836         [BZ #13926]
9837         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
9838         New macro for this case.
9839         [!__GNUC__] (__bswap_64): New inline function for this case.
9840         * sysdeps/x86_64/bits/byteswap.h: Likewise.
9841         * bits/byteswap.h: Likewise.
9842         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
9843         ull, guard with __GLIBC_HAVE_LONG_LONG.
9844
9845         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
9846         __GLIBC_HAVE_LONG_LONG.
9847
9848         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
9849         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
9850
9851 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
9852
9853         [BZ #13691]
9854         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
9855         inptr and inend, rather than using last_ch.
9856
9857 2012-04-02  David S. Miller  <davem@davemloft.net>
9858
9859         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
9860         * stdio-common/printf-parse.h (read_int): Change return type to
9861         'int', return -1 on INT_MAX overflow.
9862         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
9863         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
9864         overflows INT_MAX.  Check for overflow of in-format-string precision
9865         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
9866         SIZE_MAX not INT_MAX for integer overflow test.
9867         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
9868         skip the construct in the format string but do not record anything.
9869         * stdio-common/bug22.c: Adjust to test both width/prevision
9870         INT_MAX overflow as well as total length INT_MAX overflow.  Check
9871         explicitly for proper errno values.
9872
9873 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
9874
9875         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
9876         CHAR_MAX.
9877         * string/test-strcmp.c [! WIDE]: Likewise.
9878         * time/tst-mktime2.c: Likewise for INT_MAX.
9879         * string/test-string.h: #include <sys/param.h> for MIN.
9880
9881         * csu/init-first.c (__libc_init_first): Call __ctype_init.
9882         * sysdeps/i386/init-first.c (init): Likewise.
9883         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
9884         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
9885         * sysdeps/sh/init-first.c (init): Likewise.
9886
9887 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
9888
9889         * po/ru.po: Update from translation team.
9890         * po/vi.po: Likewise.
9891
9892 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
9893
9894         * resolv/nss_dns/dns-host.c: Merge copyright years.
9895
9896 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9897
9898         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
9899         Optimize memcpy with prefetch if
9900         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
9901         src, dst pointers have unequal 16 byte alignments.
9902
9903 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
9904
9905         [BZ #13928]
9906         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
9907         from a CNAME entry and return the minimum ttl for the query.
9908         (gaih_getanswer_slice): Likewise.
9909
9910 2012-03-30  Jeff Law  <law@redhat.com>
9911
9912         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
9913         due to long keys.
9914         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
9915         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
9916
9917         * resolv/nss_dns/dns-host.c: Update copyright year.
9918
9919 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
9920
9921         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
9922         requests to save a system call.  Fix check that all bytes are sent.
9923
9924         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
9925         comments for sendmmsg.
9926
9927 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
9928
9929         [BZ #13691]
9930         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
9931         with only 1 character between 0x0041 and 0x01b0.
9932         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
9933         * wcsmbs/tst-mbsnrtowcs.c: New file.
9934
9935 2012-03-29  David S. Miller  <davem@davemloft.net>
9936
9937         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
9938         small copies by hand.
9939
9940 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
9941
9942         [BZ #13761]
9943         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
9944         _nss_compat_initgroups_dyn): Fall back to malloc/free
9945         for large group memberships.
9946
9947 2012-03-28  David S. Miller  <davem@davemloft.net>
9948
9949         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
9950         that branches into memcpy.
9951         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
9952         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
9953         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
9954         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
9955         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
9956         bits.
9957         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
9958         implementation too.
9959         * sysdeps/sparc/mempcpy.S: New file.
9960
9961         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
9962         the IFUNC routine in the libc case.
9963         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
9964
9965         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
9966         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
9967         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
9968         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
9969         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
9970         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
9971         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
9972         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
9973
9974         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
9975         loop to 256 bytes instead of 64 bytes and fix test signedness.
9976
9977         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
9978         * sysdeps/sparc/sparc32/Makefile: rather than here...
9979         * sysdeps/sparc/sparc64/Makefile: and here.
9980
9981 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
9982
9983         * malloc/mallocbug.c: Avoid warnings about unused variables.
9984
9985 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
9986
9987         [BZ #13760]
9988         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
9989         in the right place. Discard and retry query if response is
9990         larger than input buffer size.
9991
9992 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
9993
9994         [BZ #369]
9995         [BZ #2678]
9996         [BZ #3866]
9997         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
9998         x for large integer exponent.
9999         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
10000         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
10001         sign of result as needed afterwards.
10002         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
10003         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
10004         result for underflowing pow the same as for overflow.
10005         (__kernel_standard_l): Handle powl overflow and underflow here
10006         rather than calling __kernel_standard.
10007         * math/libm-test.inc (pow_test): Add more tests.
10008
10009         [BZ #3868]
10010         [BZ #13879]
10011         [BZ #13910]
10012         [BZ #13911]
10013         [BZ #13912]
10014         [BZ #13913]
10015         [BZ #13915]
10016         [BZ #13916]
10017         [BZ #13917]
10018         [BZ #13918]
10019         [BZ #13919]
10020         [BZ #13920]
10021         [BZ #13921]
10022         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
10023         * sysdeps/ieee754/k_standard.c: Include <float.h>.
10024         (__kernel_standard_l): New function.
10025         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
10026         __kernel_standard.
10027         * math/w_acosl.c (__acosl): Likewise.
10028         * math/w_asinl.c (__asinl): Likewise.
10029         * math/w_atan2l.c (__atan2l): Likewise.
10030         * math/w_atanhl.c (__atanhl): Likewise.
10031         * math/w_coshl.c (__coshl): Likewise.
10032         * math/w_exp10l.c (__exp10l): Likewise.
10033         * math/w_exp2l.c (__exp2l): Likewise.
10034         * math/w_fmodl.c (__fmodl): Likewise.
10035         * math/w_hypotl.c (__hypotl): Likewise.
10036         * math/w_j0l.c (__j0l, __y0l): Likewise.
10037         * math/w_j1l.c (__j1l, __y1l): Likewise.
10038         * math/w_jnl.c (__jnl, __ynl): Likewise.
10039         * math/w_lgammal.c (__lgammal): Likewise.
10040         * math/w_log10l.c (__log10l): Likewise.
10041         * math/w_log2l.c (__log2l): Likewise.
10042         * math/w_logl.c (__logl): Likewise.
10043         * math/w_powl.c (__powl): Likewise.
10044         * math/w_remainderl.c (__remainderl): Likewise.
10045         * math/w_scalbl.c (sysv_scalbl): Likewise.
10046         * math/w_sinhl.c (__sinhl): Likewise.
10047         * math/w_sqrtl.c (__sqrtl): Likewise.
10048         * math/w_tgammal.c (__tgammal): Likewise.
10049         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
10050         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
10051         * math/libm-test.inc (acos_test): Add more tests.
10052         (acosh_test): Likewise.
10053         (asin_test): Likewise.
10054         (atanh_test): Likewise.
10055         (exp_test): Likewise.
10056         (exp10_test): Likewise.
10057         (exp2_test): Likewise.
10058         (expm1_test): Likewise.
10059         (lgamma_test): Likewise.
10060         (log_test): Likewise.
10061         (log10_test): Likewise.
10062         (log1p_test): Likewise.
10063         (log2_test): Likewise.
10064         (pow_test): Do not allow some spurious overflow exceptions.
10065         (sqrt_test): Add more tests.
10066         (tgamma_test): Likewise.
10067         (y0_test): Likewise.
10068         (y1_test): Likewise.
10069         (yn_test): Likewise.
10070
10071 2012-03-27  Anton Blanchard  <anton@samba.org>
10072
10073         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
10074         MAP_HUGETLB.
10075         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
10076         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
10077         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
10078
10079 2012-03-27  David S. Miller  <davem@davemloft.net>
10080
10081         * conform/Makefile: Run run-conformtest.sh using $(BASH).
10082
10083         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
10084         have-as-vis3 check.
10085
10086 2012-03-27  Andreas Jaeger  <aj@suse.de>
10087
10088         * sysdeps/x86_64/elf/configure.in: Moved to ...
10089         * sysdeps/x86_64/configure.in: ... here.
10090         * sysdeps/x86_64/elf/start.S: Moved to ...
10091         * sysdeps/x86_64/start.S: ... here.
10092         * sysdeps/x86_64/elf/configure: Delete.
10093
10094         * sysdeps/x86_64/configure.in: Merge contents from
10095         sysdeps/i386/configure.in (without i686 check).
10096
10097         * sysdeps/i386/elf/Versions: Merge into ...
10098         * sysdeps/i386/Versions: ... this.
10099         * sysdeps/i386/elf/Versions: Delete file.
10100         * sysdeps/i386/elf/start.S: Moved to ...
10101         * sysdeps/i386/start.S: ...here.
10102         * sysdeps/i386/elf/configure.in: Merge into...
10103         * sysdeps/i386/configure.in: ...here.
10104         * sysdeps/i386/elf/configure.in: Delete file.
10105         * sysdeps/i386/elf/configure: Delete file.
10106
10107         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
10108         * debug/backtracesyms.c: ... here.
10109         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
10110         * debug/backtracesymsfd.c: ... here.
10111         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
10112         * sysdeps/generic/ifunc-sel.h: ... here.
10113
10114         * sysdeps/unix/i386/start.c: Delete file.
10115         * sysdeps/unix/sparc/start.c: Delete file.
10116         * sysdeps/unix/start.c: Delete file.
10117
10118         * sysdeps/sh/elf/configure.in: Moved to ...
10119         * sysdeps/sh/configure.in: ... here.
10120         * sysdeps/sh/elf/start.S: Moved to ...
10121         * sysdeps/sh/start.S: ... here.
10122         * sysdeps/sh/elf/configure: Delete file.
10123
10124         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
10125         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
10126         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
10127         * sysdeps/powerpc/powerpc64/entry.h: ... here.
10128         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
10129         * sysdeps/powerpc/powerpc64/start.S: here.
10130         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
10131         * sysdeps/powerpc/powerpc64/Makefile: ... this.
10132         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
10133         * sysdeps/powerpc/powerpc64/configure.in: ... this.
10134         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
10135
10136         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
10137         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
10138         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
10139         * sysdeps/powerpc/powerpc32/start.S: ... here.
10140         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
10141         * sysdeps/powerpc/powerpc32/configure.in: ... this.
10142         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
10143
10144         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
10145         * sysdeps/powerpc/ifunc-sel.h: ... here.
10146         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
10147         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
10148
10149         * sysdeps/sparc/elf/configure.in: Moved to ...
10150         * sysdeps/sparc/configure.in: ... here.
10151         * sysdeps/sparc/elf/configure: Delete file.
10152         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
10153         * sysdeps/sparc/sparc32/start.S: ... here.
10154         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
10155         * sysdeps/sparc/sparc64/start.S: ... here.
10156         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
10157         * sysdeps/sparc/sparc32/Makefile: ... this.
10158         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
10159         * sysdeps/sparc/sparc64/Makefile: ... this.
10160
10161         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
10162         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
10163         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
10164         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
10165         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
10166         * sysdeps/s390/s390-32/setjmp.S: ... here.
10167         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
10168         * sysdeps/s390/s390-32/configure.in: ... here.
10169         * sysdeps/s390/s390-32/elf/configure: Delete file.
10170         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
10171         * sysdeps/s390/s390-32/start.S: ... here.
10172
10173         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
10174         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
10175         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
10176         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
10177         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
10178         * sysdeps/s390/s390-64/setjmp.S: ... here.
10179         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
10180         * sysdeps/s390/s390-64/configure.in: ... here
10181         * sysdeps/s390/s390-64/elf/configure: Delete file.
10182         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
10183         * sysdeps/s390/s390-64/start.S: ... here.
10184         * sysdeps/s390/s390-64/elf/configure: Delete.
10185
10186         * configure.in: Remove support for elf directories in sysdeps.
10187
10188         * configure: Regenerated.
10189         * sysdeps/i386/configure: Regenerated.
10190         * sysdeps/powerpc/powerpc32/configure: Regenerated.
10191         * sysdeps/powerpc/powerpc64/configure: Regenerated.
10192         * sysdeps/s390/s390-32/configure: Regenerated.
10193         * sysdeps/s390/s390-64/configure: Regenerated.
10194         * sysdeps/sh/configure: Regenerated.
10195         * sysdeps/sparc/configure: Regenerated.
10196         * sysdeps/x86_64/configure: Regenerated.
10197
10198 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
10199
10200         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10201
10202         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
10203         denormal result into account.
10204
10205 2012-03-25  Roland McGrath  <roland@hack.frob.com>
10206
10207         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
10208         Reported by Allan McRae <allan@archlinux.org>.
10209
10210 2012-03-23  Jeff Law  <law@redhat.com>
10211
10212         * nss/getnssent.c (__nss_getent): Fix typo.
10213
10214 2012-03-23  David S. Miller  <davem@davemloft.net>
10215
10216         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10217
10218 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
10219
10220         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
10221         to pad to uint64_t for each field.
10222         (dl_tls_index): Replace unsigned long with uint64_t.
10223
10224 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
10225         Paul Pluzhnikov  <ppluzhnikov@google.com>
10226
10227         [BZ #6528]
10228         * grp/Makefile (otherlibs): Don't set it.
10229         * inet/Makefile (otherlibs): Likewise.
10230         * login/Makefile (otherlibs): Likewise.
10231         * nscd/Makefile (otherlibs): Likewise.
10232         * posix/Makefile (otherlibs): Likewise.
10233         * pwd/Makefile (otherlibs): Likewise.
10234         * rt/Makefile (otherlibs): Likewise.
10235         * sunrpc/Makefile (otherlibs): Likewise.
10236         * nss/Makefile (otherlibs): Likewise.
10237         Add libnss_files to routines and static-only-routines.
10238         ($(objpfx)getent): Remove rule.
10239         * resolv/Makefile: Add libnss_dns and libresolv to routines and
10240         static-only-routines.
10241
10242 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
10243
10244         [BZ #13892]
10245         * math/s_cexp.c: Include <float.h>.
10246         (__cexp): Handle exp result overflowing not necessarily
10247         overflowing both real and imaginary parts of result.
10248         * math/s_cexpf.c: Likewise.
10249         * math/s_cexpl.c: Likewise.
10250         * math/libm-test.inc (cexp_test): Add more tests.
10251         * sysdeps/i386/fpu/libm-test-ulps: Update.
10252         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10253
10254 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10255
10256         * include/link.h (ELFW): New macro.
10257         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
10258         Replace ELF64_R_TYPE with ELFW(R_TYPE).
10259
10260 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10261
10262         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
10263         with uint64_t.
10264
10265 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10266
10267         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
10268         declaration.
10269         (struct La_x32_retval): Likewise.
10270
10271 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
10272
10273         * sysdeps/x86_64/preconfigure.in: New file.
10274         * sysdeps/x86_64/preconfigure: New generated file.
10275
10276 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
10277
10278         [BZ #13824]
10279         * math/e_exp2l.c: Include <float.h>.
10280         (__ieee754_exp2l): Handle overflow and underflow cases
10281         separately.  Only pass fractional part of argument to
10282         __ieee754_expl.
10283         * math/libm-test.inc (exp2_test): Add more tests.
10284
10285         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
10286         negating x to take absolute value.
10287         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
10288         Likewise.
10289         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
10290         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
10291         Likewise.
10292         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
10293         computing low part if x was negated.
10294         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
10295
10296 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
10297
10298         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
10299         la_x32_gnu_pltexit.
10300         (pltexit): Cast int_retval to ptrdiff_t.
10301         * elf/tst-auditmod3b.c: Likewise.
10302         * elf/tst-auditmod4b.c: Likewise.
10303         * elf/tst-auditmod5b.c: Likewise.
10304         * elf/tst-auditmod6b.c: Likewise.
10305         * elf/tst-auditmod6c.c: Likewise.
10306         * elf/tst-auditmod7b.c: Likewise.
10307
10308         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
10309         and x32_gnu_pltexit.
10310
10311         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
10312         __ELF_NATIVE_CLASS.
10313         (La_x32_regs): New macro.
10314         (La_x32_retval): Likewise.
10315         (la_x32_gnu_pltenter): New function prototype.
10316         (la_x32_gnu_pltexit): Likewise.
10317
10318 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
10319
10320         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
10321         exponent.
10322
10323         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10324
10325         * configure.in (libc_cv_cc_nofma): Check for option to disable
10326         generation of FMA instructions.
10327         * configure: Regenerate.
10328         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
10329         * sysdeps/ieee754/dbl-64/Makefile: New file.
10330         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
10331         Remove brandred-fma4.
10332         (CFLAGS-brandred-fma4.c): Remove.
10333         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
10334         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
10335         define.
10336         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
10337         define.
10338
10339 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
10340
10341         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
10342         LLONG_MAX != LONG_MAX.
10343         (_itoa_word): Use _ITOA_WORD_TYPE on value.
10344         (_fitoa_word): Likewise.
10345         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
10346         LLONG_MAX != LONG_MAX.
10347         * stdio-common/_itowa.h: Include <_itoa.h>.
10348         (_itowa_word): Use _ITOA_WORD_TYPE on value.
10349         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
10350         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
10351         only if not defined.
10352         (_ITOA_WORD_TYPE): Likewise.
10353         (_itoa_word): Use _ITOA_WORD_TYPE on value.
10354         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
10355
10356 2012-03-21  David S. Miller  <davem@davemloft.net>
10357
10358         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10359
10360 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
10361
10362         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
10363         of x86_64 when setting libc_cv_slibdir, libdir and
10364         libc_cv_localedir.
10365         * sysdeps/unix/sysv/linux/configure: Regenerated.
10366
10367 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
10368
10369         * manual/lang.texi (Old Varargs): Remove section.
10370         (How Variadic): Update menu.
10371         (va_start): Do not mention varargs.h.
10372
10373 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
10374             Joseph Myers  <joseph@codesourcery.com>
10375
10376         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
10377         link test.
10378         * configure: Regenerated.
10379
10380 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
10381
10382         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
10383         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
10384         conformtest.pl
10385
10386 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
10387
10388         * NOTES: Remove.
10389         * Makefile (files-for-dist): Remove NOTES.
10390         (NOTES): Remove rule.
10391         * README: Don't refer to NOTES.
10392         * manual/creature.texi: Don't include macros.texi.
10393         * manual/intro.texi (creature.texi): Remove comment referring to
10394         NOTES.
10395
10396         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
10397         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
10398         * configure: Regenerated.
10399         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
10400         LIBC_TRY_CC_OPTION.
10401         (libc_cv_as_i686): Likewise.
10402         (libc_cv_cc_avx): Likewise.
10403         (libc_cv_cc_sse2avx): Likewise.
10404         (libc_cv_cc_fma4): Likewise.
10405         (libc_cv_cc_novzeroupper): Likewise.
10406         * sysdeps/i386/configure: Regenerated.
10407
10408         [BZ #13883]
10409         * sysdeps/i386/fpu/s_cexp.S: Remove.
10410         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
10411         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
10412         * math/libm-test.inc (cexp_test): Add more tests.
10413         * sysdeps/i386/fpu/libm-test-ulps: Update.
10414         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10415
10416 2012-03-21  Allan McRae  <allan@archlinux.org>
10417
10418         * timezone/Makefile: Do not install iso3166.tab and zone.tab
10419
10420 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
10421
10422         [BZ #13871]
10423         * math/w_exp2.c: Do not include <float.h>.
10424         (o_threshold, u_threshold): Remove.
10425         (__exp2): Calculate result before checking finiteness and calling
10426         __kernel_standard.
10427         * math/w_exp2f.c: Likewise.
10428         * math/w_exp2l.c: Likewise.
10429         * math/libm-test.inc (exp2_test): Require overflow exception for
10430         1e6 input.
10431
10432         [BZ #3866]
10433         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
10434         range of signed 64-bit integers before using fistpll.  Remove
10435         checks for whether integers fit in mantissa bits.
10436         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
10437         the range of signed 32-bit integers before using fistpl.  Remove
10438         checks for whether integers fit in mantissa bits.
10439         * sysdeps/i386/fpu/e_powl.S (p64): New object.
10440         (__ieee754_powl): Test for y outside the range of signed 64-bit
10441         integers before using fistpll.  Reduce 64-bit values to 63-bit
10442         ones as needed.
10443         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
10444         divide-by-zero is raised for zero to large negative powers.
10445         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
10446         (__ieee754_powl): Test for y outside the range of signed 64-bit
10447         integers before using fistpll.  Reduce 64-bit values to 63-bit
10448         ones as needed.
10449         * math/libm-test.inc (pow_test): Add more tests.
10450
10451 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
10452
10453         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
10454         <stdio-common/_itoa.h>.
10455         * debug/segfault.c: Likewise.
10456         * elf/dl-cache.c: Likewise.
10457         * elf/dl-minimal.c: Likewise.
10458         * elf/dl-misc.c: Likewise.
10459         * elf/dl-sysdep.c: Likewise.
10460         * elf/dl-version.c: Likewise.
10461         * elf/rtld.c: Likewise.
10462         * hurd/hurdsock.c: Likewise.
10463         * hurd/lookup-retry.c: Likewise.
10464         * malloc/malloc.c: Likewise.
10465         * malloc/mtrace.c: Likewise.
10466         * nscd/nscd_getgr_r.c: Likewise.
10467         * nscd/nscd_getpw_r.c: Likewise.
10468         * nscd/nscd_getserv_r.c: Likewise.
10469         * posix/getopt_init.c: Likewise.
10470         * posix/wordexp.c: Likewise.
10471         * stdio-common/_itoa.c: Likewise.
10472         * stdio-common/printf_fphex.c: Likewise.
10473         * stdio-common/vfprintf.c: Likewise.
10474         * string/_strerror.c: Likewise.
10475         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
10476         * sysdeps/i386/i686/hp-timing.h: Likewise.
10477         * sysdeps/mach/_strerror.c: Likewise.
10478         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
10479         * sysdeps/mach/hurd/sethostid.c: Likewise.
10480         * sysdeps/mach/hurd/xmknodat.c: Likewise.
10481         * sysdeps/mach/xpg-strerror.c: Likewise.
10482         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
10483         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
10484         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
10485         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
10486         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
10487         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
10488         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
10489         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
10490         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
10491         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
10492         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
10493         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
10494         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
10495         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
10496         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
10497         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
10498         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
10499         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
10500         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
10501         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
10502         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
10503
10504         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
10505
10506         * stdio-common/_itoa.h: Moved to ...
10507         * sysdeps/generic/_itoa.h: Here.
10508
10509         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
10510
10511         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
10512         instead of "_itoa.h" and "_itowa.h".
10513         * stdio-common/vfprintf.: Likewise.
10514
10515 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
10516
10517         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
10518         <bits/wordsize.h>.
10519         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
10520         (__signbit): Likwise.
10521         (llrintf): Likwise.
10522         (llrint): Likwise.
10523
10524 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
10525
10526         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
10527         __WORDSIZE != 64.
10528
10529 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
10530
10531         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
10532         OVERFLOW_EXCEPTION_OK.
10533         * math/libm-test.inc ("Philosophy"): Update comment about
10534         exception testing.
10535         (OVERFLOW_EXCEPTION): Define.
10536         (OVERFLOW_EXCEPTION_OK): Likewise.
10537         (INVALID_EXCEPTION_OK): Renumber.
10538         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
10539         (IGNORE_ZERO_INF_SIGN): Likewise.
10540         (test_exceptions): Handle FE_OVERFLOW.
10541         (exp10_test): Expect overflow exceptions.
10542         (exp2_test): Likewise.
10543         (expm1_test): Likewise.
10544         (nextafter_test): Likewise.
10545         (pow_test): Likewise.
10546         (scalbn_test): Likewise.
10547         (scalbln_test): Likewise.
10548
10549 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10550
10551         * sysdeps/x86_64/bits/atomic.h
10552         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
10553         64bit integer.
10554         (atomic_exchange_acq): Likewise.
10555         (__arch_exchange_and_add_body): Likewise.
10556         (__arch_add_body): Likewise.
10557         (atomic_add_negative): Likewise.
10558         (atomic_add_zero): Likewise.
10559
10560 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10561
10562         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
10563         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
10564
10565 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10566
10567         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
10568         Check __x86_64__ instead of __WORDSIZE.
10569
10570 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10571
10572         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
10573
10574 2012-03-19  David S. Miller  <davem@davemloft.net>
10575
10576         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10577
10578         * sysdeps/sparc/fpu/fenv_private.h: New file.
10579         * sysdeps/sparc/fpu/math_private.h: Use it.
10580         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
10581         Remove.
10582         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
10583         (libc_feholdexcept_setroundl): Remove.
10584         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
10585         Remove.
10586         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
10587         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
10588
10589 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10590
10591         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
10592         int64_t instead of long int.
10593         (INSERT_WORDS64): Likwise.
10594
10595 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
10596
10597         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
10598         _Unwind_GetCFA return to _Unwind_Ptr first.
10599
10600 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
10601
10602         [BZ #13629]
10603         * math/s_clog.c: Include <float.h>.
10604         (__clog): Scale large or subnormal inputs.
10605         * math/s_clogf.c: Likewise.
10606         * math/s_clogl.c: Likewise.
10607         * math/s_clog10.c: Include <float.h>.
10608         (M_LOG10_2): Define.
10609         (__clog10): Scale large or subnormal inputs.
10610         * math/s_clog10f.c: Likewise.
10611         * math/s_clog10l.c: Likewise.
10612         * math/libm-test.inc (clog_test): Add more tests.
10613         (clog10_test): Likewise.
10614         * sysdeps/i386/fpu/libm-test-ulps: Update.
10615         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10616
10617         [BZ #11451]
10618         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
10619         x and y.
10620         * math/libm-test.inc (atan2_test): Add another test.
10621
10622         * Makerules (common-objdir-compile): Remove.
10623         * sysdeps/unix/Makefile (config-generated): Do not add
10624         $(unix-generated) to variable.
10625         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
10626         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
10627         Remove rule.
10628         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
10629         Likewise.
10630         [generic bits/local_lim.h] (before-compile): Do not append to
10631         variable.
10632         [generic bits/local_lim.h] (common-generated): Likewise.
10633         [generic sys/param.h] (before-compile): Do not append to variable.
10634         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
10635         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
10636         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
10637         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
10638         include.
10639         [generic sys/param.h] (sys/param.h-includes): Remove variable.
10640         [generic sys/param.h] (sys/param.h-includes): Remove rule.
10641         [generic sys/param.h] ($(addprefix
10642         $(common-objpfx),$(sys/param.h-includes))): Likewise.
10643         [generic sys/param.h] (common-generated): Do not append to
10644         variable.
10645         [generic sys/param.h] (sysdep_headers): Likewise.
10646         [generic bits/errno.h] (before-compile): Do not append to
10647         variable.
10648         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
10649         rule.
10650         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
10651         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
10652         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
10653         [generic bits/errno.h] (common-generated): Do not append to
10654         variable.
10655         [generic bits/ioctls.h] (before-compile): Do not append to
10656         variable.
10657         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
10658         rule.
10659         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
10660         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
10661         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
10662         rule.
10663         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
10664         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
10665         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
10666         [generic bits/ioctls.h] (common-generated): Do not append to
10667         variable.
10668         [generic sys/syscall.h] (syscall.h): Remove variable.
10669         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
10670         rule.
10671         [generic sys/syscall.h] (before-compile): Do not append to
10672         variable.
10673         [generic sys/syscall.h] (common-generated): Likewise.
10674         * sysdeps/unix/errnos-tmpl.c: Remove file.
10675         * sysdeps/unix/errnos.awk: Likewise.
10676         * sysdeps/unix/ioctls-tmpl.c: Likewise.
10677         * sysdeps/unix/ioctls.awk: Likewise.
10678         * sysdeps/unix/mk-local_lim.c: Likewise.
10679         * sysdeps/unix/snarf-ioctls: Likewise.
10680
10681 2012-03-19  Richard Henderson  <rth@twiddle.net>
10682
10683         * sysdeps/i386/fpu/fenv_private.h: New file.
10684         * sysdeps/i386/fpu/math_private.h: Use it.
10685         (math_opt_barrier, math_force_eval): Remove.
10686         (libc_feholdexcept_setround_53bit): Remove.
10687         (libc_feupdateenv_53bit): Remove.
10688         * sysdeps/x86_64/fpu/math_private.h: Likewise.
10689         (math_opt_barrier, math_force_eval): Remove.
10690         (libc_feholdexcept): Remove.
10691         (libc_feholdexcept_setround): Remove.
10692         (libc_fetestexcept, libc_fesetenv): Remove.
10693         (libc_feupdateenv_test): Remove.
10694         (libc_feupdateenv, libc_feholdsetround): Remove.
10695         (libc_feresetround): Remove.
10696
10697         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
10698         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
10699
10700         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
10701         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
10702         (libc_feupdateenv_testl): New.
10703         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
10704         (libc_feupdateenv_testf): New.
10705         (libc_feupdateenv): Use libc_feupdateenv_test.
10706         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
10707         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
10708
10709         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
10710         (libc_feholdsetroundf, libc_feholdsetroundl): New.
10711         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
10712         (libc_feresetround_noex): New.
10713         (libc_feresetround_noexf): New.
10714         (libc_feresetround_noexl): New.
10715         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
10716         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
10717         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
10718         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
10719         SET_RESTORE_ROUND.
10720         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
10721         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
10722         (__cos): Likewise.
10723         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
10724         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
10725         SET_RESTORE_ROUND_NOEX.
10726         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
10727         SET_RESTORE_ROUND_NOEXF.
10728         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
10729         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
10730         (libc_feholdsetroundf): New.
10731         (libc_feresetround, libc_feresetroundf): New.
10732
10733         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
10734         (libc_feholdexcept_setround_53bit): Convert from macro to function.
10735         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
10736
10737         * sysdeps/generic/math_private.h: Include <fenv.h>.
10738         (default_libc_feholdexcept): New.
10739         (default_libc_feholdexcept_setround): New.
10740         (default_libc_fesetenv, default_libc_feupdateenv): New.
10741         (libc_feholdexcept): Only define if undefined.
10742         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
10743         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
10744         (libc_feholdexcept_setroundl): Likewise.
10745         (libc_feholdexcept_setround_53bit): Likewise.
10746         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
10747         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
10748         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
10749         (libc_feupdateenv_53bit): Likewise.
10750         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
10751         (libc_feholdexcept): Convert from macro to inline function.
10752         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
10753         (libc_fesetenv, libc_feupdateenv): Likewise.
10754
10755         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
10756         not previously defined.
10757         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
10758         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
10759         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
10760         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
10761         * sysdeps/ieee754/flt-32/math_private.h: New file.
10762         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
10763         math_private.h below SET_FLOAT_WORD.
10764         (__isnan, __isinf_ns, __finite): Remove.
10765         (__isnanf, __isinf_nsf, __finitef): Remove.
10766
10767 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
10768
10769         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10770
10771 2012-03-17  David S. Miller  <davem@davemloft.net>
10772
10773         [BZ #6471]
10774         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
10775         for 2.16.
10776
10777 2012-03-16  David S. Miller  <davem@davemloft.net>
10778
10779         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
10780         warnings.
10781
10782         [BZ #6471]
10783         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
10784         properly.
10785         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
10786         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
10787         sysdep_routines when subdir is sysvipc.
10788         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
10789         __getshmlba helper.
10790
10791         * sysdeps/sparc/fpu/libm-test/ulps: Update.
10792
10793 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10794
10795         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
10796         [__LP64__].
10797
10798 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10799
10800         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
10801         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
10802         (__lround): Renamed to ...
10803         (__llround): This.  Replace long int with long long int.
10804         Define lround functions as aliases of llround functions.
10805         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
10806
10807 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10808
10809         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
10810         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
10811         adresses to uintptr_t.  Replace "long int" and "unsigned long
10812         int" with "greg_t" on va_arg.
10813
10814 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10815
10816         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
10817         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
10818
10819         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
10820         Move e_machine check before EI_CLASS check.  Handle x32
10821         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
10822         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
10823         SKIP_EM_IA_64 and include
10824         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
10825
10826         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
10827         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
10828         (add_system_dir): New macro.
10829
10830         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
10831         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
10832
10833 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
10834
10835         [BZ #2551]
10836         [BZ #2552]
10837         [BZ #2553]
10838         [BZ #2554]
10839         [BZ #2562]
10840         [BZ #2563]
10841         [BZ #2565]
10842         [BZ #2566]
10843         [BZ #2576]
10844         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
10845         (y0): Likewise.
10846         * math/w_j0f.c (j0f): Likewise.
10847         (y0f): Likewise.
10848         * math/w_j0l.c (__j0l): Likewise.
10849         (__y0l): Likewise.
10850         * math/w_j1.c (j1): Likewise.
10851         (y1): Likewise.
10852         * math/w_j1f.c (j1f): Likewise.
10853         (y1f): Likewise.
10854         * math/w_j1l.c (__j1l): Likewise.
10855         (__y1l): Likewise.
10856         * math/w_jn.c (jn): Likewise.
10857         (yn): Likewise.
10858         * math/w_jnf.c (jnf): Likewise.
10859         (ynf): Likewise.
10860         * math/w_jnl.c (__jnl): Likewise.
10861         (__ynl): Likewise.
10862         * math/libm-test.inc (j0_test): Add more tests.
10863         (j1_test): Likewise.
10864         (jn_test): Likewise.  Add trailing semicolon to existing test.
10865         (y0_test): Likewise.
10866         (y1_test): Likewise.
10867         * sysdeps/i386/fpu/libm-test-ulps: Update.
10868         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10869
10870         [BZ #13851]
10871         [BZ #13854]
10872         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
10873         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
10874         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
10875         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
10876         (__tanl): Set errno for infinite argument.
10877         * sysdeps/i386/fpu/mptan.c: Remove.
10878         * sysdeps/i386/fpu/s_tan.S: Likewise.
10879         * sysdeps/i386/fpu/s_tanl.S: Likewise.
10880         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
10881         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
10882         * math/libm-test.inc (tan_test): Add more tests and enable more
10883         tests for double and long double.
10884         * sysdeps/i386/fpu/libm-test-ulps: Update.
10885         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10886
10887 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
10888
10889         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
10890         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
10891
10892 2012-03-16  Roland McGrath  <roland@hack.frob.com>
10893
10894         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
10895         * configure.in: Use it for both main tree and add-ons.
10896         * configure: Regenerated.
10897
10898 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10899
10900         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
10901
10902 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
10903
10904         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
10905         in comment.
10906
10907         [BZ #13851]
10908         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
10909         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
10910         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
10911         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
10912         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
10913         infinite argument.
10914         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
10915         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
10916         != 0 for prec == 2.
10917         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
10918         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
10919         * sysdeps/i386/fpu/s_cosl.S: Likewise.
10920         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
10921         * sysdeps/i386/fpu/s_sinl.S: Likewise.
10922         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
10923         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
10924         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
10925         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
10926         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
10927         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
10928         * math/libm-test.inc (cos_test): Add more tests and enable more
10929         tests for long double.
10930         (sin_test): Likewise.
10931         (sincos_test): Likewise.
10932         * sysdeps/i386/fpu/libm-test-ulps: Update.
10933         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10934
10935 2012-03-16  David S. Miller  <davem@davemloft.net>
10936
10937         * sysdeps/sparc/fpu/math_private.h: New file.
10938
10939 2012-03-15  David S. Miller  <davem@davemloft.net>
10940
10941         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
10942         file.
10943         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
10944         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
10945         file.
10946         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
10947         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
10948         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
10949         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
10950         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
10951         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
10952         sysdep routines.
10953         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
10954
10955         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
10956         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
10957
10958         * sysdeps/sparc/sparc-ifunc.h: New file.
10959         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
10960         sparc-ifunc.h
10961         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
10962         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
10963         Likewise.
10964         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
10965         Likewise.
10966         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
10967         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
10968         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
10969         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
10970         Likewise.
10971         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
10972         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
10973         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
10974         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
10975         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
10976         Likewise.
10977         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
10978         Likewise.
10979         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
10980         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
10981         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
10982         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
10983         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
10984         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
10985         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
10986         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
10987         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
10988         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
10989         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
10990         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
10991         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
10992         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
10993         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
10994         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
10995         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
10996         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
10997         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
10998         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
10999         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
11000         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
11001         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
11002         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
11003
11004 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
11005
11006         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
11007         scaling.
11008         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11009
11010 2012-03-15  Andreas Jaeger  <aj@suse.de>
11011
11012         [BZ #13852]
11013         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
11014         ieee754/flt-32 implementation for sin, cos and sincos.
11015         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
11016         * sysdeps/i386/fpu/s_cosf.S: Likewise.
11017         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
11018         * sysdeps/i386/fpu/s_sinf.S: Likewise.
11019         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
11020         ieee754/flt-32 implementation for tan.
11021
11022         * math/libm-test.inc (cos_test): Enable some large input tests for
11023         float as well
11024         (sin_test): Likewise.
11025         (sincos_test): Likewise.
11026         (tan_test): Add tests for large input.
11027
11028         * sysdeps/i386/fpu/libm-test-ulps: Update.
11029
11030 2012-03-15  Andreas Jaeger  <aj@suse.de>
11031
11032         [BZ #13658]
11033         * math/libm-test.inc (cos_test): Add more test cases.
11034         (sin_test): Likewise.
11035         (sincos_test): Likewise.
11036
11037 2012-03-15  Andreas Jaeger  <aj@suse.de>
11038
11039         [BZ #13837]
11040         * math/libm-test.inc (cos_test): Add a test case for large input
11041         value.
11042         (sin_test): Likewise.
11043         (sincos_test): Likewise.
11044
11045 2012-03-15  Andreas Jaeger  <aj@suse.de>,
11046         Joseph Myers  <joseph@codesourcery.com>
11047
11048         [BZ #13658]
11049         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
11050         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
11051         * sysdeps/i386/fpu/branred.c: Likewise.
11052         * sysdeps/i386/fpu/dosincos.c: Likewise.
11053         * sysdeps/i386/fpu/mpa.c: Likewise.
11054         * sysdeps/i386/fpu/s_cos.S: Likewise.
11055         * sysdeps/i386/fpu/s_sin.S: Likewise.
11056         * sysdeps/i386/fpu/s_sincos.S: Likewise.
11057         * sysdeps/i386/fpu/sincos32.c: Likewise.
11058
11059         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
11060         Define.
11061         (libc_feupdateenv_53bit): Define.
11062         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
11063         Define.
11064         (libc_feupdateenv_53bit): Define.
11065
11066         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
11067         53 bit (without extend i386 double precision).
11068
11069         * math/libm-test.inc (sincos_test): Add tests for large input.
11070         (sin): Likewise.
11071         (cos): Likewise.
11072
11073         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
11074
11075 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
11076
11077         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11078
11079 2012-03-15  David S. Miller  <davem@davemloft.net>
11080
11081         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
11082         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
11083         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
11084         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
11085         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
11086         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
11087         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
11088         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
11089         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
11090         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
11091         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
11092         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
11093         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
11094         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
11095         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
11096         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
11097         file.
11098         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
11099         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
11100         file.
11101         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
11102         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
11103         file.
11104         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
11105         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
11106         file.
11107         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
11108         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
11109         fmin/fmax sysdep routines.
11110         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
11111
11112 2012-03-14  David S. Miller  <davem@davemloft.net>
11113
11114         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
11115         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
11116         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
11117         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
11118         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
11119         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
11120         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
11121         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
11122         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
11123         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
11124         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
11125         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
11126         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
11127         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
11128         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
11129         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
11130         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
11131         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
11132         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
11133         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
11134         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
11135         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
11136         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
11137         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
11138         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
11139         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
11140         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
11141         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
11142         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
11143         routines.
11144         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
11145         file.
11146         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
11147         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
11148         file.
11149         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
11150         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
11151         file.
11152         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
11153         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
11154         file.
11155         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
11156         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
11157         file.
11158         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
11159         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
11160         file.
11161         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
11162         file.
11163         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
11164         file.
11165         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
11166         file.
11167         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
11168         New file.
11169         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
11170         file.
11171         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
11172         file.
11173         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
11174         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
11175         file.
11176         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
11177         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
11178         file.
11179         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
11180         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
11181         file.
11182         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
11183         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
11184         VIS3 routines.
11185
11186         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
11187         New file.
11188
11189         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11190
11191         * sysdeps/sparc/configure.in: New file.
11192         * sysdeps/sparc/configure: Generate.
11193         * configure.in (libc_cv_sparc_as_vis3): Substitute.
11194         * configure: Regenerate.
11195         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
11196         * config.make.in (have-as-vis3): New.
11197         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
11198         available use -Av9d instead of -Av9a.
11199         * sysdeps/sparc/sparc64/Makefile: Likewise.
11200         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
11201         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
11202         New file.
11203         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
11204         file.
11205         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
11206         New file.
11207         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
11208         file.
11209         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
11210         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
11211         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
11212         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
11213         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
11214
11215         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
11216         fzeros/fnegs to load 0x80000000 into a float register instead of
11217         using the stack.
11218         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
11219
11220 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
11221
11222         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11223         bits/syscall.h.
11224         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
11225         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
11226         ($(inst_includedir)/bits/syscall.h): Remove rule.
11227         ($(objpfx)bits/syscall.d): Include instead of
11228         $(objpfx)syscall-list.d.
11229         (generated): Change syscall-list.h and syscall-list.d to
11230         bits/syscall.h and bits/syscall.d.
11231
11232 2012-03-14  Roland McGrath  <roland@hack.frob.com>
11233
11234         [BZ #13846]
11235         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
11236
11237 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
11238
11239         [BZ #13841]
11240         * math/s_csqrt.c: Include <float.h>.
11241         (__csqrt): Scale large or subnormal inputs.
11242         * math/s_csqrtf.c: Likewise.
11243         * math/s_csqrtl.c: Likewise.
11244         * math/libm-test.inc (csqrt_test): Add more tests.
11245         * sysdeps/i386/fpu/libm-test-ulps: Update.
11246         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11247
11248         [BZ #13840]
11249         * math/libm-test.inc (hypot_test): Add more tests.
11250
11251 2012-03-13  David S. Miller  <davem@davemloft.net>
11252
11253         [BZ #13840]
11254         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
11255         double-precision for the calculation instead of scaling.
11256
11257 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
11258
11259         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
11260         manipulate bits before adding and subtracting TWO52[sx].
11261         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
11262         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
11263         Likewise.
11264         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
11265
11266 2012-03-13  David S. Miller  <davem@davemloft.net>
11267
11268         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
11269         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
11270         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
11271         rtld-global-offsets.h
11272         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
11273
11274         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
11275         large parameters.
11276
11277         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
11278
11279         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
11280         'err' in the ifdef scope in which it is actually used.
11281
11282         * nss/nss_db/db-init.c: Include string.h
11283
11284 2012-03-12  David S. Miller  <davem@davemloft.net>
11285
11286         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
11287         masking out of the most significant byte of random value used.
11288         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
11289         Fix coding style in previous change.
11290
11291         * sysdeps/unix/sysv/linux/kernel-features.h
11292         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
11293         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
11294         expression.
11295         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
11296         later.
11297
11298 2012-03-11  David S. Miller  <davem@davemloft.net>
11299
11300         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
11301         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
11302         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
11303         for 'resultvar' otherwise things get truncated on 64-bit.
11304
11305         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
11306         Fix masking out of the most significant byte of random value used.
11307
11308         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11309
11310 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
11311
11312         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11313
11314 2012-03-09  David S. Miller  <davem@davemloft.net>
11315
11316         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
11317         variables with appropriate CPP guards.
11318         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
11319         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
11320         on resulting framesize and the management of the outregs buffer for pltexit.
11321         Preserve floating point return values across _dl_call_pltexit call.
11322         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
11323         framesize and the management of the outregs buffer for pltexit.
11324         Preserve floating point return values across _dl_call_pltexit
11325         call.
11326         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
11327         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
11328         (print_exit): Fix format string for return register value.
11329
11330 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
11331
11332         * sunrpc/Makefile (others): Add rpcgen.
11333         ($(objpfx)rpcgen): Remove special build rule and dependency on
11334         libc.
11335         * sunrpc/rpcgen.c: New file.
11336
11337 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
11338
11339         [BZ #13673]
11340         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
11341         * stdio-common/bug-vfprintf-nargs.c: Likewise.
11342         * sysdeps/i386/crti.S: Likewise.
11343         * sysdeps/i386/crtn.S: Likewise.
11344         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
11345         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
11346         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
11347         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
11348         * sysdeps/sh/crti.S: Likewise.
11349         * sysdeps/sh/crtn.S: Likewise.
11350         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
11351
11352         [BZ #13673]
11353         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
11354         with URL.
11355         * locale/programs/locfile-kw.gperf: Likewise.
11356         * locale/programs/charmap-kw.h: Regenerated.
11357         * locale/programs/locfile-kw.h: Likewise.
11358
11359         [BZ #13673]
11360         * intl/plural.y: Replace FSF snail mail address with URL.
11361         * intl/plural.c: Regenerated.
11362
11363 2012-03-09  Richard Henderson  <rth@twiddle.net>
11364
11365         * include/math_private.h: Remove file.
11366         * math/math_private.h: Move file ...
11367         * sysdeps/generic/math_private.h: ... here.
11368
11369         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
11370         * sysdeps/powerpc/fpu/math_private.h: Likewise.
11371         * sysdeps/x86_64/fpu/math_private.h: Likewise.
11372
11373         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
11374         and <math_private.h>.
11375         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
11376         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
11377         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
11378         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
11379         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
11380         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
11381         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
11382         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
11383         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
11384         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
11385         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
11386         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
11387         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
11388         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
11389         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
11390         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
11391         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
11392         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
11393         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
11394         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
11395         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
11396         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
11397         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
11398         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
11399         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
11400         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
11401         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
11402         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
11403         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
11404         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
11405         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
11406         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
11407         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
11408         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
11409         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
11410         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
11411         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
11412         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
11413         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
11414         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
11415         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
11416         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
11417         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
11418         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
11419         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
11420         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
11421         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
11422         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
11423         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
11424         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
11425         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
11426         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
11427         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
11428         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
11429         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
11430         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
11431         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
11432         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
11433         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
11434         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
11435         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
11436         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
11437         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
11438         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
11439         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
11440         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
11441         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
11442         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
11443         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
11444         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
11445         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
11446         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
11447         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
11448         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
11449         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
11450         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
11451         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
11452         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
11453         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
11454         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
11455         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
11456         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
11457         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
11458         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
11459         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
11460         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
11461         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
11462         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
11463         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
11464         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
11465         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
11466         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
11467         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
11468         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
11469         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
11470         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
11471         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
11472         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
11473         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
11474         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
11475         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
11476         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
11477         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
11478         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
11479         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
11480         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
11481         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
11482         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
11483         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
11484         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
11485         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
11486         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
11487         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
11488         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
11489         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
11490         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
11491         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
11492         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
11493         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
11494         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
11495         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
11496         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
11497         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
11498         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
11499         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
11500         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
11501         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
11502         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
11503         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
11504         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
11505         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
11506         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
11507         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
11508         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
11509         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
11510         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
11511         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
11512         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
11513         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
11514         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
11515         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
11516         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
11517         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
11518         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
11519         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
11520         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
11521         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
11522         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
11523         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
11524         * sysdeps/ieee754/k_standard.c: Likewise.
11525         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
11526         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
11527         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
11528         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
11529         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
11530         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
11531         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
11532         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
11533         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
11534         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
11535         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
11536         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
11537         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
11538         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
11539         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
11540         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
11541         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
11542         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
11543         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
11544         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
11545         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
11546         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
11547         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
11548         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
11549         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
11550         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
11551         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
11552         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
11553         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
11554         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
11555         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
11556         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
11557         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
11558         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
11559         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
11560         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
11561         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
11562         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
11563         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
11564         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
11565         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
11566         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
11567         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
11568         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
11569         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
11570         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
11571         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
11572         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
11573         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
11574         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
11575         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
11576         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
11577         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
11578         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
11579         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
11580         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
11581         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
11582         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
11583         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
11584         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
11585         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
11586         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
11587         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
11588         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
11589         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
11590         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
11591         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
11592         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
11593         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
11594         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
11595         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
11596         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
11597         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
11598         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
11599         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
11600         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
11601         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
11602         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
11603         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
11604         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
11605         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
11606         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
11607         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
11608         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
11609         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
11610         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
11611         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
11612         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
11613         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
11614         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
11615         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
11616         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
11617         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
11618         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
11619         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
11620         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
11621         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
11622         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
11623         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
11624         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
11625         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
11626         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
11627         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
11628         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
11629         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
11630         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
11631         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
11632         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
11633         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
11634         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
11635         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
11636         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
11637         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
11638         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
11639         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
11640         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
11641         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
11642         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
11643         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
11644         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
11645         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
11646         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
11647         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
11648         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
11649         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
11650         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
11651         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
11652         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
11653         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
11654         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
11655         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
11656         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
11657         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
11658         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
11659         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
11660         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
11661         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
11662         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
11663         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
11664         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
11665         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
11666         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
11667         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
11668         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
11669         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
11670         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
11671         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
11672         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
11673         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
11674         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
11675         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
11676         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
11677         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
11678         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
11679         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
11680         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
11681         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
11682         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
11683         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
11684         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
11685         * sysdeps/ieee754/s_lib_version.c: Likewise.
11686         * sysdeps/ieee754/s_matherr.c: Likewise.
11687         * sysdeps/ieee754/s_signgam.c: Likewise.
11688         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
11689         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
11690         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
11691         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
11692         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
11693         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
11694         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
11695         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
11696         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
11697         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
11698         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
11699         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
11700         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
11701         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
11702         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
11703         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
11704         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
11705         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
11706         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
11707         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
11708         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
11709
11710 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
11711
11712         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
11713         * sunrpc/rpc_main.c: Likewise.
11714         * sunrpc/rpc_svcout.c: Likewise.
11715
11716 2012-03-09  David S. Miller  <davem@davemloft.net>
11717
11718         * include/math_private.h: New file.
11719
11720 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
11721
11722         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
11723         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
11724         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
11725         from <bits/socket_type.h>.
11726         (enum __socket_type): Don't define here.
11727         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
11728         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11729         bits/socket_type.h.
11730
11731         [BZ #13566]
11732         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
11733         checking __USE_GNU.
11734
11735         * Makerules ($(inst_includedir)/%.h): New rule.
11736         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
11737         (install-others): Remove variable setting.
11738         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
11739
11740 2012-03-08  Richard Henderson  <rth@twiddle.net>
11741
11742         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
11743         from macro to inline function; merge with the
11744         !__LIBC_INTERNAL_MATH_INLINES version.
11745         (__ieee754_sqrtf): Likewise.
11746
11747         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
11748         to inline function.
11749         (__rintf, __floor, __floorf): Likewise.
11750
11751         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
11752         macro to inline function.
11753         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
11754
11755         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
11756         not <math/math_private.h>.
11757
11758 2012-03-08  David S. Miller  <davem@davemloft.net>
11759
11760         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
11761         copyright year.
11762         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
11763
11764 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
11765
11766         * resolv/gai_misc.c (handle_requests): Fix struct timespec
11767         normalization.
11768         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
11769         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
11770
11771 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
11772
11773         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
11774         be defined individually, they must be defined as a block.  Define
11775         S for printing a string instead of hidint the different by using a
11776         macro for adding the 'l'.
11777         * stdio-common/tst-fphex-wide.c: Adjust.
11778
11779 2012-03-07  Marek Polacek  <polacek@redhat.com>
11780
11781         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
11782
11783 2012-03-08  Marek Polacek  <polacek@redhat.com>
11784
11785         [BZ #13806]
11786         * stdio-common/Makefile (tests): Add tst-fphex-wide.
11787         * stdio-common/tst-fphex.c: Define a few macros to make the
11788         test reusable.  Use them.
11789         * stdio-common/tst-fphex-wide.c: New file.
11790
11791 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
11792
11793         [BZ #6911]
11794         * manual/macros.texi (gnusystems): New macro.
11795         (nongnusystems): Likewise.
11796         (gnulinuxhurdsystems): Likewise.
11797         (gnuhurdsystems): Likewise..
11798         (gnulinuxsystems): Likewise.
11799         * manual/charset.texi: Use new macros or @theglibc{} to refer to
11800         variants of the GNU system, not "GNU system".
11801         * manual/conf.texi: Likewise.
11802         * manual/errno.texi: Likewise.  Update example of errno macro
11803         expansion.
11804         * manual/filesys.texi: Likewise.
11805         (getumask): Document as specific to GNU/Hurd.
11806         * manual/install.texi: Likewise.  Reword some references to
11807         GNU/Linux.
11808         * manual/intro.texi: Likewise.
11809         * manual/io.texi: Likewise.
11810         (File Name Portability): Detail which constraints are inapplicable
11811         to all GNU systems and which are only inapplicable to GNU/Hurd.
11812         * manual/job.texi: Likewise.
11813         * manual/llio.texi: Likewise.
11814         (O_NOCTTY): Document as present on GNU/Linux.
11815         * manual/maint.texi: Likewise.
11816         * manual/memory.texi: Likewise.
11817         * manual/pattern.texi: Likewise.
11818         * manual/pipe.texi: Likewise.
11819         * manual/process.texi: Likewise.
11820         * manual/resource.texi: Likewise.
11821         (RUSAGE_CHILDREN): Remove statement about specifying a particular
11822         child on GNU/Hurd.
11823         * manual/setjmp.texi: Likewise.
11824         * manual/signal.texi: Likewise.
11825         * manual/startup.texi: Likewise.
11826         * manual/stdio.texi: Likewise.
11827         * manual/terminal.texi: Likewise.
11828         (ONLCR): Document as POSIX.
11829         (OXTABS): Document availability on GNU/Linux as XTABS.
11830         (ONOEOT): Document availability separately from other bits.
11831         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
11832         * manual/time.texi: Likewise.
11833         * manual/users.texi: Likewise.
11834         * INSTALL: Regenerated.
11835         * sysdeps/gnu/errlist.c: Regenerated.
11836
11837         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
11838         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
11839         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
11840         puts.
11841         * configure: Regenerated.
11842
11843 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
11844
11845         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
11846         default includes instead of AC_HEADER_CHECK.
11847         * sysdeps/i386/configure: Regenerated.
11848
11849         [BZ #10716]
11850         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
11851         * math/s_cacoshf.c (__cacoshf): Likewise.
11852         * math/s_cacoshl.c (__cacoshl): Likewise.
11853         * math/s_casinh.c (__casinh): Set signs of result from argument.
11854         * math/s_casinhf.c (__casinhf): Likewise.
11855         * math/s_casinhl.c (__casinhl): Likewise.
11856         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
11857         (casinh_test): Add more tests.
11858         * sysdeps/i386/fpu/libm-test-ulps: Update.
11859         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11860
11861 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
11862
11863         * po/zh_TW.po: Update from translation team.
11864
11865         * login/Makefile (distribute): Remove variable.
11866         * catgets/Makefile: Likewise.
11867         * mach/Makefile: Likewise.
11868         * malloc/Makefile: Likewise.
11869         * misc/Makefile: Likewise.
11870         * iconv/Makefile: Likewise.
11871         * nscd/Makefile: Likewise.
11872         * hurd/Makefile: Likewise.
11873         * manual/Makefile: Likewise.
11874         * locale/Makefile: Likewise.
11875         * intl/Makefile: Likewise.
11876         * conform/Makefile: Likewise.
11877         * nss/Makefile: Likewise.
11878         * time/Makefile: Likewise.
11879         * soft-fp/Makefile: Likewise.
11880         * dirent/Makefile: Likewise.
11881         * gmon/Makefile: Likewise.
11882         * po/Makefile: Likewise.
11883         * rt/Makefile: Likewise.
11884         * socket/Makefile: Likewise.
11885         * math/Makefile: Likewise.
11886         * signal/Makefile: Likewise.
11887         * debug/Makefile: Likewise.
11888         * elf/Makefile: Likewise.
11889         * timezone/Makefile: Likewise.
11890         * stdlib/Makefile: Likewise.
11891         * iconvdata/Makefile: Likewise.
11892         * sunrpc/Makefile: Likewise.
11893         * io/Makefile: Likewise.
11894         * argp/Makefile: Likewise.
11895         * inet/Makefile: Likewise.
11896         * hesiod/Makefile: Likewise.
11897         * grp/Makefile: Likewise.
11898         * csu/Makefile: Likewise.
11899         * wctype/Makefile: Likewise.
11900         * crypt/Makefile: Likewise.
11901         * libio/Makefile: Likewise.
11902         * string/Makefile: Likewise.
11903         * nis/Makefile: Likewise.
11904         * resolv/Makefile: Likewise.
11905         * stdio-common/Makefile: Likewise.
11906         * wcsmbs/Makefile: Likewise.
11907         * dlfcn/Makefile: Likewise.
11908         * posix/Makefile: Likewise.
11909
11910         [BZ #6959]
11911         * timezone/Makefile: Don't install timezone files, just the programs
11912         and scripts.
11913
11914 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
11915
11916         * nss/databases.def: Add missing gshadow entry.
11917
11918         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
11919
11920 2012-03-06  Marek Polacek  <polacek@redhat.com>
11921
11922         [BZ #13726]
11923         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
11924         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
11925         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
11926         * stdio-common/tst-long-dbl-fphex.c: New file.
11927
11928 2012-03-06  David S. Miller  <davem@davemloft.net>
11929
11930         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
11931         (set_obp_int): New function.
11932         (get_obp_int): New function.
11933         (__get_clockfreq_via_dev_openprom): Likewise.
11934         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
11935         Avoid unused variable warnings on 'val' and use builtin_expect.
11936         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
11937         __builtin_expect.
11938         (INLINE_CLONE_SYSCALL): Likewise.
11939
11940 2012-03-05  David S. Miller  <davem@davemloft.net>
11941
11942         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11943
11944 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
11945
11946         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11947
11948         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
11949         only for |x| >= 40.
11950         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
11951
11952 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
11953
11954         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
11955         Replace gettimeofday with __vdso_gettimeofday.
11956
11957         * sysdeps/unix/sysv/linux/x86_64/init-first.c
11958         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
11959         __vdso_clock_gettime and __vdso_getcpu.
11960
11961         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
11962         time with __vdso_time.
11963
11964 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
11965
11966         * manual/lang.texi (size_t): Note types to which size_t may be
11967         equivalent with the GNU C Library, but do not describe when
11968         differences between them are significant.
11969
11970 2012-03-05  Andreas Jaeger  <aj@suse.de>
11971
11972         * sysdeps/i386/fpu/libm-test-ulps: Update.
11973
11974 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
11975
11976         [BZ #3976]
11977         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
11978         (__ieee754_pow): Save and restore rounding mode and use
11979         round-to-nearest for main computations.
11980         * math/libm-test.inc (pow_test_tonearest): New function.
11981         (pow_test_towardzero): Likewise.
11982         (pow_test_downward): Likewise.
11983         (pow_test_upward): Likewise.
11984         (main): Call the new functions.
11985         * sysdeps/i386/fpu/libm-test-ulps: Update.
11986         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11987
11988         [BZ #3976]
11989         * math/libm-test.inc (cosh_test_tonearest): New function.
11990         (cosh_test_towardzero): Likewise.
11991         (cosh_test_downward): Likewise.
11992         (cosh_test_upward): Likewise.
11993         (sinh_test_tonearest): Likewise.
11994         (sinh_test_towardzero): Likewise.
11995         (sinh_test_downward): Likewise.
11996         (sinh_test_upward): Likewise.
11997         (main): Call the new functions.
11998         * sysdeps/i386/fpu/libm-test-ulps: Update.
11999         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12000
12001 2012-03-05  Tom de Vries  <tom@codesourcery.com>
12002
12003         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
12004         default stack guard is set in last bytes.
12005         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
12006
12007 2012-03-05  Kees Cook  <keescook@chromium.org>
12008
12009         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
12010
12011         [BZ #13656]
12012         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
12013         possibly allocate from heap instead of stack.
12014         * stdio-common/bug-vfprintf-nargs.c: New file.
12015         * stdio-common/Makefile (tests): Add nargs overflow test.
12016
12017 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
12018
12019         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12020
12021 2012-03-03  Marek Polacek  <polacek@redhat.com>
12022
12023         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
12024         * math/math_private.h: Likewise.
12025         * stdlib/tst-strtod.c: Likewise.
12026         * sysdeps/i386/i486/bits/atomic.h: Likewise.
12027         * sysdeps/x86_64/bits/atomic.h: Likewise.
12028
12029 2012-03-02  David S. Miller  <davem@davemloft.net>
12030
12031         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
12032         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
12033         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
12034         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
12035         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
12036         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
12037         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
12038         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
12039
12040 2012-03-02  Roland McGrath  <roland@hack.frob.com>
12041
12042         [BZ #13792]
12043         * manual/examples/README: New file, says the example source files
12044         can be used under GPL>=2.
12045         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
12046         line containing just "*/".
12047         * manual/examples/add.c: Add copyright header (GPL>=2).
12048         * manual/examples/argp-ex1.c: Likewise.
12049         * manual/examples/argp-ex2.c: Likewise.
12050         * manual/examples/argp-ex3.c: Likewise.
12051         * manual/examples/argp-ex4.c: Likewise.
12052         * manual/examples/atexit.c: Likewise.
12053         * manual/examples/db.c: Likewise.
12054         * manual/examples/dir.c: Likewise.
12055         * manual/examples/dir2.c: Likewise.
12056         * manual/examples/execinfo.c: Likewise.
12057         * manual/examples/filecli.c: Likewise.
12058         * manual/examples/filesrv.c: Likewise.
12059         * manual/examples/fmtmsgexpl.c: Likewise.
12060         * manual/examples/genpass.c: Likewise.
12061         * manual/examples/inetcli.c: Likewise.
12062         * manual/examples/inetsrv.c: Likewise.
12063         * manual/examples/isockad.c: Likewise.
12064         * manual/examples/longopt.c: Likewise.
12065         * manual/examples/memopen.c: Likewise.
12066         * manual/examples/memstrm.c: Likewise.
12067         * manual/examples/mkfsock.c: Likewise.
12068         * manual/examples/mkisock.c: Likewise.
12069         * manual/examples/mygetpass.c: Likewise.
12070         * manual/examples/pipe.c: Likewise.
12071         * manual/examples/popen.c: Likewise.
12072         * manual/examples/rprintf.c: Likewise.
12073         * manual/examples/search.c: Likewise.
12074         * manual/examples/select.c: Likewise.
12075         * manual/examples/setjmp.c: Likewise.
12076         * manual/examples/sigh1.c: Likewise.
12077         * manual/examples/sigusr.c: Likewise.
12078         * manual/examples/stpcpy.c: Likewise.
12079         * manual/examples/strdupa.c: Likewise.
12080         * manual/examples/strftim.c: Likewise.
12081         * manual/examples/strncat.c: Likewise.
12082         * manual/examples/subopt.c: Likewise.
12083         * manual/examples/swapcontext.c: Likewise.
12084         * manual/examples/termios.c: Likewise.
12085         * manual/examples/testopt.c: Likewise.
12086         * manual/examples/testpass.c: Likewise.
12087         * manual/examples/timeval_subtract.c: Likewise.
12088
12089         [BZ #13792]
12090         * manual/time.texi (Elapsed Time): Move timeval_subtract example
12091         function to ...
12092         * manual/timeval_subtract.c.texi: ... here, new file.
12093
12094 2012-03-02  David S. Miller  <davem@davemloft.net>
12095
12096         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
12097
12098 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
12099
12100         [BZ #3976]
12101         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
12102         (__sin): Save and restore rounding mode and use round-to-nearest
12103         for all computations.
12104         (__cos): Save and restore rounding mode and use round-to-nearest
12105         for all computations.
12106         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
12107         <fenv.h>.
12108         (tan): Save and restore rounding mode and use round-to-nearest for
12109         all computations.
12110         * math/libm-test.inc (cos_test_tonearest): New function.
12111         (cos_test_towardzero): Likewise.
12112         (cos_test_downward): Likewise.
12113         (cos_test_upward): Likewise.
12114         (sin_test_tonearest): Likewise.
12115         (sin_test_towardzero): Likewise.
12116         (sin_test_downward): Likewise.
12117         (sin_test_upward): Likewise.
12118         (tan_test_tonearest): Likewise.
12119         (tan_test_towardzero): Likewise.
12120         (tan_test_downward): Likewise.
12121         (tan_test_upward): Likewise.
12122         (main): Call the new functions.
12123         * sysdeps/i386/fpu/libm-test-ulps: Update.
12124         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12125
12126         [BZ #10135]
12127         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
12128         small n, then large n, before computing and testing k+n.
12129         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
12130         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
12131         Likewise.
12132         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
12133         Likewise.
12134         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
12135         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
12136         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
12137         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
12138         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
12139         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
12140         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
12141         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
12142         * math/libm-test.inc (scalbn_test): Add more tests.
12143         (scalbln_test): Likewise.
12144
12145         * manual/filesys.texi (mode_t): Describe constraints on size and
12146         signedness, not exact equivalence to a particular type.
12147         (ino_t): Likewise.
12148         (ino64_t): Likewise.
12149         (dev_t): Likewise.
12150         (nlink_t): Likewise.
12151         (blkcnt_t): Likewise.
12152         (blkcnt64_t): Likewise.
12153         * manual/llio.texi (off_t): Likewise.
12154
12155         [BZ #3976]
12156         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
12157         (__ieee754_exp): Save and restore rounding mode and use
12158         round-to-nearest for all computations.
12159         * math/libm-test.inc (exp_test_tonearest): New function.
12160         (exp_test_towardzero): Likewise.
12161         (exp_test_downward): Likewise.
12162         (exp_test_upward): Likewise.
12163         (main): Call the new functions.
12164         * sysdeps/i386/fpu/libm-test-ulps: Update.
12165         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12166
12167 2012-03-01  Chris Demetriou  <cgd@google.com>
12168
12169         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
12170         have predictable order.
12171
12172 2012-03-01  David S. Miller  <davem@davemloft.net>
12173
12174         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
12175
12176         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
12177         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
12178         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
12179         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
12180
12181         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
12182         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
12183         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
12184         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
12185         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
12186         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
12187         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
12188         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
12189         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
12190
12191         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12192
12193         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
12194         * sysdeps/sparc/fpu/libm-test-ulps: to here.
12195         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
12196
12197         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
12198         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12199         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
12200         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
12201         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
12202         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
12203         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
12204         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12205         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
12206         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
12207         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
12208         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
12209         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
12210         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
12211         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
12212         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
12213         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
12214         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
12215         * sysdeps/sparc/elf/configure: Regenerated.
12216
12217 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
12218
12219         * configure.in (AS, LD): Require binutils 2.20 or later.
12220         * configure: Regenerated.
12221         * manual/install.texi (Tools for Compilation): Give binutils 2.20
12222         as required minimum version.
12223         * INSTALL: Regenerated.
12224
12225         [BZ #2541]
12226         [BZ #4108]
12227         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
12228         before squaring exponent.
12229         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
12230         bottom long double and 27 bits of top long double before squaring
12231         exponent.
12232         * math/libm-test.inc (erfc_test): Add more tests.
12233         * sysdeps/i386/fpu/libm-test-ulps: Update.
12234         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
12235         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12236
12237 2012-03-01  Kai Tietz  <ktietz@redhat.com>
12238
12239         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
12240         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
12241         containing bit-fields.
12242         * soft-fp/extended.h (_FP_UNION_E): Likewise.
12243         * soft-fp/single.h (_FP_UNION_S): Likewise.
12244         * soft-fp/double.h (_FP_UNION_D): Likewise.
12245
12246 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
12247
12248         [BZ #13786]
12249         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
12250         not include ../strcmp.S.
12251         [USE_AS_STRNCASECMP_L]: Likewise.
12252         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
12253         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
12254         * sysdeps/i386/i686/multiarch/strncase_l-c.c
12255         (__strncasecmp_l_ia32): Define as alias to
12256         __strncasecmp_l_nonascii.
12257
12258         [BZ #5794]
12259         * math/libm-test.inc (expm1_test): Add test for bug 5794.
12260         * sysdeps/i386/fpu/libm-test-ulps: Update.
12261         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12262
12263         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
12264         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12265
12266 2012-02-29  Jeff Law  <law@redhat.com>
12267
12268         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
12269         out of bounds read.
12270
12271 2012-02-29  Marek Polacek  <polacek@redhat.com>
12272
12273         [BZ #13706]
12274         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
12275         * elf/Makefile: Add rules to run tst-unused-dep.out.
12276
12277 2012-02-28  David S. Miller  <davem@davemloft.net>
12278
12279         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
12280         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
12281         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
12282         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
12283         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
12284         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
12285
12286 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
12287
12288         * math/libm-test.inc (llround_test): Move one test from
12289         lround_test.  Use TEST_f_L in moved test.
12290         (lround_test): Move misplaced test to llround_test.  Add testcase
12291         from bug 2561.
12292
12293 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
12294
12295         * sysdeps/x86_64/fpu/e_expf.S: New file.
12296         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
12297
12298 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
12299
12300         [BZ #13637]
12301         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
12302         of remain_len that may cause incomplete multi-byte character and
12303         false match.
12304         * posix/bug-regex33.c: New file.
12305         * posix/Makefile (tests): Add bug-regex33.
12306
12307 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
12308
12309         * manual/macros.texi: New file.
12310         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
12311         * manual/libc.texinfo: Include macros.texi.
12312         * manual/creatute.texi: Likewise.
12313         * manual/install.texi: Likewise.
12314         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
12315         @glibcadj{} in references to the GNU C Library.
12316         * manual/charset.texi: Likewise.
12317         * manual/conf.texi: Likewise.
12318         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
12319         when not using those macros.
12320         * manual/creature.texi: Likewise.
12321         * manual/crypt.texi: Likewise.
12322         * manual/errno.texi: Likewise.
12323         * manual/filesys.texi: Likewise.
12324         * manual/header.texi: Likewise.
12325         * manual/install.texi: Likewise.
12326         * manual/intro.texi: Likewise.
12327         * manual/io.texi: Likewise.
12328         * manual/job.texi: Likewise.
12329         * manual/lang.texi: Likewise.
12330         * manual/libc.texiinfo: Likewise.
12331         * manual/llio.texi: Likewise.
12332         * manual/locale.texi: Likewise.
12333         * manual/maint.texi: Likewise.
12334         * manual/math.texi: Likewise.
12335         * manual/memory.texi: Likewise.
12336         * manual/message.texi: Likewise.
12337         * manual/nss.texi: Likewise.
12338         * manual/pattern.texi: Likewise.
12339         * manual/process.texi: Likewise.
12340         * manual/resource.texi: Likewise.
12341         * manual/search.texi: Likewise.
12342         * manual/setjmp.texi: Likewise.
12343         * manual/signal.texi: Likewise.
12344         * manual/socket.texi: Likewise.
12345         * manual/startup.texi: Likewise.
12346         * manual/stdio.texi: Likewise.
12347         * manual/string.texi: Likewise.
12348         * manual/sysinfo.texi: Likewise.
12349         * manual/syslog.texi: Likewise.
12350         * manual/terminal.texi: Likewise.
12351         * manual/time.texi: Likewise.
12352         * manual/users.texi: Likewise.
12353         * INSTALL: Regenerated.
12354         * NOTES: Regenerated.
12355         * sysdeps/gnu/errlist.c: Regenerated.
12356
12357 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
12358
12359         * include/dirent.h: Include <dirstream.h> before
12360         <dirent/dirent.h>.
12361
12362 2012-02-28  David S. Miller  <davem@davemloft.net>
12363
12364         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
12365         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
12366         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
12367         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
12368
12369 2012-02-27  David S. Miller  <davem@davemloft.net>
12370
12371         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
12372         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
12373         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
12374         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
12375
12376         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
12377         frame pointer instead of stack pointer relative arg slot.
12378         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
12379         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
12380         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
12381
12382 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
12383
12384         [BZ #3992]
12385         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
12386
12387 2012-02-27  David S. Miller  <davem@davemloft.net>
12388
12389         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
12390         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
12391         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
12392         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
12393         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
12394         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
12395         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
12396         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
12397
12398 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
12399
12400         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
12401         later.  Allow versions 5-9.
12402         * configure: Regenerated.
12403         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
12404         required minimum version and 4.6 as recommended version.  Do not
12405         mention bugs in GCC 2.7 and 2.8.
12406         * INSTALL: Regenerated.
12407
12408 2012-02-27  David S. Miller  <davem@davemloft.net>
12409
12410         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
12411         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
12412         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
12413         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
12414         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
12415         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
12416         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
12417         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
12418
12419         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
12420         manipulate bits before adding and subtracting TWO112[sx].
12421         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
12422
12423 2012-02-27  Roland McGrath  <roland@hack.frob.com>
12424
12425         [BZ #13775]
12426         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
12427         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
12428         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
12429         being in POSIX, because they are in 1003.1-2008.
12430
12431         * rt/tst-aio.c: Include <fcntl.h>.
12432         * rt/tst-aio7.c: Likewise.
12433         * rt/tst-aio64.c: Likewise.
12434
12435         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
12436
12437 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
12438
12439         * manual/install.texi (--with-headers): Describe headers as
12440         interface headers, not private headers.
12441         (Specific advice for GNU/Linux systems): Describe use of headers
12442         from "make headers_install", not private headers from older
12443         kernels.
12444         * INSTALL: Regenerated.
12445         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
12446         Change to 2.6.19.
12447         * sysdeps/unix/sysv/linux/configure: Regenerated.
12448
12449         * manual/llio.texi (fclean): Remove documentation.
12450
12451         * manual/Makefile (libc-texi-generated): New variable.  Include
12452         version.texi.
12453         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
12454         $(libc-texi-generated), not duplicated list of files.
12455         (version.texi, stamp-version): New rules.
12456         (realclean): Remove $(libc-texi-generated), not individual files
12457         from that list.  Do not remove dir-add.texinfo.
12458         * manual/libc.texinfo: Comment out uses of edition numbers and
12459         references to printed manual.  Remove last-updated dates.
12460         (EDITION): Comment out.
12461         (ISBN): Likewise.
12462         (VERSION, UPDATED): Remove.
12463         (version.texi): Include.
12464
12465 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
12466
12467         * sysdeps/posix/spawni.c: Include <signal.h>.
12468         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
12469         * sysdeps/pthread/aio_fsync.c: Likewise.
12470
12471 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
12472
12473         * conform/Makefile (tests): Run only when not cross-compiling and
12474         when fast-check is not defined.
12475
12476         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
12477         * conform/data/limits.h-data: Fixes for POSIX2008.
12478         * conform/run-conformtest.sh: Run all tests.
12479         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
12480         headers.
12481         * include/bits/dlfcn.h: Likewise.
12482         * include/langinfo.h: Likewise.
12483         * include/monetary.h: Likewise.
12484         * include/sys/poll.h: Likewise.
12485
12486         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
12487         for __USE_GNU.
12488         * posix/spawn.h: Define __need_sigset_t.
12489         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
12490         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
12491         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
12492         to get sigevent_t only.
12493         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
12494         only for __USE_GNU.
12495         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
12496         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
12497         process_vm_writev only for __USE_GNU.
12498         * termios/termios.h: Declare tcgetsid also for POSIX2008.
12499
12500         * conform/Makefile: For now ignore errors from run-conformtest.
12501         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
12502         POSIX to avoid namespace pollution.  Don't prepend headers.
12503         * conform/data/aio.h-data: Fixes for POSIX testing.
12504         * conform/data/fcntl.h-data: Likewise.
12505         * conform/data/glob.h-data: Likewise.
12506         * conform/data/grp.h-data: Likewise.
12507         * conform/data/pthread.h-data: Likewise.
12508         * conform/data/pwd.h-data: Likewise.
12509         * conform/data/signal.h-data: Likewise.
12510         * conform/data/spawn.h-data: Likewise.
12511         * conform/data/stdio.h-data: Likewise.
12512         * conform/data/stdlib.h-data: Likewise.
12513         * conform/data/stropts.h-data: Likewise.
12514         * conform/data/sys/mman.h-data: Likewise.
12515         * conform/data/sys/stat.h-data: Likewise.
12516         * conform/data/sys/types.h-data: Likewise.
12517         * conform/data/sys/wait.h-data: Likewise.
12518         * conform/data/time.h-data: Likewise.
12519         * conform/data/unistd.h-data: Likewise.
12520         * conform/data/utime.h-data: Likewise.
12521
12522         * io/sys/stat.h: fchmod was always in POSIX.
12523         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
12524         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
12525         * rt/aio.h: Define __need_timespec before including <time.h>.
12526         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
12527         struct.  Add forward declaration of pthread_attr_t and use it in
12528         sigevent.
12529         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
12530         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
12531         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
12532         always remove CLK_TCK definition.
12533
12534 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
12535
12536         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
12537
12538 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
12539
12540         * conform/run-conformtest.sh: New file.
12541         * conform/Makefile: Run run-conformtest for tests.
12542         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
12543         support.
12544
12545         * conform/data/uchar.h-data: New file.
12546         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
12547         * conform/data/arpa/inet.h-data: Likewise.
12548         * conform/data/assert.h-data: Likewise.
12549         * conform/data/complex.h-data: Likewise.
12550         * conform/data/cpio.h-data: Likewise.
12551         * conform/data/ctype.h-data: Likewise.
12552         * conform/data/dirent.h-data: Likewise.
12553         * conform/data/dlfcn.h-data: Likewise.
12554         * conform/data/errno.h-data: Likewise.
12555         * conform/data/fcntl.h-data: Likewise.
12556         * conform/data/float.h-data: Likewise.
12557         * conform/data/fmtmsg.h-data: Likewise.
12558         * conform/data/fnmatch.h-data: Likewise.
12559         * conform/data/ftw.h-data: Likewise.
12560         * conform/data/glob.h-data: Likewise.
12561         * conform/data/grp.h-data: Likewise.
12562         * conform/data/iconv.h-data: Likewise.
12563         * conform/data/inttypes.h-data: Likewise.
12564         * conform/data/langinfo.h-data: Likewise.
12565         * conform/data/libgen.h-data: Likewise.
12566         * conform/data/limits.h-data: Likewise.
12567         * conform/data/locale.h-data: Likewise.
12568         * conform/data/math.h-data: Likewise.
12569         * conform/data/monetary.h-data: Likewise.
12570         * conform/data/mqueue.h-data: Likewise.
12571         * conform/data/ndbm.h-data: Likewise.
12572         * conform/data/net/if.h-data: Likewise.
12573         * conform/data/netdb.h-data: Likewise.
12574         * conform/data/netinet/in.h-data: Likewise.
12575         * conform/data/nl_types.h-data: Likewise.
12576         * conform/data/poll.h-data: Likewise.
12577         * conform/data/pthread.h-data: Likewise.
12578         * conform/data/pwd.h-data: Likewise.
12579         * conform/data/regex.h-data: Likewise.
12580         * conform/data/sched.h-data: Likewise.
12581         * conform/data/search.h-data: Likewise.
12582         * conform/data/semaphore.h-data: Likewise.
12583         * conform/data/setjmp.h-data: Likewise.
12584         * conform/data/signal.h-data: Likewise.
12585         * conform/data/spawn.h-data: Likewise.
12586         * conform/data/stdarg.h-data: Likewise.
12587         * conform/data/stdio.h-data: Likewise.
12588         * conform/data/stdlib.h-data: Likewise.
12589         * conform/data/string.h-data: Likewise.
12590         * conform/data/strings.h-data: Likewise.
12591         * conform/data/stropts.h-data: Likewise.
12592         * conform/data/sys/ipc.h-data: Likewise.
12593         * conform/data/sys/mman.h-data: Likewise.
12594         * conform/data/sys/msg.h-data: Likewise.
12595         * conform/data/sys/resource.h-data: Likewise.
12596         * conform/data/sys/select.h-data: Likewise.
12597         * conform/data/sys/sem.h-data: Likewise.
12598         * conform/data/sys/shm.h-data: Likewise.
12599         * conform/data/sys/socket.h-data: Likewise.
12600         * conform/data/sys/stat.h-data: Likewise.
12601         * conform/data/sys/statvfs.h-data: Likewise.
12602         * conform/data/sys/time.h-data: Likewise.
12603         * conform/data/sys/timeb.h-data: Likewise.
12604         * conform/data/sys/times.h-data: Likewise.
12605         * conform/data/sys/types.h-data: Likewise.
12606         * conform/data/sys/uio.h-data: Likewise.
12607         * conform/data/sys/un.h-data: Likewise.
12608         * conform/data/sys/utsname.h-data: Likewise.
12609         * conform/data/sys/wait.h-data: Likewise.
12610         * conform/data/syslog.h-data: Likewise.
12611         * conform/data/tar.h-data: Likewise.
12612         * conform/data/termios.h-data: Likewise.
12613         * conform/data/utime.h-data: Likewise.
12614         * conform/data/utmpx.h-data: Likewise.
12615         * conform/data/varargs.h-data: Likewise.
12616         * conform/data/wchar.h-data: Likewise.
12617         * conform/data/wctype.h-data: Likewise.
12618         * conform/data/wordexp.h-data: Likewise.
12619
12620         * include/stropts.h: New file.
12621         * include/uchar.h: New file.
12622         * include/aio.h: Changes to allow conformtest.pl to use the headers.
12623         * include/assert.h: Likewise.
12624         * include/ctype.h: Likewise.
12625         * include/dirent.h: Likewise.
12626         * include/dlfcn.h: Likewise.
12627         * include/fcntl.h: Likewise.
12628         * include/fnmatch.h: Likewise.
12629         * include/glob.h: Likewise.
12630         * include/grp.h: Likewise.
12631         * include/libio.h: Likewise.
12632         * include/locale.h: Likewise.
12633         * include/math.h: Likewise.
12634         * include/net/if.h: Likewise.
12635         * include/netdb.h: Likewise.
12636         * include/netinet/in.h: Likewise.
12637         * include/pthread.h: Likewise.
12638         * include/pwd.h: Likewise.
12639         * include/regex.h: Likewise.
12640         * include/sched.h: Likewise.
12641         * include/search.h: Likewise.
12642         * include/setjmp.h: Likewise.
12643         * include/signal.h: Likewise.
12644         * include/stdio.h: Likewise.
12645         * include/stdlib.h: Likewise.
12646         * include/string.h: Likewise.
12647         * include/sys/cdefs.h: Likewise.
12648         * include/sys/mman.h: Likewise.
12649         * include/sys/msg.h: Likewise.
12650         * include/sys/resource.h: Likewise.
12651         * include/sys/select.h: Likewise.
12652         * include/sys/socket.h: Likewise.
12653         * include/sys/stat.h: Likewise.
12654         * include/sys/statvfs.h: Likewise.
12655         * include/sys/time.h: Likewise.
12656         * include/sys/times.h: Likewise.
12657         * include/sys/uio.h: Likewise.
12658         * include/sys/utsname.h: Likewise.
12659         * include/sys/wait.h: Likewise.
12660         * include/termios.h: Likewise.
12661         * include/time.h: Likewise.
12662         * include/ulimit.h: Likewise.
12663         * include/unistd.h: Likewise.
12664         * include/utime.h: Likewise.
12665         * include/wchar.h: Likewise.
12666         * include/wctype.h: Likewise.
12667         * include/wordexp.h: Likewise.
12668
12669         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
12670
12671         * time/time.h: TIME_UTC must be a macro.
12672         Make timespec_get available for ISO C11 only as well.
12673
12674 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
12675
12676         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
12677         Reported by Peng Haitao <penght@cn.fujitsu.com>.
12678
12679 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
12680
12681         * configure.in: Use -o not -a in test for unsupported multi-arch.
12682
12683 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
12684
12685         * manual/texinfo.tex: Update to version 2012-01-19.16.
12686
12687 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
12688
12689         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
12690
12691 2012-02-24  Roland McGrath  <roland@hack.frob.com>
12692
12693         [BZ #13738]
12694         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
12695         * manual/fdl-1.3.texi: New file.
12696         * manual/fdl-1.1.texi: File removed.
12697
12698         [BZ #13738]
12699         * manual/libc.texinfo (FDL_VERSION): New @set.
12700         Use it for mention of FDL in cover text.
12701         (Documentation License): Use it in @include file name.
12702
12703 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12704             Roland McGrath  <roland@hack.frob.com>
12705
12706         [BZ #5461]
12707         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
12708         not LONG_LONG_MAX and LONG_LONG_MIN.
12709         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
12710         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
12711         name.
12712         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
12713
12714 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12715
12716         [BZ #2547]
12717         [BZ #11365]
12718         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
12719         manipulate bits before adding and subtracting TWO23[sx].
12720         * math/libm-test.inc (nearbyint_test): Add more tests.
12721
12722 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12723
12724         [BZ #2548]
12725         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
12726         bits before adding and subtracting TWO23[sx].
12727         * math/libm-test.inc (rint_test): Add more tests.
12728         (rint_test_tonearest): Likewise.
12729         (rint_test_towardzero): Likewise.
12730         (rint_test_downward): Likewise.
12731         (rint_test_upward: Likewise.
12732
12733 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12734
12735         [BZ #10110]
12736         * include/stdc-predef.h: New file.  Extracted from features.h.
12737         * include/features.h: Include stdc-predef.h.
12738         * Makefile (headers): Add stdc-predef.h.
12739         * CONFORMANCE (Compiler limitations): Update.
12740
12741 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
12742
12743         * manual/libc.texinfo (VERSION, UPDATED): Revert.
12744
12745 2012-02-21  David S. Miller  <davem@davemloft.net>
12746
12747         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
12748         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
12749
12750 2012-02-20  David S. Miller  <davem@davemloft.net>
12751
12752         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
12753         using a normal save/restore sequence, rather than allocating a
12754         dummy stack frame just to store a frame pointer and restore.
12755         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
12756
12757 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
12758
12759         * manual/install.texi: Fix stray word in line-wrapped comment.
12760
12761 2012-02-20  David S. Miller  <davem@davemloft.net>
12762
12763         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
12764         both binutils and gcc support GOTDATA.
12765
12766         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
12767         "rd %pc" in the PIC register setup sequences.
12768
12769         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
12770         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
12771         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
12772         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
12773         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
12774         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
12775         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
12776         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
12777         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
12778         (SYSCALL_ERROR_HANDLER): Likewise.
12779         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
12780         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
12781         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
12782         (SYSCALL_ERROR_HANDLER): Likewise.
12783
12784         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
12785         (HAVE_GCC_GOTDATA): New.
12786         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
12787         relocation support in both binutils and gcc.
12788         * sysdeps/sparc/elf/configure: Regenerate.
12789
12790         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
12791         * sysdeps/sparc/sparc32/elf/configure: Delete.
12792         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
12793         * sysdeps/sparc/sparc64/elf/configure: Delete.
12794         * sysdeps/sparc/elf/configure.in: New file.
12795         * sysdeps/sparc/elf/configure: Generate.
12796
12797         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
12798         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
12799         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
12800         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
12801         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
12802
12803 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
12804
12805         * manual/install.texi: Do not mention specific glibc version
12806         numbers.
12807         * manual/libc.texinfo (VERSION, UPDATED): Update.
12808         (@copying): Use @copyright{} and range of years.
12809
12810 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
12811
12812         [BZ #13695]
12813         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
12814         [crti.S not in sysdirs] (generated): Do not append.
12815         [crti.S not in sysdirs] (omit-deps): Likewise.
12816         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
12817         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
12818         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
12819         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
12820         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
12821         Likewise.
12822         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
12823         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
12824         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
12825         * csu/defs.awk: Remove file.
12826         * sysdeps/generic/initfini.c: Likewise.
12827         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
12828         variable.
12829         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
12830         Likewise.
12831
12832 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
12833
12834         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
12835         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
12836         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
12837         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
12838         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
12839         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
12840         <bits/epoll.h>.
12841         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
12842         (__EPOLL_PACKED): Define to empty if not defined by
12843         <bits/epoll.h>.
12844         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
12845         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12846         bits/epoll.h.
12847
12848 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
12849
12850         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
12851         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
12852         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
12853         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
12854         <bits/timerfd.h>.
12855         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
12856         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12857         bits/timerfd.h.
12858
12859 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
12860
12861         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
12862         in C locale.
12863         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
12864         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
12865         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
12866         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12867
12868 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
12869
12870         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
12871         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
12872
12873 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
12874
12875         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
12876         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
12877         defined.
12878         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
12879         Likewise.
12880         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
12881         entry for 2.16.
12882
12883 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
12884
12885         * math/w_acos.c: Use non-signaling floating-point comparisons.
12886         * math/w_acosf.c: Likewise.
12887         * math/w_acosh.c: Likewise.
12888         * math/w_acoshf.c: Likewise.
12889         * math/w_acoshl.c: Likewise.
12890         * math/w_acosl.c: Likewise.
12891         * math/w_asin.c: Likewise.
12892         * math/w_asinf.c: Likewise.
12893         * math/w_asinl.c: Likewise.
12894         * math/w_atanh.c: Likewise.
12895         * math/w_atanhf.c: Likewise.
12896         * math/w_atanhl.c: Likewise.
12897         * math/w_exp2.c: Likewise.
12898         * math/w_exp2f.c: Likewise.
12899         * math/w_exp2l.c: Likewise.
12900         * math/w_j0.c: Likewise.
12901         * math/w_j0f.c: Likewise.
12902         * math/w_j0l.c: Likewise.
12903         * math/w_j1.c: Likewise.
12904         * math/w_j1f.c: Likewise.
12905         * math/w_j1l.c: Likewise.
12906         * math/w_jn.c: Likewise.
12907         * math/w_jnf.c: Likewise.
12908         * math/w_log.c: Likewise.
12909         * math/w_log10.c: Likewise.
12910         * math/w_log10f.c: Likewise.
12911         * math/w_log10l.c: Likewise.
12912         * math/w_log2.c: Likewise.
12913         * math/w_log2f.c: Likewise.
12914         * math/w_log2l.c: Likewise.
12915         * math/w_logf.c: Likewise.
12916         * math/w_logl.c: Likewise.
12917         * math/w_sqrt.c: Likewise.
12918         * math/w_sqrtf.c: Likewise.
12919         * math/w_sqrtl.c: Likewise.
12920         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
12921         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
12922         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
12923         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
12924         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
12925
12926 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
12927
12928         [BZ #9739]
12929         * manual/string.texi (strnlen): Use correct parameter name in
12930         equivalent expression.
12931
12932 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
12933
12934         [BZ #11174]
12935         * manual/users.texi (seteuid): Consistently use neweuid for
12936         argument name.
12937
12938 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
12939
12940         [BZ #13704]
12941         * manual/nss.texi (Services in the NSS configuration): Correct
12942         list of services in example configuration file.
12943
12944 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
12945
12946         [BZ #11322]
12947         * manual/arith.texi: Remove statements about negative zero
12948         behaving identically to zero.
12949
12950 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
12951
12952         [BZ #5993]
12953         * manual/install.texi: Do not document upgrading from libc5.
12954
12955 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
12956
12957         [BZ #4596]
12958         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
12959
12960 2012-02-18  David S. Miller  <davem@davemloft.net>
12961
12962         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
12963         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
12964         %o7 across the call.
12965         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
12966         instead.
12967         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
12968         SETUP_PIC_REG_LEAF.
12969         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
12970         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
12971         * sysdeps/sparc/crtn.S: Likewise.
12972
12973 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
12974
12975         * aout/Makefile: Remove.
12976
12977 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
12978
12979         [BZ #13058]
12980         * manual/examples/argp-ex1.c (main): Format definition in GNU
12981         style.
12982         * manual/examples/argp-ex2.c (main): Likewise.
12983         * manual/examples/argp-ex3.c (main): Likewise.
12984         * manual/examples/argp-ex4.c (main): Likewise.
12985         * manual/examples/longopt.c (main): Use new-style prototype
12986         definition.
12987         * manual/examples/strncat.c (main): Specify return type and use
12988         (void) for arguments.
12989         * manual/examples/subopt.c (main): Use char **argv argument.
12990
12991 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
12992
12993         [BZ #5077]
12994         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
12995         rounding modes.
12996
12997 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
12998
12999         [BZ #6907]
13000         * manual/string.texi (strchr): Change when strchrnul is
13001         recommended.
13002
13003 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
13004
13005         [BZ #174]
13006         * manual/locale.texi (setlocale): Document LOCPATH.
13007
13008 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
13009
13010         [BZ #10210]
13011         * manual/process.texi (execle): Move @dots{} before last argument.
13012
13013 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
13014
13015         [BZ #12047]
13016         * manual/charset.texi (Generic Charset Conversion): Fix typo
13017         (LC_TYPE -> LC_CTYPE).
13018
13019 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
13020
13021         [BZ #5805]
13022         * manual/arith.texi (scalbn): Use @var{} on parameter names.
13023         (scalbnf): Likewise.
13024         (scalbnl): Likewise.
13025         (scalbln): Likewise.
13026         (scalblnf): Likewise.
13027         (scalblnl): Likewise.
13028         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
13029         (vwarnx): Likewise.
13030         (verr): Likewise.
13031         (verrx): Likewise.
13032         * manual/filesys.texi (telldir): Use braces around return type.
13033         * manual/llio.texi (mmap): Add space after comma.
13034         (mmap64): Likewise.
13035         * manual/math.texi (jn): Use @var{} on parameter names.
13036         (jnf): Likewise.
13037         (jnl): Likewise.
13038         (yn): Likewise.
13039         (ynf): Likewise.
13040         (ynl): Likewise.
13041         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
13042         line.
13043         * manual/resource.texi (ulimit): Use @dots{} instead of literal
13044         "...".
13045         (sched_get_priority_min): Remove semicolon on @deftypefun line.
13046         (sched_get_priority_max): Likewise.
13047         * manual/signal.texi (sigvec): Add space after comma.
13048         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
13049         names.
13050         (if_indextoname): Likewise.
13051         (if_freenameindex): Likewise.
13052         (sendto): Use ',' instead of '.' in prototype.
13053         * manual/startup.texi (syscall): Use @dots{} instead of literal
13054         "...".
13055         * manual/stdio.texi (__fpending): Separate initial words of
13056         paragraph from @deftypefun line.
13057         * manual/syslog.texi (syslog): Use @dots{} instead of literal
13058         "...".
13059         (vsyslog): Use @var{} on parameter names.
13060         * manual/terminal.texi (stty): Use @var{} on parameter names.
13061         * manual/users.texi (getutmp): Use @var{} on parameter names.
13062         (getutmpx): Likewise.
13063
13064 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
13065
13066         [BZ #6884]
13067         * manual/stdio.texi (fopen): Fix typos in description of
13068         ",ccs=STRING".
13069
13070 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
13071
13072         [BZ #4026]
13073         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
13074         get clock_id definition.
13075
13076 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
13077
13078         [BZ #4822]
13079         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
13080         (madvise): Cast every argument to void on its own.
13081
13082 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
13083
13084         [BZ #9902]
13085         * manual/startup.texi (Exit Status): Fix typo.
13086
13087 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
13088
13089         [BZ #10140]
13090         * manual/examples/argp-ex1.c: Include <stdlib.h>.
13091         * manual/examples/argp-ex2.c: Likewise.
13092         * manual/examples/argp-ex3.c: Likewise.
13093
13094 2012-02-16  Richard Henderson  <rth@redhat.com>
13095
13096         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
13097         * sysdeps/s390/s390-32/initfini.c: Remove.
13098         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
13099         * sysdeps/s390/s390-64/initfini.c: Remove.
13100
13101 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
13102
13103         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
13104         compiler output for sysdeps/generic/initfini.c.
13105         * sysdeps/sh/elf/initfini.c: Remove file.
13106
13107 2012-02-16  David S. Miller  <davem@davemloft.net>
13108
13109         [BZ #11494]
13110         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
13111
13112         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
13113         * sysdeps/sparc/crti.S: New file.
13114         * sysdeps/sparc/crtn.S: New file.
13115         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
13116         * sysdeps/sparc/sparc64/Makefile: Likewise.
13117
13118 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
13119
13120         [BZ #3335]
13121         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
13122
13123 2012-02-15  Roland McGrath  <roland@hack.frob.com>
13124
13125         [BZ #4822]
13126         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
13127
13128         * mach/devstream.c (cookie_io_functions_t): Macro removed.
13129         (write, read, close): Likewise.
13130         Patch by Aurelien Jarno <aurelien@aurel32.net>.
13131
13132 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
13133
13134         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
13135         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
13136         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
13137         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
13138         <bits/signalfd.h>.
13139         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
13140         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13141         bits/signalfd.h.
13142
13143 2012-02-14  Marek Polacek  <polacek@redhat.com>
13144
13145         * sysdeps/x86_64/crti.S: New file.
13146         * sysdeps/x86_64/crtn.S: New file.
13147         * sysdeps/x86_64/elf/initfini.c: Remove file.
13148
13149 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
13150
13151         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
13152         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
13153         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
13154         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
13155         <bits/inotify.h>.
13156         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
13157         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13158         bits/inotify.h.
13159
13160 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
13161
13162         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
13163         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
13164         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
13165         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
13166         <bits/eventfd.h>.
13167         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
13168         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13169         bits/eventfd.h.
13170
13171 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
13172
13173         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
13174         __feraiseexcept instead of feraiseexcept.
13175
13176         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
13177         nanosleep invocations.
13178         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
13179         strings, and add error checking for a nanosleep invocations.
13180
13181 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
13182
13183         Replace FSF snail mail address with URLs, as per GNU coding standards.
13184         Most of the snail mail addresses were wrong anyway, and omitting
13185         them makes the source code easier to maintain.  Almost all of the
13186         changes are to license notices and to locale LC_IDENTIFICATION
13187         addresses, except for this one:
13188         * manual/libc.texinfo: In "Published by", give the FSF's URL,
13189         not its snail mail address.
13190
13191 2012-02-09  Richard Henderson  <rth@twiddle.net>
13192
13193         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
13194         of kernel-features.h.
13195
13196         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
13197
13198 2012-02-08  Marek Polacek  <polacek@redhat.com>
13199
13200         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
13201         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
13202         * sysdeps/gnu/_G_config.h: Likewise.
13203         * sysdeps/generic/_G_config.h: Likewise.
13204
13205 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
13206
13207         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
13208         tests.
13209         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13210
13211         * sysdeps/powerpc/powerpc32/crti.S: New file.
13212         * sysdeps/powerpc/powerpc32/crtn.S: New file.
13213         * sysdeps/powerpc/powerpc64/crti.S: New file.
13214         * sysdeps/powerpc/powerpc64/crtn.S: New file.
13215
13216         * Makeconfig (have-initfini): Don't set.
13217         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
13218         * configure.in (nopic_initfini): Don't substitute.
13219         * config.h.in (HAVE_INITFINI): Don't #undef.
13220         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
13221         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
13222
13223 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
13224
13225         Support crti.S and crtn.S provided directly by architectures.
13226         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
13227         [crti.S in sysdirs] (omit-deps): Likewise.
13228         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
13229         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
13230         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
13231         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
13232         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
13233         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
13234         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
13235         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
13236         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
13237         compiler output for sysdeps/generic/initfini.c.
13238         * sysdeps/i386/elf/Makefile: Remove file.
13239         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
13240
13241 2012-02-07  Marek Polacek  <polacek@redhat.com>
13242
13243         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
13244         * sysdeps/gnu/_G_config.h: Likewise.
13245         * sysdeps/mach/hurd/_G_config.h: Likewise.
13246
13247 2012-02-07  Marek Polacek  <polacek@redhat.com>
13248
13249         * math/Makefile (tests): Add tst-CMPLX2.
13250         * math/tst-CMPLX2.c: New file.
13251
13252 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
13253
13254         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
13255
13256         * math/libm-test.inc (jn_test): Add missing L suffix.
13257
13258 2012-02-06  Marek Polacek  <polacek@redhat.com>
13259
13260         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
13261         * sysdeps/i386/fpu/e_powf.S: Likewise.
13262         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
13263         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
13264         * sysdeps/i386/fpu/e_acosh.S: Likewise.
13265         * sysdeps/i386/fpu/e_pow.S: Likewise.
13266         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
13267         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
13268         * sysdeps/i386/fpu/s_expm1.S: Likewise.
13269         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
13270         * sysdeps/i386/fpu/e_log2.S: Likewise.
13271         * sysdeps/i386/fpu/e_log2l.S: Likewise.
13272         * sysdeps/i386/fpu/e_scalb.S: Likewise.
13273         * sysdeps/i386/fpu/e_powl.S: Likewise.
13274         * sysdeps/i386/fpu/s_log1p.S: Likewise.
13275         * sysdeps/i386/fpu/e_log10f.S: Likewise.
13276         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
13277         * sysdeps/i386/fpu/e_logl.S: Likewise.
13278         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
13279         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
13280         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
13281         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
13282         * sysdeps/i386/fpu/e_log2f.S: Likewise.
13283         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
13284         * sysdeps/i386/fpu/e_log.S: Likewise.
13285         * sysdeps/i386/fpu/s_cexp.S: Likewise.
13286         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
13287         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
13288         * sysdeps/i386/fpu/e_logf.S: Likewise.
13289         * sysdeps/i386/fpu/e_log10l.S: Likewise.
13290         * sysdeps/i386/fpu/e_atanh.S: Likewise.
13291         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
13292         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
13293         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
13294         * sysdeps/i386/fpu/e_log10.S: Likewise.
13295         * sysdeps/i386/fpu/s_frexp.S: Likewise.
13296         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
13297         * sysdeps/i386/fpu/s_asinh.S: Likewise.
13298         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
13299         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
13300         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
13301         * sysdeps/i386/asm-syntax.h: Likewise.
13302         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
13303         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
13304         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
13305         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
13306         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
13307         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
13308         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
13309         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
13310         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
13311         * sysdeps/powerpc/sysdep.h: Likewise.
13312         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
13313         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
13314
13315 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
13316
13317         [BZ #411]
13318         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
13319
13320 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
13321
13322         * sysdeps/i386/sysdep.h: Include <features.h>.
13323         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
13324         version.
13325
13326 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
13327
13328         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
13329         Define.
13330         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
13331         LOAD_PIC_REG_STR.
13332
13333 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
13334
13335         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
13336         (SETUP_PIC_REG): Use GET_PC_THUNK.
13337         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
13338         macro.
13339
13340 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
13341
13342         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
13343         for non-PIC compilation.
13344         (SETUP_PIC_REG): Add .p2align directive.
13345         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
13346         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
13347         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
13348         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
13349         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
13350         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
13351         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
13352         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
13353         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
13354         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
13355         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
13356         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
13357         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
13358         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
13359         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
13360         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
13361         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
13362         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
13363         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
13364         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
13365         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
13366         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
13367         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
13368         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
13369         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
13370         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
13371         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
13372         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
13373         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
13374         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
13375         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
13376         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
13377         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
13378         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
13379         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
13380         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
13381         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
13382         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
13383         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
13384         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
13385         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
13386
13387 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
13388
13389         * math/tst-CMPLX.c: Include <stdio.h>.
13390
13391 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
13392
13393         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
13394         float.
13395         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
13396         * sysdeps/sparc/bits/mathdef.h: Likewise.
13397
13398 2012-01-31  Marek Polacek  <polacek@redhat.com>
13399
13400         * libio/libio.h: Don't define _PARAMS.
13401         * locale/programs/config.h: Don't define PARAMS.
13402         * stdlib/strtol_l.c: Likewise.
13403         (__strtol_l): Remove PARAMS from the prototype.
13404
13405 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
13406
13407         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
13408         names.  Just use the correct names.  Remove unnecessary wrapper
13409         functions.
13410         * malloc/arena.c: Likewise.
13411         * malloc/hooks.c: Likewise.
13412
13413         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
13414         ARENA_TEST says not to.  Simplify test for creation of a new arena.
13415         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
13416
13417 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
13418
13419         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
13420         into tail calls.
13421         (update_get_addr): New function.
13422         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
13423         GET_ADDR_MODULE parameter.
13424
13425 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
13426
13427         * crypt/cert.c: Remove __STDC__ conditionals.
13428         * crypt/crypt-entry.c: Likewise.
13429         * crypt/crypt_util.c: Likewise.
13430         * libio/filedoalloc.c: Likewise.
13431         * libio/fileops.c: Likewise.
13432         * libio/genops.c: Likewise.
13433         * libio/iofclose.c: Likewise.
13434         * libio/iofdopen.c: Likewise.
13435         * libio/iofopen.c: Likewise.
13436         * libio/iofopen64.c: Likewise.
13437         * libio/iogetdelim.c: Likewise.
13438         * libio/iopopen.c: Likewise.
13439         * libio/obprintf.c: Likewise.
13440         * libio/oldfileops.c: Likewise.
13441         * libio/oldiofclose.c: Likewise.
13442         * libio/oldiofdopen.c: Likewise.
13443         * libio/oldiofopen.c: Likewise.
13444         * libio/oldiopopen.c: Likewise.
13445         * libio/wfiledoalloc.c: Likewise.
13446         * libio/wgenops.c: Likewise.
13447         * locale/programs/xmalloc.c: Likewise.
13448         * misc/syslog.c: Likewise.
13449         * stdio-common/xbug.c: Likewise.
13450         * string/memchr.c: Likewise.
13451         * string/memcmp.c: Likewise.
13452         * string/memrchr.c: Likewise.
13453         * string/rawmemchr.c: Likewise.
13454         * sysdeps/posix/getcwd.c: Likewise.
13455         * time/strftime_l.c: Likewise.
13456
13457 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
13458
13459         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
13460         * config.make.in (config-cflags-sse2avx): Define.
13461         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
13462         Fix typo.
13463
13464 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
13465
13466         * scripts/config.guess: Update from upstream config git repository.
13467         * scripts/config.sub: Likewise.
13468
13469 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
13470
13471         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
13472         (EM_NUM): Update.
13473         (R_TILEPRO_*, R_TILEGX_*): New macros.
13474
13475         * scripts/firstversions.awk: Fix bug in version range handling.
13476
13477         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
13478
13479         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
13480
13481         * include/sys/epoll.h: New file.
13482         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
13483         libc_hidden_def.
13484
13485 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
13486
13487         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
13488         Avoid unnecessary __WORDSIZE == 64 test.
13489         (fmaxf): Use VEX format if possible.
13490         (fmax): Likewise.
13491         (fminf): Likewise.
13492         (fmin): Likewise.
13493
13494         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
13495         * math/math_private.h: Remove libc_fegetround* and
13496         libc_fesetround*.
13497         * sysdeps/i386/configure.in: Check for -msse2avx.
13498         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
13499         also if SSE2AVX is defined.
13500         Remove libc_fegetround* and libc_fesetround*.
13501         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
13502         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
13503         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
13504         of HAS_YMM_USABLE.
13505         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
13506         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
13507         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
13508         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
13509         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
13510
13511         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
13512
13513 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13514
13515         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
13516         size is not set.
13517         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
13518
13519 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
13520
13521         [BZ #13618]
13522         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
13523         relocation.
13524         * Makeconfig (libm): Define.
13525         * elf/Makefile: Add rules to build and run tst-relsort1.
13526         * elf/tst-relsort1.c: New file.
13527         * elf/tst-relsort1mod1.c: New file.
13528         * elf/tst-relsort1mod2.c: New file.
13529
13530 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
13531
13532         * math/s_ldexp.c: Remove __STDC__ conditionals.
13533         * math/s_ldexpf.c: Likewise.
13534         * math/s_ldexpl.c: Likewise.
13535         * math/s_nextafter.c: Likewise.
13536         * math/s_nexttowardf.c: Likewise.
13537         * math/s_significand.c: Likewise.
13538         * math/s_significandf.c: Likewise.
13539         * math/s_significandl.c: Likewise.
13540         * math/w_jnl.c: Likewise.
13541         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
13542         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
13543         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
13544         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
13545         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
13546         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
13547         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
13548         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
13549         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
13550         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
13551         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
13552         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
13553         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
13554         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
13555         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
13556         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
13557         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
13558         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
13559         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
13560         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
13561         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
13562         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
13563         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
13564         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
13565         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
13566         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
13567         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
13568         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
13569         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
13570         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
13571         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
13572         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
13573         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
13574         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
13575         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
13576         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
13577         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
13578         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
13579         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
13580         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
13581         * sysdeps/ieee754/k_standard.c: Likewise.
13582         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
13583         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
13584         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
13585         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
13586         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
13587         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
13588         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
13589         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
13590         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
13591         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
13592         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
13593         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
13594         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
13595         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
13596         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
13597         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
13598         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
13599         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
13600         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
13601         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
13602         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
13603         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
13604         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
13605         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
13606         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
13607         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
13608         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
13609         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
13610         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
13611         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
13612         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
13613         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
13614         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
13615         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
13616         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
13617         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
13618         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
13619         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
13620         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
13621         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
13622         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
13623         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
13624         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
13625         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
13626         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
13627         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
13628         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
13629         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
13630         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
13631         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
13632         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
13633         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
13634         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
13635         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
13636         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
13637         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
13638         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
13639         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
13640         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
13641         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
13642         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
13643         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
13644         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
13645         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
13646         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
13647         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
13648         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
13649         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
13650         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
13651         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
13652         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
13653         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
13654         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
13655         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
13656         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
13657         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
13658         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
13659         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
13660         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
13661         * sysdeps/ieee754/s_matherr.c: Likewise.
13662         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
13663         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
13664         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
13665         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
13666
13667 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
13668
13669         * crypt/md5.h: Remove __STDC__ conditionals.
13670         * libio/libioP.h: Likewise.
13671         * locale/programs/config.h: Likewise.
13672         * sysdeps/generic/sysdep.h: Likewise.
13673         * sysdeps/i386/asm-syntax.h: Likewise.
13674         * sysdeps/s390/asm-syntax.h: Likewise.
13675         * sysdeps/unix/sysdep.h: Likewise.
13676         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
13677         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
13678
13679 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
13680
13681         * libio/libio.h: Remove __STDC__ conditionals.
13682         * malloc/obstack.h: Likewise.
13683         * math/complex.h: Likewise.
13684         * math/math.h: Likewise.
13685         * sysdeps/generic/_G_config.h: Likewise.
13686         * sysdeps/gnu/_G_config.h: Likewise.
13687         * sysdeps/mach/hurd/_G_config.h: Likewise.
13688         * sysdeps/powerpc/bits/mathdef.h: Likewise.
13689         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
13690         * sysdeps/sparc/bits/mathdef.h: Likewise.
13691
13692 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
13693
13694         [BZ #13583]
13695         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
13696         Clean up HAS_* macros.
13697         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
13698         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
13699         possible.
13700         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
13701         HAS_AVX.
13702         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
13703         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
13704         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
13705         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
13706         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
13707
13708 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
13709
13710         * elf/tst-unique3.cc (gets): Remove declaration.
13711         * elf/tst-unique3lib.cc (gets): Likewise.
13712         * elf/tst-unique3lib2.cc (gets): Likewise.
13713         * elf/tst-unique4.cc (gets): Likewise.
13714
13715 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
13716
13717         * include/stdio.h: Add C++ protection.  Add gets declarations and
13718         definitions.
13719         * debug/tst-chk1.c: Don't declare gets here.
13720         * stdio-common/tst-gets.c: Likewise.
13721
13722 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
13723
13724         * posix/glob: Remove directory.
13725
13726 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
13727
13728         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
13729
13730 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
13731
13732         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
13733         of the non-standard EPFNOSUPPORT.
13734
13735 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13736
13737         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
13738         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
13739         ANYWHERE set to 1 only on KERN_NO_SPACE error.
13740
13741 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
13742
13743         * wcsmbs/uchar.h: Test __STDC_VERSION__.
13744
13745 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
13746
13747         * nscd/aicache.c (addhstaiX): Do not cache negative results of
13748         transient errors.
13749         * nscd/grpcache.c (cache_addgr): Likewise.
13750         * nscd/hstcache.c (cache_addhst): Likewise.
13751         * nscd/initgrcache.c (addinitgroupsX): Likewise.
13752         * nscd/pwdcache.c (cache_addpw): Likewise.
13753         * nscd/servicescache.c (cache_addserv): Likewise.
13754
13755 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
13756
13757         * malloc/malloc.c: Various cleanups.
13758         * malloc/hooks.c: Likewise.
13759
13760         * stdlib/Makefile (tests): Add bug-fmtmsg1.
13761         * stdlib/bug-fmtmsg1.c: New file.
13762
13763         * stdlib/fmtmsg.c (init): Add missing unlock.
13764         Patch by Peng Haitao <penght@cn.fujitsu.com>.
13765
13766 2012-01-12  Marek Polacek  <polacek@redhat.com>
13767
13768         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
13769         and _GNU_SOURCE.
13770
13771 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
13772
13773         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
13774         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
13775         macro to ensure uniqueness of label name.
13776         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
13777         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
13778
13779 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
13780
13781         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
13782
13783         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
13784         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
13785         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
13786         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
13787
13788 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
13789
13790         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
13791
13792         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
13793         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
13794         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
13795
13796         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
13797
13798         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
13799         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
13800         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
13801         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
13802
13803         * math/bits/math-finite.h: Add ldexp support.
13804
13805 2012-01-10  Marek Polacek  <polacek@redhat.com>
13806
13807         * locale/programs/localedef.h (show_archive_content): Add noreturn
13808         attribute.
13809
13810 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
13811
13812         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
13813
13814 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
13815
13816         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
13817
13818         * io/Makefile (headers): Add bits/poll2.h.
13819
13820 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
13821
13822         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
13823         typo #include statement.
13824
13825 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
13826
13827         * include/sys/cdefs.h: Define __attribute_alloc_size.
13828         * catgets/gencat.c: Add alloc_size attribute and apply consistently
13829         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
13830         * elf/pldd.c: Likewise.
13831         * iconv/iconv_charmap.c: Likewise.
13832         * iconv/iconvconfig.c: Likewise.
13833         * iconv/strtab.c: Likewise.
13834         * locale/programs/locale.c: Likewise.
13835         * locale/programs/localedef.h: Likewise.
13836         * locale/programs/simple-hash.c: Likewise.
13837         * nscd/nscd.h: Likewise.
13838         * nss/makedb.c: Likewise.
13839         * sysdeps/generic/ldconfig.h: Likewise.
13840         * locale/programs/localedef.c: Remove xmalloc prototype.
13841         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
13842
13843 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
13844
13845         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
13846         appropriate.
13847
13848 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
13849
13850         * math/Makefile (tests): Add tst-CMPLX.
13851         * math/tst-CMPLX.c: New file.
13852
13853         * math/complex.h (CMPLXL): Fix typo.
13854
13855         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
13856         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
13857         GLIBC_2.16.
13858         * debug/tst-chk1.c: Add poll and ppoll tests.
13859         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
13860         * include/sys/poll.h: Add hidden proto for ppoll.
13861         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
13862         * sysdeps/mach/hurd/ppoll.c: Likewise.
13863         * io/ppoll.c: Likewise.
13864         * debug/poll_chk.c: New file.
13865         * debug/ppoll_chk.c: New file.
13866         * include/bits/poll2.h: New file.
13867         * io/bits/poll2.h: New file.
13868
13869         [BZ #1350]
13870         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
13871
13872         * configure.in: static is always set to yes.  Remove.
13873         * config.make.in: Don't set build-static.
13874         * Makeconfig: Remove use of build-static.
13875         * dlfcn/Makefile: Likewise.
13876         * elf/Makefile: Likewise.
13877         * math/Makefile: Likewise.
13878         * misc/Makefile: Likewise.
13879         * nptl/Makefile: Likewise.
13880         * sysdeps/mach/hurd/Makefile: Likewise.
13881
13882         * configure.in: PWD_P is not used anymore.
13883         * config.make.in: Remove PWD_P entry.
13884
13885         * configure.in: Remove last remnants of RANLIB.
13886         No need to check for signed size_t anymore.
13887         Don't set libc_commonpagesize and libc_relro_required here for Alpha
13888         and IA-64.
13889         Remove __builtin_expect test because we require at least gcc 3.4.
13890         * aclocal.m4: Likewise.
13891
13892         * wcsmbs/mbrtoc16.c: Implement using towc function.
13893         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
13894         * wcsmbs/wcsmbsload.c: Likewise.
13895         * iconv/gconv_simple.c: Likewise.
13896         * iconv/gconv_int.h: Likewise.
13897         * iconv/gconv_builtin.h: Likewise.
13898         * iconv/iconv_prog.c: Remove CHAR16 handling.
13899
13900         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
13901
13902         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
13903
13904         * configure.in: Remove --with-elf and --enable-bounded options.
13905         Dont set base_machine for ia64.  More non-ELF conditions removed.
13906         Remove testing and setting of leading underscore information.
13907         * config.make.in (build-bounded): Set to no.
13908         * config.h.in: Remove NO_UNDERSCORES entry.
13909         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
13910         them.
13911         * csu/start.c: Remove !NO_UNDERSCORE code.
13912         * locale/localeinfo.h: Likewise.
13913         * sysdeps/generic/machine-gmon.h: Likewise.
13914         * sysdeps/generic/sysdep.h: Likewise.
13915         * sysdeps/i386/sysdep.h: Likewise.
13916         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
13917         * sysdeps/mach/sysdep.h: Likewise.
13918         * sysdeps/s390/s390-32/sysdep.h: Likewise.
13919         * sysdeps/s390/s390-64/sysdep.h: Likewise.
13920         * sysdeps/sh/sysdep.h: Likewise.
13921         * sysdeps/sparc/sparc32/alloca.S: Likewise.
13922         * sysdeps/unix/i386/sysdep.S: Likewise.
13923         * sysdeps/unix/sparc/start.c: Likewise.
13924         * sysdeps/unix/sparc/sysdep.S: Likewise.
13925         * sysdeps/unix/sparc/sysdep.h: Likewise.
13926         * sysdeps/unix/start.c: Likewise.
13927         * sysdeps/unix/x86_64/sysdep.S: Likewise.
13928         * sysdeps/x86_64/sysdep.h: Likewise.
13929
13930 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
13931
13932         [BZ #13553]
13933         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
13934         for non-gcc.
13935         * argp/argp-fmtstream.h: Use const instead __const.
13936         * argp/argp.h: Likewise.
13937         * assert/assert.h: Likewise.
13938         * bits/fenv.h: Likewise.
13939         * bits/sched.h: Likewise.
13940         * bits/sigset.h: Likewise.
13941         * bits/sigthread.h: Likewise.
13942         * catgets/nl_types.h: Likewise.
13943         * conform/data/pthread.h-data: Likewise.
13944         * crypt/crypt-private.h: Likewise.
13945         * crypt/crypt.h: Likewise.
13946         * crypt/crypt_util.c: Likewise.
13947         * ctype/ctype.h: Likewise.
13948         * debug/execinfo.h: Likewise.
13949         * debug/mbsnrtowcs_chk.c: Likewise.
13950         * debug/mbsrtowcs_chk.c: Likewise.
13951         * debug/wcsnrtombs_chk.c: Likewise.
13952         * debug/wcsrtombs_chk.c: Likewise.
13953         * debug/wcstombs_chk.c: Likewise.
13954         * dirent/dirent.h: Likewise.
13955         * dlfcn/dlfcn.h: Likewise.
13956         * elf/neededtest4.c: Likewise.
13957         * grp/grp.h: Likewise.
13958         * gshadow/gshadow.h: Likewise.
13959         * iconv/gconv.h: Likewise.
13960         * iconv/gconv_int.h: Likewise.
13961         * iconv/gconv_simple.c: Likewise.
13962         * iconv/iconv.h: Likewise.
13963         * iconv/loop.c: Likewise.
13964         * iconv/skeleton.c: Likewise.
13965         * include/aio.h: Likewise.
13966         * include/aliases.h: Likewise.
13967         * include/argz.h: Likewise.
13968         * include/arpa/inet.h: Likewise.
13969         * include/assert.h: Likewise.
13970         * include/dirent.h: Likewise.
13971         * include/dlfcn.h: Likewise.
13972         * include/execinfo.h: Likewise.
13973         * include/fcntl.h: Likewise.
13974         * include/fenv.h: Likewise.
13975         * include/glob.h: Likewise.
13976         * include/grp.h: Likewise.
13977         * include/libintl.h: Likewise.
13978         * include/mntent.h: Likewise.
13979         * include/netdb.h: Likewise.
13980         * include/pwd.h: Likewise.
13981         * include/rpc/netdb.h: Likewise.
13982         * include/sched.h: Likewise.
13983         * include/search.h: Likewise.
13984         * include/shadow.h: Likewise.
13985         * include/signal.h: Likewise.
13986         * include/stdio.h: Likewise.
13987         * include/stdlib.h: Likewise.
13988         * include/string.h: Likewise.
13989         * include/sys/socket.h: Likewise.
13990         * include/sys/stat.h: Likewise.
13991         * include/sys/statfs.h: Likewise.
13992         * include/sys/statvfs.h: Likewise.
13993         * include/sys/syslog.h: Likewise.
13994         * include/sys/time.h: Likewise.
13995         * include/sys/uio.h: Likewise.
13996         * include/time.h: Likewise.
13997         * include/unistd.h: Likewise.
13998         * include/utmp.h: Likewise.
13999         * include/wchar.h: Likewise.
14000         * include/wctype.h: Likewise.
14001         * inet/aliases.h: Likewise.
14002         * inet/arpa/inet.h: Likewise.
14003         * inet/netinet/ether.h: Likewise.
14004         * inet/netinet/in.h: Likewise.
14005         * intl/libintl.h: Likewise.
14006         * io/bits/fcntl2.h: Likewise.
14007         * io/fcntl.h: Likewise.
14008         * io/ftw.h: Likewise.
14009         * io/sys/poll.h: Likewise.
14010         * io/sys/stat.h: Likewise.
14011         * io/sys/statfs.h: Likewise.
14012         * io/sys/statvfs.h: Likewise.
14013         * io/utime.h: Likewise.
14014         * libio/bits/stdio.h: Likewise.
14015         * libio/bits/stdio2.h: Likewise.
14016         * libio/libio.h: Likewise.
14017         * libio/libioP.h: Likewise.
14018         * libio/stdio.h: Likewise.
14019         * locale/lc-ctype.c: Likewise.
14020         * locale/locale.h: Likewise.
14021         * login/utmp.h: Likewise.
14022         * malloc/arena.c: Likewise.
14023         * malloc/malloc.c: Likewise.
14024         * malloc/malloc.h: Likewise.
14025         * malloc/mcheck.c: Likewise.
14026         * malloc/mtrace.c: Likewise.
14027         * math/bits/mathcalls.h: Likewise.
14028         * math/fenv.h: Likewise.
14029         * math/math_private.h: Likewise.
14030         * misc/bits/error.h: Likewise.
14031         * misc/bits/syslog.h: Likewise.
14032         * misc/err.h: Likewise.
14033         * misc/error.h: Likewise.
14034         * misc/fstab.h: Likewise.
14035         * misc/mntent.h: Likewise.
14036         * misc/regexp.h: Likewise.
14037         * misc/search.h: Likewise.
14038         * misc/sgtty.h: Likewise.
14039         * misc/sys/mman.h: Likewise.
14040         * misc/sys/syslog.h: Likewise.
14041         * misc/sys/uio.h: Likewise.
14042         * misc/sys/xattr.h: Likewise.
14043         * misc/ttyent.h: Likewise.
14044         * nis/rpcsvc/ypclnt.h: Likewise.
14045         * nss/nss.h: Likewise.
14046         * posix/bits/unistd.h: Likewise.
14047         * posix/fnmatch.h: Likewise.
14048         * posix/glob.h: Likewise.
14049         * posix/sched.h: Likewise.
14050         * posix/spawn.h: Likewise.
14051         * posix/sys/wait.h: Likewise.
14052         * posix/unistd.h: Likewise.
14053         * posix/wordexp.h: Likewise.
14054         * pwd/pwd.h: Likewise.
14055         * resolv/netdb.h: Likewise.
14056         * resource/sys/resource.h: Likewise.
14057         * rt/aio.h: Likewise.
14058         * rt/bits/mqueue2.h: Likewise.
14059         * rt/mqueue.h: Likewise.
14060         * shadow/shadow.h: Likewise.
14061         * signal/signal.h: Likewise.
14062         * socket/send.c: Likewise.
14063         * socket/sendto.c: Likewise.
14064         * socket/sys/socket.h: Likewise.
14065         * stdio-common/printf.h: Likewise.
14066         * stdlib/bits/stdlib.h: Likewise.
14067         * stdlib/fmtmsg.h: Likewise.
14068         * stdlib/monetary.h: Likewise.
14069         * stdlib/stdlib.h: Likewise.
14070         * stdlib/ucontext.h: Likewise.
14071         * streams/stropts.h: Likewise.
14072         * string/argz.h: Likewise.
14073         * string/bits/string2.h: Likewise.
14074         * string/string.h: Likewise.
14075         * string/strings.h: Likewise.
14076         * sunrpc/rpc/auth.h: Likewise.
14077         * sunrpc/rpc/auth_des.h: Likewise.
14078         * sunrpc/rpc/clnt.h: Likewise.
14079         * sunrpc/rpc/netdb.h: Likewise.
14080         * sunrpc/rpc/pmap_clnt.h: Likewise.
14081         * sunrpc/rpc/xdr.h: Likewise.
14082         * sysdeps/generic/inttypes.h: Likewise.
14083         * sysdeps/generic/net/if.h: Likewise.
14084         * sysdeps/generic/sys/swap.h: Likewise.
14085         * sysdeps/gnu/net/if.h: Likewise.
14086         * sysdeps/gnu/utmpx.h: Likewise.
14087         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
14088         * sysdeps/i386/i486/bits/string.h: Likewise.
14089         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
14090         * sysdeps/s390/bits/string.h: Likewise.
14091         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
14092         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
14093         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
14094         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
14095         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
14096         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
14097         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
14098         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
14099         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
14100         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
14101         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
14102         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
14103         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
14104         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
14105         * sysdeps/unix/sysv/linux/readv.c: Likewise.
14106         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
14107         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
14108         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
14109         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
14110         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
14111         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
14112         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
14113         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
14114         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
14115         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
14116         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
14117         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
14118         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
14119         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
14120         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
14121         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
14122         * sysvipc/sys/ipc.h: Likewise.
14123         * sysvipc/sys/msg.h: Likewise.
14124         * sysvipc/sys/sem.h: Likewise.
14125         * sysvipc/sys/shm.h: Likewise.
14126         * termios/termios.h: Likewise.
14127         * time/sys/time.h: Likewise.
14128         * time/time.h: Likewise.
14129         * wcsmbs/bits/wchar2.h: Likewise.
14130         * wcsmbs/uchar.h: Likewise.
14131         * wcsmbs/wchar.h: Likewise.
14132         * wctype/wctype.h: Likewise.
14133
14134         [BZ #13551]
14135         * Makeconfig: Remove all but ELF support including AIX support.
14136         * Makerules: Likewise.
14137         * config.h.in: Likewise.
14138         * config.make.in: Likewise.
14139         * configure: Likewise.
14140         * configure.in: Likewise.
14141         * csu/Makefile: Likewise.
14142         * csu/version.c: Likewise.
14143         * debug/Makefile: Likewise.
14144         * dlfcn/Makefile: Likewise.
14145         * elf/Makefile: Likewise.
14146         * extra-lib.mk: Likewise.
14147         * iconv/Makefile: Likewise.
14148         * include/libc-symbols.h: Likewise.
14149         * include/shlib-compat.h: Likewise.
14150         * resolv/Makefile: Likewise.
14151         * resolv/res_libc.c: Likewise.
14152         * rt/Makefile: Likewise.
14153         * sysdeps/i386/asm-syntax.h: Likewise.
14154         * sysdeps/i386/sysdep.h: Likewise.
14155         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
14156         * sysdeps/mach/sysdep.h: Likewise.
14157         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
14158         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
14159         * sysdeps/s390/asm-syntax.h: Likewise.
14160         * sysdeps/s390/s390-32/sysdep.h: Likewise.
14161         * sysdeps/s390/s390-64/sysdep.h: Likewise.
14162         * sysdeps/sh/sysdep.h: Likewise.
14163         * sysdeps/unix/sparc/sysdep.h: Likewise.
14164         * sysdeps/wordsize-32/divdi3.c: Likewise.
14165         * sysdeps/x86_64/sysdep.h: Likewise.
14166
14167         * argp/Versions: Remove _argp_unlock_xxx.
14168
14169         [BZ #13559]
14170         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
14171         * abilist/libBrokenLocale.abilist: Likewise.
14172         * abilist/libanl.abilist: Likewise.
14173         * abilist/libc.abilist: Likewise.
14174         * abilist/libcrypt.abilist: Likewise.
14175         * abilist/libdl.abilist: Likewise.
14176         * abilist/libm.abilist: Likewise.
14177         * abilist/libnsl.abilist: Likewise.
14178         * abilist/libpthread.abilist: Likewise.
14179         * abilist/libresolv.abilist: Likewise.
14180         * abilist/librt.abilist: Likewise.
14181         * abilist/libthread_db.abilist: Likewise.
14182         * abilist/libutil.abilist: Likewise.
14183         * abilist/libnss_db.abilist: New file.
14184
14185         * scripts/abilist.awk: Add support for indirect functions.
14186
14187         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
14188
14189         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
14190
14191         * shlib-versions: Remove entries for ports architectures.
14192
14193         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
14194         files in ports.
14195         * elf/stackguard-macros.h: Remove support for IA-64.
14196         * elf/tst-auditmod1.c: Likewise.
14197         * sysdeps/generic/ldsodefs.h: Likewise.
14198
14199         * sysdeps/unix/sysv/linux/configure.in: Ports should define
14200         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
14201         configure files.
14202
14203         [BZ #13552]
14204         * configure.in: Remove --enable-omitfp support.
14205         * FAQ.in: Adjust.
14206         * config.make.in: Likewise.
14207         * Makeconfig: Likewise.
14208         * manual/install.texi: Likewise.
14209
14210         In case anyone cares, the IA-64 architecture could move to ports.
14211         * sysdeps/ia64/*: Removed.
14212         * sysdeps/unix/sysv/linux/ia64/*: Removed.
14213         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
14214
14215         [BZ #13555]
14216         * configure.in: Remove entries for unsupported architectures.
14217
14218         [BZ #13533]
14219         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
14220         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
14221         routines.
14222         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
14223         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
14224         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
14225         fall back to using wcrtomb.
14226         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
14227         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
14228         renaming.
14229         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
14230         * wcsmbs/tst-c16c32-1.c: New file.
14231
14232         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
14233         local variable.
14234
14235         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
14236
14237         * elf/tst-unique3.cc: Add explicit declaration of gets.
14238         * elf/tst-unique3lib.cc: Likewise.
14239         * elf/tst-unique3lib2.cc: Likewise.
14240         * elf/tst-unique4.cc: Likewise.
14241
14242         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
14243
14244 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
14245
14246         [BZ #13566]
14247         * assert/assert.h (static_assert): Don't define for C++.
14248         * libio/stdio.h (gets): Do declare for C++ <= C++11.
14249         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
14250
14251 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
14252
14253         * iconv/loop.c (single loop): Fix assertion in storing of
14254         remaining bytes.
14255
14256         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
14257
14258 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
14259
14260         * posix/getconf.c: Update copyright year.
14261         * nss/getent.c: Likewise.
14262         * nss/makedb.c: Likewise.
14263         * iconv/iconvconfig.c: Likewise.
14264         * iconv/iconv_prog.c: Likewise.
14265         * elf/ldconfig.c: Likewise.
14266         * elf/pldd.c: Likewise.
14267         * elf/sotruss.ksh: Likewise.
14268         * catgets/gencat.c: Likewise.
14269         * csu/version.c: Likewise.
14270         * elf/ldd.bash.in: Likewise.
14271         * elf/sprof.c (print_version): Likewise.
14272         * locale/programs/locale.c: Likewise.
14273         * locale/programs/localedef.c: Likewise.
14274         * login/programs/pt_chown.c: Likewise.
14275         * nscd/nscd.c (print_version): Likewise.
14276         * debug/xtrace.sh: Likewise.
14277         * malloc/memusage.sh: Likewise.
14278         * malloc/mtrace.pl: Likewise.
14279         * debug/catchsegv.sh: Likewise.
14280
14281 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
14282
14283         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
14284         pure attribute.
14285
14286 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
14287
14288         [BZ #13533]
14289         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
14290         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
14291         transformations.
14292         * iconv/gconv_int.h: Likewise.
14293         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
14294         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
14295         from libc for GLIBC_2.16.
14296         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
14297         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
14298         * wcsmbs/uchar.h: Really define mbstate_t.
14299         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
14300         * wcsmbs/c16rtomb.c: New file.
14301         * wcsmbs/mbrtoc16.c: New file.
14302         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
14303         for C/POSIX locale.
14304         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
14305         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
14306
14307         * wcsmbs/wchar.h: Add missing __restrict.
14308
14309 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
14310
14311         [BZ #13532]
14312         * time/Makefile (routines): Add timespec_get.
14313         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
14314         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
14315         timespec for ISO C11.
14316         * time/timespec_get.c: New file.
14317         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
14318         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
14319
14320         [BZ #13531]
14321         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
14322         * stdlib/stdlib.h: Declare aligned_alloc.
14323         * Versions.def: Add GLIBC_2.16 for libc.
14324         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
14325
14326         [BZ 13527]
14327         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
14328         ISO C11.
14329
14330         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
14331         code.
14332
14333         [BZ #13528]
14334         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
14335
14336         [BZ #13529]
14337         * assert/assert.h (static_assert): Define.
14338
14339         * version.h: Update for 2.16 development version.
14340
14341         [BZ #13526]
14342         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
14343         _ISOC11_SOURCE.
14344
14345         * version.h (RELEASE): Bump for 2.15 release.
14346         * include/features.h (__GLIBC_MINOR__): Bump to 15.
14347
14348         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
14349         Patch by Marek Polacek <mpolacek@redhat.com>.
14350
14351         * bits/byteswap.h: Protect long long constants with __extension__.
14352         * sysdeps/i386/bits/byteswap.h: Likewise.
14353         * sysdeps/ia64/bits/byteswap.h: Likewise.
14354         * sysdeps/s390/bits/byteswap.h: Likewise.
14355         * sysdeps/x86_64/bits/byteswap.h: Likewise.
14356
14357 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14358
14359         [BZ #13540]
14360         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
14361         destination buffer.
14362         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
14363
14364 2011-12-23  Marek Polacek  <polacek@redhat.com>
14365
14366         * elf/dl-addr.c (determine_info): Add inline keyword.
14367         * elf/tst-auditmod4b.c (check_avx): Likewise.
14368         * elf/tst-auditmod6b.c (check_avx): Likewise.
14369         * elf/tst-auditmod6c.c (check_avx): Likewise.
14370         * elf/tst-auditmod7b.c (check_avx): Likewise.
14371
14372 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
14373
14374         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
14375         !__SSE_MATH__.
14376
14377 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14378
14379         [BZ #13540]
14380         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
14381         processing for last bytes.
14382
14383 2011-08-06  Bruno Haible  <bruno@clisp.org>
14384
14385         [BZ #13061]
14386         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
14387         U+0385, not to U+1FEE.
14388
14389         [BZ #13062]
14390         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
14391         entry for U+00A5 U+0301.
14392
14393 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
14394
14395         [BZ #13166]
14396         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
14397         buffer for the output is too small.
14398
14399         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
14400         optimization.
14401
14402         [BZ #13185]
14403         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
14404         SSE flags if possible.
14405
14406 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14407
14408         [BZ #13540]
14409         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
14410         processing for last bytes.
14411
14412 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
14413
14414         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
14415         (syscall-list-default-options, syscall-list-default-condition)
14416         (syscall-list-includes): Define.
14417         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
14418         list of ABIs and options and #if conditions for each ABI.  Do not
14419         handle common syscalls between ABIs specially.
14420         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
14421         Remove.
14422         (syscall-list-variants, syscall-list-32bit-options)
14423         (syscall-list-32bit-condition, syscall-list-64bit-options)
14424         (syscall-list-64bit-condition): Define.
14425         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
14426         (syscall-list-variants, syscall-list-32bit-options)
14427         (syscall-list-32bit-condition, syscall-list-64bit-options)
14428         (syscall-list-64bit-condition): Define.
14429         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
14430         Remove.
14431         (syscall-list-variants, syscall-list-32bit-options)
14432         (syscall-list-32bit-condition, syscall-list-64bit-options)
14433         (syscall-list-64bit-condition): Define.
14434         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
14435         Remove.
14436         (syscall-list-variants, syscall-list-32bit-options)
14437         (syscall-list-32bit-condition, syscall-list-64bit-options)
14438         (syscall-list-64bit-condition): Define.
14439
14440 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
14441
14442         * locale/iso-639.def: Add brx entry.
14443
14444         [BZ #13328]
14445         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
14446         Proposed by Mariusz_Cukr <marcukr@op.pl>.
14447
14448         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
14449         __feraiseexcept_renamed.
14450
14451 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
14452
14453         [BZ #13538]
14454         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
14455         EPOLLET with unsigned values.
14456         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
14457         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
14458
14459         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
14460         to large cancellation.
14461         * math/s_cacoshf.c: Likewise.
14462         * math/s_cacoshl.c: Likewise.
14463
14464 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
14465
14466         [BZ #13305]
14467         [BZ #12786]
14468         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
14469         * math/s_cacoshf.c: Likewise.
14470         * math/s_cacoshl.c: Likewise.
14471
14472 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
14473
14474         [BZ #13439]
14475         * iconv/gconv.h: Define __GCONV_SWAP.
14476         * iconvdata/unicode.c: The swap bit must be stored in __flags.
14477         * iconvdata/utf-16.c: Likewise.
14478         * iconvdata/utf-32.c: Likewise.
14479
14480 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
14481
14482         [BZ #13524]
14483         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
14484         numerator after shifting it by one limb.
14485
14486 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
14487
14488         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
14489         under [__USE_EXTERN_INLINES].
14490
14491 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
14492
14493         [BZ #13446]
14494         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
14495
14496 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14497
14498         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
14499         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
14500         optimized code.
14501         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
14502         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
14503         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
14504         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
14505         for strncasecmp/strncasecmp_l compilation.
14506         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
14507         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
14508
14509 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
14510
14511         [BZ #13484]
14512         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
14513         of __asm__.
14514
14515 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
14516
14517         [BZ #13506]
14518         * time/tzfile.c (__tzfile_read): Check values from file header.
14519
14520 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
14521
14522         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
14523         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
14524         * powerpc/powerpc32/dl-start.S: Likewise.
14525         * powerpc/powerpc32/elf/start.S: Likewise.
14526         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
14527         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
14528         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
14529         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
14530         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
14531         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
14532         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
14533         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
14534         * powerpc/powerpc32/fpu/s_round.S: Likewise.
14535         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
14536         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
14537         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
14538         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
14539         * powerpc/powerpc32/memset.S: Likewise.
14540         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
14541         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
14542         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
14543         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
14544         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
14545         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
14546         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
14547         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
14548         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
14549         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
14550         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
14551         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
14552         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
14553
14554 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14555
14556         * math/libm-test.inc: Added more nearbyint tests.
14557         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
14558         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
14559         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
14560         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
14561
14562 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
14563
14564         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
14565         FD_CLOEXEC.
14566
14567 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14568
14569         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
14570         Add wcscpy-ssse3 wcscpy-c.
14571         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
14572         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
14573         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
14574         * sysdeps/x86_64/wcschr.S: New file.
14575         * sysdeps/x86_64/wcsrchr.S: New file.
14576         * string/test-strcmp.c: Remove checking of wcscmp function for
14577         wrong alignments.
14578         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
14579         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
14580         wcsrchr-sse2 wcsrchr-c.
14581         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
14582         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
14583         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
14584         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
14585         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
14586         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
14587         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
14588         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
14589         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
14590         * wcsmbc/wcschr.c (WCSCHR): New macro.
14591
14592 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14593
14594         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
14595         * wcsmbs/test-wcsrchr.c: New file.
14596         * string/test-strrchr.c: Add wcsrchr support.
14597         (WIDE): New macro.
14598         * wcsmbs/test-wcscpy.c: New file.
14599         * string/test-strcpy.c: Add wcscpy support.
14600         (WIDE): New macro.
14601
14602 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
14603
14604         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
14605         the inner loop.
14606
14607 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
14608
14609         [BZ #13472]
14610         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
14611
14612 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
14613
14614         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
14615         Minor optimizations.
14616
14617         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
14618         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
14619         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
14620
14621 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
14622
14623         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
14624         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
14625         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
14626         for gcc to avoid warnings.
14627         * inet/Makefile (tests): Add tst-checks.
14628         * inet/tst-checks.c: New file.
14629
14630         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
14631         warning.
14632
14633         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
14634         __wmemcmp_sse2.
14635
14636         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
14637         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
14638
14639         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
14640
14641 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
14642
14643         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
14644         problem.
14645
14646         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
14647
14648 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
14649
14650         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
14651         conditional on GCC version.
14652         (__arch_compare_and_exchange_val_8_acq)
14653         (__arch_compare_and_exchange_val_16_acq)
14654         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
14655         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
14656         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
14657
14658 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
14659
14660         * sysdeps/sh/backtrace.c: New file.
14661
14662 2011-12-02  Andreas Schwab  <schwab@redhat.com>
14663
14664         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
14665         parenthesis.
14666
14667 2011-12-01  Andreas Schwab  <schwab@redhat.com>
14668
14669         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
14670         falling back to utime.
14671
14672 2011-11-30  Andreas Schwab  <schwab@redhat.com>
14673
14674         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
14675         expectations for float.
14676
14677 2011-11-29  Andreas Schwab  <schwab@redhat.com>
14678
14679         * locale/weight.h (findidx): Add parameter len.
14680         * locale/weightwc.h (findidx): Likewise.
14681         * posix/fnmatch_loop.c (FCT): Adjust caller.
14682         * posix/regcomp.c (build_equiv_class): Likewise.
14683         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
14684         * posix/regexec.c (check_node_accept_bytes): Likewise.
14685         * string/strcoll_l.c (STRCOLL): Likewise.
14686         * string/strxfrm_l.c (STRXFRM): Likewise.
14687
14688 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
14689
14690         * Makefile.in: Remove CVSOPT handling.
14691         * configure.in: Remove use of AC_REVISION.
14692         * iconvdata/Makefile (distribute): No need to filter out CVS.
14693         * scripts/list-sources.sh: Remove CVS, subversion and monotone
14694         handling.
14695
14696 2011-11-16  Andreas Schwab  <schwab@redhat.com>
14697
14698         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
14699         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
14700         [USE_AS_STRNCASECMP_L]: Likewise.
14701         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
14702         NO_TLS_DIRECT_SEG_REFS.
14703         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
14704         Fix argument offsets for non-PIC.
14705         [USE_AS_STRNCASECMP_L]: Likewise.
14706         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
14707         NO_TLS_DIRECT_SEG_REFS.
14708
14709 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
14710
14711         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
14712         O_CLOEXEC.
14713         * locale/loadlocale.c (_nl_load_locale): Likewise.
14714
14715 2011-11-15  Andreas Schwab  <schwab@redhat.com>
14716
14717         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
14718         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
14719         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
14720         (SYSCALL_GETTIME): Set errno on error.
14721
14722         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
14723         count references to noai6ai_cached.
14724
14725 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
14726
14727         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
14728
14729         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
14730         FD_CLOEXEC for /proc/self/maps.
14731
14732         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
14733         FD_CLOEXEC for /proc/meminfo.
14734
14735         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
14736         gai.conf.
14737
14738         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
14739         FD_CLOEXEC for given file.
14740
14741         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
14742
14743         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
14744         FD_CLOEXEC for /etc/hosts.
14745         (_gethtent): Likewise.
14746
14747         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
14748
14749         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
14750         cancellation and set FD_CLOEXEC for /etc/netgroup.
14751
14752         * nss/nss_files/files-key.c (search): Don't allow cancellation when
14753         reading /etc/publickey.
14754
14755         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
14756         allow cancellation when reading /etc/group.
14757
14758         * nss/nss_files/files-alias.c (internal_setent): Don't allow
14759         cancellation.
14760         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
14761
14762         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
14763         when using data file.
14764
14765         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
14766
14767         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
14768         (write_nis_obj): Use "c" and "e" in fopen.
14769
14770         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
14771
14772         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
14773
14774         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
14775
14776         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
14777
14778         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
14779         locale.alias.
14780
14781         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
14782
14783         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
14784
14785         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
14786
14787         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
14788         file parsing and set FD_CLOEXEC.
14789
14790 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
14791
14792         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
14793
14794 2011-11-14  Andreas Schwab  <schwab@redhat.com>
14795
14796         * malloc/arena.c (arena_get2): Don't call reused_arena when
14797         _int_new_arena failed.
14798
14799 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
14800
14801         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
14802         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
14803         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
14804         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
14805         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
14806         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
14807         to compile strcasecmp and strncasecmp.
14808         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
14809         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
14810
14811         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
14812
14813 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
14814
14815         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
14816         locale-defines.sym to gen-as-const-headers.
14817         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
14818         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
14819         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
14820         to compile strcasecmp and strncasecmp.
14821         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
14822         strcasecmp_l and strncasecmp_l.
14823         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
14824         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
14825         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
14826         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
14827         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
14828         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
14829         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
14830         * sysdeps/i386/i686/multiarch/strncase.S: New file.
14831         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
14832         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
14833         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
14834
14835 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
14836
14837         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
14838         result of SYSDEP_GETTIME_CPU to retval.
14839         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
14840         parameter list to macro.  Remove trailing semicolon.  Adjust users.
14841
14842         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
14843         variable.
14844
14845         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
14846         mantissa words.
14847         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
14848
14849         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
14850         from unused variable.
14851
14852         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
14853         DWARF definitions.
14854         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
14855         for assembling.
14856
14857         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
14858         over namespaces.
14859
14860         * sunrpc/rpc_prot.c (rejected): Fix case value.
14861
14862         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
14863         unsigned long long int to avoid warnings in shift.
14864
14865         * posix/regex_internal.c (re_string_reconstruct): Actually use result
14866         of use of trans.
14867         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
14868         variable tmp.
14869
14870         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
14871         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
14872         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
14873
14874         * nis/nis_table.c (nis_list): Use variable of correct type for
14875         result of __follow_path call.
14876
14877 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14878
14879         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
14880         of math functions ceil, trunc, floor, round, and sqrt, when
14881         avaliable on the platform.
14882         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
14883         name clash.
14884         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
14885         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
14886         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
14887
14888 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
14889
14890         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
14891         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
14892
14893 2011-11-11  Roland McGrath  <roland@hack.frob.com>
14894
14895         * include/unistd.h: Fix __readlink return type.
14896         Reported by Chris Metcalf <cmetcalf@tilera.com>.
14897
14898 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
14899
14900         * stdlib/ucontext.h: Undo last change for makecontext.
14901
14902 2011-11-11  Andreas Schwab  <schwab@redhat.com>
14903
14904         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
14905
14906         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
14907         * setjmp/setjmp.h: Mark functions as non-leaf.
14908         * setjmp/bits/setjmp2.h: Likewise.
14909         * stdlib/ucontext.h: Likewise.
14910
14911 2011-11-10  Andreas Schwab  <schwab@redhat.com>
14912
14913         * malloc/arena.c (_int_new_arena): Don't increment narenas.
14914         (reused_arena): Don't check arena limit.
14915         (arena_get2): Atomically check arena limit.
14916
14917 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
14918
14919         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
14920         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
14921
14922         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
14923         instructions.
14924
14925 2011-11-07  Andreas Schwab  <schwab@redhat.com>
14926
14927         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
14928         handler when locking.
14929
14930         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
14931         Fix size of allocated buffer.
14932
14933 2011-11-04  Andreas Schwab  <schwab@redhat.com>
14934
14935         [BZ #10103]
14936         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
14937         declarations for long double functions.
14938         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
14939
14940         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
14941
14942 2011-11-03  Andreas Schwab  <schwab@redhat.com>
14943
14944         * nscd/nscd.c (main): Don't start AVC thread until credentials are
14945         installed.
14946
14947         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
14948         is disabled.
14949
14950 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14951
14952         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
14953
14954 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
14955
14956         * include/alloca.h (stackinfo_alloca_round): Define.
14957         (extend_alloca): Use it.
14958         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
14959         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
14960         here.
14961
14962         * scripts/check-local-headers.sh: Ignore libaudit.h.
14963
14964         * nscd/Makefile (extra-objs): Make recursively expanded.
14965
14966 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
14967
14968         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
14969         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
14970
14971         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
14972         * posix/tst-rfc3484-2.c: Likewise.
14973         * posix/tst-rfc3484-3.c: Likewise.
14974
14975         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
14976         process_vm_writev.
14977         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
14978         process_vm_writev.
14979         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
14980         process_vm_writev from libc using GLIBC_2.15 version.
14981
14982         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
14983
14984 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
14985
14986         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
14987         stack usage.
14988
14989 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
14990
14991         [BZ #13367]
14992         * nss/getent.c (initgroups_keys): Show error message in case no group
14993         names are given.
14994
14995         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
14996         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
14997         __bump_nl_timestamp.
14998         * nscd/connections (nscd_init): When host database is served open
14999         netlink socket and request notification about configuration changes.
15000         (main_loop_poll): Track netlink file descriptor and bump timestamp
15001         in case data becomes available.
15002         (main_loop_epoll): Likewise.
15003         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
15004         (database_pers_head): Add extra_data fileds.
15005         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
15006         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
15007         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
15008         Adjust caller.
15009         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
15010         in6ai data, call __free_in6ai.
15011         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
15012         Add -DHAVE_NETLINK.
15013         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
15014         interface information.  Reuse previous data if netlink timestamp
15015         is not changed.
15016         (__bump_nl_timestamp): New function.
15017         (__free_in6ai): New function.
15018
15019 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
15020
15021         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
15022         close_not_cancel_no_status here.
15023         (__check_pf): Reorganize code a bit to not call close twice if OOM.
15024
15025 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
15026
15027         [BZ #13276]
15028         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
15029         return value.
15030
15031         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
15032         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
15033         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
15034
15035 2011-07-03  Andreas Jaeger  <aj@suse.de>
15036
15037         [BZ #10709]
15038         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
15039         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
15040         * math/libm-test.inc (sin_test): Add test case.
15041
15042 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
15043
15044         [BZ #13337]
15045         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
15046         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
15047
15048         * elf/chroot_canon.c (chroot_canon): Cleanups.
15049
15050         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
15051
15052         [BZ #13335]
15053         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
15054         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
15055
15056         * string/test-strchr.c: Make usable for strchrnul testing.
15057         * string/test-strchrnul.c: New file.
15058         * string/Makefile (strop-tests): Add strchrnul.
15059
15060         * po/it.po: Update from translation team.
15061         * po/es.po: Likewise.
15062
15063 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
15064
15065         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
15066         the three constants needed as parameters.  Drop the others.
15067         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
15068         __m128i_strloadu_tolower.
15069         Create and initialize variable zero and use it in all the places
15070         where _mm_setzero_si128 was used.
15071
15072         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
15073         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
15074         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
15075         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
15076         anymore.
15077         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
15078         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
15079         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
15080         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
15081         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
15082         __mpranred, __mptan.
15083         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
15084         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
15085         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
15086         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
15087         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
15088         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
15089         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
15090         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
15091         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
15092
15093 2011-10-28  Andreas Schwab  <schwab@redhat.com>
15094
15095         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
15096         redefine if SHARED.
15097         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
15098
15099         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
15100         wide char related routines to wcsmbs subdir.
15101
15102 2011-10-27  Andreas Schwab  <schwab@redhat.com>
15103
15104         [BZ #13344]
15105         * misc/sys/cdefs.h (__THROWNL): Define.
15106         * posix/unistd.h: Use __THREADNL instead of __THREAD
15107         for memory synchronization functions.
15108
15109 2011-10-26  Roland McGrath  <roland@hack.frob.com>
15110
15111         [BZ #13349]
15112         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
15113         doesn't exist.
15114         * manual/stdio.texi (Obstack Streams): Node removed.
15115
15116 2011-10-26  Andreas Schwab  <schwab@redhat.com>
15117
15118         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
15119         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
15120         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
15121
15122         * math/math_private.h (math_force_eval): Allow non-addressable
15123         arguments.
15124         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
15125
15126 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
15127
15128         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
15129         file is not needed.
15130
15131         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
15132         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
15133         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
15134         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
15135         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
15136         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
15137         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
15138         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
15139         Add AVX variants.
15140         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
15141         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
15142         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
15143         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
15144         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
15145         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
15146         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
15147         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
15148         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
15149         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
15150         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
15151         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
15152         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
15153         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
15154         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
15155         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
15156         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
15157         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
15158         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
15159
15160         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
15161         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
15162
15163         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
15164         place.  Use VEX encoding when compiling for AVX.
15165
15166 2011-10-25  Andreas Schwab  <schwab@redhat.com>
15167
15168         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
15169         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
15170
15171         * string/test-strchr.c (do_test): Don't generate NUL bytes.
15172
15173 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
15174
15175         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
15176         useless if() expression.
15177         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
15178         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
15179         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
15180         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
15181         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
15182         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
15183         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
15184         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
15185         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
15186         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
15187         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
15188         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
15189         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
15190         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
15191         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
15192         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
15193         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
15194         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
15195         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
15196
15197         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
15198
15199 2011-10-25  Andreas Schwab  <schwab@redhat.com>
15200
15201         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
15202         condition.
15203         * elf/dl-fini.c (_dl_sort_fini): Likewise.
15204
15205 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
15206
15207         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
15208         .text section.  Avoid duplicate constants.
15209         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
15210         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15211         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
15212         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15213         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
15214         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15215         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15216         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15217         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
15218         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
15219         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
15220         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
15221         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
15222         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
15223         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
15224         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
15225         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
15226         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
15227         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
15228         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
15229         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
15230         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
15231         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
15232         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
15233         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
15234         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
15235         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
15236         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
15237         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
15238         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
15239         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
15240         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
15241         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
15242         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
15243         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
15244         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
15245         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
15246         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
15247         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
15248         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
15249         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
15250         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
15251         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
15252         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
15253         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
15254
15255 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
15256
15257         * sysdeps/x86_64/dla.h: Move to ...
15258         * sysdeps/x86_64/fpu/dla.h: ...here.
15259         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
15260         situations.  Use __builtin_fma only for gcc 4.6 and up.
15261
15262         * config.make.in: Add have-mfma4 entry.
15263         * configure.in: Substitute libc_cv_cc_fma4.
15264         * math/Makefile (dbl-only-routines): Add sincostab.
15265         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
15266         Use __sincostab not sincos.
15267         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
15268         name is a macro.
15269         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
15270         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15271         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15272         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
15273         using __copysign.
15274         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
15275         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
15276         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
15277         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
15278         and __inv.
15279         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
15280         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
15281         __copysign.
15282         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
15283         define aliases when function name is a macro.
15284         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
15285         sysdeps/ieee754/dbl-64/sincos.tbl.
15286         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
15287         fma4-enabled routines.
15288         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
15289         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
15290         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
15291         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
15292         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
15293         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
15294         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
15295         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
15296         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
15297         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
15298         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
15299         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
15300         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
15301         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
15302         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
15303         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
15304         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
15305         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
15306         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
15307         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
15308         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
15309         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
15310         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
15311         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
15312         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
15313         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
15314         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
15315         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
15316         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
15317         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
15318
15319         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
15320         rename.
15321         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15322         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15323         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15324         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15325         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15326         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15327         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
15328         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
15329
15330 2011-10-24  Andreas Schwab  <schwab@redhat.com>
15331
15332         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
15333
15334 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
15335
15336         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
15337
15338         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
15339         prediction.
15340         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
15341
15342         * string/strnlen.c: Don't define STRNLEN, reverse logic.
15343         Remove unused variable magic_bits.
15344         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
15345
15346         * string/strnlen.c: Define and use STRNLEN macro.
15347         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
15348         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
15349         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
15350         * wcsmbs/wcslen.c: Define and use WCSLEN.
15351         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
15352         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
15353         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
15354         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
15355         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
15356         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
15357         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
15358
15359 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15360
15361         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
15362         strnlen-sse2-no-bsf.
15363         Rename strlen-no-bsf to strlen-sse2-no-bsf.
15364         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
15365         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
15366         Add strnlen support.
15367         (USE_AS_STRNLEN): New macro.
15368         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
15369         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
15370         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
15371         * sysdeps/x86_64/wcslen.S: New file.
15372
15373 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
15374
15375         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
15376         XMM-moves are used for copying on small sizes.
15377
15378 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15379
15380         * wcsmbs/Makefile (strop-tests): Add wcschr.
15381         * wcsmbs/test-wcschr.c: New file.
15382         * string/test-strchr.c: Update.
15383         Add wcschr support.
15384         (WIDE): New macro.
15385
15386 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15387
15388         * wcsmbs/Makefile (strop-tests): Add wcslen.
15389         * wcsmbs/test-wcslen.c: New file.
15390         * string/test-strlen.c: Update.
15391         Add wcslen support.
15392         (WIDE): New macro.
15393
15394 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
15395
15396         * po/it.po: Update from translation team.
15397
15398 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15399
15400         * sysdeps/x86_64/wcscmp.S: Update.
15401         Fix wrong comparison semantics.
15402         wcscmp shall use signed comparison not unsigned.
15403         Don't use substraction to avoid overflow bug.
15404         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
15405         * wcsmbc/wcscmp.c: Likewise.
15406         * string/test-strcmp.c: Likewise.
15407         Add new tests to check cases with negative values.
15408
15409 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
15410
15411         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
15412         * sysdeps/x86_64/dla.h: ...here.  New file.
15413         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
15414         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15415         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15416         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15417         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15418         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
15419         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15420         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
15421         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
15422
15423 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
15424
15425         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
15426         __ynl_finite aliases.
15427
15428 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
15429
15430         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
15431
15432         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
15433         define DLA_FMA.
15434         [DLA_FMA] (EMULV): Use DLA_FMA.
15435         [DLA_FMA] (MUL12): Use EMULV.
15436         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
15437         that are not needed.
15438         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
15439         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15440         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15441         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15442         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15443         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
15444         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
15445
15446 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
15447
15448         * math/s_nan.c: Undef __nan.
15449         * math/s_nanf.c: Undef __nanf.
15450         * math/s_nanl.c: Undef __nanl.
15451         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
15452         "math_private.h".
15453
15454 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
15455
15456         * math/s_catan.c: Add branch predictions.
15457         * math/s_catanf.c: Likewise.
15458         * math/s_catanh.c: Likewise.
15459         * math/s_catanhf.c: Likewise.
15460         * math/s_catanhl.c: Likewise.
15461         * math/s_catanl.c: Likewise.
15462         * math/s_cexp.c: Likewise.
15463         * math/s_cexpf.c: Likewise.
15464         * math/s_cexpl.c: Likewise.
15465         * math/s_clog.c: Likewise.
15466         * math/s_clog10.c: Likewise.
15467         * math/s_clog10f.c: Likewise.
15468         * math/s_clog10l.c: Likewise.
15469         * math/s_clogf.c: Likewise.
15470         * math/s_clogl.c: Likewise.
15471         * math/s_csqrt.c: Likewise.
15472         * math/s_csqrtf.c: Likewise.
15473         * math/s_csqrtl.c: Likewise.
15474         * math/s_ctanf.c: Likewise.
15475         * math/s_ctanh.c: Likewise.
15476         * math/s_ctanhf.c: Likewise.
15477         * math/s_ctanhl.c: Likewise.
15478         * math/s_ctanl.c: Likewise.
15479
15480         * math/math_private.h: Define __nan, __nanf, __nanl.
15481         * math/s_cacosh.c: Include <math_private.h>.
15482         * math/s_cacoshl.c: Likewise.
15483         * math/s_casinh.c: Likewise.
15484         * math/s_casinhf.c: Likewise.
15485         * math/s_casinhl.c: Likewise.
15486         * math/s_ccos.c: Rely entire on ccosh.
15487         * math/s_ccosf.c: Rely entire on ccoshf.
15488         * math/s_ccosl.c: Rely entirely on ccoshl.
15489         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
15490         Remove tests for FE_INVALID.
15491         * math/s_ccoshf.c: Likewise.
15492         * math/s_ccoshl.c: Likewise.
15493         * math/s_csin.c: Likewise.
15494         * math/s_csinf.c: Likewise.
15495         * math/s_csinh.c Likewise.
15496         * math/s_csinhf.c: Likewise.
15497         * math/s_csinhl.c: Likewise.
15498         * math/s_csinl.c: Likewise.
15499         * math/s_ctan.c: Likewise.
15500         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
15501         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
15502         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
15503
15504 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
15505
15506         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
15507         compilation problems.
15508
15509         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
15510         __builtin_expect.
15511
15512 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
15513
15514         * sysdeps/i386/configure.in: Test for -mfma4 option.
15515         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
15516         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
15517         COMMON_CPUID_INDEX_80000001.
15518         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
15519         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
15520         use it if FMA3 is not supported.
15521         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
15522
15523         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
15524         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
15525
15526 2011-10-20  Andreas Schwab  <schwab@redhat.com>
15527
15528         [BZ #12892]
15529         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
15530         it would create a cycle with a link time dependency.
15531
15532 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
15533
15534         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
15535         instruction.
15536         * string/Makefile (strop-tests): Add rawmemchr.
15537         * string/test-rawmemchr.c: New file.
15538
15539         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
15540         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
15541         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
15542         when compiling str{,n}casecmp and when AVX is available.  Hook up
15543         new optimized code in initializers.
15544
15545 2011-10-19  Andreas Schwab  <schwab@redhat.com>
15546
15547         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
15548         __feraiseexcept instead of feraiseexcept.
15549
15550 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
15551
15552         * math/math_private.h: Define defaults for libc_fetestexcept and
15553         libc_feupdateenv.
15554         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
15555         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
15556         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
15557         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
15558         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
15559         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
15560         libc_fetestexcept and libc_feupdateenv.
15561
15562         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
15563         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
15564         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
15565         * sysdeps/x86_64/fpu/math_private.h: Define special version of
15566         libc_feholdexcept_setround.
15567
15568         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
15569         Add s_nearbyint-c and s_nearbyintf-c.
15570         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
15571         nearbyintf inlines.
15572         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
15573         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
15574         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
15575         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
15576
15577         * math/math_private.h: Define defaults for libc_fegetround,
15578         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
15579         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
15580         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
15581         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
15582         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
15583         standard functions.
15584         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
15585         Remove comments and hacks for old compiler versions.
15586         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
15587         libc_fegetround, libc_fesetround, libc_feholdexcept, and
15588         libc_feholdexceptl.
15589
15590 2011-10-18  Andreas Schwab  <schwab@redhat.com>
15591
15592         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
15593         (__feraiseexcept_renamed): Add __NTH.
15594         (feraiseexcept): Add __NTH.  Rename local variables to fix
15595         namespace violations.
15596
15597 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
15598
15599         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
15600
15601         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
15602
15603         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
15604         recently added interfaces.
15605         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
15606
15607         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
15608         about macro parameter expansion.
15609
15610         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
15611         __NO_MATH_INLINES is defined.  Cleanups.
15612
15613         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
15614         and __floorf is target has SSE4.1.
15615         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
15616         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
15617         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
15618         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
15619
15620         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
15621         name.
15622         (floorf): Likewise.
15623
15624         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
15625
15626 2011-10-17  Andreas Schwab  <schwab@redhat.com>
15627
15628         * misc/sys/cdefs.h: Fix last change.
15629
15630         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
15631         database lookup.
15632
15633 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
15634
15635         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
15636
15637         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
15638         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
15639         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
15640         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
15641         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
15642         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
15643         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
15644         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
15645         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
15646         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
15647         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
15648         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
15649         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
15650         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
15651         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
15652         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
15653         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
15654         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
15655         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
15656         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
15657         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
15658         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
15659
15660         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
15661         ceil, ceilf, floor, floorf.
15662
15663         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
15664         Perform IRELATIVE relocations last.
15665
15666         * elf/do-rel.h: Add another parameter nrelative, replacing the
15667         local variable with the same name.  Change name of the function
15668         to end in Rel or Rela (uppercase).
15669         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
15670         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
15671         elf_dynamic_do_##reloc function.
15672
15673 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
15674
15675         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
15676         is sufficient, at least on modern CPUs.
15677
15678         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
15679
15680         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
15681         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
15682
15683         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
15684         __expl_finite.
15685         * math/bits/math-finite.h: Add entries for exp.
15686         * math/e_expl.c: Add __*_finite alias.
15687         * sysdeps/i386/fpu/e_exp.S: Likewise.
15688         * sysdeps/i386/fpu/e_expf.S: Likewise.
15689         * sysdeps/i386/fpu/e_expl.c: Likewise.
15690         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
15691         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
15692         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
15693         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
15694         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
15695         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
15696         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
15697
15698         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
15699         is sufficient, at least on modern CPUs.
15700
15701         * ctype/ctype-info.c (__ctype_init): Define.
15702         * include/ctype.h (__ctype_init): Declare.
15703         (__ctype_b_loc): The variable is always initialized.
15704         (__ctype_toupper_loc): Likewise.
15705         (__ctype_tolower_loc): Likewise.
15706         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
15707         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
15708
15709 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
15710
15711         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
15712
15713         * configure.in: Also look in $cxxmachine/include for C++ system
15714         headers.
15715
15716 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15717
15718         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
15719         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
15720         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
15721         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
15722         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
15723         (USE_AS_WMEMCMP): New macro.
15724         Fixing indents.
15725         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
15726         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
15727         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
15728         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
15729         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
15730         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
15731         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
15732         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
15733         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
15734         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
15735         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
15736         (USE_AS_WMEMCMP): New macro.
15737         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
15738         * sysdeps/string/test-memcmp.c: Update.
15739         Fix simple_wmemcmp.
15740         Add new tests.
15741         * wcsmbs/wmemcmp.c: Update.
15742         (WMEMCMP): New macro.
15743         Fix overflow bug.
15744
15745 2011-10-12  Andreas Jaeger  <aj@suse.de>
15746
15747         [BZ #13268]
15748         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
15749
15750 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
15751
15752         * libio/iofwide.c (do_length): Avoid warning.
15753
15754         * ctype/ctype.h (__isctype_f): Add missing __THROW.
15755
15756 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
15757
15758         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
15759
15760         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
15761         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
15762         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
15763         * sysdeps/i386/i686/fpu/e_log.S: New file.
15764         * sysdeps/i386/i686/fpu/e_logf.S: New file.
15765         * sysdeps/i386/i686/fpu/e_logl.S: New file.
15766
15767         * ctype/ctype.h: Add support for inlined isXXX functions when
15768         compiling C++ code.
15769
15770 2011-10-14  Andreas Schwab  <schwab@redhat.com>
15771
15772         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
15773
15774         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
15775
15776 2011-10-13  Roland McGrath  <roland@hack.frob.com>
15777
15778         [BZ #13291]
15779         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
15780
15781 2011-10-13  Andreas Schwab  <schwab@redhat.com>
15782
15783         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
15784         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
15785         feraiseexcept.
15786
15787         * sysdeps/x86_64/memrchr.S: Check for zero size.
15788
15789         * string/stratcliff.c: Add memrchr tests.
15790
15791 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15792
15793         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
15794         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
15795         rawmemchr-sse2 rawmemchr-sse2-bsf.
15796         * sysdeps/i386/i686/multiarch/memchr.S: New file.
15797         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
15798         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
15799         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
15800         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
15801         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
15802         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
15803         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
15804         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
15805         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
15806         * string/memrchr.c (MEMRCHR): New macro.
15807
15808 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
15809
15810         Add integration with gcc's -ffinite-math-only and optimize wrapper
15811         functions in libm.
15812         * Versions.def: Define GLIBC_2.15 version for libm.
15813         * math/Makefile (headers): Add bits/math-finite.h.
15814         * math/bits/math-finite.h: New file.
15815         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
15816         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
15817         * math/e_acoshl.c: Add __*_finite alias.
15818         * math/e_acosl.c: Likewise.
15819         * math/e_asinl.c: Likewise.
15820         * math/e_atan2l.c: Likewise.
15821         * math/e_atanhl.c: Likewise.
15822         * math/e_coshl.c: Likewise.
15823         * math/e_exp10.c: Likewise.
15824         * math/e_exp10f.c: Likewise.
15825         * math/e_exp10l.c: Likewise.
15826         * math/e_exp2l.c: Likewise.
15827         * math/e_fmodl.c: Likewise.
15828         * math/e_gammal_r.c: Likewise.
15829         * math/e_hypotl.c: Likewise.
15830         * math/e_j0l.c: Likewise.
15831         * math/e_j1l.c: Likewise.
15832         * math/e_jnl.c: Likewise.
15833         * math/e_lgammal_r.c: Likewise.
15834         * math/e_log10l.c: Likewise.
15835         * math/e_log2l.c: Likewise.
15836         * math/e_logl.c: Likewise.
15837         * math/e_powl.c: Likewise.
15838         * math/e_sinhl.c: Likewise.
15839         * math/e_sqrtl.c: Likewise.
15840         * math/e_scalb.c: Completely rewritten and optimized.
15841         * math/e_scalbf.c: Likewise.
15842         * math/e_scalbl.c: Likewise.
15843         * math/w_acos.c: Likewise.
15844         * math/w_acosf.c: Likewise.
15845         * math/w_acosl.c: Likewise.
15846         * math/w_acosh.c: Likewise.
15847         * math/w_acoshf.c: Likewise.
15848         * math/w_acoshl.c: Likewise.
15849         * math/w_asin.c: Likewise.
15850         * math/w_asinf.c: Likewise.
15851         * math/w_asinl.c: Likewise.
15852         * math/w_atan2.c: Likewise.
15853         * math/w_atan2f.c: Likewise.
15854         * math/w_atan2l.c: Likewise.
15855         * math/w_atanh.c: Likewise.
15856         * math/w_atanhf.c: Likewise.
15857         * math/w_atanhl.c: Likewise.
15858         * math/w_exp10.c: Likewise.
15859         * math/w_exp10f.c: Likewise.
15860         * math/w_exp10l.c: Likewise.
15861         * math/w_fmod.c: Likewise.
15862         * math/w_fmodf.c: Likewise.
15863         * math/w_fmodl.c: Likewise.
15864         * math/w_j0.c: Likewise.
15865         * math/w_j0f.c: Likewise.
15866         * math/w_j0l.c: Likewise.
15867         * math/w_j1.c: Likewise.
15868         * math/w_j1f.c: Likewise.
15869         * math/w_j1l.c: Likewise.
15870         * math/w_jn.c: Likewise.
15871         * math/w_jnf.c: Likewise.
15872         * math/w_log.c: Likewise.
15873         * math/w_logf.c: Likewise.
15874         * math/w_logl.c: Likewise.
15875         * math/w_log10.c: Likewise.
15876         * math/w_log10f.c: Likewise.
15877         * math/w_log10l.c: Likewise.
15878         * math/w_log2.c: Likewise.
15879         * math/w_log2f.c: Likewise.
15880         * math/w_log2l.c: Likewise.
15881         * math/w_pow.c: Likewise.
15882         * math/w_powf.c: Likewise.
15883         * math/w_powl.c: Likewise.
15884         * math/w_remainder.c: Likewise.
15885         * math/w_remainderf.c: Likewise.
15886         * math/w_remainderl.c: Likewise.
15887         * math/w_scalb.c: Likewise.
15888         * math/w_scalbf.c: Likewise.
15889         * math/w_scalbl.c: Likewise.
15890         * math/w_sqrt.c: Likewise.
15891         * math/w_sqrtf.c: Likewise.
15892         * math/w_sqrtl.c: Likewise.
15893         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
15894         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
15895         used.
15896         * math/math_private.h: Declare __kernel_standard_f.
15897         * math/w_cosh.c: Remove cruft and optimize a bit.
15898         * math/w_coshf.c: Likewise.
15899         * math/w_coshl.c: Likewise.
15900         * math/w_exp2.c: Likewise.
15901         * math/w_exp2f.c: Likewise.
15902         * math/w_exp2l.c: Likewise.
15903         * math/w_hypot.c: Likewise.
15904         * math/w_hypotf.c: Likewise.
15905         * math/w_hypotl.c: Likewise.
15906         * math/w_lgamma.c: Likewise.
15907         * math/w_lgamma_r.c: Likewise.
15908         * math/w_lgammaf.c: Likewise.
15909         * math/w_lgammaf_r.c: Likewise.
15910         * math/w_lgammal.c: Likewise.
15911         * math/w_lgammal_r.c: Likewise.
15912         * math/w_sinh.c: Likewise.
15913         * math/w_sinhf.c: Likewise.
15914         * math/w_sinhl.c: Likewise.
15915         * math/w_tgamma.c: Likewise.
15916         * math/w_tgammaf.c: Likewise.
15917         * math/w_tgammal.c: Likewise.
15918         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
15919         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
15920         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
15921         Minor optimizations.  Pretty printing.  Remove cruft.
15922         * sysdeps/i386/fpu/e_acosf.S: Likewise.
15923         * sysdeps/i386/fpu/e_acosh.S: Likewise.
15924         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
15925         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
15926         * sysdeps/i386/fpu/e_acosl.c: Likewise.
15927         * sysdeps/i386/fpu/e_asin.S: Likewise.
15928         * sysdeps/i386/fpu/e_asinf.S: Likewise.
15929         * sysdeps/i386/fpu/e_atan2.S: Likewise.
15930         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
15931         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
15932         * sysdeps/i386/fpu/e_atanh.S: Likewise.
15933         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
15934         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
15935         * sysdeps/i386/fpu/e_exp10.S: Likewise.
15936         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
15937         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
15938         * sysdeps/i386/fpu/e_exp2.S: Likewise.
15939         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
15940         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
15941         * sysdeps/i386/fpu/e_fmod.S: Likewise.
15942         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
15943         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
15944         * sysdeps/i386/fpu/e_hypot.S: Likewise.
15945         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
15946         * sysdeps/i386/fpu/e_log.S: Likewise.
15947         * sysdeps/i386/fpu/e_log10.S: Likewise.
15948         * sysdeps/i386/fpu/e_log10f.S: Likewise.
15949         * sysdeps/i386/fpu/e_log10l.S: Likewise.
15950         * sysdeps/i386/fpu/e_log2.S: Likewise.
15951         * sysdeps/i386/fpu/e_log2f.S: Likewise.
15952         * sysdeps/i386/fpu/e_log2l.S: Likewise.
15953         * sysdeps/i386/fpu/e_logf.S: Likewise.
15954         * sysdeps/i386/fpu/e_logl.S: Likewise.
15955         * sysdeps/i386/fpu/e_pow.S: Likewise.
15956         * sysdeps/i386/fpu/e_powf.S: Likewise.
15957         * sysdeps/i386/fpu/e_powl.S: Likewise.
15958         * sysdeps/i386/fpu/e_remainder.S: Likewise.
15959         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
15960         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
15961         * sysdeps/i386/fpu/e_scalb.S: Likewise.
15962         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
15963         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
15964         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
15965         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
15966         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
15967         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
15968         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
15969         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
15970         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
15971         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
15972         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
15973         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
15974         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
15975         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
15976         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
15977         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
15978         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
15979         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
15980         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
15981         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
15982         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
15983         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
15984         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
15985         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
15986         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
15987         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
15988         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
15989         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
15990         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
15991         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
15992         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
15993         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
15994         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
15995         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
15996         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
15997         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
15998         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
15999         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
16000         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
16001         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
16002         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
16003         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
16004         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
16005         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
16006         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
16007         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
16008         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
16009         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
16010         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
16011         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
16012         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
16013         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
16014         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
16015         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
16016         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
16017         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
16018         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
16019         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
16020         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
16021         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
16022         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
16023         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
16024         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
16025         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
16026         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
16027         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
16028         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
16029         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
16030         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
16031         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
16032         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
16033         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
16034         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
16035         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
16036         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
16037         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
16038         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
16039         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
16040         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
16041         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
16042         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
16043         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
16044         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
16045         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
16046         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
16047         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
16048         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
16049         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
16050         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
16051         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
16052         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
16053         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
16054         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
16055         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
16056         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
16057         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
16058         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
16059         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
16060         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
16061         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
16062         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
16063         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
16064         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
16065         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
16066         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
16067         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
16068         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
16069         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
16070         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
16071         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
16072         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
16073         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
16074         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
16075         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
16076         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
16077         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
16078         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
16079         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
16080         (__isnanf): Likewise.
16081         (__isinf_ns): Likewise.
16082         (__isinf_nsf): Likewise.
16083         (__finite): Likewise.
16084         (__finitef): Likewise.
16085         (__ieee754_sqrt): Define as macro.
16086         (__ieee754_sqrtf): Define as macro.
16087         (__ieee754_sqrtl): Define as macro.
16088         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
16089         inlined copy.
16090         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
16091         __FINITE_MATH_ONLY__ consistent.
16092         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
16093
16094 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
16095
16096         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
16097         of rawmemchr.
16098
16099         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
16100
16101 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
16102
16103         * po/ja.po: Update from translation team.
16104
16105 2011-10-08  Roland McGrath  <roland@hack.frob.com>
16106
16107         * locale/programs/locarchive.c (prepare_address_space): New function.
16108         (create_archive, enlarge_archive, open_archive): Use it.
16109
16110         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
16111         inside [SHARED], where it is used.
16112
16113         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
16114
16115         * nss/getent.c (netgroup_keys): Remove unused variable.
16116         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
16117
16118 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
16119
16120         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
16121         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
16122         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
16123         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
16124         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
16125         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
16126         * math/Makefile (libm-calls): Add s_isinf_ns.
16127         * math/divtc3.c: Use __isinf_nsl instead of isinf.
16128         * math/multc3.c: Likewise.
16129         * math/s_casin.c: Likewise.
16130         * math/s_casinf.c: Likewise.
16131         * math/s_casinl.c: Likewise.
16132         * math/s_ccos.c: Likewise.
16133         * math/s_ccosf.c: Likewise.
16134         * math/s_ccosl.c: Likewise.
16135         * math/s_ctan.c: Likewise.
16136         * math/s_ctanf.c: Likewise.
16137         * math/s_ctanh.c: Likewise.
16138         * math/s_ctanhf.c: Likewise.
16139         * math/s_ctanhl.c: Likewise.
16140         * math/s_ctanl.c: Likewise.
16141         * math/w_fmod.c: Likewise.
16142         * math/w_fmodf.c: Likewise.
16143         * math/w_fmodl.c: Likewise.
16144         * math/w_remainder.c: Likewise.
16145         * math/w_remainderf.c: Likewise.
16146         * math/w_remainderl.c: Likewise.
16147         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
16148         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
16149         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
16150         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
16151         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
16152         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
16153         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
16154         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
16155
16156         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
16157         of the number.
16158         * stdio-common/printf_fphex.c: Likewise.
16159         * stdio-common/printf_size.c: Likewise.
16160
16161         * math/e_exp10.c: Include math_private.h using <...> not "...".
16162         * math/e_exp10f.c: Likewise.
16163         * math/e_exp10l.c: Likewise.
16164         * math/e_exp2l.c: Likewise.
16165         * math/e_j0l.c: Likewise.
16166         * math/e_j1l.c: Likewise.
16167         * math/e_jnl.c: Likewise.
16168         * math/e_lgammal_r.c: Likewise.
16169         * math/e_rem_pio2l.c: Likewise.
16170         * math/e_scalb.c: Likewise.
16171         * math/e_scalbf.c: Likewise.
16172         * math/e_scalbl.c: Likewise.
16173         * math/k_cosl.c: Likewise.
16174         * math/k_sinl.c: Likewise.
16175         * math/k_tanl.c: Likewise.
16176         * math/s_cacoshf.c: Likewise.
16177         * math/s_catan.c: Likewise.
16178         * math/s_catanf.c: Likewise.
16179         * math/s_catanh.c: Likewise.
16180         * math/s_catanhf.c: Likewise.
16181         * math/s_catanhl.c: Likewise.
16182         * math/s_catanl.c: Likewise.
16183         * math/s_ccosh.c: Likewise.
16184         * math/s_ccoshf.c: Likewise.
16185         * math/s_ccoshl.c: Likewise.
16186         * math/s_cexp.c: Likewise.
16187         * math/s_cexpf.c: Likewise.
16188         * math/s_cexpl.c: Likewise.
16189         * math/s_clog.c: Likewise.
16190         * math/s_clog10.c: Likewise.
16191         * math/s_clog10f.c: Likewise.
16192         * math/s_clog10l.c: Likewise.
16193         * math/s_clogf.c: Likewise.
16194         * math/s_clogl.c: Likewise.
16195         * math/s_csin.c: Likewise.
16196         * math/s_csinf.c: Likewise.
16197         * math/s_csinh.c: Likewise.
16198         * math/s_csinhf.c: Likewise.
16199         * math/s_csinhl.c: Likewise.
16200         * math/s_csinl.c: Likewise.
16201         * math/s_csqrt.c: Likewise.
16202         * math/s_csqrtf.c: Likewise.
16203         * math/s_csqrtl.c: Likewise.
16204         * math/s_ctan.c: Likewise.
16205         * math/s_ctanf.c: Likewise.
16206         * math/s_ctanh.c: Likewise.
16207         * math/s_ctanhf.c: Likewise.
16208         * math/s_ctanhl.c: Likewise.
16209         * math/s_ctanl.c: Likewise.
16210         * math/s_ldexp.c: Likewise.
16211         * math/s_ldexpf.c: Likewise.
16212         * math/s_ldexpl.c: Likewise.
16213         * math/s_significand.c: Likewise.
16214         * math/s_significandf.c: Likewise.
16215         * math/s_significandl.c: Likewise.
16216         * math/w_acos.c: Likewise.
16217         * math/w_acosf.c: Likewise.
16218         * math/w_acosh.c: Likewise.
16219         * math/w_acoshf.c: Likewise.
16220         * math/w_acoshl.c: Likewise.
16221         * math/w_acosl.c: Likewise.
16222         * math/w_asin.c: Likewise.
16223         * math/w_asinf.c: Likewise.
16224         * math/w_asinl.c: Likewise.
16225         * math/w_atan2.c: Likewise.
16226         * math/w_atan2f.c: Likewise.
16227         * math/w_atan2l.c: Likewise.
16228         * math/w_atanh.c: Likewise.
16229         * math/w_atanhf.c: Likewise.
16230         * math/w_atanhl.c: Likewise.
16231         * math/w_cosh.c: Likewise.
16232         * math/w_coshf.c: Likewise.
16233         * math/w_coshl.c: Likewise.
16234         * math/w_dremf.c: Likewise.
16235         * math/w_exp10.c: Likewise.
16236         * math/w_exp10f.c: Likewise.
16237         * math/w_exp10l.c: Likewise.
16238         * math/w_exp2.c: Likewise.
16239         * math/w_exp2f.c: Likewise.
16240         * math/w_fmod.c: Likewise.
16241         * math/w_fmodf.c: Likewise.
16242         * math/w_fmodl.c: Likewise.
16243         * math/w_hypot.c: Likewise.
16244         * math/w_hypotf.c: Likewise.
16245         * math/w_hypotl.c: Likewise.
16246         * math/w_j0.c: Likewise.
16247         * math/w_j0f.c: Likewise.
16248         * math/w_j0l.c: Likewise.
16249         * math/w_j1.c: Likewise.
16250         * math/w_j1f.c: Likewise.
16251         * math/w_j1l.c: Likewise.
16252         * math/w_jn.c: Likewise.
16253         * math/w_jnf.c: Likewise.
16254         * math/w_jnl.c: Likewise.
16255         * math/w_lgamma.c: Likewise.
16256         * math/w_lgamma_r.c: Likewise.
16257         * math/w_lgammaf.c: Likewise.
16258         * math/w_lgammaf_r.c: Likewise.
16259         * math/w_lgammal.c: Likewise.
16260         * math/w_lgammal_r.c: Likewise.
16261         * math/w_log.c: Likewise.
16262         * math/w_log10.c: Likewise.
16263         * math/w_log10f.c: Likewise.
16264         * math/w_log10l.c: Likewise.
16265         * math/w_log2.c: Likewise.
16266         * math/w_log2f.c: Likewise.
16267         * math/w_log2l.c: Likewise.
16268         * math/w_logf.c: Likewise.
16269         * math/w_logl.c: Likewise.
16270         * math/w_pow.c: Likewise.
16271         * math/w_powf.c: Likewise.
16272         * math/w_powl.c: Likewise.
16273         * math/w_remainder.c: Likewise.
16274         * math/w_remainderf.c: Likewise.
16275         * math/w_remainderl.c: Likewise.
16276         * math/w_scalb.c: Likewise.
16277         * math/w_scalbf.c: Likewise.
16278         * math/w_scalbl.c: Likewise.
16279         * math/w_sinh.c: Likewise.
16280         * math/w_sinhf.c: Likewise.
16281         * math/w_sinhl.c: Likewise.
16282         * math/w_sqrt.c: Likewise.
16283         * math/w_sqrtf.c: Likewise.
16284         * math/w_sqrtl.c: Likewise.
16285         * math/w_tgamma.c: Likewise.
16286         * math/w_tgammaf.c: Likewise.
16287         * math/w_tgammal.c: Likewise.
16288
16289         * po/ja.po: Update from translation team.
16290
16291 2011-09-29  Andreas Jaeger  <aj@suse.de>
16292
16293         [BZ #13179]
16294         * sunrpc/netname.c (netname2host): Fix logic.
16295
16296         [BZ #6779]
16297         [BZ #6783]
16298         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
16299         correctly.
16300         * math/w_remainder.c (__remainder): Likewise.
16301         * math/w_remainderf.c (__remainderf): Likewise.
16302         * math/libm-test.inc (remainder_test): Add test cases.
16303
16304 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16305
16306         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
16307         sdiv_qrnnd.
16308
16309 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
16310
16311         * string/test-memcmp.c: Avoid unncessary #defines.
16312         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
16313
16314 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16315
16316         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
16317         Use new sse2 version for core i3 - i7 as it's faster
16318         than sse42 version.
16319         (bit_Prefer_PMINUB_for_stringop): New.
16320         * sysdeps/x86_64/rawmemchr.S: Update.
16321         Replace with faster SSE2 version.
16322         * sysdeps/x86_64/memrchr.S: New file.
16323         * sysdeps/x86_64/memchr.S: Update.
16324         Replace with faster SSE2 version.
16325
16326 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
16327
16328         * elf/dl-load.c (lose): Add cast to avoid warning.
16329
16330 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
16331
16332         * po/ca.po: Update from translation team.
16333
16334         * inet/getnetgrent_r.c: Hook up nscd.
16335         * nscd/Makefile (routines): Add nscd_netgroup.
16336         (nscd-modules): Add netgroupcache.
16337         (CFLAGS-netgroupcache.c): Define.
16338         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
16339         (cache_search): Add const to second parameter.
16340         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
16341         INNETGR.
16342         (dbs): Add netgrdb entry.
16343         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
16344         (verify_persistent_db): Handle netgrdb.
16345         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
16346         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
16347         GETFDNETGR.
16348         (netgroup_response_header): Define.
16349         (innetgroup_response_header): Define.
16350         (datahead): Add netgroup_response_header and innetgroup_response_header
16351         elements.
16352         * nscd/nscd.conf: Add entries for netgroup cache.
16353         * nscd/nscd.h (dbtype): Add netgrdb.
16354         (_PATH_NSCD_NETGROUP_DB): Define.
16355         (netgroup_iov_disabled): Declare.
16356         (xmalloc, xcalloc, xrealloc): Move declarations here.
16357         (cache_search): Adjust prototype.
16358         Add netgroup-related prototypes.
16359         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
16360         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
16361         (__nscd_innetgr): Declare.
16362         * nscd/selinux.c (perms): Use access_vector_t as element type and
16363         add netgroup-related initializers.
16364         * nscd/netgroupcache.c: New file.
16365         * nscd/nscd_netgroup.c: New file.
16366         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
16367         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
16368         For four parameters use innetgr.
16369         * nss/nss_files/files-init.c: Add definition and callback for netgr.
16370         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
16371         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
16372         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
16373
16374         * nscd/connections.c (register_traced_file): Don't register file
16375         for disabled databases.
16376
16377 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
16378
16379         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
16380
16381         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
16382         from tree and freeing node.
16383
16384 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
16385
16386         * nss/nsswitch.c (__nss_database_lookup): Handle
16387         nss_parse_service_list out of memory case.
16388
16389 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
16390
16391         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
16392         out of memory case.
16393
16394 2011-10-04  Andreas Schwab  <schwab@redhat.com>
16395
16396         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
16397         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
16398         pass it down.
16399         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
16400         elf_machine_rela, elf_machine_lazy_rel.
16401         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
16402         (ELF_DYNAMIC_DO_REL): Likewise.
16403         (ELF_DYNAMIC_DO_RELA): Likewise.
16404         (ELF_DYNAMIC_RELOCATE): Likewise.
16405         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
16406         to ELF_DYNAMIC_DO_REL.
16407         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
16408         (dl_main): In trace mode always set __RTLD_NOIFUNC.
16409         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
16410         elf_machine_rela.
16411         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
16412         skip_ifunc, don't call ifunc function if non-zero.
16413         (elf_machine_rela): Likewise.
16414         (elf_machine_lazy_rel): Likewise.
16415         (elf_machine_lazy_rela): Likewise.
16416         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
16417         (elf_machine_lazy_rel): Likewise.
16418         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
16419         Likewise.
16420         (elf_machine_lazy_rel): Likewise.
16421         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
16422         Likewise.
16423         (elf_machine_lazy_rel): Likewise.
16424         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
16425         (elf_machine_lazy_rel): Likewise.
16426         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
16427         (elf_machine_lazy_rel): Likewise.
16428         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
16429         (elf_machine_lazy_rel): Likewise.
16430         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
16431         (elf_machine_lazy_rel): Likewise.
16432         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
16433         (elf_machine_lazy_rel): Likewise.
16434         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
16435         (elf_machine_lazy_rel): Likewise.
16436
16437 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
16438
16439         * nss/nss_files/files-init.c (_nss_files_init): Use static
16440         initialization for all the *_traced_file variables.
16441
16442 2011-09-28  Andreas Schwab  <schwab@redhat.com>
16443
16444         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
16445
16446 2011-09-27  Roland McGrath  <roland@hack.frob.com>
16447
16448         [BZ #13226]
16449         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
16450
16451 2011-09-27  Andreas Schwab  <schwab@redhat.com>
16452
16453         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
16454         Reread the line before reparsing it.
16455
16456 2011-09-26  Andreas Schwab  <schwab@redhat.com>
16457
16458         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
16459
16460 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
16461             Maxim Kuvyrkov  <maxim@codesourcery.com>
16462             Joseph Myers  <joseph@codesourcery.com>
16463
16464         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
16465         if needed for __stack_chk_guard.
16466
16467 2011-09-19  Roland McGrath  <roland@hack.frob.com>
16468
16469         * sysdeps/posix/spawni.c (script_execute): Always define it.
16470         It will be optimized away if unused.
16471         (maybe_script_execute): New function.
16472         (__spawni): Call it.
16473
16474         * Makerules: Don't include tls.make.
16475         (config-tls): Always set to thread.
16476         * tls.make.c: File removed.
16477
16478 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
16479
16480         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
16481         * config.make.in (CPPFLAGS-config): New substituted variable.
16482
16483 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
16484
16485         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
16486
16487         [BZ #13192]
16488         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
16489         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
16490
16491 2011-09-15  Roland McGrath  <roland@hack.frob.com>
16492
16493         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
16494         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
16495         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
16496         (CALL_FAIL): Likewise.
16497         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
16498         (CALL_FAIL): Macro removed.
16499         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
16500
16501 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
16502
16503         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
16504         for __FINITE_MATH_ONLY__ == 1.
16505
16506 2011-09-15  Andreas Schwab  <schwab@redhat.com>
16507
16508         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
16509         __ieee754_sqrt instead of sqrt.
16510         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
16511         __ieee754_sqrtf instead of sqrtf.
16512         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
16513         __floorf instead of floorf.
16514         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
16515         __floorf, __truncf instead of floorf, truncf.
16516
16517 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
16518
16519         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
16520
16521         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
16522         __extern_always_inline.
16523         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
16524         32-bit.
16525
16526 2011-09-14  Andreas Schwab  <schwab@redhat.com>
16527
16528         * elf/rtld.c (dl_main): Also relocate in dependency order when
16529         doing symbol dependency testing.
16530
16531 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
16532
16533         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
16534         Always define `refsym'.
16535
16536 2011-09-13  Andreas Schwab  <schwab@redhat.com>
16537
16538         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
16539         (__FD_ELT): Renamed from __FDELT.
16540         * misc/bits/select2.h (__FD_ELT): Likewise.
16541         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
16542         __FD_MASK instead of __FDELT, __FDMASK.
16543         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
16544         Likewise.
16545         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
16546         Likewise.
16547
16548         * elf/Makefile (gen-ldd): Fix pattern.
16549
16550         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
16551         (init_tls): Likewise.
16552
16553 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
16554
16555         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
16556
16557 2011-09-12  Andreas Schwab  <schwab@redhat.com>
16558
16559         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
16560         `struct cmsghdr *' instead of `void *'.
16561         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
16562         Likewise.
16563
16564 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
16565
16566         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
16567         if non-absolute.
16568         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
16569         ldd_rewrite_script.
16570
16571 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
16572
16573         * configure.in: Remove --with-tls option.
16574         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
16575         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
16576         out in case it is missing.
16577         * sysdeps/ia64/elf/configure.in: Likewise.
16578         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
16579         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
16580         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
16581         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
16582         * sysdeps/sh/elf/configure.in: Likewise.
16583         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
16584         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
16585         * sysdeps/x86_64/elf/configure.in: Likewise.
16586         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
16587         * sysdeps/mach/hurd/tls.h: Likewise.
16588
16589         [BZ #13067]
16590         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
16591
16592         [BZ #13090]
16593         * configure.in: Fix use of AC_INIT.
16594
16595         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
16596
16597 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
16598
16599         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
16600         __set_errno.
16601         * malloc/hooks.c: Likewise.
16602
16603         [BZ #11929]
16604         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
16605         variables statically.
16606         (narenas): Initialize.
16607         (list_lock): Initialize.
16608         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
16609         initializtion of main_arena and list_lock.  Small cleanups.
16610         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
16611         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
16612         Add initializers to main_arena and mp_.
16613         (malloc_state): Remove pagesize member.  Change all users to use
16614         GLRO(dl_pagesize).
16615
16616         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
16617         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
16618         is always initialized.
16619
16620         * malloc/malloc.c: Removed unused configurations and dead code.
16621         * malloc/arena.c: Likewise.
16622         * malloc/hooks.c: Likewise.
16623         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
16624
16625         * include/tls.h: Removed.  USE___THREAD must always be defined.
16626         * bits/libc-tsd.h: Don't handle !USE___THREAD.
16627         * elf/dl-libc.c: Likewise.
16628         * elf/dl-tsd.c: Likewise.
16629         * include/errno.h: Likewise.
16630         * include/netdb.h: Likewise.
16631         * include/resolv.h: Likewise.
16632         * inet/herrno-loc.c: Likewise.
16633         * inet/herrno.c: Likewise.
16634         * malloc/arena.c: Likewise.
16635         * malloc/hooks.c: Likewise.
16636         * malloc/malloc.c: Likewise.
16637         * resolv/res-state.c: Likewise.
16638         * resolv/res_libc.c: Likewise.
16639         * sysdeps/i386/dl-machine.h: Likewise.
16640         * sysdeps/ia64/dl-machine.h: Likewise.
16641         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
16642         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
16643         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
16644         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
16645         * sysdeps/sh/dl-machine.h: Likewise.
16646         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
16647         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
16648         * sysdeps/unix/i386/sysdep.S: Likewise.
16649         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
16650         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
16651         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
16652         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
16653         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
16654         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
16655         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
16656         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
16657         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
16658         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
16659         * sysdeps/unix/x86_64/sysdep.S: Likewise.
16660         * sysdeps/x86_64/dl-machine.h: Likewise.
16661         * tls.make.c: Likewise.
16662
16663         * configure.in: Remove --with-__thread option.  Make tests for
16664         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
16665         tls_model attribute fail if no support is available.  Remove
16666         USE_IN_LIBIO.
16667         * Makeconfig: Adjust for dropped configure option.  All features are
16668         now mandatory.
16669         * Makerules: Likewise.
16670         * Versions.def: Likewise.
16671         * argp/argp-fmtstream.c: Likewise.
16672         * argp/argp-fmtstream.h: Likewise.
16673         * argp/argp-help.c: Likewise.
16674         * assert/assert.c: Likewise.
16675         * config.h.in: Likewise.
16676         * config.make.in: Likewise.
16677         * configure: Likewise.
16678         * configure.in: Likewise.
16679         * csu/Versions: Likewise.
16680         * csu/init.c: Likewise.
16681         * elf/tst-audit2.c: Likewise.
16682         * elf/tst-tls10.c: Likewise.
16683         * elf/tst-tls10.h: Likewise.
16684         * elf/tst-tls11.c: Likewise.
16685         * elf/tst-tls12.c: Likewise.
16686         * elf/tst-tls14.c: Likewise.
16687         * elf/tst-tlsmod11.c: Likewise.
16688         * elf/tst-tlsmod12.c: Likewise.
16689         * elf/tst-tlsmod13.c: Likewise.
16690         * elf/tst-tlsmod13a.c: Likewise.
16691         * elf/tst-tlsmod14a.c: Likewise.
16692         * elf/tst-tlsmod15b.c: Likewise.
16693         * elf/tst-tlsmod16a.c: Likewise.
16694         * elf/tst-tlsmod16b.c: Likewise.
16695         * elf/tst-tlsmod7.c: Likewise.
16696         * elf/tst-tlsmod8.c: Likewise.
16697         * elf/tst-tlsmod9.c: Likewise.
16698         * gmon/gmon.c: Likewise.
16699         * grp/fgetgrent_r.c: Likewise.
16700         * grp/putgrent.c: Likewise.
16701         * hurd/fopenport.c: Likewise.
16702         * include/libc-symbols.h: Likewise.
16703         * include/tls.h: Likewise.
16704         * intl/gettextP.h: Likewise.
16705         * intl/loadinfo.h: Likewise.
16706         * locale/global-locale.c: Likewise.
16707         * locale/localeinfo.h: Likewise.
16708         * mach/devstream.c: Likewise.
16709         * malloc/arena.c: Likewise.
16710         * malloc/set-freeres.c: Likewise.
16711         * misc/err.c: Likewise.
16712         * misc/getttyent.c: Likewise.
16713         * misc/mntent_r.c: Likewise.
16714         * posix/getopt.c: Likewise.
16715         * posix/wordexp.c: Likewise.
16716         * pwd/fgetpwent_r.c: Likewise.
16717         * resolv/Versions: Likewise.
16718         * resolv/res_hconf.c: Likewise.
16719         * shadow/fgetspent_r.c: Likewise.
16720         * shadow/putspent.c: Likewise.
16721         * stdio-common/printf_fphex.c: Likewise.
16722         * stdio-common/tmpfile.c: Likewise.
16723         * stdlib/abort.c: Likewise.
16724         * stdlib/fmtmsg.c: Likewise.
16725         * sunrpc/auth_unix.c: Likewise.
16726         * sunrpc/clnt_perr.c: Likewise.
16727         * sunrpc/clnt_tcp.c: Likewise.
16728         * sunrpc/clnt_udp.c: Likewise.
16729         * sunrpc/clnt_unix.c: Likewise.
16730         * sunrpc/openchild.c: Likewise.
16731         * sunrpc/svc_simple.c: Likewise.
16732         * sunrpc/svc_tcp.c: Likewise.
16733         * sunrpc/svc_udp.c: Likewise.
16734         * sunrpc/svc_unix.c: Likewise.
16735         * sunrpc/xdr.c: Likewise.
16736         * sunrpc/xdr_array.c: Likewise.
16737         * sunrpc/xdr_rec.c: Likewise.
16738         * sunrpc/xdr_ref.c: Likewise.
16739         * sunrpc/xdr_stdio.c: Likewise.
16740
16741 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
16742
16743         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
16744
16745 2011-07-03  Andreas Jaeger  <aj@suse.de>
16746
16747         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
16748         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
16749         regenerate with gen-libm-tests.pl.
16750
16751 2010-05-12  Petr Baudis  <pasky@suse.cz>
16752
16753         [BZ #11589]
16754         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
16755         around j0() zero points by switching to j1().
16756         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
16757         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
16758         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
16759         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
16760
16761 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
16762
16763         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
16764         instead of 0.
16765         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
16766         instead of 0.                              .
16767         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
16768         Patch in part by Pavel Roskin <proski@gnu.org>.
16769
16770         [BZ #13138]
16771         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
16772         realloc.
16773         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
16774         Free memory block if necessary.
16775
16776         [BZ #12847]
16777         * libio/genops.c (INTDEF): For string streams the _lock pointer can
16778         be NULL.  Don't lock in this case.
16779
16780 2011-09-09  Roland McGrath  <roland@hack.frob.com>
16781
16782         * elf/elf.h (ELFOSABI_GNU): New macro.
16783         (ELFOSABI_LINUX): Define to that.
16784
16785 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
16786
16787         * string/strncat.c (strncat): Undef the symbol in case it has been
16788         defined in bits/string.h.
16789
16790 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
16791
16792         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
16793
16794         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
16795         link map.
16796
16797 2011-08-17  Andreas Jaeger  <aj@suse.de>
16798
16799         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
16800
16801 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
16802             Ian Lance Taylor  <iant@google.com>
16803
16804         * math/libm-test.inc (lround_test): New testcase.
16805         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
16806
16807 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
16808
16809         * Makefile: Remove support for automatic cvs check-ins.
16810         * Makerules: Likewise.
16811         * config.make.in: Likewise.
16812         * configure.in: Likewise.
16813         * intl/Makefile: Likewise.
16814         * locale/Makefile: Likewise.
16815         * po/Makefile: Likewise.
16816         * posix/Makefile: Likewise.
16817         * sysdeps/gnu/Makefile: Likewise.
16818         * sysdeps/mach/hurd/Makefile: Likewise.
16819         * sysdeps/sparc/sparc32/Makefile: Likewise.
16820
16821         [BZ #13118]
16822         * posix/Makefile (bug-regex32-ENV): Define.
16823         Patch by John Stanley <jpsinthemix@verizon.net>.
16824
16825         * misc/Makefile (headers): Add bits/select2.h.
16826         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
16827         * misc/bits/select2.h: New file.
16828         * include/bits/select2.h: New file.
16829         * debug/Makefile (routines): Add fdelt_chk.
16830         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
16831         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
16832         FD_ISSET.
16833         * debug/fdelt_chk.c: New file.
16834
16835         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
16836         * wcsmbs/test-wmemcmp.c: Likewise.
16837         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
16838         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
16839
16840 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16841
16842         * string/Makefile (strop-tests): Add memcmp.
16843         * string/test-wmemcmp.c: New file.
16844         * string/test-memcmp.c: Add wmemcmp support.
16845
16846 2011-09-08  Roland McGrath  <roland@hack.frob.com>
16847
16848         [BZ #13153]
16849         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
16850         2011-07-19 change.
16851
16852         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
16853         garbage value in a __mach_port_mod_refs call in the cases of the
16854         task-self and thread-self ports.
16855
16856 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16857
16858         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
16859
16860 2011-09-08  Andreas Schwab  <schwab@redhat.com>
16861
16862         * elf/dl-load.c (lose): Check for non-null L.
16863
16864 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
16865
16866         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
16867
16868         * elf/dl-libc.c (dlerror_run): Pass back error code from
16869         dl_catch_error.
16870
16871         [BZ #13123]
16872         * elf/dl-load.c (lose): Free l_origin if it is valid.
16873
16874         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
16875         names.
16876         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
16877         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
16878         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
16879         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
16880         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
16881         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
16882
16883 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16884
16885         * sysdeps/powerpc/fpu/e_hypot.c: New file.
16886         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
16887         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
16888         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
16889         * sysdeps/powerpc/fpu/k_cosf.c: New file.
16890         * sysdeps/powerpc/fpu/k_sinf.c: New file.
16891         * sysdeps/powerpc/fpu/s_cosf.c: New file.
16892         * sysdeps/powerpc/fpu/s_sinf.c: New file.
16893         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
16894         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
16895
16896 2011-08-15  Alan Modra  <amodra@gmail.com>
16897
16898         [BZ #13092]
16899         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
16900         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
16901         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
16902         ppc_mcount to static-only-routines.
16903         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
16904         __mcount_internal.
16905         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
16906         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
16907
16908 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
16909
16910         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
16911         for finite and infinity parameters.
16912
16913 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
16914
16915         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
16916         and add nop instructions for throughput optimization.
16917         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
16918
16919 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
16920
16921         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
16922         aligned copy for power7 with vector-scalar instructions.
16923         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
16924
16925 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
16926
16927         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
16928         AVX check.
16929
16930 2011-09-07  Andreas Schwab  <schwab@redhat.com>
16931
16932         [BZ #13144]
16933         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
16934         last change.
16935
16936 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
16937
16938         * sysdeps/unix/sysv/linux/x86_64/init-first.c
16939         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
16940         syscall wrapper around clock_gettime in __vdso_clock_gettime.
16941         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
16942         clock_gettime.
16943
16944 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
16945
16946         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
16947         Forgot to demangle the pointer.
16948
16949         * sysdeps/i386/sysdep.h: Define atom_text_section.
16950         * sysdeps/x86_64/sysdep.h: Likewise.
16951         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
16952         section with atom_text_section.
16953         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
16954         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
16955         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
16956         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
16957         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
16958
16959         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
16960         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
16961         already be defined.  Change to take two parameters and don't assign
16962         result to variable.  Adjust all users.
16963         Define INTERNAL_GETTIME if not already defined.
16964         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
16965         call.
16966         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
16967         HAVE_CLOCK_GETTIME_VSYSCALL.
16968         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
16969
16970         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
16971         gettimeofday vsyscall, just use time.
16972
16973 2011-09-06  Andreas Schwab  <schwab@redhat.com>
16974
16975         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
16976         <errno.h>.
16977
16978 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
16979
16980         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
16981         syscall on x86-64.
16982         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
16983         syscall.
16984         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
16985         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
16986         syscall if possible.
16987
16988 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
16989
16990         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
16991         e_ident.  Don't pass to find_mapsXX.
16992         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
16993
16994 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16995
16996         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16997         strchr-sse2-no-bsf strrchr-sse2-no-bsf
16998         * sysdeps/x86_64/multiarch/strchr.S: Update.
16999         Check bit_slow_BSF bit.
17000         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
17001         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
17002         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
17003
17004 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
17005
17006         [BZ #13134]
17007         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
17008         before glibc 2.15.
17009         (tryshell): Define.
17010         (__spawni): Change last parameter to be flag.  Test
17011         SPAWN_XFLAGS_USE_PATH flag to use path or not.
17012         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
17013         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
17014         * posix/spawni.c: Likewise.
17015         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
17016         * posix/spawnp.c: Likewise.  Change normal version to use
17017         SPAWN_XFLAGS_USE_PATH.
17018         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
17019         SPAWN_XFLAGS_TRY_SHELL.
17020
17021         [BZ #13150]
17022         * posix/glob.h: Remove gcc 1.x support.
17023
17024         [BZ #13068]
17025         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
17026
17027 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
17028
17029         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
17030         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
17031         strrchr-sse2-bsf
17032         * sysdeps/i386/i686/multiarch/strchr.S: New file.
17033         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
17034         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
17035         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
17036         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
17037         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
17038
17039 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17040
17041         * sysdeps/x86_64/wcscmp.S: New file.
17042
17043         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
17044         wcscmp-c wcscmp-sse2
17045         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
17046         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
17047         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
17048         * wcsmbs/wcscmp.c: Allow renaming.
17049
17050 2011-09-05  David S. Miller  <davem@davemloft.net>
17051
17052         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
17053         stack slot, rather than the struct return pointer slot.
17054         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
17055         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
17056         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
17057         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
17058
17059 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
17060
17061         * po/ja.po: Update from translation team.
17062
17063         [BZ #13144]
17064         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
17065         kernel in 64-bit binaries.
17066
17067 2011-09-01  David S. Miller  <davem@davemloft.net>
17068
17069         * elf/elf.h (HWCAP_SPARC_*): Move to..
17070         * sysdeps/sparc/sysdep.h: this new file and add new values.
17071         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
17072         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
17073         _DL_HWCAP_COUNT to 24.
17074         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
17075         entries.
17076         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
17077         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
17078         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
17079         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
17080         instead of magic constants.
17081         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
17082
17083 2011-08-31  David S. Miller  <davem@davemloft.net>
17084
17085         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
17086         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
17087         Reimplement to do errno handling inline.
17088         (SYSCALL_ERROR_HANDLER): New macro.
17089         (__SYSCALL_STRING): Do not do errno handling in asm.
17090         (__CLONE_SYSCALL_STRING): Delete.
17091         (__INTERNAL_SYSCALL_STRING): Delete.
17092         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
17093         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
17094         (PSEUDO): Reimplement to do errno handling inline.
17095         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
17096         (SYSCALL_ERROR_HANDLER): New macro.
17097         (__SYSCALL_STRING): Do not do errno handling in asm.
17098         (__CLONE_SYSCALL_STRING): Delete.
17099         (__INTERNAL_SYSCALL_STRING): Delete.
17100         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
17101         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
17102         i386.
17103         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
17104         (inline_syscall*): Add 'err' argument.
17105         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
17106         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
17107         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
17108         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
17109
17110         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
17111         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
17112
17113 2011-08-30  Andreas Schwab  <schwab@redhat.com>
17114
17115         * elf/rtld.c (dl_main): Relocate objects in dependency order.
17116
17117 2011-08-29  Jiri Olsa <jolsa@redhat.com>
17118
17119         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
17120         directive.
17121
17122 2011-08-24  David S. Miller  <davem@davemloft.net>
17123
17124         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
17125
17126 2011-08-24  Andreas Schwab  <schwab@redhat.com>
17127
17128         * elf/Makefile: Add rules to build and run unload8 test.
17129         * elf/unload8.c: New file.
17130         * elf/unload8mod1.c: New file.
17131         * elf/unload8mod1x.c: New file.
17132         * elf/unload8mod2.c: New file.
17133         * elf/unload8mod3.c: New file.
17134
17135         * elf/dl-close.c (_dl_close_worker): Reset private search list if
17136         it wasn't used.
17137
17138 2011-08-23  David S. Miller  <davem@davemloft.net>
17139
17140         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
17141         subtract stack bias.
17142         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
17143         %sp not %fp in calculations.
17144         (_JMPBUF_UNWINDS_ADJ): Likewise.
17145
17146         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
17147         (aio_suspend): Call it to force an exception region around the
17148         AIO_MISC_WAIT() invocation.
17149
17150 2011-08-23  Andreas Schwab  <schwab@redhat.com>
17151
17152         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
17153         backslash.
17154
17155 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
17156
17157         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
17158         protection macro.
17159         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
17160         and <dl-machine.h>.
17161         (Elf64_FuncDesc): Remove.
17162
17163 2011-08-22  David S. Miller  <davem@davemloft.net>
17164
17165         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
17166         sigaltstack check, add missing cfi directives.
17167         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
17168         missing cfi directives, and sigaltstack handling.
17169
17170 2011-08-16  Andreas Schwab  <schwab@redhat.com>
17171
17172         [BZ #11724]
17173         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
17174         object is seen twice.
17175         * elf/dl-fini.c (_dl_sort_fini): Likewise.
17176
17177         * elf/Makefile (distribute): Add tst-initorder2.c.
17178         (tests): Add tst-initorder2.
17179         (modules-names): Add tst-initorder2a tst-initorder2b
17180         tst-initorder2c tst-initorder2d.  Add rules to build them.
17181         ($(objpfx)tst-initorder2.out): New rule.
17182         * elf/tst-initorder2.c: New file.
17183         * elf/tst-initorder2.exp: New file.
17184
17185 2011-08-22  Andreas Schwab  <schwab@redhat.com>
17186
17187         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
17188
17189         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
17190         dependencies back to end of function.
17191
17192         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
17193         $(elfobjdir)/ld.so.
17194
17195 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
17196
17197         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
17198         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
17199         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
17200         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
17201         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
17202         of __vdso_gettimeofday.
17203         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
17204         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
17205         attribute_hidden.
17206         (_libc_vdso_platform_setup): Remove initialization of
17207         __vdso_gettimeofday and __vdso_time.
17208
17209 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
17210
17211         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
17212         and fgetc_unlocked.
17213         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
17214         getc_unlocked.
17215
17216         * elf/dl-open.c (add_to_global): Report additions to the global scope
17217         for LD_DEBUG=scopes.
17218         (dl_open_worker): Also print scope of newly loaded dependencies.
17219         (_dl_show_scope): Indicate if there is no scope.
17220
17221         [BZ #13114]
17222         * stdio-common/Makefile (tests): Add bug24.
17223         * stdio-common/bug24.c: New file.
17224
17225 2011-08-19  Andreas Jaeger  <aj@suse.de>
17226
17227         [BZ #13114]
17228         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
17229         non-existant file when using close-on-exec mode.
17230
17231 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
17232
17233         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
17234         the very first instruction.
17235
17236         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
17237         the CFI state in the end.
17238         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
17239         inclusion of dl-trampoline.h.
17240         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
17241
17242 2011-08-19  Andreas Schwab  <schwab@redhat.com>
17243
17244         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
17245         expectations for long double.
17246
17247         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
17248         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
17249
17250 2011-08-14  David S. Miller  <davem@davemloft.net>
17251
17252         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
17253         artificual limit depends upon the system page size.
17254
17255 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
17256
17257         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
17258         * resolv/Makefile: Define CFLAGS-libresolv.
17259
17260 2011-08-17  Andreas Schwab  <schwab@redhat.com>
17261
17262         * nss/makedb.c (compute_tables): Make variables used in nested
17263         function static.
17264
17265 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
17266
17267         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
17268         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
17269         if buffer was too small.
17270
17271         * elf/pldd.c (main): Attach to all threads in the process.
17272         Rewrite /proc handling to use *at functions.
17273
17274 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
17275
17276         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
17277         specifies first scope to show.
17278         (dl_open_worker): Update callers.  Move printing scope of new
17279         object to before the relocation.
17280         * elf/rtld.c (dl_main): Update _dl_show_scope call.
17281         * sysdeps/generic/ldsodefs.h: Update declaration.
17282
17283         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
17284         string for the scope number.
17285
17286 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
17287
17288         * nscd/servicescache.c (cache_addserv): Make sure written is always
17289         initialized.
17290
17291 2011-08-14  Roland McGrath  <roland@hack.frob.com>
17292
17293         * sysdeps/i386/i486/bits/atomic.h
17294         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
17295         statement expression, so as to suppress "set but not used" warning.
17296         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
17297
17298         * string/strncat.c (STRNCAT): Use prototype definition.
17299
17300         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
17301         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
17302         -Iprograms here.
17303         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
17304         (localedef-modules): Add localedef.
17305         (locale-modules): Add locale.
17306
17307         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
17308         * elf/rtld.c (dl_main): Invert order of assignment in last change,
17309         to avoid a warning.
17310
17311 2011-08-14  David S. Miller  <davem@davemloft.net>
17312
17313         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
17314         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
17315
17316 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
17317
17318         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
17319         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
17320         * elf/rtld.c (dl_main): Set l_name of vDSO.
17321         Call _dl_show_scope when DL_DEBUG_SCOPES.
17322         (process_dl_debug): Recognize scopes flag and also set it for all.
17323         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
17324         Declare _dl_show_scope.
17325
17326         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
17327         (do_dlopen): Pass caller_dlopen to dl_open.
17328         (__libc_dlopen_mode): Initialize caller_dlopen.
17329
17330         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
17331         of libc.  Make tolower call locale-independent.  Optimize a bit by
17332         using isdigit instead of isalnum.
17333         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
17334
17335 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
17336
17337         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
17338         was a dependency or dynamically loaded.
17339
17340 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
17341
17342         * intl/l10nflist.c: Allow architecture-specific pop function.
17343         * sysdeps/x86_64/l10nflist.c: New file.
17344
17345         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
17346         classification.
17347
17348 2011-08-10  Andreas Schwab  <schwab@redhat.com>
17349
17350         * include/dirent.h: Add libc_hidden_proto for scandirat and
17351         scandirat64.  Don't declare __scandirat64.
17352         * dirent/scandirat.c: Add libc_hidden_def.
17353         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
17354         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
17355
17356 2011-08-10  David S. Miller  <davem@davemloft.net>
17357
17358         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
17359         enum.
17360         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
17361         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
17362         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
17363
17364 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
17365
17366         * Versions.def [libc]: Add GLIBC_2.15.
17367         * dirent/Makefile (routines): Add scandirat and scandirat64.
17368         * dirent/Versions [libc]: Export scandirat and scandirat64 for
17369         GLIBC_2.15.
17370         * dirent/dirent.h: Declare scandirat and scandirat64.
17371         * dirent/scandirat.c: New file.
17372         * dirent/scandirat64.c: New file.
17373         * sysdeps/wordsize-64/scandirat.c: New file.
17374         * sysdeps/wordsize-64/scandirat64.c: New file.
17375         * dirent/opendir.c: Define opendirat.
17376         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
17377         using scandirat.
17378         * dirent/scandir64.c: Adjust for scandir.c change.
17379         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
17380         __scandirat64, and __scandir_cancel_handler.
17381         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
17382         additional parameter and use openat instead of open (outside of ld.so).
17383         Add new __opendir as wrapper around __opendirat.
17384         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
17385         here without requiring old scandirat implementation.
17386
17387 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
17388
17389         * dirent/scandir.c (cancel_handler): Renamed to
17390         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
17391         defined.  Adjust users.
17392         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
17393         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
17394
17395 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
17396
17397         * string/test-string.h (IMPL): Use __STRING to expand name and then
17398         stringify it.
17399
17400         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
17401         of cleanups.
17402
17403 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17404
17405         * string/Makefile: Update.
17406         (strop-tests): Append strncat.
17407         * string/test-wcscmp.c: New file.
17408         New comprehensive test for wcscmp.
17409         * string/test-strcmp.c: Update.
17410         (WIDE): New define.
17411
17412 2011-07-22  Andreas Schwab  <schwab@redhat.com>
17413
17414         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
17415         line.
17416
17417 2011-07-26  Andreas Schwab  <schwab@redhat.com>
17418
17419         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
17420         encoding to ACE if AI_IDN.
17421
17422 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
17423
17424         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
17425         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
17426
17427 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
17428
17429         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
17430         Fix overflow bug in strncat.
17431         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
17432
17433         * string/test-strncat.c: Update.
17434         Add new tests for checking overflow bugs.
17435
17436 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
17437
17438         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
17439         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
17440         * sysdeps/i386/i686/multiarch/strcat.S: New file.
17441         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
17442         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
17443         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
17444         * sysdeps/i386/i686/multiarch/strncat.S: New file.
17445         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
17446         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
17447
17448         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
17449         (USE_AS_STRCAT): Define.
17450         Add strcat and strncat support.
17451         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
17452
17453 2011-07-25  Andreas Schwab  <schwab@redhat.com>
17454
17455         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
17456         __n bigger than INT_MAX+1.
17457         (__strncmp_g): Likewise.
17458
17459 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
17460
17461         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
17462         * libio/stido.h: Likewise.
17463
17464         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
17465         (AF_NFC): Define.
17466         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
17467         (AF_NFC): Define.
17468
17469         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
17470         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
17471         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
17472         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
17473         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
17474
17475         [BZ #13021]
17476         * scripts/test-installation.pl: Don't expect libnss_test1 to be
17477         installed.
17478
17479         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
17480         typo.
17481         (_dl_x86_64_save_sse): Likewise.
17482
17483 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
17484
17485         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
17486         OSXSAVE.
17487         (_dl_x86_64_save_sse): Likewise.
17488
17489         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
17490
17491         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
17492
17493 2011-07-21  Andreas Schwab  <schwab@redhat.com>
17494
17495         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
17496         change.
17497         (_dl_x86_64_save_sse): Use correct AVX check.
17498
17499 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17500
17501         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
17502         bug in strncpy/strncat.
17503         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
17504
17505 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
17506
17507         * string/tester.c (test_strcat): Add tests for different alignments
17508         of source and destination.
17509         (test_strncat): Likewise.
17510
17511 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
17512
17513         [BZ #12852]
17514         * posix/glob.c (glob): Check passed in values before using them in
17515         expressions to avoid some overflows.
17516         (glob_in_dir): Likewise.
17517
17518         [BZ #13007]
17519         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
17520         check for AVX enablement so that we don't crash with old kernels and
17521         new hardware.
17522         * elf/tst-audit4.c: Add same checks here.
17523         * elf/tst-audit6.c: Likewise.
17524
17525         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
17526
17527 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
17528
17529         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
17530
17531 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
17532
17533         * po/cs.po: Update from translation team.
17534         * po/bg.po: Likewise.
17535
17536 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
17537
17538         * misc/sys/cdefs.h: Add support for const attribute.
17539         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
17540         to gnu_dev_{major,minor,makedev} functions.
17541
17542 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
17543
17544         * intl/dcigettext.c (get_output_charset): Add missing bracket.
17545
17546 2011-07-20  Andreas Schwab  <schwab@redhat.com>
17547
17548         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
17549         strlen results.
17550
17551 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17552
17553         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
17554         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
17555         register in order to avoid conflicts with the soft frame pointer
17556         being held in r11 when necessary.
17557         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
17558         (INTERNAL_VSYSCALL_NCS): Likewise.
17559
17560 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
17561
17562         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
17563         * elf/dl-fini.c (_dl_fini): Adjust caller.
17564         * elf/dl-close.c (_dl_close_worker): Likewise.
17565         * sysdeps/generic/ldsodefs.h: Adjust declaration.
17566
17567 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
17568
17569         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
17570         "aux_cache->nlibs < 0".
17571
17572         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
17573         in the reload-count case.
17574
17575 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
17576
17577         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
17578         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
17579         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
17580         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
17581         * sysdeps/x86_64/multiarch/strcat.S: New file.
17582         * sysdeps/x86_64/multiarch/strncat.S: New file.
17583         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
17584         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
17585         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
17586         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
17587         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
17588         (USE_AS_STRCAT): Define.
17589         Add strcat and strncat support.
17590         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
17591         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
17592         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
17593         * string/strncat.c: Update.
17594         (USE_AS_STRNCAT): Define.
17595         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17596         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
17597         and i7.
17598         * sysdeps/x86_64/multiarch/init-arch.h
17599         (bit_Prefer_PMINUB_for_stringop): New.
17600         (index_Prefer_PMINUB_for_stringop): Likewise.
17601         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
17602         bit_Prefer_PMINUB_for_stringop.
17603
17604 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
17605
17606         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
17607         buffer64.
17608         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
17609         of casting of buffer.
17610         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
17611         buffer32 and buffer64.
17612         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
17613         writes instead of casting of buffer.
17614         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
17615         buffer32.
17616         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
17617         casting of buffer.
17618
17619 2011-07-19  Andreas Schwab  <schwab@redhat.com>
17620
17621         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
17622
17623 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
17624
17625         * nscd/nscd.c (termination_handler): Don't do anything for a database
17626         if it has not yet been initialized.
17627
17628 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
17629
17630         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
17631
17632 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
17633
17634         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
17635
17636 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
17637
17638         * po/nl.po: Update from translation team.
17639         * po/sv.po: Likewise.
17640
17641 2011-07-16  Roland McGrath  <roland@hack.frob.com>
17642
17643         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
17644         now disallowed by GCC.
17645
17646         * configure.in (use-default-link): Default to yes if a test -shared
17647         link meets our qualifications.
17648         * configure: Regenerated.
17649
17650         * config.make.in (output-format): New variable.
17651         * configure.in: Check for ld --print-output-format support.
17652         * configure: Regenerated.
17653         * Makerules ($(common-objpfx)format.lds)
17654         [$(output-format) != unknown]: Just use $(output-format),
17655         instead of the linker-script munging.
17656
17657 2011-07-14  Roland McGrath  <roland@hack.frob.com>
17658
17659         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
17660         of $(common-objpfx)shlib.lds.
17661         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
17662
17663         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
17664         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
17665
17666         * configure.in (-z relro check): Adjust test code to add a large
17667         writable data section after it.
17668         * configure: Regenerated.
17669
17670 2011-07-11  Roland McGrath  <roland@hack.frob.com>
17671
17672         * configure.in (-z relro check): Fix test code to make the variable
17673         truly const.
17674         * configure: Regenerated.
17675
17676 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
17677
17678         * nscd/nscd.h (struct traced_file): Define.
17679         (struct database_dyn): Remove inotify_descr, reset_res, and filename
17680         elements.  Add traced_files.
17681         (inotify_fd): Declare.
17682         (register_traced_file): Declare.
17683         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
17684         (inotify_fd): Export.
17685         (resolv_conf_descr): Remove.
17686         (nscd_init): Move inotify descriptor creation to main.
17687         Don't register files for notification here.
17688         (register_traced_file): New function.
17689         (invalidate_cache): Don't use reset_res to determine whether to call
17690         res_init, go through the list of registered files.
17691         (main_loop_poll): The inotify descriptors are now stored in the
17692         structures for the traced files.
17693         (main_loop_epoll): Likewise
17694         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
17695         to __nss_disable_nscd.
17696         * nscd/cache.c (prune_cache): There is no single inotify descriptor
17697         for a database anymore.  Check the records for all the registered
17698         files instead.
17699         * nss/Makefile (libnss_files-routines): Add files-init.
17700         (libnss_db-routines): Add db-init.
17701         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
17702         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
17703         * nss/nss_db/db-init.c: New file.
17704         * nss/nss_files/files-init.c: New file.
17705         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
17706         __nss_lookup_function.
17707         (__nss_lookup_function): Call nss_load_library.
17708         (nss_load_all_libraries): New function.
17709         (__nss_disable_nscd): Take parameter with callback function for files
17710         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
17711         used for the cached services.
17712         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
17713         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
17714         options for features to all the files in nscd.
17715
17716         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
17717
17718 2011-07-10  Roland McGrath  <roland@hack.frob.com>
17719
17720         * csu/elf-init.c (__libc_csu_init): Comment typo.
17721
17722 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
17723
17724         * po/pl.po: Update from translation team.
17725         * po/ja.po: Likewise.
17726         * po/ru.po: Likewise.
17727         * po/ko.po: Likewise.
17728         * po/fr.po: Likewise.
17729
17730 2011-07-09  Roland McGrath  <roland@hack.frob.com>
17731
17732         * configure.in (.ctors/.dtors header and trailer check):
17733         Use an empirical test on a built program.
17734         * configure: Regenerated.
17735
17736         * configure.in (-z relro check): Use an empirical test on a built DSO.
17737         Detect, but do not require, on ia64.
17738         * configure: Regenerated.
17739
17740         * configure.in (READELF): Find it with AC_CHECK_TOOL.
17741         Update tests that use readelf to use $READELF instead.
17742         * configure: Regenerated.
17743
17744 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
17745
17746         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
17747         if the result is not used.
17748
17749 2011-07-05  Andreas Jaeger  <aj@suse.de>
17750
17751         [BZ#9696]
17752         * stdlib/tst-strtod.c: Add testcase.
17753
17754 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
17755
17756         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
17757         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
17758         The latter has a higher limit.  Take additional parameter to pass to
17759         the new function.
17760         (__pathconf): Pass file to __statfs_link_max.
17761         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
17762         __statfs_link_max.
17763         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
17764         __statfs_link_max.
17765
17766         [BZ #12868]
17767         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
17768         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
17769         Handle Lustre.
17770         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
17771         (__statfs_filesize_max): Likewise.
17772         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
17773
17774 2011-07-05  Andreas Jaeger  <aj@suse.de>
17775
17776         * resolv/res_comp.c (dn_skipname): Remove unused variable.
17777
17778 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
17779
17780         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
17781         `status' variable.
17782         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
17783         Likewise.
17784
17785 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
17786
17787         * Makefile (strop-tests): Add strncat.
17788         * string/test-strncat.c: New file.
17789
17790 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
17791
17792         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
17793
17794 2011-06-21  Andreas Jaeger  <aj@suse.de>
17795
17796         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
17797         Copy rule from iconvdata/Makefile.
17798
17799 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
17800
17801         [BZ #12922]
17802         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
17803         but no long options are defined, just return 'W'.
17804
17805 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
17806
17807         [BZ #9696]
17808         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
17809
17810 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
17811
17812         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
17813         netgroups to read.
17814         (innetgr): Likewise.
17815
17816 2011-07-05  Roland McGrath  <roland@hack.frob.com>
17817
17818         * config.make.in (install_root): Default to $(DESTDIR).
17819
17820 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
17821
17822         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
17823
17824 2011-07-02  Roland McGrath  <roland@hack.frob.com>
17825
17826         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
17827
17828         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
17829         containing directory rather than embedding absolute directory names.
17830
17831         * scripts/check-local-headers.sh: Rewritten using awk.
17832         Match by word, not by line.  Print error messages for matches.
17833         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
17834
17835         * Makerules [shlib-lds-flags empty]:
17836         ($(common-objpfx)libc_pic.opts): New target.
17837         ($(common-objpfx)libc_pic.os.clean): New target.
17838         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
17839
17840         * config.make.in (OBJCOPY): New variable.
17841         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
17842         * configure: Regenerated.
17843
17844         * config.make.in (use-default-link): New variable.
17845         * configure.in (use_default_link): Grok --with-default-link to set it.
17846         * configure: Regenerated.
17847         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
17848         (shlib-lds, shlib-lds-flags): Define to empty.
17849
17850         * Makerules (shlib-lds): New variable.
17851         (shlib-lds-flags): New variable.
17852         (build-shlib, build-moduile, build-module-asneeded): Use it.
17853         ($(common-objpfx)libc.so): Use $(shlib-lds).
17854         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
17855         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
17856
17857         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
17858         DT_FLAGS/DT_FLAGS_1 with zero flags.
17859
17860         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
17861         linker script munging.
17862
17863 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
17864
17865         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
17866         as 128-bit value.
17867         * crypt/sha512.c (sha512_process_block): Perform total addition using
17868         128-bit if possible.
17869         (__sha512_finish_ctx): Likewise.
17870         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
17871         as 64-bit value.
17872         * crypt/sha256.c (SWAP64): Define.
17873         (sha256_process_block): Perform total addition using 64-bit if
17874         possible.
17875         (__sha256_finish_ctx): Likewise.
17876
17877 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
17878
17879         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
17880         * nscd/initgrcache.c (addinitgroupsX): Likewise.
17881         * nscd/hstcache.c (cache_addhst): Likewise.
17882         * nscd/grpcache.c (cache_addgr): Likewise.
17883         * nscd/aicache.c (addhstaiX): Likewise
17884         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
17885
17886 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
17887
17888         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
17889         * nscd/initgrcache.c (addinitgroupsX): Likewise.
17890         * nscd/hstcache.c (cache_addhst): Likewise.
17891         * nscd/grpcache.c (cache_addgr): Likewise.
17892         * nscd/aicache.c (addhstaiX): Likewise
17893
17894 2011-07-01  Andreas Schwab  <schwab@redhat.com>
17895
17896         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
17897         domain only when needed.
17898
17899 2011-06-30  Andreas Schwab  <schwab@redhat.com>
17900
17901         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
17902         is always restored.
17903
17904 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
17905
17906         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
17907         are re-adding the entry.
17908         * nscd/servicescache.c (cache_addserv): Likewise.
17909
17910 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
17911
17912         * sysdeps/generic/dl-irel.h: fix protection against multiple
17913         inclusions.
17914         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
17915
17916 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
17917
17918         [BZ #12935]
17919         * malloc/memusage.sh: Fix quoting in message.
17920         * debug/xtrace.sh: Likewise.
17921
17922         * configure.in: Remove support for --experimental-malloc option, make
17923         it the default.
17924         * config.make.in: Likewise.
17925         * malloc/Makefile: Likewise.
17926
17927 2011-06-27  Andreas Schwab  <schwab@redhat.com>
17928
17929         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
17930         two-byte characters.
17931
17932 2011-06-27  Roland McGrath  <roland@hack.frob.com>
17933
17934         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
17935         AC_CACHE_CHECK invocation.
17936         * configure: Regenerated.
17937
17938         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
17939
17940 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
17941
17942         [BZ #12350]
17943         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
17944         bit from old_res_options.
17945
17946         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
17947
17948         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
17949         value type for setfct.
17950
17951 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
17952
17953         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
17954         __gettimeofday instead of gettimeofday.
17955
17956 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
17957
17958         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
17959
17960 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
17961
17962         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
17963
17964         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
17965         info.
17966
17967 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
17968
17969         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
17970         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
17971         strcpy-sse2-unaligned strncpy-sse2-unaligned
17972         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
17973         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
17974         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
17975         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
17976         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
17977         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
17978         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
17979         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
17980         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
17981         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
17982         (STRCPY): Support SSE2 and SSSE3 versions.
17983
17984 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
17985
17986         [BZ #12874]
17987         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
17988         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
17989         kernels which artificially limit size of requests.
17990
17991 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
17992
17993         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
17994         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
17995         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
17996         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
17997         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
17998         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
17999         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
18000         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
18001         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
18002         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
18003         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
18004         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
18005         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
18006         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
18007         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
18008         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18009         Enable unaligned load optimization for Intel Core i3, i5 and i7
18010         processors.
18011         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
18012         Define.
18013         (index_Fast_Unaligned_Load): Define.
18014         (HAS_FAST_UNALIGNED_LOAD): Define.
18015
18016 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
18017
18018         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
18019
18020 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
18021
18022         [BZ #12907]
18023         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
18024         until it is clear that the information is realy needed.
18025         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
18026
18027 2011-06-22  Andreas Schwab  <schwab@redhat.com>
18028
18029         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
18030
18031 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
18032
18033         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
18034         /sys/devices/system/cpu/online if it is usable.
18035
18036         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
18037         reading the information from the /proc filesystem to once a second.
18038
18039 2011-06-21  Andreas Jaeger  <aj@suse.de>
18040
18041         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
18042         NULL after inclusion of kernel headers.
18043
18044 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
18045
18046         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
18047         calls to internal_setent.
18048
18049         [BZ #12885]
18050         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
18051         addresses using gethostbyname4_r ignore IPv4 addresses.
18052
18053         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
18054         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
18055
18056         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
18057
18058 2011-06-20  David S. Miller  <davem@davemloft.net>
18059
18060         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
18061         inclusions.
18062         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
18063
18064         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
18065         (elf_irel): Use it.
18066         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
18067         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
18068         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
18069         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
18070         * sysdeps/x86_64/dl-irel.h: Likewise.
18071
18072         * elf/dl-runtime.c: Use elf_ifunc_invoke.
18073         * elf/dl-sym.c: Likewise.
18074
18075 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
18076
18077         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
18078         need to dereference resplen2.
18079
18080 2011-06-14  Andreas Schwab  <schwab@redhat.com>
18081
18082         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
18083
18084 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
18085
18086         * Makeconfig: Define vardbdir and inst_vardbdir.
18087         * nss/Makefile: Add rules to install db-Makefile.
18088
18089         * nss/nss_db/db-XXX.c: Cleanup.
18090
18091         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
18092         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
18093         GLIBC_PRIVATE.
18094         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
18095         * nss/makedb.c: Implement -g option to specify that value strings
18096         are generated and should not be added to table iterated over for
18097         get*ent calls.
18098         * nss/nss_db/db-initgroups.c: New file.
18099
18100         * nss/getent.c: Add support for initgroups lookups through getgrouplist
18101         interface.
18102
18103         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
18104         (internal_getgrouplist): Adjust to name change.
18105         Update use_initgroups_entry if this is not the first call.
18106         * nss/databases.def: Add initgroups entry.
18107
18108         * nss/makedb.c (compute_tables): Check result of multiple hash table
18109         sizes to minimize maximum chain length.
18110
18111 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
18112
18113         * Versions.def: Add entry for libnss_db.
18114         * shlib-versions: Likewise.
18115         * nss/Makefile: Add rules to build libnss_db.
18116         * nss/Versions: Add libnss_db information.  Organize libnss_files
18117         entries better.
18118         * nss/db-Makefile: Add gshadow support.  Change rules for the new
18119         makedb progra.  Some minor improvements to generate smaller files.
18120         * nss/nss_db/nss_db.h: Move NSS database header data structures to
18121         here from...
18122         * nss/makedb.c: ...here.
18123         Improve database format to be smaller and require less memory at
18124         runtime.
18125         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
18126         db anymore.
18127         * nss/nss_db/db-netgrp.c: Likewise.
18128         * nss/nss_db/db-open.c: Likewise.
18129         * nss/nss_files/flies-XXX.x: Adjust comments.
18130         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
18131         * nss/nss_files/files-grp.c: Likewise.
18132         * nss/nss_files/files-hosts.c: Likewise.
18133         * nss/nss_files/files-network.c: Likewise.
18134         * nss/nss_files/files-proto.c: Likewise.
18135         * nss/nss_files/files-pwd.c: Likewise.
18136         * nss/nss_files/files-rpc.c: Likewise.
18137         * nss/nss_files/files-service.c: Likewise.
18138         * nss/nss_files/files-sgrp.c: Likewise.
18139         * nss/nss_files/files-spwd.c: Likewise.
18140         * nss/nss_db/db-alias.c: Removed.
18141         * nss/nss_db/dummy-db.h: Removed.
18142
18143 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
18144
18145         * nss/makedb.c: Rewritten to not use database library.
18146         * nss/Makefile: Update to build new makedb program.
18147
18148 2011-06-14  Andreas Jaeger  <aj@suse.de>
18149
18150         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
18151         memset declaration.
18152
18153 2011-06-10  Andreas Schwab  <schwab@redhat.com>
18154
18155         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
18156         tmpbuf.
18157
18158 2011-06-10  Roland McGrath  <roland@hack.frob.com>
18159
18160         * Makerules (shlib.lds): Fail if the linker script comes out empty.
18161         * elf/Makefile ($(objpfx)ld.so): Likewise.
18162
18163         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
18164         Don't list ld.so twice in dependencies.
18165
18166         * posix/bug-regex31.c: Include <stdlib.h>.
18167
18168         * nscd/hstcache.c (cache_addhst): Remove unused variable.
18169
18170         * nis/nss_compat/compat-spwd.c
18171         (getspent_next_nss_netgr): Remove unused variable.
18172         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
18173
18174         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
18175         nonmembers" output to use the right array.
18176
18177         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
18178
18179         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
18180
18181         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
18182         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
18183         * catgets/gencat.c (read_input_file): Likewise.
18184         * locale/programs/locarchive.c (enlarge_archive): Likewise.
18185
18186         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
18187         variable definition inside #if's controlling its use.
18188
18189         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
18190
18191         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
18192
18193         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
18194
18195         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
18196         unreachable code.
18197
18198         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
18199
18200         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
18201         * configure: Regenerated.
18202
18203         * Makerules: Revert last change.
18204         * elf/Makefile: Likewise.
18205
18206 2011-06-09  Roland McGrath  <roland@hack.frob.com>
18207
18208         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
18209         * elf/Makefile ($(objpfx)librtld.os): Likewise.
18210         (reloc-link): Likewise.
18211
18212 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
18213
18214         * elf/Makefile: Add rules to build pldd.
18215         * elf/pldd.c: New file.
18216         * elf/pldd-xx.c: New file.
18217
18218 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
18219
18220         * version.h: Update for 2.15 development version.
18221
18222 2011-06-07  David S. Miller  <davem@davemloft.net>
18223
18224         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
18225         ifuncs.
18226         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
18227         elf_machine_lazy_rel): Likewise.
18228         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
18229         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
18230         elf_machine_lazy_rel): Likewise.
18231         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
18232         dl_hwcap via passed in argument.
18233         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
18234         Likewise.
18235
18236 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18237
18238         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
18239
18240 2011-06-06  Roland McGrath  <roland@hack.frob.com>
18241
18242         [BZ #12849]
18243         * manual/fdl-1.1.texi: New file, verbatim from:
18244         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
18245         * manual/lgpl-2.1.texi: New file, verbatim from:
18246         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
18247         * manual/Makefile (licenses): New variable, list those new file names.
18248         (texis): Use it.
18249         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
18250
18251         * manual/fdl.texi: File removed.
18252         * manual/lesser.texi: File removed.
18253         * manual/libc.texinfo (Copying, Documentation License):
18254         Use new @include file names, put @appendix directive before @include.
18255
18256 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
18257
18258         [BZ #12841]
18259         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
18260         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
18261         (mq_open): Add __NTH.
18262
18263 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
18264
18265         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18266         Assume Intel Core i3/i5/i7 processor if AVX is available.
18267
18268 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
18269
18270         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
18271         typo.
18272
18273 2011-05-31  Andreas Schwab  <schwab@redhat.com>
18274
18275         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
18276         memory.  Use alloca_account.  Fix memory leak when retrying.
18277
18278 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
18279
18280         * version.h (RELEASE): Bump for 2.14 release.
18281         * include/features.h (__GLIBC_MINOR__): Bump to 14.
18282
18283         * config.make.in (RANLIB): Remove entry.
18284
18285 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
18286
18287         * po/Makefile (po-sed-cmd): Add ksh to extensions.
18288         (libc.pot): Work around missing support for .ksh extension in xgettext.
18289
18290         [BZ #12684]
18291         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
18292         if both request failed.
18293         (send_dg): In case of server errors clear resplen or *resplen2.
18294
18295         [BZ #12454]
18296         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
18297         when there are multiple maps.
18298         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
18299         (_dl_fini): Remove test here.
18300
18301         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
18302
18303 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
18304
18305         [BZ #12350]
18306         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
18307         bit from old_res_options.
18308         (gaih_inet): Likewise.
18309
18310         [BZ #11099]
18311         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
18312         as signed.
18313
18314         * resolv/res_init.c (res_setoptions): Make the code more compact.
18315
18316         [BZ #11558]
18317         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
18318         set RES_USEVC.
18319
18320         [BZ #11634]
18321         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
18322
18323         * malloc/malloc.h: Mark malloc hook variables as deprecated.
18324
18325         [BZ #11781]
18326         * malloc/malloc.h: Declare malloc hook variables as volatile.
18327
18328         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
18329         in last patch.
18330
18331         [BZ #11799]
18332         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
18333         raise in the comment.
18334         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
18335         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
18336         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
18337
18338 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
18339
18340         [BZ #12811]
18341         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
18342         grow the buffers more if it already has to be sufficient.
18343         (build_wcs_upper_buffer): Likewise.
18344         * posix/regexec.c (check_matching): Likewise.
18345         (clean_state_log_if_needed): Likewise.
18346         (extend_buffers): Don't enlarge buffers beyond size of the input
18347         buffer.
18348         Patches mostly by Emil Wojak <emil@wojak.eu>.
18349         * posix/bug-regex32.c: New file.
18350         * posix/Makefile (tests): Add bug-regex32.
18351
18352         * locale/findlocale.c (_nl_find_locale): Return right away if
18353         _nl_explode_name failed.
18354         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
18355
18356         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
18357
18358         * debug/xtrace.sh: Unify messages.
18359         * malloc/memusage.sh: Likewise.
18360
18361         [BZ #12813]
18362         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
18363         time symbol from vDSO.  Substitute with vsyscall if not available.
18364         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
18365         __vdso_time.
18366
18367         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
18368         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
18369         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
18370         Add sendmmsg and internal_sendmmsg.
18371         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
18372         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
18373         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
18374
18375         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
18376         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
18377         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
18378
18379 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
18380
18381         [BZ #12813]
18382         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
18383         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
18384         available.
18385         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
18386         __vdso_getcpu.
18387
18388         [BZ #12814]
18389         * iconvdata/Makefile (tests): Add bug-iconv9.
18390         * iconvdata/bug-iconv9.c: New file.
18391
18392 2011-05-27  Andreas Schwab  <schwab@redhat.com>
18393
18394         [BZ #12814]
18395         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
18396
18397 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
18398
18399         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
18400         (struct user_regs_struct): Change intcs field back to cs.
18401
18402 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
18403
18404         * po/ja.po: Update from translation team.
18405
18406 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
18407
18408         [BZ #12795]
18409         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
18410         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
18411
18412 2011-05-20  Andreas Schwab  <schwab@redhat.com>
18413
18414         * stdlib/longlong.h: Update from GCC.
18415
18416 2011-05-23  Andreas Schwab  <schwab@redhat.com>
18417
18418         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
18419         parameter name.
18420         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
18421         Add parameter name.
18422         (__sysconf): Pass it down.
18423
18424 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
18425
18426         [BZ #12671]
18427         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
18428         some situations.
18429         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
18430         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
18431         add in in __libc_use_alloca calls.  Adjust callers.
18432         (glob): Use malloc in some situations.
18433
18434         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
18435         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
18436         pltexit.
18437
18438 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
18439
18440         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
18441         and CLOCK_BOOTTIME_ALARM.
18442
18443         [BZ #12782]
18444         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
18445         is returned.
18446
18447         * string/_strerror.c (__strerror_r): Print negative errors as signed
18448         numbers.
18449
18450         [BZ #12777]
18451         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
18452         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
18453         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
18454
18455         * configure.in: Fix typo in redirection and correct removal of test
18456         files in two cases.
18457
18458         [BZ #12788]
18459         * locale/setlocale.c (new_composite_name): Fix test to check for
18460         identical name of all categories.
18461
18462         [BZ #12792]
18463         * libio/filedoalloc.c (local_isatty): New function.
18464         (_IO_file_doallocate): Use local_isatty.
18465         * stdio-common/perror.c (perror): In case a new stream is used
18466         forward the stream error.
18467         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
18468         error flag.
18469
18470 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
18471
18472         [BZ #11869]
18473         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
18474         alloca.
18475         * include/alloca.h (extend_alloca_account): Define.
18476
18477         [BZ #11857]
18478         * posix/regex.h: Fix comments with documentation of user-accessible
18479         fields after compilation and describe correct free'ing of pattern
18480         after re_compile_pattern.
18481         Patch by Reuben Thomas <rrt@sc3d.org>.
18482
18483 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
18484
18485         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
18486         and -mno-altivec to prevent the compiler from using Altivec and/or
18487         VSX instructions when the corresponding registers are not available.
18488
18489 2011-05-19  Andreas Schwab  <schwab@redhat.com>
18490
18491         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
18492
18493 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
18494
18495         * libio/freopen.c (freopen): Use __dup2, not dup2.
18496         * libio/freopen64.c (freopen64): Likewise.
18497
18498 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
18499
18500         [BZ #12775]
18501         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
18502         * math/Makefile (tests): Add test-powl.
18503         (CFLAGS-test-powl.c): Define.
18504         * math/test-powl.c: New file.
18505
18506 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
18507
18508         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
18509
18510 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
18511
18512         [BZ #11837]
18513         * iconvdata/gb18030.c: Update to GB18020-2005.
18514
18515 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
18516
18517         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
18518         RE_SYNTAX_POSIX_AWK): Update to match recent development.
18519         Patch by Aharon Robbins <arnold@skeeve.com>.
18520
18521         [BZ #11892]
18522         * stdlib/putenv.c (putenv): Don't always create copy of the variable
18523         on the stack.
18524
18525         [BZ #11895]
18526         * misc/pselect.c (__pselect): Handle timeout value errors hidden
18527         through underflows.
18528
18529         [BZ #12766]
18530         * misc/error.c (error_at_line): Ensure file_name and old_file_name
18531         point to strings before performing equality test for error_one_per_line
18532         mode.
18533
18534         [BZ #11697]
18535         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
18536
18537         [BZ #11820]
18538         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
18539         (struct user_fpregs_struct): Avoid __uint*_t types.
18540
18541         [BZ #6420]
18542         * malloc/mtrace.c (tr_where): Add additional parameter to point to
18543         symbol info.  Use it instead of calling _dl_addr locally.
18544         (lock_and_info): New function.
18545         (tr_freehook): Call lock_and_info and pass symbol info as additional
18546         parameter to tr_where.
18547         (tr_mallochook): Likewise.
18548         (tr_reallochook): Likewise.
18549         (tr_memalignhook): Likewise.
18550
18551         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
18552         used and couldn't be at all thread-safe.
18553
18554 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
18555
18556         * libio/freopen.c (freopen): Don't close old file descriptor
18557         before the new one is opened.  Instead dup the new file descriptor
18558         to the old one after the new stream is created.
18559         * libio/freopen64.c (freopen64): Likewise.
18560         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
18561         * libio/fileops.c (_IO_new_file_close_it): Handle new
18562         _IO_FLAGS2_NOCLOSE flag.
18563         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
18564         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
18565         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
18566         _IO_FLAGS2_NOCLOSE flag.
18567         * include/unistd.h: Add hidden_proto for dup3.
18568         Define __have_dup3.
18569         * io/dup3.c: Define hidden symbol.
18570         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
18571
18572         [BZ #7101]
18573         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
18574         when an incomplete long option is used.
18575         * posix/tst-getopt_long1.c: New file.
18576         * posix/Makefile (tests): Add tst-getopt_long1.
18577
18578         [BZ #10138]
18579         * scripts/config.guess: Update from autoconf-2.68.
18580         * scripts/config.sub: Likewise.
18581
18582         [BZ #10157]
18583         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
18584         tests into ...
18585         (has_cpuclock): ...this.  New function.
18586         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
18587         macro here based on has_cpuclock code.
18588
18589         [BZ #10149]
18590         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
18591         First byte (not low byte) is now always NUL.
18592         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
18593
18594         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
18595         Use non-cancelable interfaces.
18596
18597         [BZ #9809]
18598         * locale/iso-639.def: Add entry for Sorani.
18599
18600         [BZ #11901]
18601         * include/stdlib.h: Move include protection to the right place.
18602         Define abort_msg_s.  Declare __abort_msg with it.
18603         * stdlib/abort.c (__abort_msg): Adjust type.
18604         * assert/assert.c (__assert_fail_base): New function.  Majority
18605         of code from __assert_fail.  Allocate memory for __abort_msg with
18606         mmap.
18607         (__assert_fail): Now call __assert_fail_base.
18608         * assert/assert-perr.c: Remove bulk of implementation.  Use
18609         __assert_fail_base.
18610         * include/assert.hL Declare __assert_fail_base.
18611         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
18612         mmap.
18613         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
18614
18615 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
18616
18617         [BZ #11952]
18618         [BZ #12453]
18619         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
18620         until all modules are registered in the DTV.
18621         * elf/Makefile: Add rules to build and run tst-tls19.
18622         * elf/tst-tls19.c: New file.
18623         * elf/tst-tls19mod1.c: New file.
18624         * elf/tst-tls19mod2.c: New file.
18625         * elf/tst-tls19mod3.c: New file.
18626         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
18627
18628         [BZ #12083]
18629         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
18630         correctly.
18631
18632         [BZ #12601]
18633         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
18634         two-byte sequence errors.
18635         * iconvdata/Makefile (tests): Add bug-iconv8.
18636         * iconvdata/bug-iconv8.c: New file.
18637
18638         [BZ #12626]
18639         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
18640         buf2 definition.
18641
18642         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
18643
18644         [BZ #12432]
18645         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
18646         (dummy_getcfa): New function.
18647         (init): Get _Unwind_GetCFA address, use dummy if not found.
18648         (backtrace_helper): In recursion check, also check whether CFA changes.
18649         (__backtrace): Completely initialize arg.
18650
18651         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
18652         storing incomplete byte sequence in state object.  Avoid testing for
18653         guaranteed too small input if we know there is enough data available.
18654
18655 2011-05-11  Andreas Schwab  <schwab@redhat.com>
18656
18657         * Makeconfig (+link-pie): Indent.
18658         * Rules (binaries-pie): Define if $(have-fpie) and
18659         $(build-shared).
18660         (binaries-shared): Also filter out $(binaries-pie).
18661         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
18662         * nscd/Makefile (others-pie): Add nscd.
18663         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
18664         ($(objpfx)nscd): Remove command override.
18665         * login/Makefile (others-pie): Add pt_chown.
18666         ($(objpfx)pt_chown): Remove command override.
18667         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
18668         remove command overrides.
18669
18670 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
18671
18672         * libio/tst_putwc.c: Fix error messages.
18673
18674         [BZ #12724]
18675         * libio/fileops.c (_IO_new_file_close_it): Always flush when
18676         currently writing and seek to current position when not.
18677         * libio/Makefile (tests): Add bug-fclose1.
18678         * libio/bug-fclose1.c: New file.
18679
18680 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
18681
18682         [BZ #12511]
18683         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
18684         don't set DF_1_NODELETE here.
18685         (do_lookup_x): When entering new entry test for copy relocation
18686         and if necessary set DF_1_NODELETE flag.
18687         * elf/tst-unique4.cc: New file.
18688         * elf/tst-unique4.h: New file.
18689         * elf/tst-unique4lib.cc: New file.
18690         * elf/Makefile: Add rules to build and run tst-unique4.
18691         Patch by Piotr Bury <pbury@goahead.com>.
18692
18693 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
18694
18695         [BZ #12052]
18696         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
18697
18698         [BZ #12625]
18699         * misc/mntent_r.c (addmntent): Flush the stream after the output
18700
18701         [BZ #12393]
18702         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
18703         (is_trusted_path_normalize): Skip initial colon.  Append slash
18704         to empty buffer.  Duplicate is_trusted_path code but allow
18705         constructed patch to be prefix.
18706         (is_dst): Allow $ORIGIN followed by /.
18707         (_dl_dst_substitute): Correct clearing of check_for_trusted.
18708         Correct testing of result of is_trusted_path_normalize
18709         (decompose_rpath): Fix warning.
18710
18711 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
18712
18713         [BZ #11257]
18714         * grp/initgroups.c (internal_getgrouplist): When we found the service
18715         list through the initgroups entry in nsswitch.conf do not always
18716         continue on a successful lookup.  Don't always use the
18717         __nss_group_database value if it is set.
18718         * nss/nsswitch.conf (initgroups): Change action for successful db
18719         lookup to continue for compatibility.
18720
18721 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
18722
18723         [BZ #11532]
18724         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
18725         and CP774 modules.
18726         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
18727         and CP774 modules.
18728         * iconvdata/tst-tables.sh: Likewise.
18729         * iconvdata/cp770.c: New file.
18730         * iconvdata/cp771.c: New file.
18731         * iconvdata/cp772.c: New file.
18732         * iconvdata/cp773.c: New file.
18733         * iconvdata/cp774.c: New file.
18734         * iconvdata/testdata/CP770: New file.
18735         * iconvdata/testdata/CP770..UTF8: New file.
18736         * iconvdata/testdata/CP771: New file.
18737         * iconvdata/testdata/CP771..UTF8: New file.
18738         * iconvdata/testdata/CP772: New file.
18739         * iconvdata/testdata/CP772..UTF8: New file.
18740         * iconvdata/testdata/CP773: New file.
18741         * iconvdata/testdata/CP773..UTF8: New file.
18742         * iconvdata/testdata/CP774: New file.
18743         * iconvdata/testdata/CP774..UTF8: New file.
18744
18745         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
18746         END CHARMAP line.
18747         * iconvdata/gen-8bit-gap.sh: Likewise.
18748         * iconvdata/gen-8bit.sh: Likewise.
18749
18750         * locale/iso-639.def: Add ary entry.
18751
18752         [BZ #11258]
18753         * locale/C-translit.h.in: Add U20A1 transliteration.
18754
18755         [BZ #12178]
18756         * locale/iso-639.def: Add wae entry.
18757         Patch by Kevin Bortis <bortis@translate-wae.ch>.
18758
18759         [BZ #12545]
18760         * locale/programs/localedef.c (construct_output_path): Use ssize_t
18761         for n.
18762
18763         [BZ #12711]
18764         * locale/C-translit.h.in: Add entry for U20B9.
18765         Patch by pravin.d.s@gmail.com.
18766
18767 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
18768
18769         [BZ #12713]
18770         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
18771         ENAMETOOLONG use generic getcwd.
18772         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
18773         in rtld.  Use *stat64.
18774         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
18775         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
18776         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
18777         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
18778         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
18779         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
18780         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
18781         __fstatat64 macros.
18782         * include/dirent.h: Add libc_hidden_proto for rewinddir.
18783         * dirent/rewinddir.c: Add libc_hidden_def.
18784         * sysdeps/mach/hurd/rewinddir.c: Likewise.
18785         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
18786
18787         * include/dirent.h (__alloc_dir): Add flags parameter.
18788         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
18789         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
18790         __alloc_dir.
18791         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
18792         from fdopendir if O_CLOEXEC is already set.
18793
18794 2011-03-15  Alan Modra  <amodra@gmail.com>
18795
18796         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
18797         l_tls_firstbyte_offset non-zero.  Save padding offset in
18798         l_tls_firstbyte_offset for later use.
18799         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
18800         freeing static tls block.
18801
18802 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
18803
18804         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
18805         where #ifdef was intended.  The intent is to prevent ARG_MAX from
18806         being defined by the kernel headers.
18807
18808 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
18809
18810         [BZ #12734]
18811         * resolv/resolv.h: Define RES_NOTLDQUERY.
18812         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
18813         no-tld-query and set RES_NOTLDQUERY.
18814         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
18815         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
18816         modern BIND to search name as TLD unless forbidden.
18817
18818 2011-05-07  Petr Baudis  <pasky@suse.cz>
18819             Ulrich Drepper  <drepper@gmail.com>
18820
18821         [BZ #12393]
18822         * elf/dl-load.c (fillin_rpath): Move trusted path check...
18823         (is_trusted_path): ...to here.
18824         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
18825         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
18826         using is_trusted_path_normalize() in setuid scripts.
18827
18828 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
18829
18830         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
18831         __BEGIN/__END_DECLS.
18832
18833 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
18834
18835         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
18836         NSS_STATUS_NOTFOUND if no record was found.
18837
18838 2011-05-05  Andreas Schwab  <schwab@redhat.com>
18839
18840         * sunrpc/Makefile (headers): Add rpc/netdb.h.
18841         (headers-not-in-tirpc): Remove rpc/netdb.h
18842         * resolv/netdb.h: Revert last change.
18843
18844 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
18845
18846         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
18847         circular dependency between libgcc.a and libc.a.
18848
18849 2011-05-05  Andreas Schwab  <schwab@redhat.com>
18850
18851         * resolv/netdb.h: Don't include <rpc/netdb.h>.
18852         * nis/Makefile: Don't install rpcsvc/*.
18853         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
18854         instead of <rpc/types.h>.
18855         (MAXHOSTNAMELEN): Define.
18856
18857 2011-05-03  Andreas Schwab  <schwab@redhat.com>
18858
18859         * elf/ldconfig.c (add_dir): Don't crash on empty path.
18860
18861 2011-04-28  Maciej Babinski  <mbabinski@google.com>
18862
18863         [BZ #12714]
18864         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
18865         gethostbyname4_r when IPv6 results are possible.
18866
18867 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
18868
18869         [BZ #12723]
18870         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
18871         _PC_PIPE_BUF handling.
18872
18873 2011-04-30  Bruno Haible  <bruno@clisp.org>
18874
18875         [BZ #12717]
18876         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
18877         * resolv/netdb.h (getnameinfo): Change type of flags parameter
18878         to 'int'.
18879         * inet/getnameinfo.c (getnameinfo): Likewise.
18880
18881 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
18882
18883         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
18884         to groups setting in database lookup.
18885         * nss/nsswitch.conf: Add initgroups entry.
18886
18887 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
18888
18889         [BZ #12685]
18890         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
18891         mode string.
18892         Patch by Eric Blake <eblake@redhat.com>.
18893
18894 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
18895
18896         * sunrpc/Makefile (need-export-routines): Add svc_run.
18897         (routines): Remove svc_run.
18898         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
18899         * sunrpc/clnt_perr.c (clnt_perrno): Export.
18900         * sunrpc/svc_run.c (svc_run): Likewise.
18901         * sunrpc/svc_udp.c (svcudp_create): Likewise.
18902
18903 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
18904
18905         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
18906         problem in reallocation in last patch.
18907
18908 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
18909
18910         * sunrpc/Makefile: Move inclusion of Rules.
18911
18912 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
18913
18914         * nss/nss_files/files-initgroups.c: New file.
18915         * nss/Makefile (libnss_files-routines): Add files-initgroups.
18916         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
18917         _nss_files_initgroups_dyn.
18918
18919 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
18920
18921         * elf/elf.h (R_ARM_IRELATIVE): Define.
18922
18923 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
18924
18925         * po/ru.po: Update from translation team.
18926
18927 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
18928
18929         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
18930         dependencies.
18931
18932 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
18933
18934         [BZ #12653]
18935         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
18936         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
18937         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
18938         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
18939         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
18940
18941 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
18942
18943         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
18944         differing bytes.
18945         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
18946         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
18947         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
18948
18949 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
18950
18951         [BZ #12420]
18952         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
18953         storing it.
18954         * stdlib/bug-getcontext.c: New file.
18955         * stdlib/Makefile: Add rules to build and run bug-getcontext.
18956
18957 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18958
18959         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
18960         instructions into .machine "z9-109".
18961         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
18962         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
18963
18964 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18965
18966         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
18967         between environment variables and auxiliary vector.
18968
18969 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
18970
18971         * Makefile: Add rules to build linkobj/libc.so.
18972         * include/libc-symbols.h: Define libc_hidden_nolink.
18973         * include/rpc/auth.h: Mark functions which are to be hidden.
18974         * include/rpc/auth_des.h: Likewise.
18975         * include/rpc/auth_unix.h: Likewise.
18976         * include/rpc/clnt.h: Likewise.
18977         * include/rpc/des_crypt.h: Likewise.
18978         * include/rpc/key_prot.h: Likewise.
18979         * include/rpc/pmap_clnt.h: Likewise.
18980         * include/rpc/pmap_prot.h: Likewise.
18981         * include/rpc/pmap_rmt.h: Likewise.
18982         * include/rpc/rpc_msg.h: Likewise.
18983         * include/rpc/svc.h: Likewise.
18984         * include/rpc/svc_auth.h: Likewise.
18985         * include/rpc/xdr.h: Likewise.
18986         * nis/Makefile: Link all DSOs against linkobj/libc.so.
18987         * nss/Makefile: Likewise.
18988         * sunrpc/Makefile: Don't install headers.  Build library with normal
18989         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
18990         * sunrpc/auth_des.c: Hide exported symbols by default, export some
18991         for the compat linking library.  Remove use of INTDEF/INTUSE.
18992         * sunrpc/auth_none.c: Likewise.
18993         * sunrpc/auth_unix.c: Likewise.
18994         * sunrpc/authdes_prot.c: Likewise.
18995         * sunrpc/authuxprot.c: Likewise.
18996         * sunrpc/clnt_gen.c: Likewise.
18997         * sunrpc/clnt_perr.c: Likewise.
18998         * sunrpc/clnt_raw.c: Likewise.
18999         * sunrpc/clnt_simp.c: Likewise.
19000         * sunrpc/clnt_tcp.c: Likewise.
19001         * sunrpc/clnt_udp.c: Likewise.
19002         * sunrpc/clnt_unix.c: Likewise.
19003         * sunrpc/des_crypt.c: Likewise.
19004         * sunrpc/des_soft.c: Likewise.
19005         * sunrpc/get_myaddr.c: Likewise.
19006         * sunrpc/key_call.c: Likewise.
19007         * sunrpc/key_prot.c: Likewise.
19008         * sunrpc/netname.c: Likewise.
19009         * sunrpc/pm_getmaps.c: Likewise.
19010         * sunrpc/pm_getport.c: Likewise.
19011         * sunrpc/pmap_clnt.c: Likewise.
19012         * sunrpc/pmap_prot.c: Likewise.
19013         * sunrpc/pmap_prot2.c: Likewise.
19014         * sunrpc/pmap_rmt.c: Likewise.
19015         * sunrpc/publickey.c: Likewise.
19016         * sunrpc/rpc_cmsg.c: Likewise.
19017         * sunrpc/rpc_common.c: Likewise.
19018         * sunrpc/rpc_dtable.c: Likewise.
19019         * sunrpc/rpc_prot.c: Likewise.
19020         * sunrpc/rpc_thread.c: Likewise.
19021         * sunrpc/rtime.c: Likewise.
19022         * sunrpc/svc.c: Likewise.
19023         * sunrpc/svc_auth.c: Likewise.
19024         * sunrpc/svc_authux.c: Likewise.
19025         * sunrpc/svc_raw.c: Likewise.
19026         * sunrpc/svc_run.c: Likewise.
19027         * sunrpc/svc_simple.c: Likewise.
19028         * sunrpc/svc_tcp.c: Likewise.
19029         * sunrpc/svc_udp.c: Likewise.
19030         * sunrpc/svc_unix.c: Likewise.
19031         * sunrpc/svcauth_des.c: Likewise.
19032         * sunrpc/xcrypt.c: Likewise.
19033         * sunrpc/xdr.c: Likewise.
19034         * sunrpc/xdr_array.c: Likewise.
19035         * sunrpc/xdr_float.c: Likewise.
19036         * sunrpc/xdr_intXX_t.c: Likewise.
19037         * sunrpc/xdr_mem.c: Likewise.
19038         * sunrpc/xdr_rec.c: Likewise.
19039         * sunrpc/xdr_ref.c: Likewise.
19040         * sunrpc/xdr_sizeof.c: Likewise.
19041         * sunrpc/xdr_stdio.c: Likewise.
19042
19043 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
19044
19045         [BZ #12650]
19046         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
19047         * sysdeps/ia64/dl-tls.h: Likewise.
19048         * sysdeps/powerpc/dl-tls.h: Likewise.
19049         * sysdeps/s390/dl-tls.h: Likewise.
19050         * sysdeps/sh/dl-tls.h: Likewise.
19051         * sysdeps/sparc/dl-tls.h: Likewise.
19052         * sysdeps/x86_64/dl-tls.h: Likewise.
19053         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
19054
19055 2011-03-14  Andreas Schwab  <schwab@redhat.com>
19056
19057         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
19058         rpath element also skip the following colon.
19059         (expand_dynamic_string_token): Add is_path parameter and pass
19060         down to DL_DST_REQUIRED and _dl_dst_substitute.
19061         (decompose_rpath): Call expand_dynamic_string_token with
19062         non-zero is_path.  Ignore empty rpaths.
19063         (_dl_map_object_from_fd): Call expand_dynamic_string_token
19064         with zero is_path.
19065
19066 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
19067
19068         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
19069         Make cancelable.
19070
19071 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
19072
19073         [BZ #12655]
19074         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
19075         Patch by Filipe David Manana <fdmanana@apache.org>.
19076
19077 2011-04-07  Andreas Schwab  <schwab@redhat.com>
19078
19079         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
19080         Maintain aligned stack.
19081         (CHECK_RSP): Remove unused macro.
19082
19083 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
19084
19085         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
19086         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
19087
19088 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
19089
19090         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
19091
19092         * include/features.h: Mention __USE_XOPEN2K8 in comment.
19093
19094 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
19095
19096         [BZ #12518]
19097         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
19098         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
19099         * sysdeps/x86_64/memmove.c: New file.
19100         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
19101         (memcpy): Renamed to ...
19102         (__new_memcpy): This.
19103         (memcpy): Provide GLIBC_2_14 memcpy.
19104         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
19105         (memcpy): Provide GLIBC_2_2_5 memcpy.
19106
19107 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
19108
19109         [BZ #12631]
19110         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
19111
19112 2011-03-30  Andreas Schwab  <schwab@redhat.com>
19113
19114         * misc/syncfs.c: New file.
19115         * misc/Makefile (routines): Add syncfs.
19116         * posix/unistd.h: Declare syncfs.
19117         * sysdeps/unix/syscalls.list: Add syncfs.
19118
19119 2011-04-01  Andreas Schwab  <schwab@redhat.com>
19120
19121         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
19122         open_by_handle_at.
19123         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
19124         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
19125         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
19126         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
19127         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
19128         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
19129         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
19130
19131 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
19132
19133         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
19134         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
19135         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
19136         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
19137         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
19138         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
19139         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
19140
19141         * io/Makefile: Compile fallocate.c, fallocate64.c, and
19142         sync_file_range.c with -fexceptions.
19143         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
19144         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
19145         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
19146         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
19147         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
19148         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
19149         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
19150         sync_file_range as cancellation point
19151         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
19152         now a wrapper around __call_sync_file_range with cancellation handling.
19153         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
19154         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
19155         function name to __call_sync_file_range.
19156         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
19157         Add call_sync_file_range.
19158
19159 2011-04-01  Andreas Schwab  <schwab@redhat.com>
19160
19161         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
19162         bits/timex.h.
19163
19164 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
19165
19166         * iconv/iconv.h: Fix typo in comment.
19167         * io/fcntl.h: Likewise.
19168         * libio/stdio.h: Likewise.
19169         * posix/spawn.h: Likewise.
19170         * posix/unistd.h: Likewise.
19171         * stdlib/stdlib.h: Likewise.
19172         * time/time.h: Likewise.
19173         * wcsmbs/wchar.h: Likewise.
19174
19175         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
19176         open_by_handle): Add.
19177         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
19178         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
19179         Augment a few comments.
19180         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
19181         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
19182         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
19183         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
19184         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
19185         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
19186         open_by_handle.
19187
19188         * io/fcntl.h (AT_EMPTY_PATH): Define.
19189
19190 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
19191
19192         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
19193         * sysdeps/unix/sysv/linux/bits/time.h: New file.
19194         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
19195         to...
19196         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
19197         * Versions.def: Add GLIBC_2.14.
19198         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
19199         Export.
19200
19201 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
19202
19203         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
19204         round counter.
19205         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
19206
19207 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
19208
19209         [BZ #12597]
19210         * string/test-strncmp.c (do_page_test): New function.
19211         (check2): Likewise.
19212         (test_main): Call check2.
19213         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
19214
19215 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
19216
19217         [BZ #12587]
19218         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
19219         Handle cache information in CPU leaf 4.
19220         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
19221
19222 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
19223
19224         [BZ #12583]
19225         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
19226         character representation.
19227         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
19228
19229 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
19230
19231         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
19232         END(__isnan) to END(__isnanf) to match function entry point/label
19233         EALIGN(__isnanf,...).
19234
19235 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
19236
19237         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
19238
19239 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
19240
19241         [BZ #12510]
19242         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
19243         copy from the symbol referenced in the relocation to initialize the
19244         used variable.
19245         Patch by Piotr Bury <pbury@goahead.com>.
19246         * elf/Makefile: Add rules to build and tst-unique3.
19247         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
19248         * elf/tst-unique3.cc: New file.
19249         * elf/tst-unique3.h: New file.
19250         * elf/tst-unique3lib.cc: New file.
19251         * elf/tst-unique3lib2.cc: New file.
19252
19253         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
19254
19255 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
19256
19257         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
19258         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
19259         to _start.
19260
19261 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
19262
19263         * elf/dl-load.c (_dl_map_object): If we are looking for the first
19264         to-be-loaded object along a path to loader is ld.so.
19265
19266 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
19267             Ulrich Drepper  <drepper@gmail.com>
19268
19269         * sysdeps/x86_64/memset.S: After aligning destination, code
19270         branches to different locations depending on the value of
19271         misalignment, when multiarch is enabled. Fix this.
19272
19273 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
19274
19275         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
19276         Set _x86_64_preferred_memory_instruction for AMD processsors.
19277         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19278         Set bit_Prefer_SSE_for_memop for AMD processors.
19279
19280 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
19281
19282         * libio/fmemopen.c (fmemopen): Optimize a bit.
19283
19284 2011-03-03  Andreas Schwab  <schwab@redhat.com>
19285
19286         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
19287
19288 2011-03-03  Roland McGrath  <roland@redhat.com>
19289
19290         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
19291
19292 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
19293
19294         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
19295         __bzero_ultra1 instead of __memset_ultra1.
19296
19297 2011-02-23  Andreas Schwab  <schwab@redhat.com>
19298             Ulrich Drepper  <drepper@gmail.com>
19299
19300         [BZ #12509]
19301         * include/link.h (struct link_map): Add l_orig_initfini.
19302         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
19303         returning unsuccessfully.
19304         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
19305         close of a file loaded at startup, restore the original l_initfini
19306         list.
19307         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
19308         list, store the pointer.
19309         * elf/Makefile ($(objpfx)noload-mem): New rule.
19310         (noload-ENV): Define.
19311         (tests): Add $(objpfx)noload-mem.
19312         * elf/noload.c: Include <memcheck.h>.
19313         (main): Call mtrace.  Close all opened handles.
19314
19315 2011-02-17  Andreas Schwab  <schwab@redhat.com>
19316
19317         [BZ #12454]
19318         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
19319         dependencies are missing.
19320
19321 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19322
19323         Fix __if_freereq crash: Unlike the generic version which uses free,
19324         Hurd needs munmap.
19325         * sysdeps/mach/hurd/ifreq.h: New file.
19326
19327 2011-01-27  Petr Baudis  <pasky@suse.cz>
19328             Ulrich Drepper  <drepper@gmail.com>
19329
19330         [BZ 12445]#
19331         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
19332         to extend_alloca().
19333         * stdio-common/bug23.c: New file.
19334         * stdio-common/Makefile (tests): Add bug23.
19335
19336 2010-09-28  Andreas Schwab  <schwab@redhat.com>
19337             Ulrich Drepper  <drepper@gmail.com>
19338
19339         [BZ #12489]
19340         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
19341         before performing relro protection.  At old place add assertion
19342         to make sure nothing changed.
19343
19344 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
19345             Glauber de Oliveira Costa  <glommer@gmail.com>
19346
19347         * elf/elf.h: Add new ARM TLS relocs.
19348
19349 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
19350
19351         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
19352         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
19353         cast from r3.
19354         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
19355         'tests' variable.
19356         * sysdeps/wordsize-64/tst-writev.c: New file.
19357
19358 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
19359
19360         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
19361         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
19362         insns in _dl_start to prevent a TOC reference before relocs are
19363         resolved.
19364
19365 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
19366
19367         [BZ #12469]
19368         * Makeconfig: Remove RANLIB definition.
19369         * Makerules: Don't use RANLIB.
19370         * aclocal.m4: Remove ranlib test.
19371         * configure.in: No need to check for ranlib.
19372         * elf/rtld-Rules: Don't use RANLIB.
19373
19374 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19375
19376         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
19377         protection macro.
19378         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
19379         inclusion protection macro.
19380
19381         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
19382         SIGRTMIN and SIGRTMAX and print information in that case only when
19383         SIGRTMIN is defined.
19384
19385 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
19386
19387         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
19388         arginfo fn returning -1.
19389
19390         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
19391         and thousands string is zero terminated.
19392
19393 2011-02-03  Andreas Schwab  <schwab@redhat.com>
19394
19395         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
19396         sysdeps/unix/sysv/linux/bits/socket.h.
19397
19398 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19399
19400         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
19401         (__CPU_COUNT): Remove old macros.
19402         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
19403         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
19404         (__CPU_ALLOC, __CPU_FREE): Add macros.
19405         (__sched_cpualloc, __sched_cpufree): Add declarations.
19406
19407 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
19408
19409         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
19410         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
19411         * nscd/aicache.c (addhstaiX): Return timeout of added value.
19412         (readdhstai): Return value of addhstaiX call.
19413         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
19414         (addgrbyX): Return value returned by cache_addgr.
19415         (readdgrbyname): Return value returned by addgrbyX.
19416         (readdgrbygid): Likewise.
19417         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
19418         (addpwbyX): Return value returned by cache_addpw.
19419         (readdpwbyname): Return value returned by addhstbyX.
19420         (readdpwbyuid): Likewise.
19421         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
19422         (addservbyX): Return value returned by cache_addserv.
19423         (readdservbyname): Return value returned by addservbyX:
19424         (readdservbyport): Likewise.
19425         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
19426         (addhstbyX): Return value returned by cache_addhst.
19427         (readdhstbyname): Return value returned by addhstbyX.
19428         (readdhstbyaddr): Likewise.
19429         (readdhstbynamev6): Likewise.
19430         (readdhstbyaddrv6): Likewise.
19431         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
19432         (readdinitgroups): Return value returned by addinitgroupsX.
19433         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
19434         (prune_cache): Keep track of timeout value of re-added entries.
19435         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
19436         * nscd/nscd.h: Adjust prototypes of readd* functions.
19437
19438 2011-02-04  Roland McGrath  <roland@redhat.com>
19439
19440         * nis/nis_server.c (nis_servstate): Use the right name for 0.
19441         (nis_stats): Likewise.
19442         * nis/nis_modify.c (nis_modify): Likewise.
19443         * nis/nis_remove.c (nis_remove): Likewise.
19444         * nis/nis_add.c (nis_add): Likewise.
19445
19446         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
19447
19448         * posix/fnmatch_loop.c: Add some consts.
19449
19450         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
19451
19452 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
19453
19454         [BZ #12460]
19455         * config.make.in (config-cflags-novzeroupper): Define.
19456         * configure.in: Substitute libc_cv_cc_novzeroupper.
19457         * elf/Makefile (AVX-CFLAGS): Define.
19458         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
19459         (CFLAGS-tst-auditmod4a.c): Likewise.
19460         (CFLAGS-tst-auditmod4b.c): Likewise.
19461         (CFLAGS-tst-auditmod6b.c): Likewise.
19462         (CFLAGS-tst-auditmod6c.c): Likewise.
19463         (CFLAGS-tst-auditmod7b.c): Likewise.
19464         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
19465
19466 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
19467
19468         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
19469         function to the callback.
19470         Patch partly by Jiri Olsa <jolsa@redhat.com>.
19471
19472 2011-02-02  Andreas Schwab  <schwab@redhat.com>
19473
19474         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
19475         of errno.
19476
19477 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
19478
19479         [BZ #11724]
19480         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
19481         of constructors.
19482         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
19483         of destructors.
19484         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
19485
19486         [BZ #11724]
19487         * elf/Makefile: Add rules to build and run new test.
19488         * elf/tst-initorder.c: New file.
19489         * elf/tst-initorder.exp: New file.
19490         * elf/tst-initordera1.c: New file.
19491         * elf/tst-initordera2.c: New file.
19492         * elf/tst-initordera3.c: New file.
19493         * elf/tst-initordera4.c: New file.
19494         * elf/tst-initorderb1.c: New file.
19495         * elf/tst-initorderb2.c: New file.
19496         * elf/tst-order-a1.c: New file.
19497         * elf/tst-order-a2.c: New file.
19498         * elf/tst-order-a3.c: New file.
19499         * elf/tst-order-a4.c: New file.
19500         * elf/tst-order-b1.c: New file.
19501         * elf/tst-order-b2.c: New file.
19502         * elf/tst-order-main.c: New file.
19503         New test case by George Gensure <werkt0@gmail.com>.
19504
19505 2010-10-01  Andreas Schwab  <schwab@redhat.com>
19506
19507         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
19508         decoding ACE if AI_CANONIDN.
19509
19510 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
19511
19512         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
19513
19514 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
19515
19516         * version.h (RELEASE): Bump for 2.13 release.
19517         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
19518
19519         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
19520
19521         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
19522         MADV_NOHUGEPAGE.
19523         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
19524         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
19525         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
19526         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
19527         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
19528         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
19529
19530         * posix/getconf.c: Update copyright year.
19531         * catgets/gencat.c: Likewise.
19532         * csu/version.c: Likewise.
19533         * debug/catchsegv.sh: Likewise.
19534         * debug/xtrace.sh: Likewise.
19535         * elf/ldconfig.c: Likewise.
19536         * elf/ldd.bash.in: Likewise.
19537         * elf/sprof.c (print_version): Likewise.
19538         * iconv/iconv_prog.c: Likewise.
19539         * iconv/iconvconfig.c: Likewise.
19540         * locale/programs/locale.c: Likewise.
19541         * locale/programs/localedef.c: Likewise.
19542         * malloc/memusage.sh: Likewise.
19543         * malloc/mtrace.pl: Likewise.
19544         * nscd/nscd.c (print_version): Likewise.
19545         * nss/getent.c: Likewise.
19546
19547         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
19548         PF_CAIF, and PF_ALG.
19549         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
19550
19551 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
19552
19553         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
19554         (modules-names): Use them.
19555         (ifunc-test-modules, ifunc-pie-tests): Define.
19556         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
19557         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
19558         (test-extras): Likewise.
19559         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
19560         $(compile-command.c).
19561         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
19562         (all-built-dso): Define.
19563         (check-textrel.out, check-execstack.out): Depend on it.
19564
19565         * configure.in: Don't override --enable-multi-arch.
19566
19567 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
19568
19569         [BZ #6812]
19570         * nscd/hstcache.c (tryagain): Define.
19571         (cache_addhst): Return tryagain not notfound for temporary errors.
19572         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
19573         failed.
19574
19575 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
19576
19577         [BZ #10563]
19578         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
19579         to make the syscall.
19580         * sysdeps/unix/sysv/linux/setgroups.c: New file.
19581
19582         [BZ #12378]
19583         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
19584         and fall back to matching as normal character if the string ends before
19585         the matching ']' is found.  This is what POSIX requires.
19586         * posix/testfnm.c: Adjust test result.
19587         * posix/globtest.sh: Adjust test result.  Add new test.
19588         * posix/tst-fnmatch.input: Likewise.
19589         * posix/tst-fnmatch2.c: Add new test.
19590
19591 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
19592
19593         * elf/Makefile (check-execstack): Revert last change.  Depend on
19594         check-execstack.h.
19595         (check-execstack.h): New target.
19596         (generated): Add check-execstack.h.
19597         * elf/check-execstack.c: Include "check-execstack.h".
19598         (main): Revert last change.
19599         (handle_file): Return zero if GNU_STACK is absent and
19600         DEFAULT_STACK_PERMS doesn't include PF_X.
19601
19602 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
19603
19604         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
19605         in child fails because the descriptor is already closed.
19606         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
19607         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
19608         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
19609
19610         [BZ #12397]
19611         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
19612         syscall.
19613
19614         [BZ #10484]
19615         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
19616         temporary buffer used to handle multi lookups locally.
19617         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
19618
19619 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
19620
19621         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
19622         loader is ld.so.
19623
19624 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
19625
19626         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
19627         alignment for SSE2.
19628
19629 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
19630
19631         [BZ #12394]
19632         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
19633         characters.  When rounding increased number of integer digits recompute
19634         number of groups.
19635         * stdio-common/tst-grouping.c: New file.
19636         * stdio-common/Makefile: Add rules to build and run tst-grouping.
19637
19638 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
19639
19640         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
19641         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
19642
19643         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
19644         void.
19645         * bits/select.h: Likewise.
19646
19647 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
19648
19649         * po/ja.po: Update from translation team.
19650
19651 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
19652
19653         [BZ #11155]
19654         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
19655         implementation just like for lxstat, fxstatat, et al.
19656
19657 2010-12-27  Jim Meyering  <meyering@redhat.com>
19658
19659         [BZ #12348]
19660         * posix/regexec.c (build_trtable): Return failure indication upon
19661         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
19662
19663 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
19664
19665         [BZ #12201]
19666         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
19667         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
19668         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
19669         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
19670
19671         [BZ #12207]
19672         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
19673
19674         [BZ #12204]
19675         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
19676         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
19677
19678 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
19679
19680         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
19681         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
19682         script has SORT_BY_INIT_PRIORITY.
19683         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
19684         NO_CTORS_DTORS_SECTIONS is defined.
19685         * elf/soinit.c: Likewise.
19686         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
19687         NO_CTORS_DTORS_SECTIONS is defined.
19688         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
19689         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
19690         * sysdeps/sh/init-first.c: Likewise.
19691         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
19692
19693 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
19694
19695         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
19696         always use the slow path.
19697
19698 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
19699
19700         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
19701         similar rule which adds the sysdep directories to the header search in
19702         order to pick up the correct platform stackinfo.h.
19703         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
19704         perform test if it is, otherwise return successfully without testing.
19705         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
19706         DEFAULT_STACK_PERMS define in stackinfo.h.
19707         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
19708         defined in stackinfo.h.
19709         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
19710         DEFAULT_STACK_PERMS defined in stackinfo.h.
19711         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
19712         * sysdeps/ia64/stackinfo.h: Likewise.
19713         * sysdeps/s390/stackinfo.h: Likewise.
19714         * sysdeps/sh/stackinfo.h: Likewise.
19715         * sysdeps/sparc/stackinfo.h: Likewise.
19716         * sysdeps/x86_64/stackinfo.h: Likewise.
19717         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
19718         PF_X for powerpc64.  Retain PF_X for powerpc32.
19719
19720 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
19721
19722         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
19723         accurately.
19724         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
19725         GETDENTS_64BIT_ALIGNED.
19726
19727 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
19728
19729         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
19730
19731 2010-12-10  Andreas Schwab  <schwab@redhat.com>
19732
19733         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
19734         _GNU_SOURCE.
19735
19736         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
19737         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
19738         Remove __restrict.
19739         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
19740         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
19741
19742 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
19743
19744         [BZ #11655]
19745         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
19746         are initialized.
19747
19748 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
19749
19750         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
19751
19752 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
19753
19754         * po/it.po: Update from translation team.
19755
19756 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
19757
19758         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
19759         unused codes.
19760
19761 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
19762
19763         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
19764
19765 2010-11-24  Andreas Schwab  <schwab@redhat.com>
19766
19767         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
19768         specially.
19769         (gaih_getanswer_slice): Likewise.
19770
19771 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
19772
19773         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
19774
19775 2010-05-31  Petr Baudis  <pasky@suse.cz>
19776
19777         [BZ #11149]
19778         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
19779         silently even in the chroot mode.
19780
19781 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
19782
19783         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
19784         last patch a bit.  Pretty printing
19785
19786 2010-05-31  Petr Baudis <pasky@suse.cz>
19787
19788         [BZ #10085]
19789         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
19790         initialization of skip_initgroups_dyn.
19791
19792 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
19793
19794         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
19795         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
19796
19797 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
19798
19799         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
19800
19801 2010-11-11  Andreas Schwab  <schwab@redhat.com>
19802
19803         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
19804         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
19805         (tst-fnmatch-ENV): Set MALLOC_TRACE.
19806         ($(objpfx)tst-fnmatch-mem): New rule.
19807         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
19808         * posix/tst-fnmatch.c (main): Call mtrace.
19809
19810 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
19811
19812         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19813         Support Intel processor model 6 and model 0x2c.
19814
19815 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
19816
19817         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
19818           signed comparison.
19819
19820 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
19821
19822         [BZ #12205]
19823         * string/test-strncasecmp.c (check_result): New function.
19824         (do_one_test): Use it.
19825         (check1): New function.
19826         (test_main): Use it.
19827         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
19828         Support strcasecmp and strncasecmp.
19829
19830 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
19831
19832         [BZ #12194]
19833         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
19834         * sysdeps/x86_64/bits/byteswap.h: Likewise.
19835
19836 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
19837
19838         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
19839         IFUNC support.
19840         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
19841         memset-x86-64.
19842         * sysdeps/x86_64/multiarch/bzero.S: New file.
19843         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
19844         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
19845         * sysdeps/x86_64/multiarch/memset.S: New file.
19846         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
19847         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19848         Set bit_Prefer_SSE_for_memop for Intel processors.
19849         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
19850         Define.
19851         (index_Prefer_SSE_for_memop): Define.
19852         (HAS_PREFER_SSE_FOR_MEMOP): Define.
19853
19854 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
19855
19856         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
19857         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
19858
19859 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
19860
19861         [BZ #12191]
19862         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
19863         (__x86_64_raw_data_cache_size_half): Likewise.
19864         (__x86_64_raw_shared_cache_size): Likewise.
19865         (__x86_64_raw_shared_cache_size_half): Likewise.
19866
19867         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
19868         (__x86_64_raw_data_cache_size_half): Likewise.
19869         (__x86_64_raw_shared_cache_size): Likewise.
19870         (__x86_64_raw_shared_cache_size_half): Likewise.
19871         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
19872         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
19873         and __x86_64_raw_shared_cache_size_half.  Round
19874         __x86_64_data_cache_size_half, __x86_64_data_cache_size
19875         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
19876         to multiple of 256 bytes.
19877
19878 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
19879
19880         [BZ #12167]
19881         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
19882         of inacessible symlinks.  Verify result of symlink before returning it.
19883         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
19884         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
19885
19886 2010-10-28  Erich Ritz  <erichritz@gmail.com>
19887
19888         * math/math.h (isinf): Fix typo in comment.
19889
19890 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
19891
19892         * po/da.po: Update from translation team.
19893
19894 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
19895
19896         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
19897         is added to the list.
19898
19899 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19900             Ulrich Drepper  <drepper@gmail.com>
19901
19902         * elf/dl-object.c (_dl_new_object): Don't append the new object to
19903         the global list here.  Move code to...
19904         (_dl_add_to_namespace_list): ...here.  New function.
19905         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
19906         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
19907         * elf/dl-load.c (lose): Don't remove the element from the list.
19908         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
19909         (_dl_map_object): Likewise.
19910
19911 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
19912
19913         [BZ #12159]
19914         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
19915         into all bytes of SSE register.
19916         Patch by Richard Li <richardpku@gmail.com>.
19917
19918 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
19919
19920         [BZ #12140]
19921         * malloc/malloc.c (_int_free): Fill correct number of bytes when
19922         perturbing.
19923
19924 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
19925
19926         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
19927         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
19928         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
19929         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
19930         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
19931         submachine.
19932         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
19933
19934 2010-10-22  Andreas Schwab  <schwab@redhat.com>
19935
19936         * include/dlfcn.h (__RTLD_SECURE): Define.
19937         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
19938         mode & __RTLD_SECURE instead.
19939         (open_path): Rename preloaded parameter to secure.
19940         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
19941         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
19942         * elf/dl-deps.c (openaux): Likewise.
19943         * elf/rtld.c (struct map_args): Remove is_preloaded.
19944         (map_doit): Don't use it.
19945         (dl_main): Likewise.
19946         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
19947         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
19948
19949 2010-09-09  Andreas Schwab  <schwab@redhat.com>
19950
19951         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
19952         (sysd-rules-targets): Remove duplicates.
19953         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
19954         rtld-%.$o dependency.
19955
19956 2010-10-18  Andreas Schwab  <schwab@redhat.com>
19957
19958         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
19959         _dl_map_object do it.
19960
19961 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
19962
19963         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
19964         fast fma builtins, define the macros in the C99 standard.
19965         (FP_FAST_FMAF): Likewise.
19966         (FP_FAST_FMAL): Likewise.
19967         * sysdeps/x86_64/bits/mathdef.h: Likewise.
19968
19969         * bits/mathdef.h: Update copyright year.
19970         * sysdeps/powerpc/bits/mathdef.h: Likewise.
19971
19972 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
19973
19974         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
19975         builtins, define the macros in the C99 standard.
19976         (FP_FAST_FMAF): Likewise.
19977         (FP_FAST_FMAL): Likewise.
19978         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
19979         multiply/add.
19980         (FP_FAST_FMAF): Likewise.
19981
19982 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
19983
19984         [BZ #3268]
19985         * math/libm-test.inc (fma_test): Some new testcases.
19986         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
19987         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
19988         y and infinite z.  Do multiplication by C already in long double.
19989         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
19990         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
19991         y and infinite z.  Do bitwise or of inexact bit into u.d.
19992         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
19993         * sysdeps/i386/fpu/s_fmaf.S: Removed.
19994         * sysdeps/i386/fpu/s_fma.S: Removed.
19995         * sysdeps/i386/fpu/s_fmal.S: Removed.
19996
19997 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
19998
19999         [BZ #3268]
20000         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
20001         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
20002         computation is not scheduled after fetestexcept.  Fix value
20003         of minimum denormal long double.
20004
20005 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
20006
20007         [BZ #3268]
20008         * math/libm-test.inc (fma_test): Add some more tests.
20009         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
20010         correctly.
20011
20012 2010-10-15  Andreas Schwab  <schwab@redhat.com>
20013
20014         * scripts/data/localplt-s390-linux-gnu.data: New file.
20015         * scripts/data/localplt-s390x-linux-gnu.data: New file.
20016
20017 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
20018
20019         [BZ #3268]
20020         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
20021         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
20022         instead of dbl-64.
20023         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
20024         inlines.
20025         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
20026         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
20027         if one of x and y is very large and the other is subnormal.
20028         * sysdeps/s390/fpu/s_fmaf.c: New file.
20029         * sysdeps/s390/fpu/s_fma.c: New file.
20030         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
20031         * sysdeps/powerpc/fpu/s_fma.S: New file.
20032         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
20033         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
20034         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
20035
20036 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
20037
20038         [BZ #3268]
20039         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
20040         fma tests.
20041         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
20042         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
20043         * sysdeps/i386/i686/multiarch/s_fma.c: Include
20044         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
20045         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
20046         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
20047         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
20048
20049 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
20050
20051         [BZ #12078]
20052         * posix/regcomp.c (parse_branch): One more memory leak plugged.
20053         * posix/bug-regex31.input: Add test case.
20054
20055 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
20056
20057         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
20058         * posix/bug-regex31.input: New file.
20059
20060         [BZ #12078]
20061         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
20062         (parse_sub_exp): Fix last change, use postorder.
20063
20064         * posix/bug-regex31.c: New file.
20065         * posix/Makefile: Add rules to build and run bug-regex31.
20066
20067         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
20068
20069         [BZ #12078]
20070         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
20071
20072         [BZ #12108]
20073         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
20074         to have entries in sys_siglist.
20075
20076         [BZ #12093]
20077         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
20078         be NULL.
20079
20080 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
20081
20082         [BZ #3268]
20083         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
20084         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
20085         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
20086         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
20087         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
20088         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
20089         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
20090         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
20091         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
20092         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
20093         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
20094         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
20095         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
20096         * math/ftestexcept.c (fetestexcept): Likewise.
20097         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
20098         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
20099         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
20100         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
20101         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
20102         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
20103         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
20104
20105 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
20106
20107         [BZ #12107]
20108         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
20109         newline.
20110
20111 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
20112
20113         * string/bug-strstr1.c: New file.
20114         * string/Makefile: Add rules to build and run bug-strstr1.
20115
20116 2010-10-05  Eric Blake  <eblake@redhat.com>
20117
20118         [BZ #12092]
20119         * string/str-two-way.h (two_way_long_needle): Always clear memory
20120         when skipping input due to the shift table.
20121
20122 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
20123
20124         [BZ #12005]
20125         * malloc/mcheck.c: Handle large requests.
20126
20127         [BZ #12077]
20128         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
20129         for strncmp and strncasecmp.
20130         * string/stratcliff.c: Add tests for strcmp and strncmp.
20131         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
20132
20133 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
20134
20135         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
20136         __set_fpscr.
20137
20138 2010-09-30  Andreas Jaeger  <aj@suse.de>
20139
20140         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
20141         (CGROUP_SUPER_MAGIC): Define.
20142         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
20143         Handle btrfs and cgroup file systems.
20144         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
20145         Likewise.
20146
20147 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
20148
20149         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
20150         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
20151
20152 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20153
20154         [BZ #12067]
20155         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
20156         trying to locate the ELF header.
20157
20158 2010-09-27  Andreas Schwab  <schwab@redhat.com>
20159
20160         [BZ #11611]
20161         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
20162         Mask out sign-bit copies when constructing f_fsid.
20163
20164 2010-09-24  Petr Baudis <pasky@suse.cz>
20165
20166         * debug/stack_chk_fail_local.c: Add missing licence exception.
20167         * debug/warning-nop.c: Likewise.
20168
20169 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
20170
20171         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
20172         implementing getdents64 using getdents syscall, set d_type if
20173         __ASSUME_GETDENTS32_D_TYPE.
20174
20175 2010-09-16  Andreas Schwab  <schwab@redhat.com>
20176
20177         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
20178         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
20179
20180 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
20181
20182         [BZ #12037]
20183         * posix/unistd.h: Undo change of feature selection for ftruncate from
20184         2010-01-11.
20185
20186 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
20187
20188         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
20189         detection.
20190
20191 2010-09-20  Andreas Schwab  <schwab@redhat.com>
20192
20193         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
20194         fanotify_mark.
20195         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
20196
20197 2010-09-14  Andreas Schwab  <schwab@redhat.com>
20198
20199         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
20200         variables after CHECK_SP call.
20201         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
20202
20203 2010-09-13  Andreas Schwab  <schwab@redhat.com>
20204             Ulrich Drepper  <drepper@redhat.com>
20205
20206         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
20207         re-relocationg ld.so.
20208         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
20209         _dl_init_paths call.
20210         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
20211         here anymore.
20212
20213 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
20214
20215         * resolv/res_init.c (__res_vinit): Count the default server we added.
20216
20217 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
20218             Ulrich Drepper  <drepper@redhat.com>
20219
20220         [BZ #11968]
20221         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
20222         (____longjmp_chk): Use %ebx for saving value across system call.
20223         Add unwind info.
20224
20225 2010-09-06  Andreas Schwab  <schwab@redhat.com>
20226
20227         * manual/Makefile: Don't mix pattern rules with normal rules.
20228
20229 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
20230
20231         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
20232         operation.
20233         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
20234         * libio/iofopncook.c (_IO_cookie_init): Likewise.
20235         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
20236         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
20237         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
20238         Likewise.
20239
20240 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
20241
20242         [BZ #11979]
20243         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
20244         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
20245
20246 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
20247
20248         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
20249         * sysdeps/x86_64/addmul_1.S: Likewise.
20250         * sysdeps/x86_64/lshift.S: Likewise.
20251         * sysdeps/x86_64/mul_1.S: Likewise.
20252         * sysdeps/x86_64/rshift.S: Likewise.
20253         * sysdeps/x86_64/sub_n.S: Likewise.
20254         * sysdeps/x86_64/submul_1.S: Likewise.
20255
20256 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20257
20258         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
20259         Define __sched_param instead of SCHED_* and sched_param when
20260         <bits/sched.h> is included with __need_schedparam defined.
20261         * bits/sched.h [__need_schedparam]
20262         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
20263         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
20264         (__defined_schedparam): Define to 1.
20265         (__sched_param): New structure, identical to sched_param.
20266         (__need_schedparam): Undefine.
20267
20268 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
20269
20270         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
20271         (epoll_create1): Declare.
20272
20273         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
20274
20275 2010-08-31  Andreas Schwab  <schwab@redhat.com>
20276
20277         [BZ #7066]
20278         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
20279         shifting retval into place.
20280
20281 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
20282
20283         * nis/rpcsvc/nis.h: Update copyright notice.
20284         * nis/rpcsvc/nis.x: Likewise.
20285         * nis/rpcsvc/nis_callback.h: Likewise.
20286         * nis/rpcsvc/nis_callback.x: Likewise.
20287         * nis/rpcsvc/nis_object.x: Likewise.
20288         * nis/rpcsvc/nis_tags.h: Likewise.
20289         * nis/rpcsvc/yp.h: Likewise.
20290         * nis/rpcsvc/yp.x: Likewise.
20291         * nis/rpcsvc/ypupd.h: Likewise.
20292         * nis/yp_xdr.c: Likewise.
20293         * nis/ypupdate_xdr.c: Likewise.
20294
20295         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
20296         mainly the body of pmap_getport.  Add parameters to specify timeouts.
20297         (pmap_getport): Use __libc_rpc_getport.
20298         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
20299         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
20300         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
20301
20302 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
20303
20304         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
20305         fanotify_mark.
20306
20307 2010-08-27  Roland McGrath  <roland@redhat.com>
20308
20309         * sysdeps/i386/i686/multiarch/Makefile
20310         (CFLAGS-varshift.c): New variable.
20311
20312 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
20313
20314         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
20315         * sysdeps/i386/i686/multiarch/varshift.c: New file.
20316
20317         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
20318
20319         * sysdeps/x86_64/strlen.S: Minimal code improvement.
20320
20321 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
20322
20323         * sysdeps/x86_64/strlen.S: Unroll the loop.
20324         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
20325         strlen-sse2 strlen-sse2-bsf.
20326         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
20327         __strlen_no_bsf if bit_Slow_BSF is set.
20328         (__strlen_sse42): Removed.
20329         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
20330         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
20331
20332 2010-08-25  Roland McGrath  <roland@redhat.com>
20333
20334         * sysdeps/x86_64/multiarch/varshift.S: File removed.
20335         * sysdeps/x86_64/multiarch/varshift.c: New file.
20336         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
20337         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
20338         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
20339         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
20340
20341 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
20342
20343         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
20344         strlen-sse2 strlen-sse2-bsf.
20345         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
20346         __strlen_sse2_bsf if bit_Slow_BSF is unset.
20347         (__strlen_sse2): Removed.
20348         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
20349         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
20350         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
20351         bit_Slow_BSF for Atom.
20352         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
20353         (index_Slow_BSF): Define.
20354         (HAS_SLOW_BSF): Define.
20355
20356 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
20357
20358         [BZ #10851]
20359         * resolv/res_init.c (__res_vinit): When no server address at all
20360         is given default to loopback.
20361
20362 2010-08-24  Roland McGrath  <roland@redhat.com>
20363
20364         * configure.in: Remove config-name.h generation.
20365         * configure: Regenerated.
20366         * config-name.in: File removed.
20367         * scripts/config-uname.sh: New file.
20368         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
20369         ($(objdir)config-name.h): New target.
20370
20371         * sunrpc/rpc_parse.h: Avoid nested comment.
20372
20373 2010-08-24  Richard Henderson  <rth@redhat.com>
20374             Ulrich Drepper  <drepper@redhat.com>
20375             H.J. Lu  <hongjiu.lu@intel.com>
20376
20377         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
20378         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
20379         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
20380         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
20381         _mm_alignr_epi8 with _mm_loadu_si128.
20382         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
20383         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
20384         (__m128i_shift_right): Removed.
20385         * sysdeps/i386/i686/multiarch/varshift.h: New file.
20386         * sysdeps/i386/i686/multiarch/varshift.S: New file.
20387         * sysdeps/x86_64/multiarch/varshift.h: New file.
20388         * sysdeps/x86_64/multiarch/varshift.S: New file.
20389
20390 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
20391
20392         * configure.in: Move assembler checks to before sysdep dir checking.
20393
20394 2010-08-20  Petr Baudis  <pasky@suse.cz>
20395
20396         * LICENSES: Sync the sunrpc license.
20397
20398 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
20399
20400         * sunrpc/auth_des.c: Update copyright notice once again.
20401         * sunrpc/auth_none.c: Likewise.
20402         * sunrpc/auth_unix.c: Likewise.
20403         * sunrpc/authdes_prot.c: Likewise.
20404         * sunrpc/authuxprot.c: Likewise.
20405         * sunrpc/bindrsvprt.c: Likewise.
20406         * sunrpc/clnt_gen.c: Likewise.
20407         * sunrpc/clnt_perr.c: Likewise.
20408         * sunrpc/clnt_raw.c: Likewise.
20409         * sunrpc/clnt_simp.c: Likewise.
20410         * sunrpc/clnt_tcp.c: Likewise.
20411         * sunrpc/clnt_udp.c: Likewise.
20412         * sunrpc/clnt_unix.c: Likewise.
20413         * sunrpc/des_crypt.c: Likewise.
20414         * sunrpc/des_soft.c: Likewise.
20415         * sunrpc/get_myaddr.c: Likewise.
20416         * sunrpc/getrpcport.c: Likewise.
20417         * sunrpc/key_call.c: Likewise.
20418         * sunrpc/key_prot.c: Likewise.
20419         * sunrpc/openchild.c: Likewise.
20420         * sunrpc/pm_getmaps.c: Likewise.
20421         * sunrpc/pm_getport.c: Likewise.
20422         * sunrpc/pmap_clnt.c: Likewise.
20423         * sunrpc/pmap_prot.c: Likewise.
20424         * sunrpc/pmap_prot2.c: Likewise.
20425         * sunrpc/pmap_rmt.c: Likewise.
20426         * sunrpc/rpc/auth.h: Likewise.
20427         * sunrpc/rpc/auth_unix.h: Likewise.
20428         * sunrpc/rpc/clnt.h: Likewise.
20429         * sunrpc/rpc/des_crypt.h: Likewise.
20430         * sunrpc/rpc/key_prot.h: Likewise.
20431         * sunrpc/rpc/netdb.h: Likewise.
20432         * sunrpc/rpc/pmap_clnt.h: Likewise.
20433         * sunrpc/rpc/pmap_prot.h: Likewise.
20434         * sunrpc/rpc/pmap_rmt.h: Likewise.
20435         * sunrpc/rpc/rpc.h: Likewise.
20436         * sunrpc/rpc/rpc_des.h: Likewise.
20437         * sunrpc/rpc/rpc_msg.h: Likewise.
20438         * sunrpc/rpc/svc.h: Likewise.
20439         * sunrpc/rpc/svc_auth.h: Likewise.
20440         * sunrpc/rpc/types.h: Likewise.
20441         * sunrpc/rpc/xdr.h: Likewise.
20442         * sunrpc/rpc_clntout.c: Likewise.
20443         * sunrpc/rpc_cmsg.c: Likewise.
20444         * sunrpc/rpc_common.c: Likewise.
20445         * sunrpc/rpc_cout.c: Likewise.
20446         * sunrpc/rpc_dtable.c: Likewise.
20447         * sunrpc/rpc_hout.c: Likewise.
20448         * sunrpc/rpc_main.c: Likewise.
20449         * sunrpc/rpc_parse.c: Likewise.
20450         * sunrpc/rpc_parse.h: Likewise.
20451         * sunrpc/rpc_prot.c: Likewise.
20452         * sunrpc/rpc_sample.c: Likewise.
20453         * sunrpc/rpc_scan.c: Likewise.
20454         * sunrpc/rpc_scan.h: Likewise.
20455         * sunrpc/rpc_svcout.c: Likewise.
20456         * sunrpc/rpc_tblout.c: Likewise.
20457         * sunrpc/rpc_util.c: Likewise.
20458         * sunrpc/rpc_util.h: Likewise.
20459         * sunrpc/rpcinfo.c: Likewise.
20460         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
20461         * sunrpc/rpcsvc/key_prot.x: Likewise.
20462         * sunrpc/rpcsvc/klm_prot.x: Likewise.
20463         * sunrpc/rpcsvc/mount.x: Likewise.
20464         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
20465         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
20466         * sunrpc/rpcsvc/rex.x: Likewise.
20467         * sunrpc/rpcsvc/rstat.x: Likewise.
20468         * sunrpc/rpcsvc/rusers.x: Likewise.
20469         * sunrpc/rpcsvc/sm_inter.x: Likewise.
20470         * sunrpc/rpcsvc/spray.x: Likewise.
20471         * sunrpc/rpcsvc/yppasswd.x: Likewise.
20472         * sunrpc/rtime.c: Likewise.
20473         * sunrpc/svc.c: Likewise.
20474         * sunrpc/svc_auth.c: Likewise.
20475         * sunrpc/svc_authux.c: Likewise.
20476         * sunrpc/svc_raw.c: Likewise.
20477         * sunrpc/svc_run.c: Likewise.
20478         * sunrpc/svc_simple.c: Likewise.
20479         * sunrpc/svc_tcp.c: Likewise.
20480         * sunrpc/svc_udp.c: Likewise.
20481         * sunrpc/svc_unix.c: Likewise.
20482         * sunrpc/svcauth_des.c: Likewise.
20483         * sunrpc/xcrypt.c: Likewise.
20484         * sunrpc/xdr.c: Likewise.
20485         * sunrpc/xdr_array.c: Likewise.
20486         * sunrpc/xdr_float.c: Likewise.
20487         * sunrpc/xdr_mem.c: Likewise.
20488         * sunrpc/xdr_rec.c: Likewise.
20489         * sunrpc/xdr_ref.c: Likewise.
20490         * sunrpc/xdr_sizeof.c: Likewise.
20491         * sunrpc/xdr_stdio.c: Likewise.
20492
20493         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
20494         handling.
20495
20496 2010-08-19  Andreas Schwab  <schwab@redhat.com>
20497
20498         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
20499
20500 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
20501
20502         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
20503         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
20504         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
20505         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
20506         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
20507         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
20508         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
20509         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
20510         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
20511         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
20512         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
20513         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
20514         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
20515         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
20516
20517 2010-07-26  Anton Blanchard  <anton@samba.org>
20518
20519         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
20520         * malloc/arena.c (heap_trim): Likewise.
20521
20522 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
20523
20524         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
20525         here.  Not...
20526         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
20527         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
20528
20529 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
20530
20531         * sysdeps/i386/elf/Makefile: New file.
20532
20533 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
20534
20535         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
20536         from fanotify_init.
20537         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
20538         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
20539
20540 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
20541
20542         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
20543         of strncasecmp_l.
20544         * sysdeps/multiarch/strcmp.S: Likewise.
20545
20546 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
20547
20548         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
20549         strncase_l-nonascii.
20550         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
20551         Add strncase_l-ssse3.
20552         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
20553         * sysdeps/x86_64/strcmp.S: Likewise.
20554         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
20555         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
20556         * sysdeps/x86_64/strncase.S: New file.
20557         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
20558         * sysdeps/x86_64/strncase_l.S: New file.
20559         * string/Makefile (strop-tests): Add strncasecmp.
20560         * string/test-strncasecmp.c: New file.
20561
20562         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
20563         warning.
20564
20565         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
20566         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
20567
20568 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
20569
20570         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
20571
20572 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
20573
20574         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
20575         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
20576         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
20577
20578 2010-05-01  Alan Modra  <amodra@gmail.com>
20579
20580         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
20581         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
20582         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
20583         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
20584         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
20585         tidying.  Don't tail-call __sigjmp_save for static lib.
20586         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
20587         save location.
20588         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
20589         (CALL_MCOUNT): Add eh info, and nop after bl.
20590         (TAIL_CALL_SYSCALL_ERROR): New macro.
20591         (PSEUDO_RET): Use it.
20592         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
20593         Correct save location of integer regs and cr.
20594         (_dl_profile_resolve): Correct cr save location.  Delete nops
20595         after bl when SHARED.  Reduce cfi size a little by better
20596         placement of cfi directives.
20597         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
20598         make a stack frame.  Instead use parm save area as a temp.
20599         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
20600         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
20601         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
20602         Don't make a stack frame for parent, use parm save area.
20603         Increase child stack frame to 112 bytes.  Don't save unused reg,
20604         and adjust reg usage.  Set up cfi on error recovery and
20605         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
20606         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
20607         (__makecontext): Add dummy nop after jump to exit.
20608         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
20609         Use correct parm save area and cr save, reduce stack frame.
20610         Correct cfi for possible PSEUDO_RET frame setup.
20611         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
20612         Branch to local label emitted by PSEUDO_RET rather than
20613         __syscall_error.
20614
20615 2010-08-12  Andreas Schwab  <schwab@redhat.com>
20616
20617         [BZ #11904]
20618         * locale/programs/locale.c (print_assignment): New function.
20619         (show_locale_vars): Use it.
20620
20621 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
20622
20623         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
20624         field.
20625         (struct statfs64): Likewise.
20626         (_STATFS_F_FLAGS): Define.
20627         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
20628         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
20629         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
20630         (ST_VALID): Define locally.
20631         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
20632         __statvfs_getflags, use the provided value.
20633         * sysdeps/unix/sysv/linux/kernel-features.h: Define
20634         __ASSUME_STATFS_F_FLAGS.
20635
20636         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
20637
20638         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
20639         Add sys/fanotify.h.
20640         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
20641         fanotify_mask for GLIBC_2.13.
20642         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
20643         fanotify_init and fanotify_mark.
20644         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
20645         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
20646
20647         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
20648         Add prlimit.
20649         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
20650         prlimit64 for GLIBC_2.13.
20651         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
20652         prlimit64.
20653         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
20654         syscall.
20655         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
20656         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
20657         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
20658         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
20659         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
20660         add prlimit alias.
20661         * sysdeps/unix/sysv/linux/prlimit.c: New file.
20662
20663         [BZ #11903]
20664         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
20665         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
20666
20667         * nss/Makefile: Add rules to build and run tst-nss-test1.
20668         * shlib-versions: Add entry for libnss_test1.
20669         * nss/nss_test1.c: New file.
20670         * nss/tst-nss-test1.c: New file.
20671
20672         * nss/nsswitch.c (__nss_database_custom): Define new variable.
20673         (__nss_configure_lookup): Set appropriate entry in
20674         __nss_configure_lookup to true.
20675         * nss/nsswitch.h: Define enum with indeces of databases in
20676         databases and __nss_database_custom arrays.  Declare
20677         __nss_database_custom.
20678         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
20679         to avoid using nscd when custom rules are installed.
20680         * nss/getXXbyYY_r.c: Likewise.
20681         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
20682
20683         * nss/nss_files/files-parse.c: Whitespace fixes.
20684
20685 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
20686
20687         [BZ #11883]
20688         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
20689         * posix/fnmatch_loop.c: Likewise.
20690
20691 2010-07-17  Andi Kleen  <ak@linux.intel.com>
20692
20693         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
20694         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
20695         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
20696         * Versions.def [GLIBC_2.13]: Add.
20697
20698 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
20699
20700         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
20701         Also fail if tpwd after pwuid call is NULL.
20702
20703 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20704
20705         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
20706         when converting to ms.
20707
20708 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20709
20710         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
20711         EOPNOTSUPP errors with ENOTTY.
20712         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
20713         EOPNOTSUPP errors with ENOTTY.
20714
20715 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
20716
20717         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
20718         Add strcasecmp_l-ssse3.
20719         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
20720         strcasecmp.
20721         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
20722         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
20723         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
20724
20725 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
20726
20727         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
20728
20729         * string/Makefile (strop-tests): Add strcasecmp.
20730         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
20731         strcasecmp_l-nonascii.
20732         (gen-as-const-headers): Add locale-defines.sym.
20733         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
20734         * sysdeps/x86_64/strcasecmp.S: New file.
20735         * sysdeps/x86_64/strcasecmp_l.S: New file.
20736         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
20737         * sysdeps/x86_64/locale-defines.sym: New file.
20738         * string/test-strcasecmp.c: New file.
20739
20740         * string/test-strcasestr.c: Test both ends of the range of characters.
20741         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
20742
20743 2010-07-29  Roland McGrath  <roland@redhat.com>
20744
20745         [BZ #11856]
20746         * manual/locale.texi (Yes-or-No Questions): Fix example code.
20747
20748 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
20749
20750         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
20751         for ld.so.
20752
20753 2010-07-27  Andreas Schwab  <schwab@redhat.com>
20754
20755         * manual/memory.texi (Malloc Tunable Parameters): Document
20756         M_PERTURB.
20757
20758 2010-07-26  Roland McGrath  <roland@redhat.com>
20759
20760         [BZ #11840]
20761         * configure.in (-fgnu89-inline check): Set and substitute
20762         gnu89_inline, not libc_cv_gnu89_inline.
20763         * configure: Regenerated.
20764         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
20765
20766 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
20767
20768         * string/test-strnlen.c: New file.
20769         * string/Makefile (strop-tests): Add strnlen.
20770         * string/tester.c (test_strnlen): Add a few more test cases.
20771         * string/tst-strlen.c: Better error reporting.
20772
20773         * sysdeps/x86_64/strnlen.S: New file.
20774
20775 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
20776
20777         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
20778         lower-latency instructions.
20779
20780 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
20781
20782         * string/test-strcasestr.c: New file.
20783         * string/test-strstr.c: New file.
20784         * string/Makefile (strop-tests): Add strstr and strcasestr.
20785         * string/str-two-way.h: Don't undefine MAX.
20786         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
20787
20788 2010-07-21  Andreas Schwab  <schwab@redhat.com>
20789
20790         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
20791         strcasestr-nonascii.
20792         (CFLAGS-strcasestr-nonascii.c): Define.
20793         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
20794         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
20795         Remove unused attribute.
20796
20797 2010-07-20  Roland McGrath  <roland@redhat.com>
20798
20799         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
20800         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
20801         ld.so.cache was broken.  With it, there is no way to disable dsocaps
20802         like LD_HWCAP_MASK can disable hwcaps.
20803
20804 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
20805
20806         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
20807
20808 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
20809
20810         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
20811         call in strcasestr.
20812         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
20813         __strcasestr_sse42_nonascii.
20814         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
20815         strcasestr-nonascii.c.
20816         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
20817
20818 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
20819
20820         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
20821         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
20822         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
20823         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
20824
20825 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
20826
20827         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
20828         fcntl.
20829
20830 2010-07-06  Andreas Schwab  <schwab@redhat.com>
20831
20832         [BZ #11577]
20833         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
20834         dl_signal_cerror.
20835
20836 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
20837
20838         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
20839         _PC_PIPE_BUF using F_GETPIPE_SZ.
20840
20841 2010-07-05  Roland McGrath  <roland@redhat.com>
20842
20843         * manual/arith.texi (Rounding Functions): Fix rint description
20844         implicit in round description.
20845
20846 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
20847
20848         * elf/Makefile: Fix linking for a few tests to make recent linker
20849         happy.
20850
20851 2010-06-30  Andreas Schwab  <schwab@redhat.com>
20852
20853         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
20854         $(common-objpfx)libc_nonshared.a.
20855
20856 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
20857
20858         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
20859         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
20860         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
20861         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
20862         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
20863         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
20864         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
20865         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
20866         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
20867         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
20868         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
20869         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
20870         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
20871         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
20872         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
20873         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
20874         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
20875         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
20876         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
20877         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
20878         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
20879         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
20880         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
20881         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
20882         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
20883         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
20884         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
20885         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
20886         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
20887         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
20888         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
20889         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
20890         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
20891         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
20892         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
20893         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
20894         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
20895         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
20896         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
20897         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
20898         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
20899         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
20900         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
20901         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
20902         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
20903         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
20904         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
20905         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
20906
20907 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
20908
20909         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
20910         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
20911         * string/memmove.c (memmove): Renamed to ...
20912         (MEMMOVE): ...this.  Default to memmove.
20913         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
20914         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
20915         (END_CHK): Define.
20916         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
20917         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
20918         mempcpy-ssse3-back memmove-ssse3-back.
20919         * sysdeps/x86_64/multiarch/bcopy.S: New file .
20920         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
20921         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
20922         * sysdeps/x86_64/multiarch/memcpy.S: New file.
20923         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
20924         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
20925         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
20926         * sysdeps/x86_64/multiarch/memmove.c: New file.
20927         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
20928         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
20929         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
20930         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
20931         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
20932         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
20933         Define.
20934         (index_Fast_Copy_Backward): Define.
20935         (HAS_ARCH_FEATURE): Define.
20936         (HAS_FAST_REP_STRING): Define.
20937         (HAS_FAST_COPY_BACKWARD): Define.
20938
20939 2010-06-21  Andreas Schwab  <schwab@redhat.com>
20940
20941         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
20942         Restore proper fallback handling.
20943
20944 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
20945
20946         [BZ #11701]
20947         * posix/group_member.c (__group_member): Correct checking loop.
20948
20949         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
20950         OOM in getpwuid_r correctly.  Return error number when the caller
20951         should return, otherwise -1.
20952         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
20953         call returning > 0 value.
20954         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
20955
20956 2010-06-07  Andreas Schwab  <schwab@redhat.com>
20957
20958         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
20959         libc_nonshared.a from targets in modules-names.
20960
20961 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
20962
20963         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
20964         requires it.
20965
20966 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
20967
20968         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
20969         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
20970         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
20971         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
20972
20973 2010-06-02  Andreas Schwab  <schwab@redhat.com>
20974
20975         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
20976
20977 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
20978
20979         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
20980         and F_GETPIPE_SZ.
20981         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
20982         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
20983         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
20984         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
20985         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
20986         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
20987
20988 2010-06-14  Roland McGrath  <roland@redhat.com>
20989
20990         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
20991
20992 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
20993
20994         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
20995         __REDIRECT followed by __THROW.
20996         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
20997         * posix/getopt.h (getopt): Likewise.
20998
20999 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
21000
21001         * hurd/lookup-at.c (__file_name_lookup_at): Accept
21002         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
21003         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
21004         in AT_FLAGS.
21005         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
21006         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
21007
21008 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
21009
21010         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
21011
21012 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
21013
21014         [BZ #11640]
21015         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
21016         Properly check family and model.
21017
21018 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
21019
21020         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
21021
21022 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
21023
21024         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
21025
21026 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
21027
21028         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
21029         symbol reference.
21030
21031 2010-05-19  Andreas Schwab  <schwab@redhat.com>
21032
21033         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
21034         symbol reference.
21035
21036 2010-05-21  Andreas Schwab  <schwab@redhat.com>
21037
21038         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
21039         and internal_recvmmsg.
21040         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
21041         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
21042         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
21043         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
21044
21045         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
21046         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
21047         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
21048
21049 2010-05-20  Andreas Schwab  <schwab@redhat.com>
21050
21051         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
21052
21053 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
21054
21055         POWER7 optimizations.
21056         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
21057         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
21058
21059 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
21060
21061         * version.h: Update for 2.13 development version.
21062
21063 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
21064
21065         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
21066         exceptions.  Return 0.
21067
21068 2010-05-07  Roland McGrath  <roland@redhat.com>
21069
21070         * elf/ldconfig.c (main): Add a const.
21071
21072 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
21073
21074         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
21075         (args_options): Add no-idn option.
21076         (ahosts_keys_int): Add idn_flags to ai_flags.
21077         (parse_option): Handle 'i' option to clear idn_flags.
21078
21079         * malloc/malloc.c (_int_free): Possible race in the most recently
21080         added check.  Only act on the data if no current modification
21081         happened.
21082
21083 See ChangeLog.17 for earlier changes.